patreon-dl 3.8.1 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,218 @@
1
+ var Sb=r=>{throw TypeError(r)};var Gf=(r,t,a)=>t.has(r)||Sb("Cannot "+a);var Gn=(r,t,a)=>(Gf(r,t,"read from private field"),a?a.call(r):t.get(r)),Sn=(r,t,a)=>t.has(r)?Sb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,a),Vn=(r,t,a,l)=>(Gf(r,t,"write to private field"),l?l.call(r,a):t.set(r,a),a),aa=(r,t,a)=>(Gf(r,t,"access private method"),a);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();var xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function J1(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var a=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(r).forEach(function(l){var o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(a,l,o.get?o:{enumerable:!0,get:function(){return r[l]}})}),a}var Vf={exports:{}},Bl={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 wb;function vC(){if(wb)return Bl;wb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(l,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:r,type:l,key:c,ref:o!==void 0?o:null,props:u}}return Bl.Fragment=t,Bl.jsx=a,Bl.jsxs=a,Bl}var xb;function yC(){return xb||(xb=1,Vf.exports=vC()),Vf.exports}var b=yC(),Wf={exports:{}},$l={},Yf={exports:{}},Xf={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 Ob;function bC(){return Ob||(Ob=1,function(r){function t(z,S){var te=z.length;z.push(S);e:for(;0<te;){var R=te-1>>>1,v=z[R];if(0<o(v,S))z[R]=S,z[te]=v,te=R;else break e}}function a(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var S=z[0],te=z.pop();if(te!==S){z[0]=te;e:for(var R=0,v=z.length,C=v>>>1;R<C;){var W=2*(R+1)-1,V=z[W],H=W+1,X=z[H];if(0>o(V,te))H<v&&0>o(X,V)?(z[R]=X,z[H]=te,R=H):(z[R]=V,z[W]=te,R=W);else if(H<v&&0>o(X,te))z[R]=X,z[H]=te,R=H;else break e}}return S}function o(z,S){var te=z.sortIndex-S.sortIndex;return te!==0?te:z.id-S.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();r.unstable_now=function(){return c.now()-d}}var h=[],p=[],g=1,y=null,x=3,E=!1,j=!1,_=!1,L=!1,k=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Z(z){for(var S=a(p);S!==null;){if(S.callback===null)l(p);else if(S.startTime<=z)l(p),S.sortIndex=S.expirationTime,t(h,S);else break;S=a(p)}}function N(z){if(_=!1,Z(z),!j)if(a(h)!==null)j=!0,M||(M=!0,$());else{var S=a(p);S!==null&&U(N,S.startTime-z)}}var M=!1,P=-1,Q=5,D=-1;function T(){return L?!0:!(r.unstable_now()-D<Q)}function F(){if(L=!1,M){var z=r.unstable_now();D=z;var S=!0;try{e:{j=!1,_&&(_=!1,G(P),P=-1),E=!0;var te=x;try{t:{for(Z(z),y=a(h);y!==null&&!(y.expirationTime>z&&T());){var R=y.callback;if(typeof R=="function"){y.callback=null,x=y.priorityLevel;var v=R(y.expirationTime<=z);if(z=r.unstable_now(),typeof v=="function"){y.callback=v,Z(z),S=!0;break t}y===a(h)&&l(h),Z(z)}else l(h);y=a(h)}if(y!==null)S=!0;else{var C=a(p);C!==null&&U(N,C.startTime-z),S=!1}}break e}finally{y=null,x=te,E=!1}S=void 0}}finally{S?$():M=!1}}}var $;if(typeof q=="function")$=function(){q(F)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,B=I.port2;I.port1.onmessage=F,$=function(){B.postMessage(null)}}else $=function(){k(F,0)};function U(z,S){P=k(function(){z(r.unstable_now())},S)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(z){z.callback=null},r.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"):Q=0<z?Math.floor(1e3/z):5},r.unstable_getCurrentPriorityLevel=function(){return x},r.unstable_next=function(z){switch(x){case 1:case 2:case 3:var S=3;break;default:S=x}var te=x;x=S;try{return z()}finally{x=te}},r.unstable_requestPaint=function(){L=!0},r.unstable_runWithPriority=function(z,S){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var te=x;x=z;try{return S()}finally{x=te}},r.unstable_scheduleCallback=function(z,S,te){var R=r.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?R+te:R):te=R,z){case 1:var v=-1;break;case 2:v=250;break;case 5:v=1073741823;break;case 4:v=1e4;break;default:v=5e3}return v=te+v,z={id:g++,callback:S,priorityLevel:z,startTime:te,expirationTime:v,sortIndex:-1},te>R?(z.sortIndex=te,t(p,z),a(h)===null&&z===a(p)&&(_?(G(P),P=-1):_=!0,U(N,te-R))):(z.sortIndex=v,t(h,z),j||E||(j=!0,M||(M=!0,$()))),z},r.unstable_shouldYield=T,r.unstable_wrapCallback=function(z){var S=x;return function(){var te=x;x=S;try{return z.apply(this,arguments)}finally{x=te}}}}(Xf)),Xf}var Tb;function SC(){return Tb||(Tb=1,Yf.exports=bC()),Yf.exports}var Ff={exports:{}},He={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and 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 Eb;function wC(){if(Eb)return He;Eb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function x(v){return v===null||typeof v!="object"?null:(v=y&&v[y]||v["@@iterator"],typeof v=="function"?v:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,_={};function L(v,C,W){this.props=v,this.context=C,this.refs=_,this.updater=W||E}L.prototype.isReactComponent={},L.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,C,"setState")},L.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function k(){}k.prototype=L.prototype;function G(v,C,W){this.props=v,this.context=C,this.refs=_,this.updater=W||E}var q=G.prototype=new k;q.constructor=G,j(q,L.prototype),q.isPureReactComponent=!0;var Z=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function P(v,C,W,V,H,X){return W=X.ref,{$$typeof:r,type:v,key:C,ref:W!==void 0?W:null,props:X}}function Q(v,C){return P(v.type,C,void 0,void 0,void 0,v.props)}function D(v){return typeof v=="object"&&v!==null&&v.$$typeof===r}function T(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(W){return C[W]})}var F=/\/+/g;function $(v,C){return typeof v=="object"&&v!==null&&v.key!=null?T(""+v.key):C.toString(36)}function I(){}function B(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(I,I):(v.status="pending",v.then(function(C){v.status==="pending"&&(v.status="fulfilled",v.value=C)},function(C){v.status==="pending"&&(v.status="rejected",v.reason=C)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function U(v,C,W,V,H){var X=typeof v;(X==="undefined"||X==="boolean")&&(v=null);var J=!1;if(v===null)J=!0;else switch(X){case"bigint":case"string":case"number":J=!0;break;case"object":switch(v.$$typeof){case r:case t:J=!0;break;case g:return J=v._init,U(J(v._payload),C,W,V,H)}}if(J)return H=H(v),J=V===""?"."+$(v,0):V,Z(H)?(W="",J!=null&&(W=J.replace(F,"$&/")+"/"),U(H,C,W,"",function(me){return me})):H!=null&&(D(H)&&(H=Q(H,W+(H.key==null||v&&v.key===H.key?"":(""+H.key).replace(F,"$&/")+"/")+J)),C.push(H)),1;J=0;var ie=V===""?".":V+":";if(Z(v))for(var ce=0;ce<v.length;ce++)V=v[ce],X=ie+$(V,ce),J+=U(V,C,W,X,H);else if(ce=x(v),typeof ce=="function")for(v=ce.call(v),ce=0;!(V=v.next()).done;)V=V.value,X=ie+$(V,ce++),J+=U(V,C,W,X,H);else if(X==="object"){if(typeof v.then=="function")return U(B(v),C,W,V,H);throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return J}function z(v,C,W){if(v==null)return v;var V=[],H=0;return U(v,V,"","",function(X){return C.call(W,X,H++)}),V}function S(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(W){(v._status===0||v._status===-1)&&(v._status=1,v._result=W)},function(W){(v._status===0||v._status===-1)&&(v._status=2,v._result=W)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var te=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)};function R(){}return He.Children={map:z,forEach:function(v,C,W){z(v,function(){C.apply(this,arguments)},W)},count:function(v){var C=0;return z(v,function(){C++}),C},toArray:function(v){return z(v,function(C){return C})||[]},only:function(v){if(!D(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},He.Component=L,He.Fragment=a,He.Profiler=o,He.PureComponent=G,He.StrictMode=l,He.Suspense=h,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,He.__COMPILER_RUNTIME={__proto__:null,c:function(v){return N.H.useMemoCache(v)}},He.cache=function(v){return function(){return v.apply(null,arguments)}},He.cloneElement=function(v,C,W){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var V=j({},v.props),H=v.key,X=void 0;if(C!=null)for(J in C.ref!==void 0&&(X=void 0),C.key!==void 0&&(H=""+C.key),C)!M.call(C,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&C.ref===void 0||(V[J]=C[J]);var J=arguments.length-2;if(J===1)V.children=W;else if(1<J){for(var ie=Array(J),ce=0;ce<J;ce++)ie[ce]=arguments[ce+2];V.children=ie}return P(v.type,H,void 0,void 0,X,V)},He.createContext=function(v){return v={$$typeof:c,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:u,_context:v},v},He.createElement=function(v,C,W){var V,H={},X=null;if(C!=null)for(V in C.key!==void 0&&(X=""+C.key),C)M.call(C,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(H[V]=C[V]);var J=arguments.length-2;if(J===1)H.children=W;else if(1<J){for(var ie=Array(J),ce=0;ce<J;ce++)ie[ce]=arguments[ce+2];H.children=ie}if(v&&v.defaultProps)for(V in J=v.defaultProps,J)H[V]===void 0&&(H[V]=J[V]);return P(v,X,void 0,void 0,null,H)},He.createRef=function(){return{current:null}},He.forwardRef=function(v){return{$$typeof:d,render:v}},He.isValidElement=D,He.lazy=function(v){return{$$typeof:g,_payload:{_status:-1,_result:v},_init:S}},He.memo=function(v,C){return{$$typeof:p,type:v,compare:C===void 0?null:C}},He.startTransition=function(v){var C=N.T,W={};N.T=W;try{var V=v(),H=N.S;H!==null&&H(W,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(R,te)}catch(X){te(X)}finally{N.T=C}},He.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},He.use=function(v){return N.H.use(v)},He.useActionState=function(v,C,W){return N.H.useActionState(v,C,W)},He.useCallback=function(v,C){return N.H.useCallback(v,C)},He.useContext=function(v){return N.H.useContext(v)},He.useDebugValue=function(){},He.useDeferredValue=function(v,C){return N.H.useDeferredValue(v,C)},He.useEffect=function(v,C,W){var V=N.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(v,C)},He.useId=function(){return N.H.useId()},He.useImperativeHandle=function(v,C,W){return N.H.useImperativeHandle(v,C,W)},He.useInsertionEffect=function(v,C){return N.H.useInsertionEffect(v,C)},He.useLayoutEffect=function(v,C){return N.H.useLayoutEffect(v,C)},He.useMemo=function(v,C){return N.H.useMemo(v,C)},He.useOptimistic=function(v,C){return N.H.useOptimistic(v,C)},He.useReducer=function(v,C,W){return N.H.useReducer(v,C,W)},He.useRef=function(v){return N.H.useRef(v)},He.useState=function(v){return N.H.useState(v)},He.useSyncExternalStore=function(v,C,W){return N.H.useSyncExternalStore(v,C,W)},He.useTransition=function(){return N.H.useTransition()},He.version="19.1.0",He}var Cb;function Cn(){return Cb||(Cb=1,Ff.exports=wC()),Ff.exports}var Qf={exports:{}},Bt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and 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 Rb;function xC(){if(Rb)return Bt;Rb=1;var r=Cn();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,p,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:p,implementation:g}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Bt.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(h,p,null,g)},Bt.flushSync=function(h){var p=c.T,g=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=p,l.p=g,l.d.f()}},Bt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(h,p))},Bt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Bt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,y=d(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?l.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:E}):g==="script"&&l.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);l.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(h)},Bt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,y=d(g,p.crossOrigin);l.d.L(h,g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=d(p.as,p.crossOrigin);l.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(h)},Bt.requestFormReset=function(h){l.d.r(h)},Bt.unstable_batchedUpdates=function(h,p){return h(p)},Bt.useFormState=function(h,p,g){return c.H.useFormState(h,p,g)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.1.0",Bt}var _b;function ew(){if(_b)return Qf.exports;_b=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Qf.exports=xC(),Qf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var jb;function OC(){if(jb)return $l;jb=1;var r=SC(),t=Cn(),a=ew();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(u(e)!==e)throw Error(l(188))}function h(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,s=n;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return d(f),e;if(m===s)return d(f),n;m=m.sibling}throw Error(l(188))}if(i.return!==s.return)i=f,s=m;else{for(var O=!1,A=f.child;A;){if(A===i){O=!0,i=f,s=m;break}if(A===s){O=!0,s=f,i=m;break}A=A.sibling}if(!O){for(A=m.child;A;){if(A===i){O=!0,i=m,s=f;break}if(A===s){O=!0,s=m,i=f;break}A=A.sibling}if(!O)throw Error(l(189))}}if(i.alternate!==s)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function B(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case L:return"Profiler";case _:return"StrictMode";case N:return"Suspense";case M:return"SuspenseList";case D:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case q:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case Z:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return n=e.displayName||null,n!==null?n:B(e.type)||"Memo";case Q:n=e._payload,e=e._init;try{return B(e(n))}catch{}}return null}var U=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},R=[],v=-1;function C(e){return{current:e}}function W(e){0>v||(e.current=R[v],R[v]=null,v--)}function V(e,n){v++,R[v]=e.current,e.current=n}var H=C(null),X=C(null),J=C(null),ie=C(null);function ce(e,n){switch(V(J,n),V(X,e),V(H,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Xy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Xy(n),e=Fy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(H),V(H,e)}function me(){W(H),W(X),W(J)}function pe(e){e.memoizedState!==null&&V(ie,e);var n=H.current,i=Fy(n,e.type);n!==i&&(V(X,e),V(H,i))}function ve(e){X.current===e&&(W(H),W(X)),ie.current===e&&(W(ie),Ll._currentValue=te)}var he=Object.prototype.hasOwnProperty,ge=r.unstable_scheduleCallback,Se=r.unstable_cancelCallback,ye=r.unstable_shouldYield,Re=r.unstable_requestPaint,be=r.unstable_now,Le=r.unstable_getCurrentPriorityLevel,Pe=r.unstable_ImmediatePriority,Ee=r.unstable_UserBlockingPriority,ke=r.unstable_NormalPriority,ot=r.unstable_LowPriority,ft=r.unstable_IdlePriority,yt=r.log,Nt=r.unstable_setDisableYieldValue,Ae=null,Be=null;function nt(e){if(typeof yt=="function"&&Nt(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Ae,e)}catch{}}var dt=Math.clz32?Math.clz32:Pu,Ui=Math.log,ko=Math.LN2;function Pu(e){return e>>>=0,e===0?32:31-(Ui(e)/ko|0)|0}var Ga=256,Mr=4194304;function cn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ae(e,n,i){var s=e.pendingLanes;if(s===0)return 0;var f=0,m=e.suspendedLanes,O=e.pingedLanes;e=e.warmLanes;var A=s&134217727;return A!==0?(s=A&~m,s!==0?f=cn(s):(O&=A,O!==0?f=cn(O):i||(i=A&~e,i!==0&&(f=cn(i))))):(A=s&~m,A!==0?f=cn(A):O!==0?f=cn(O):i||(i=s&~e,i!==0&&(f=cn(i)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:f}function se(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ve(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ga;return Ga<<=1,(Ga&4194048)===0&&(Ga=256),e}function Ze(){var e=Mr;return Mr<<=1,(Mr&62914560)===0&&(Mr=4194304),e}function ze(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function qt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tr(e,n,i,s,f,m){var O=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var A=e.entanglements,Y=e.expirationTimes,re=e.hiddenUpdates;for(i=O&~i;0<i;){var ue=31-dt(i),de=1<<ue;A[ue]=0,Y[ue]=-1;var le=re[ue];if(le!==null)for(re[ue]=null,ue=0;ue<le.length;ue++){var oe=le[ue];oe!==null&&(oe.lane&=-536870913)}i&=~de}s!==0&&Ht(e,s,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(O&~n))}function Ht(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-dt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|i&4194090}function _n(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var s=31-dt(i),f=1<<s;f&n|e[s]&n&&(e[s]|=n),i&=~f}}function da(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ut(){var e=S.p;return e!==0?e:(e=window.event,e===void 0?32:pb(e.type))}function Bo(e,n){var i=S.p;try{return S.p=e,n()}finally{S.p=i}}var jn=Math.random().toString(36).slice(2),Tt="__reactFiber$"+jn,wt="__reactProps$"+jn,Hn="__reactContainer$"+jn,Nr="__reactEvents$"+jn,Gi="__reactListeners$"+jn,Vi="__reactHandles$"+jn,Wi="__reactResources$"+jn,Dr="__reactMarker$"+jn;function ha(e){delete e[Tt],delete e[wt],delete e[Nr],delete e[Gi],delete e[Vi]}function nr(e){var n=e[Tt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Hn]||i[Tt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Jy(e);e!==null;){if(i=e[Tt])return i;e=Jy(e)}return n}e=i,i=e.parentNode}return null}function kn(e){if(e=e[Tt]||e[Hn]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Lr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function zr(e){var n=e[Wi];return n||(n=e[Wi]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ht(e){e[Dr]=!0}var rr=new Set,pa={};function ar(e,n){ir(e,n),ir(e+"Capture",n)}function ir(e,n){for(pa[e]=n,e=0;e<n.length;e++)rr.add(n[e])}var uT=RegExp("^[: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]*$"),Bm={},$m={};function cT(e){return he.call($m,e)?!0:he.call(Bm,e)?!1:uT.test(e)?$m[e]=!0:(Bm[e]=!0,!1)}function $o(e,n,i){if(cT(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Io(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function lr(e,n,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+s)}}var Hu,Im;function Va(e){if(Hu===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Hu=n&&n[1]||"",Im=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Hu+e+Im}var ku=!1;function Bu(e,n){if(!e||ku)return"";ku=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(oe){var le=oe}Reflect.construct(e,[],de)}else{try{de.call()}catch(oe){le=oe}e.call(de.prototype)}}else{try{throw Error()}catch(oe){le=oe}(de=e())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(oe){if(oe&&le&&typeof oe.stack=="string")return[oe.stack,le.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),O=m[0],A=m[1];if(O&&A){var Y=O.split(`
44
+ `),re=A.split(`
45
+ `);for(f=s=0;s<Y.length&&!Y[s].includes("DetermineComponentFrameRoot");)s++;for(;f<re.length&&!re[f].includes("DetermineComponentFrameRoot");)f++;if(s===Y.length||f===re.length)for(s=Y.length-1,f=re.length-1;1<=s&&0<=f&&Y[s]!==re[f];)f--;for(;1<=s&&0<=f;s--,f--)if(Y[s]!==re[f]){if(s!==1||f!==1)do if(s--,f--,0>f||Y[s]!==re[f]){var ue=`
46
+ `+Y[s].replace(" at new "," at ");return e.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",e.displayName)),ue}while(1<=s&&0<=f);break}}}finally{ku=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Va(i):""}function fT(e){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return Bu(e.type,!1);case 11:return Bu(e.type.render,!1);case 1:return Bu(e.type,!0);case 31:return Va("Activity");default:return""}}function qm(e){try{var n="";do n+=fT(e),e=e.return;while(e);return n}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Um(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function dT(e){var n=Um(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,m=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(O){s=""+O,m.call(this,O)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function qo(e){e._valueTracker||(e._valueTracker=dT(e))}function Gm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return e&&(s=Um(e)?e.checked?"true":"false":e.value),e=s,e!==i?(n.setValue(e),!0):!1}function Uo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hT=/[\n"\\]/g;function dn(e){return e.replace(hT,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function $u(e,n,i,s,f,m,O,A){e.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?e.type=O:e.removeAttribute("type"),n!=null?O==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+fn(n)):e.value!==""+fn(n)&&(e.value=""+fn(n)):O!=="submit"&&O!=="reset"||e.removeAttribute("value"),n!=null?Iu(e,O,fn(n)):i!=null?Iu(e,O,fn(i)):s!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+fn(A):e.removeAttribute("name")}function Vm(e,n,i,s,f,m,O,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null))return;i=i!=null?""+fn(i):"",n=n!=null?""+fn(n):i,A||n===e.value||(e.value=n),e.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=A?e.checked:!!s,e.defaultChecked=!!s,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(e.name=O)}function Iu(e,n,i){n==="number"&&Uo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Wa(e,n,i,s){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&s&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Wm(e,n,i){if(n!=null&&(n=""+fn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+fn(i):""}function Ym(e,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(l(92));if(U(s)){if(1<s.length)throw Error(l(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=fn(n),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s)}function Ya(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var pT=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xm(e,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,i):typeof i!="number"||i===0||pT.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Fm(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&i[f]!==s&&Xm(e,f,s)}else for(var m in n)n.hasOwnProperty(m)&&Xm(e,m,n[m])}function qu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mT=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gT=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Go(e){return gT.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Uu=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xa=null,Fa=null;function Qm(e){var n=kn(e);if(n&&(e=n.stateNode)){var i=e[wt]||null;e:switch(e=n.stateNode,n.type){case"input":if($u(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+dn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==e&&s.form===e.form){var f=s[wt]||null;if(!f)throw Error(l(90));$u(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===e.form&&Gm(s)}break e;case"textarea":Wm(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Wa(e,!!i.multiple,n,!1)}}}var Vu=!1;function Zm(e,n,i){if(Vu)return e(n,i);Vu=!0;try{var s=e(n);return s}finally{if(Vu=!1,(Xa!==null||Fa!==null)&&(js(),Xa&&(n=Xa,e=Fa,Fa=Xa=null,Qm(n),e)))for(n=0;n<e.length;n++)Qm(e[n])}}function Yi(e,n){var i=e.stateNode;if(i===null)return null;var s=i[wt]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(or)try{var Xi={};Object.defineProperty(Xi,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch{Wu=!1}var Pr=null,Yu=null,Vo=null;function Km(){if(Vo)return Vo;var e,n=Yu,i=n.length,s,f="value"in Pr?Pr.value:Pr.textContent,m=f.length;for(e=0;e<i&&n[e]===f[e];e++);var O=i-e;for(s=1;s<=O&&n[i-s]===f[m-s];s++);return Vo=f.slice(e,1<s?1-s:void 0)}function Wo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Yo(){return!0}function Jm(){return!1}function Gt(e){function n(i,s,f,m,O){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=m,this.target=O,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(i=e[A],this[A]=i?i(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Yo:Jm,this.isPropagationStopped=Jm,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Yo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),n}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xo=Gt(ma),Fi=g({},ma,{view:0,detail:0}),vT=Gt(Fi),Xu,Fu,Qi,Fo=g({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qi&&(Qi&&e.type==="mousemove"?(Xu=e.screenX-Qi.screenX,Fu=e.screenY-Qi.screenY):Fu=Xu=0,Qi=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Fu}}),eg=Gt(Fo),yT=g({},Fo,{dataTransfer:0}),bT=Gt(yT),ST=g({},Fi,{relatedTarget:0}),Qu=Gt(ST),wT=g({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),xT=Gt(wT),OT=g({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TT=Gt(OT),ET=g({},ma,{data:0}),tg=Gt(ET),CT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RT={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"},_T={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jT(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=_T[e])?!!n[e]:!1}function Zu(){return jT}var AT=g({},Fi,{key:function(e){if(e.key){var n=CT[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?RT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zu,charCode:function(e){return e.type==="keypress"?Wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),MT=Gt(AT),NT=g({},Fo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ng=Gt(NT),DT=g({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zu}),LT=Gt(DT),zT=g({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),PT=Gt(zT),HT=g({},Fo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kT=Gt(HT),BT=g({},ma,{newState:0,oldState:0}),$T=Gt(BT),IT=[9,13,27,32],Ku=or&&"CompositionEvent"in window,Zi=null;or&&"documentMode"in document&&(Zi=document.documentMode);var qT=or&&"TextEvent"in window&&!Zi,rg=or&&(!Ku||Zi&&8<Zi&&11>=Zi),ag=" ",ig=!1;function lg(e,n){switch(e){case"keyup":return IT.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function og(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function UT(e,n){switch(e){case"compositionend":return og(n);case"keypress":return n.which!==32?null:(ig=!0,ag);case"textInput":return e=n.data,e===ag&&ig?null:e;default:return null}}function GT(e,n){if(Qa)return e==="compositionend"||!Ku&&lg(e,n)?(e=Km(),Vo=Yu=Pr=null,Qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return rg&&n.locale!=="ko"?null:n.data;default:return null}}var VT={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 sg(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!VT[e.type]:n==="textarea"}function ug(e,n,i,s){Xa?Fa?Fa.push(s):Fa=[s]:Xa=s,n=zs(n,"onChange"),0<n.length&&(i=new Xo("onChange","change",null,i,s),e.push({event:i,listeners:n}))}var Ki=null,Ji=null;function WT(e){Uy(e,0)}function Qo(e){var n=Lr(e);if(Gm(n))return e}function cg(e,n){if(e==="change")return n}var fg=!1;if(or){var Ju;if(or){var ec="oninput"in document;if(!ec){var dg=document.createElement("div");dg.setAttribute("oninput","return;"),ec=typeof dg.oninput=="function"}Ju=ec}else Ju=!1;fg=Ju&&(!document.documentMode||9<document.documentMode)}function hg(){Ki&&(Ki.detachEvent("onpropertychange",pg),Ji=Ki=null)}function pg(e){if(e.propertyName==="value"&&Qo(Ji)){var n=[];ug(n,Ji,e,Gu(e)),Zm(WT,n)}}function YT(e,n,i){e==="focusin"?(hg(),Ki=n,Ji=i,Ki.attachEvent("onpropertychange",pg)):e==="focusout"&&hg()}function XT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qo(Ji)}function FT(e,n){if(e==="click")return Qo(n)}function QT(e,n){if(e==="input"||e==="change")return Qo(n)}function ZT(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Jt=typeof Object.is=="function"?Object.is:ZT;function el(e,n){if(Jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!he.call(n,f)||!Jt(e[f],n[f]))return!1}return!0}function mg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gg(e,n){var i=mg(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=n&&s>=n)return{node:i,offset:n-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=mg(i)}}function vg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?vg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function yg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Uo(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Uo(e.document)}return n}function tc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var KT=or&&"documentMode"in document&&11>=document.documentMode,Za=null,nc=null,tl=null,rc=!1;function bg(e,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;rc||Za==null||Za!==Uo(s)||(s=Za,"selectionStart"in s&&tc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),tl&&el(tl,s)||(tl=s,s=zs(nc,"onSelect"),0<s.length&&(n=new Xo("onSelect","select",null,n,i),e.push({event:n,listeners:s}),n.target=Za)))}function ga(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ka={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionrun:ga("Transition","TransitionRun"),transitionstart:ga("Transition","TransitionStart"),transitioncancel:ga("Transition","TransitionCancel"),transitionend:ga("Transition","TransitionEnd")},ac={},Sg={};or&&(Sg=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function va(e){if(ac[e])return ac[e];if(!Ka[e])return e;var n=Ka[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Sg)return ac[e]=n[i];return e}var wg=va("animationend"),xg=va("animationiteration"),Og=va("animationstart"),JT=va("transitionrun"),eE=va("transitionstart"),tE=va("transitioncancel"),Tg=va("transitionend"),Eg=new Map,ic="abort auxClick beforeToggle 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(" ");ic.push("scrollEnd");function An(e,n){Eg.set(e,n),ar(n,[e])}var Cg=new WeakMap;function hn(e,n){if(typeof e=="object"&&e!==null){var i=Cg.get(e);return i!==void 0?i:(n={value:e,source:n,stack:qm(n)},Cg.set(e,n),n)}return{value:e,source:n,stack:qm(n)}}var pn=[],Ja=0,lc=0;function Zo(){for(var e=Ja,n=lc=Ja=0;n<e;){var i=pn[n];pn[n++]=null;var s=pn[n];pn[n++]=null;var f=pn[n];pn[n++]=null;var m=pn[n];if(pn[n++]=null,s!==null&&f!==null){var O=s.pending;O===null?f.next=f:(f.next=O.next,O.next=f),s.pending=f}m!==0&&Rg(i,f,m)}}function Ko(e,n,i,s){pn[Ja++]=e,pn[Ja++]=n,pn[Ja++]=i,pn[Ja++]=s,lc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function oc(e,n,i,s){return Ko(e,n,i,s),Jo(e)}function ei(e,n){return Ko(e,null,null,n),Jo(e)}function Rg(e,n,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var f=!1,m=e.return;m!==null;)m.childLanes|=i,s=m.alternate,s!==null&&(s.childLanes|=i),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(f=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,f&&n!==null&&(f=31-dt(i),e=m.hiddenUpdates,s=e[f],s===null?e[f]=[n]:s.push(n),n.lane=i|536870912),m):null}function Jo(e){if(50<Cl)throw Cl=0,pf=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function nE(e,n,i,s){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,n,i,s){return new nE(e,n,i,s)}function sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sr(e,n){var i=e.alternate;return i===null?(i=en(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function _g(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function es(e,n,i,s,f,m){var O=0;if(s=e,typeof e=="function")sc(e)&&(O=1);else if(typeof e=="string")O=aC(e,i,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case D:return e=en(31,i,n,f),e.elementType=D,e.lanes=m,e;case j:return ya(i.children,f,m,n);case _:O=8,f|=24;break;case L:return e=en(12,i,n,f|2),e.elementType=L,e.lanes=m,e;case N:return e=en(13,i,n,f),e.elementType=N,e.lanes=m,e;case M:return e=en(19,i,n,f),e.elementType=M,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:case q:O=10;break e;case G:O=9;break e;case Z:O=11;break e;case P:O=14;break e;case Q:O=16,s=null;break e}O=29,i=Error(l(130,e===null?"null":typeof e,"")),s=null}return n=en(O,i,n,f),n.elementType=e,n.type=s,n.lanes=m,n}function ya(e,n,i,s){return e=en(7,e,s,n),e.lanes=i,e}function uc(e,n,i){return e=en(6,e,null,n),e.lanes=i,e}function cc(e,n,i){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,ts=null,ns=0,mn=[],gn=0,ba=null,ur=1,cr="";function Sa(e,n){ni[ri++]=ns,ni[ri++]=ts,ts=e,ns=n}function jg(e,n,i){mn[gn++]=ur,mn[gn++]=cr,mn[gn++]=ba,ba=e;var s=ur;e=cr;var f=32-dt(s)-1;s&=~(1<<f),i+=1;var m=32-dt(n)+f;if(30<m){var O=f-f%5;m=(s&(1<<O)-1).toString(32),s>>=O,f-=O,ur=1<<32-dt(n)+f|i<<f|s,cr=m+e}else ur=1<<m|i<<f|s,cr=e}function fc(e){e.return!==null&&(Sa(e,1),jg(e,1,0))}function dc(e){for(;e===ts;)ts=ni[--ri],ni[ri]=null,ns=ni[--ri],ni[ri]=null;for(;e===ba;)ba=mn[--gn],mn[gn]=null,cr=mn[--gn],mn[gn]=null,ur=mn[--gn],mn[gn]=null}var It=null,pt=null,Ye=!1,wa=null,Bn=!1,hc=Error(l(519));function xa(e){var n=Error(l(418,""));throw al(hn(n,e)),hc}function Ag(e){var n=e.stateNode,i=e.type,s=e.memoizedProps;switch(n[Tt]=e,n[wt]=s,i){case"dialog":Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":case"embed":Ue("load",n);break;case"video":case"audio":for(i=0;i<_l.length;i++)Ue(_l[i],n);break;case"source":Ue("error",n);break;case"img":case"image":case"link":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"input":Ue("invalid",n),Vm(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),qo(n);break;case"select":Ue("invalid",n);break;case"textarea":Ue("invalid",n),Ym(n,s.value,s.defaultValue,s.children),qo(n)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||Yy(n.textContent,i)?(s.popover!=null&&(Ue("beforetoggle",n),Ue("toggle",n)),s.onScroll!=null&&Ue("scroll",n),s.onScrollEnd!=null&&Ue("scrollend",n),s.onClick!=null&&(n.onclick=Ps),n=!0):n=!1,n||xa(e)}function Mg(e){for(It=e.return;It;)switch(It.tag){case 5:case 13:Bn=!1;return;case 27:case 3:Bn=!0;return;default:It=It.return}}function nl(e){if(e!==It)return!1;if(!Ye)return Mg(e),Ye=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Af(e.type,e.memoizedProps)),i=!i),i&&pt&&xa(e),Mg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){pt=Nn(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}pt=null}}else n===27?(n=pt,Kr(e.type)?(e=Lf,Lf=null,pt=e):pt=n):pt=It?Nn(e.stateNode.nextSibling):null;return!0}function rl(){pt=It=null,Ye=!1}function Ng(){var e=wa;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),wa=null),e}function al(e){wa===null?wa=[e]:wa.push(e)}var pc=C(null),Oa=null,fr=null;function Hr(e,n,i){V(pc,n._currentValue),n._currentValue=i}function dr(e){e._currentValue=pc.current,W(pc)}function mc(e,n,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===i)break;e=e.return}}function gc(e,n,i,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var m=f.dependencies;if(m!==null){var O=f.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=f;for(var Y=0;Y<n.length;Y++)if(A.context===n[Y]){m.lanes|=i,A=m.alternate,A!==null&&(A.lanes|=i),mc(m.return,i,e),s||(O=null);break e}m=A.next}}else if(f.tag===18){if(O=f.return,O===null)throw Error(l(341));O.lanes|=i,m=O.alternate,m!==null&&(m.lanes|=i),mc(O,i,e),O=null}else O=f.child;if(O!==null)O.return=f;else for(O=f;O!==null;){if(O===e){O=null;break}if(f=O.sibling,f!==null){f.return=O.return,O=f;break}O=O.return}f=O}}function il(e,n,i,s){e=null;for(var f=n,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var O=f.alternate;if(O===null)throw Error(l(387));if(O=O.memoizedProps,O!==null){var A=f.type;Jt(f.pendingProps.value,O.value)||(e!==null?e.push(A):e=[A])}}else if(f===ie.current){if(O=f.alternate,O===null)throw Error(l(387));O.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Ll):e=[Ll])}f=f.return}e!==null&&gc(n,e,i,s),n.flags|=262144}function rs(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Oa=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Dg(Oa,e)}function as(e,n){return Oa===null&&Ta(e),Dg(e,n)}function Dg(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},fr===null){if(e===null)throw Error(l(308));fr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fr=fr.next=n;return i}var rE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},aE=r.unstable_scheduleCallback,iE=r.unstable_NormalPriority,Et={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vc(){return{controller:new rE,data:new Map,refCount:0}}function ll(e){e.refCount--,e.refCount===0&&aE(iE,function(){e.controller.abort()})}var ol=null,yc=0,ai=0,ii=null;function lE(e,n){if(ol===null){var i=ol=[];yc=0,ai=wf(),ii={status:"pending",value:void 0,then:function(s){i.push(s)}}}return yc++,n.then(Lg,Lg),n}function Lg(){if(--yc===0&&ol!==null){ii!==null&&(ii.status="fulfilled");var e=ol;ol=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function oE(e,n){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var zg=z.S;z.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&lE(e,n),zg!==null&&zg(e,n)};var Ea=C(null);function bc(){var e=Ea.current;return e!==null?e:rt.pooledCache}function is(e,n){n===null?V(Ea,Ea.current):V(Ea,n.pool)}function Pg(){var e=bc();return e===null?null:{parent:Et._currentValue,pool:e}}var sl=Error(l(460)),Hg=Error(l(474)),ls=Error(l(542)),Sc={then:function(){}};function kg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function os(){}function Bg(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(os,os),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ig(e),e;default:if(typeof n.status=="string")n.then(os,os);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ig(e),e}throw ul=n,sl}}var ul=null;function $g(){if(ul===null)throw Error(l(459));var e=ul;return ul=null,e}function Ig(e){if(e===sl||e===ls)throw Error(l(483))}var kr=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Br(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $r(e,n,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=Jo(e),Rg(e,null,i),n}return Ko(e,s,n,i),Jo(e)}function cl(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,_n(e,i)}}function Oc(e,n){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var O={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=O:m=m.next=O,i=i.next}while(i!==null);m===null?f=m=n:m=m.next=n}else f=m=n;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Tc=!1;function fl(){if(Tc){var e=ii;if(e!==null)throw e}}function dl(e,n,i,s){Tc=!1;var f=e.updateQueue;kr=!1;var m=f.firstBaseUpdate,O=f.lastBaseUpdate,A=f.shared.pending;if(A!==null){f.shared.pending=null;var Y=A,re=Y.next;Y.next=null,O===null?m=re:O.next=re,O=Y;var ue=e.alternate;ue!==null&&(ue=ue.updateQueue,A=ue.lastBaseUpdate,A!==O&&(A===null?ue.firstBaseUpdate=re:A.next=re,ue.lastBaseUpdate=Y))}if(m!==null){var de=f.baseState;O=0,ue=re=Y=null,A=m;do{var le=A.lane&-536870913,oe=le!==A.lane;if(oe?(Ge&le)===le:(s&le)===le){le!==0&&le===ai&&(Tc=!0),ue!==null&&(ue=ue.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var De=e,_e=A;le=n;var et=i;switch(_e.tag){case 1:if(De=_e.payload,typeof De=="function"){de=De.call(et,de,le);break e}de=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=_e.payload,le=typeof De=="function"?De.call(et,de,le):De,le==null)break e;de=g({},de,le);break e;case 2:kr=!0}}le=A.callback,le!==null&&(e.flags|=64,oe&&(e.flags|=8192),oe=f.callbacks,oe===null?f.callbacks=[le]:oe.push(le))}else oe={lane:le,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ue===null?(re=ue=oe,Y=de):ue=ue.next=oe,O|=le;if(A=A.next,A===null){if(A=f.shared.pending,A===null)break;oe=A,A=oe.next,oe.next=null,f.lastBaseUpdate=oe,f.shared.pending=null}}while(!0);ue===null&&(Y=de),f.baseState=Y,f.firstBaseUpdate=re,f.lastBaseUpdate=ue,m===null&&(f.shared.lanes=0),Xr|=O,e.lanes=O,e.memoizedState=de}}function qg(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function Ug(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)qg(i[e],n)}var li=C(null),ss=C(0);function Gg(e,n){e=br,V(ss,e),V(li,n),br=e|n.baseLanes}function Ec(){V(ss,br),V(li,li.current)}function Cc(){br=ss.current,W(li),W(ss)}var Ir=0,$e=null,Ke=null,xt=null,us=!1,oi=!1,Ca=!1,cs=0,hl=0,si=null,sE=0;function bt(){throw Error(l(321))}function Rc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Jt(e[i],n[i]))return!1;return!0}function _c(e,n,i,s,f,m){return Ir=m,$e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?Rv:_v,Ca=!1,m=i(s,f),Ca=!1,oi&&(m=Wg(n,i,s,f)),Vg(e),m}function Vg(e){z.H=gs;var n=Ke!==null&&Ke.next!==null;if(Ir=0,xt=Ke=$e=null,us=!1,hl=0,si=null,n)throw Error(l(300));e===null||_t||(e=e.dependencies,e!==null&&rs(e)&&(_t=!0))}function Wg(e,n,i,s){$e=e;var f=0;do{if(oi&&(si=null),hl=0,oi=!1,25<=f)throw Error(l(301));if(f+=1,xt=Ke=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}z.H=mE,m=n(i,s)}while(oi);return m}function uE(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?pl(n):n,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&($e.flags|=1024),n}function jc(){var e=cs!==0;return cs=0,e}function Ac(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Mc(e){if(us){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}us=!1}Ir=0,xt=Ke=$e=null,oi=!1,hl=cs=0,si=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?$e.memoizedState=xt=e:xt=xt.next=e,xt}function Ot(){if(Ke===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=xt===null?$e.memoizedState:xt.next;if(n!==null)xt=n,Ke=e;else{if(e===null)throw $e.alternate===null?Error(l(467)):Error(l(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},xt===null?$e.memoizedState=xt=e:xt=xt.next=e}return xt}function Nc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var n=hl;return hl+=1,si===null&&(si=[]),e=Bg(si,e,n),n=$e,(xt===null?n.memoizedState:xt.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?Rv:_v),e}function fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===q)return kt(e)}throw Error(l(438,String(e)))}function Dc(e){var n=null,i=$e.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=$e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Nc(),$e.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),s=0;s<e;s++)i[s]=T;return n.index++,i}function hr(e,n){return typeof n=="function"?n(e):n}function ds(e){var n=Ot();return Lc(n,Ke,e)}function Lc(e,n,i){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=i;var f=e.baseQueue,m=s.pending;if(m!==null){if(f!==null){var O=f.next;f.next=m.next,m.next=O}n.baseQueue=f=m,s.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{n=f.next;var A=O=null,Y=null,re=n,ue=!1;do{var de=re.lane&-536870913;if(de!==re.lane?(Ge&de)===de:(Ir&de)===de){var le=re.revertLane;if(le===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),de===ai&&(ue=!0);else if((Ir&le)===le){re=re.next,le===ai&&(ue=!0);continue}else de={lane:0,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},Y===null?(A=Y=de,O=m):Y=Y.next=de,$e.lanes|=le,Xr|=le;de=re.action,Ca&&i(m,de),m=re.hasEagerState?re.eagerState:i(m,de)}else le={lane:de,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},Y===null?(A=Y=le,O=m):Y=Y.next=le,$e.lanes|=de,Xr|=de;re=re.next}while(re!==null&&re!==n);if(Y===null?O=m:Y.next=A,!Jt(m,e.memoizedState)&&(_t=!0,ue&&(i=ii,i!==null)))throw i;e.memoizedState=m,e.baseState=O,e.baseQueue=Y,s.lastRenderedState=m}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function zc(e){var n=Ot(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var s=i.dispatch,f=i.pending,m=n.memoizedState;if(f!==null){i.pending=null;var O=f=f.next;do m=e(m,O.action),O=O.next;while(O!==f);Jt(m,n.memoizedState)||(_t=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,s]}function Yg(e,n,i){var s=$e,f=Ot(),m=Ye;if(m){if(i===void 0)throw Error(l(407));i=i()}else i=n();var O=!Jt((Ke||f).memoizedState,i);O&&(f.memoizedState=i,_t=!0),f=f.queue;var A=Qg.bind(null,s,f,e);if(ml(2048,8,A,[e]),f.getSnapshot!==n||O||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,ui(9,hs(),Fg.bind(null,s,f,i,n),null),rt===null)throw Error(l(349));m||(Ir&124)!==0||Xg(s,n,i)}return i}function Xg(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=$e.updateQueue,n===null?(n=Nc(),$e.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Fg(e,n,i,s){n.value=i,n.getSnapshot=s,Zg(n)&&Kg(e)}function Qg(e,n,i){return i(function(){Zg(n)&&Kg(e)})}function Zg(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Jt(e,i)}catch{return!0}}function Kg(e){var n=ei(e,2);n!==null&&ln(n,e,2)}function Pc(e){var n=Vt();if(typeof e=="function"){var i=e;if(e=i(),Ca){nt(!0);try{i()}finally{nt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},n}function Jg(e,n,i,s){return e.baseState=i,Lc(e,Ke,typeof s=="function"?s:hr)}function cE(e,n,i,s,f){if(ms(e))throw Error(l(485));if(e=n.action,e!==null){var m={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){m.listeners.push(O)}};z.T!==null?i(!0):m.isTransition=!1,s(m),i=n.pending,i===null?(m.next=n.pending=m,ev(n,m)):(m.next=i.next,n.pending=i.next=m)}}function ev(e,n){var i=n.action,s=n.payload,f=e.state;if(n.isTransition){var m=z.T,O={};z.T=O;try{var A=i(f,s),Y=z.S;Y!==null&&Y(O,A),tv(e,n,A)}catch(re){Hc(e,n,re)}finally{z.T=m}}else try{m=i(f,s),tv(e,n,m)}catch(re){Hc(e,n,re)}}function tv(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){nv(e,n,s)},function(s){return Hc(e,n,s)}):nv(e,n,i)}function nv(e,n,i){n.status="fulfilled",n.value=i,rv(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,ev(e,i)))}function Hc(e,n,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,rv(n),n=n.next;while(n!==s)}e.action=null}function rv(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function av(e,n){return n}function iv(e,n){if(Ye){var i=rt.formState;if(i!==null){e:{var s=$e;if(Ye){if(pt){t:{for(var f=pt,m=Bn;f.nodeType!==8;){if(!m){f=null;break t}if(f=Nn(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){pt=Nn(f.nextSibling),s=f.data==="F!";break e}}xa(s)}s=!1}s&&(n=i[0])}}return i=Vt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:av,lastRenderedState:n},i.queue=s,i=Tv.bind(null,$e,s),s.dispatch=i,s=Pc(!1),m=qc.bind(null,$e,!1,s.queue),s=Vt(),f={state:n,dispatch:null,action:e,pending:null},s.queue=f,i=cE.bind(null,$e,f,m,i),f.dispatch=i,s.memoizedState=e,[n,i,!1]}function lv(e){var n=Ot();return ov(n,Ke,e)}function ov(e,n,i){if(n=Lc(e,n,av)[0],e=ds(hr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=pl(n)}catch(O){throw O===sl?ls:O}else s=n;n=Ot();var f=n.queue,m=f.dispatch;return i!==n.memoizedState&&($e.flags|=2048,ui(9,hs(),fE.bind(null,f,i),null)),[s,m,e]}function fE(e,n){e.action=n}function sv(e){var n=Ot(),i=Ke;if(i!==null)return ov(n,i,e);Ot(),n=n.memoizedState,i=Ot();var s=i.queue.dispatch;return i.memoizedState=e,[n,s,!1]}function ui(e,n,i,s){return e={tag:e,create:i,deps:s,inst:n,next:null},n=$e.updateQueue,n===null&&(n=Nc(),$e.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,n.lastEffect=e),e}function hs(){return{destroy:void 0,resource:void 0}}function uv(){return Ot().memoizedState}function ps(e,n,i,s){var f=Vt();s=s===void 0?null:s,$e.flags|=e,f.memoizedState=ui(1|n,hs(),i,s)}function ml(e,n,i,s){var f=Ot();s=s===void 0?null:s;var m=f.memoizedState.inst;Ke!==null&&s!==null&&Rc(s,Ke.memoizedState.deps)?f.memoizedState=ui(n,m,i,s):($e.flags|=e,f.memoizedState=ui(1|n,m,i,s))}function cv(e,n){ps(8390656,8,e,n)}function fv(e,n){ml(2048,8,e,n)}function dv(e,n){return ml(4,2,e,n)}function hv(e,n){return ml(4,4,e,n)}function pv(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function mv(e,n,i){i=i!=null?i.concat([e]):null,ml(4,4,pv.bind(null,n,e),i)}function kc(){}function gv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Rc(n,s[1])?s[0]:(i.memoizedState=[e,n],e)}function vv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Rc(n,s[1]))return s[0];if(s=e(),Ca){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s}function Bc(e,n,i){return i===void 0||(Ir&1073741824)!==0?e.memoizedState=n:(e.memoizedState=i,e=Sy(),$e.lanes|=e,Xr|=e,i)}function yv(e,n,i,s){return Jt(i,n)?i:li.current!==null?(e=Bc(e,i,s),Jt(e,n)||(_t=!0),e):(Ir&42)===0?(_t=!0,e.memoizedState=i):(e=Sy(),$e.lanes|=e,Xr|=e,n)}function bv(e,n,i,s,f){var m=S.p;S.p=m!==0&&8>m?m:8;var O=z.T,A={};z.T=A,qc(e,!1,n,i);try{var Y=f(),re=z.S;if(re!==null&&re(A,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var ue=oE(Y,s);gl(e,n,ue,an(e))}else gl(e,n,s,an(e))}catch(de){gl(e,n,{then:function(){},status:"rejected",reason:de},an())}finally{S.p=m,z.T=O}}function dE(){}function $c(e,n,i,s){if(e.tag!==5)throw Error(l(476));var f=Sv(e).queue;bv(e,f,n,te,i===null?dE:function(){return wv(e),i(s)})}function Sv(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:te},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function wv(e){var n=Sv(e).next.queue;gl(e,n,{},an())}function Ic(){return kt(Ll)}function xv(){return Ot().memoizedState}function Ov(){return Ot().memoizedState}function hE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=an();e=Br(i);var s=$r(n,e,i);s!==null&&(ln(s,n,i),cl(s,n,i)),n={cache:vc()},e.payload=n;return}n=n.return}}function pE(e,n,i){var s=an();i={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},ms(e)?Ev(n,i):(i=oc(e,n,i,s),i!==null&&(ln(i,e,s),Cv(i,n,s)))}function Tv(e,n,i){var s=an();gl(e,n,i,s)}function gl(e,n,i,s){var f={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(ms(e))Ev(n,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var O=n.lastRenderedState,A=m(O,i);if(f.hasEagerState=!0,f.eagerState=A,Jt(A,O))return Ko(e,n,f,0),rt===null&&Zo(),!1}catch{}finally{}if(i=oc(e,n,f,s),i!==null)return ln(i,e,s),Cv(i,n,s),!0}return!1}function qc(e,n,i,s){if(s={lane:2,revertLane:wf(),action:s,hasEagerState:!1,eagerState:null,next:null},ms(e)){if(n)throw Error(l(479))}else n=oc(e,i,s,2),n!==null&&ln(n,e,2)}function ms(e){var n=e.alternate;return e===$e||n!==null&&n===$e}function Ev(e,n){oi=us=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Cv(e,n,i){if((i&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,_n(e,i)}}var gs={readContext:kt,use:fs,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},Rv={readContext:kt,use:fs,useCallback:function(e,n){return Vt().memoizedState=[e,n===void 0?null:n],e},useContext:kt,useEffect:cv,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,ps(4194308,4,pv.bind(null,n,e),i)},useLayoutEffect:function(e,n){return ps(4194308,4,e,n)},useInsertionEffect:function(e,n){ps(4,2,e,n)},useMemo:function(e,n){var i=Vt();n=n===void 0?null:n;var s=e();if(Ca){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s},useReducer:function(e,n,i){var s=Vt();if(i!==void 0){var f=i(n);if(Ca){nt(!0);try{i(n)}finally{nt(!1)}}}else f=n;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=pE.bind(null,$e,e),[s.memoizedState,e]},useRef:function(e){var n=Vt();return e={current:e},n.memoizedState=e},useState:function(e){e=Pc(e);var n=e.queue,i=Tv.bind(null,$e,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:kc,useDeferredValue:function(e,n){var i=Vt();return Bc(i,e,n)},useTransition:function(){var e=Pc(!1);return e=bv.bind(null,$e,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var s=$e,f=Vt();if(Ye){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),rt===null)throw Error(l(349));(Ge&124)!==0||Xg(s,n,i)}f.memoizedState=i;var m={value:i,getSnapshot:n};return f.queue=m,cv(Qg.bind(null,s,m,e),[e]),s.flags|=2048,ui(9,hs(),Fg.bind(null,s,m,i,n),null),i},useId:function(){var e=Vt(),n=rt.identifierPrefix;if(Ye){var i=cr,s=ur;i=(s&~(1<<32-dt(s)-1)).toString(32)+i,n="«"+n+"R"+i,i=cs++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=sE++,n="«"+n+"r"+i.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Ic,useFormState:iv,useActionState:iv,useOptimistic:function(e){var n=Vt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=qc.bind(null,$e,!0,i),i.dispatch=n,[e,n]},useMemoCache:Dc,useCacheRefresh:function(){return Vt().memoizedState=hE.bind(null,$e)}},_v={readContext:kt,use:fs,useCallback:gv,useContext:kt,useEffect:fv,useImperativeHandle:mv,useInsertionEffect:dv,useLayoutEffect:hv,useMemo:vv,useReducer:ds,useRef:uv,useState:function(){return ds(hr)},useDebugValue:kc,useDeferredValue:function(e,n){var i=Ot();return yv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=ds(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:Yg,useId:xv,useHostTransitionStatus:Ic,useFormState:lv,useActionState:lv,useOptimistic:function(e,n){var i=Ot();return Jg(i,Ke,e,n)},useMemoCache:Dc,useCacheRefresh:Ov},mE={readContext:kt,use:fs,useCallback:gv,useContext:kt,useEffect:fv,useImperativeHandle:mv,useInsertionEffect:dv,useLayoutEffect:hv,useMemo:vv,useReducer:zc,useRef:uv,useState:function(){return zc(hr)},useDebugValue:kc,useDeferredValue:function(e,n){var i=Ot();return Ke===null?Bc(i,e,n):yv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=zc(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:Yg,useId:xv,useHostTransitionStatus:Ic,useFormState:sv,useActionState:sv,useOptimistic:function(e,n){var i=Ot();return Ke!==null?Jg(i,Ke,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:Ov},ci=null,vl=0;function vs(e){var n=vl;return vl+=1,ci===null&&(ci=[]),Bg(ci,e,n)}function yl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ys(e,n){throw n.$$typeof===y?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function jv(e){var n=e._init;return n(e._payload)}function Av(e){function n(ee,K){if(e){var ne=ee.deletions;ne===null?(ee.deletions=[K],ee.flags|=16):ne.push(K)}}function i(ee,K){if(!e)return null;for(;K!==null;)n(ee,K),K=K.sibling;return null}function s(ee){for(var K=new Map;ee!==null;)ee.key!==null?K.set(ee.key,ee):K.set(ee.index,ee),ee=ee.sibling;return K}function f(ee,K){return ee=sr(ee,K),ee.index=0,ee.sibling=null,ee}function m(ee,K,ne){return ee.index=ne,e?(ne=ee.alternate,ne!==null?(ne=ne.index,ne<K?(ee.flags|=67108866,K):ne):(ee.flags|=67108866,K)):(ee.flags|=1048576,K)}function O(ee){return e&&ee.alternate===null&&(ee.flags|=67108866),ee}function A(ee,K,ne,fe){return K===null||K.tag!==6?(K=uc(ne,ee.mode,fe),K.return=ee,K):(K=f(K,ne),K.return=ee,K)}function Y(ee,K,ne,fe){var xe=ne.type;return xe===j?ue(ee,K,ne.props.children,fe,ne.key):K!==null&&(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Q&&jv(xe)===K.type)?(K=f(K,ne.props),yl(K,ne),K.return=ee,K):(K=es(ne.type,ne.key,ne.props,null,ee.mode,fe),yl(K,ne),K.return=ee,K)}function re(ee,K,ne,fe){return K===null||K.tag!==4||K.stateNode.containerInfo!==ne.containerInfo||K.stateNode.implementation!==ne.implementation?(K=cc(ne,ee.mode,fe),K.return=ee,K):(K=f(K,ne.children||[]),K.return=ee,K)}function ue(ee,K,ne,fe,xe){return K===null||K.tag!==7?(K=ya(ne,ee.mode,fe,xe),K.return=ee,K):(K=f(K,ne),K.return=ee,K)}function de(ee,K,ne){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=uc(""+K,ee.mode,ne),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return ne=es(K.type,K.key,K.props,null,ee.mode,ne),yl(ne,K),ne.return=ee,ne;case E:return K=cc(K,ee.mode,ne),K.return=ee,K;case Q:var fe=K._init;return K=fe(K._payload),de(ee,K,ne)}if(U(K)||$(K))return K=ya(K,ee.mode,ne,null),K.return=ee,K;if(typeof K.then=="function")return de(ee,vs(K),ne);if(K.$$typeof===q)return de(ee,as(ee,K),ne);ys(ee,K)}return null}function le(ee,K,ne,fe){var xe=K!==null?K.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return xe!==null?null:A(ee,K,""+ne,fe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return ne.key===xe?Y(ee,K,ne,fe):null;case E:return ne.key===xe?re(ee,K,ne,fe):null;case Q:return xe=ne._init,ne=xe(ne._payload),le(ee,K,ne,fe)}if(U(ne)||$(ne))return xe!==null?null:ue(ee,K,ne,fe,null);if(typeof ne.then=="function")return le(ee,K,vs(ne),fe);if(ne.$$typeof===q)return le(ee,K,as(ee,ne),fe);ys(ee,ne)}return null}function oe(ee,K,ne,fe,xe){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ee=ee.get(ne)||null,A(K,ee,""+fe,xe);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case x:return ee=ee.get(fe.key===null?ne:fe.key)||null,Y(K,ee,fe,xe);case E:return ee=ee.get(fe.key===null?ne:fe.key)||null,re(K,ee,fe,xe);case Q:var Ie=fe._init;return fe=Ie(fe._payload),oe(ee,K,ne,fe,xe)}if(U(fe)||$(fe))return ee=ee.get(ne)||null,ue(K,ee,fe,xe,null);if(typeof fe.then=="function")return oe(ee,K,ne,vs(fe),xe);if(fe.$$typeof===q)return oe(ee,K,ne,as(K,fe),xe);ys(K,fe)}return null}function De(ee,K,ne,fe){for(var xe=null,Ie=null,Te=K,Me=K=0,At=null;Te!==null&&Me<ne.length;Me++){Te.index>Me?(At=Te,Te=null):At=Te.sibling;var We=le(ee,Te,ne[Me],fe);if(We===null){Te===null&&(Te=At);break}e&&Te&&We.alternate===null&&n(ee,Te),K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We,Te=At}if(Me===ne.length)return i(ee,Te),Ye&&Sa(ee,Me),xe;if(Te===null){for(;Me<ne.length;Me++)Te=de(ee,ne[Me],fe),Te!==null&&(K=m(Te,K,Me),Ie===null?xe=Te:Ie.sibling=Te,Ie=Te);return Ye&&Sa(ee,Me),xe}for(Te=s(Te);Me<ne.length;Me++)At=oe(Te,ee,Me,ne[Me],fe),At!==null&&(e&&At.alternate!==null&&Te.delete(At.key===null?Me:At.key),K=m(At,K,Me),Ie===null?xe=At:Ie.sibling=At,Ie=At);return e&&Te.forEach(function(ra){return n(ee,ra)}),Ye&&Sa(ee,Me),xe}function _e(ee,K,ne,fe){if(ne==null)throw Error(l(151));for(var xe=null,Ie=null,Te=K,Me=K=0,At=null,We=ne.next();Te!==null&&!We.done;Me++,We=ne.next()){Te.index>Me?(At=Te,Te=null):At=Te.sibling;var ra=le(ee,Te,We.value,fe);if(ra===null){Te===null&&(Te=At);break}e&&Te&&ra.alternate===null&&n(ee,Te),K=m(ra,K,Me),Ie===null?xe=ra:Ie.sibling=ra,Ie=ra,Te=At}if(We.done)return i(ee,Te),Ye&&Sa(ee,Me),xe;if(Te===null){for(;!We.done;Me++,We=ne.next())We=de(ee,We.value,fe),We!==null&&(K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We);return Ye&&Sa(ee,Me),xe}for(Te=s(Te);!We.done;Me++,We=ne.next())We=oe(Te,ee,Me,We.value,fe),We!==null&&(e&&We.alternate!==null&&Te.delete(We.key===null?Me:We.key),K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We);return e&&Te.forEach(function(gC){return n(ee,gC)}),Ye&&Sa(ee,Me),xe}function et(ee,K,ne,fe){if(typeof ne=="object"&&ne!==null&&ne.type===j&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:e:{for(var xe=ne.key;K!==null;){if(K.key===xe){if(xe=ne.type,xe===j){if(K.tag===7){i(ee,K.sibling),fe=f(K,ne.props.children),fe.return=ee,ee=fe;break e}}else if(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Q&&jv(xe)===K.type){i(ee,K.sibling),fe=f(K,ne.props),yl(fe,ne),fe.return=ee,ee=fe;break e}i(ee,K);break}else n(ee,K);K=K.sibling}ne.type===j?(fe=ya(ne.props.children,ee.mode,fe,ne.key),fe.return=ee,ee=fe):(fe=es(ne.type,ne.key,ne.props,null,ee.mode,fe),yl(fe,ne),fe.return=ee,ee=fe)}return O(ee);case E:e:{for(xe=ne.key;K!==null;){if(K.key===xe)if(K.tag===4&&K.stateNode.containerInfo===ne.containerInfo&&K.stateNode.implementation===ne.implementation){i(ee,K.sibling),fe=f(K,ne.children||[]),fe.return=ee,ee=fe;break e}else{i(ee,K);break}else n(ee,K);K=K.sibling}fe=cc(ne,ee.mode,fe),fe.return=ee,ee=fe}return O(ee);case Q:return xe=ne._init,ne=xe(ne._payload),et(ee,K,ne,fe)}if(U(ne))return De(ee,K,ne,fe);if($(ne)){if(xe=$(ne),typeof xe!="function")throw Error(l(150));return ne=xe.call(ne),_e(ee,K,ne,fe)}if(typeof ne.then=="function")return et(ee,K,vs(ne),fe);if(ne.$$typeof===q)return et(ee,K,as(ee,ne),fe);ys(ee,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,K!==null&&K.tag===6?(i(ee,K.sibling),fe=f(K,ne),fe.return=ee,ee=fe):(i(ee,K),fe=uc(ne,ee.mode,fe),fe.return=ee,ee=fe),O(ee)):i(ee,K)}return function(ee,K,ne,fe){try{vl=0;var xe=et(ee,K,ne,fe);return ci=null,xe}catch(Te){if(Te===sl||Te===ls)throw Te;var Ie=en(29,Te,null,ee.mode);return Ie.lanes=fe,Ie.return=ee,Ie}finally{}}}var fi=Av(!0),Mv=Av(!1),vn=C(null),$n=null;function qr(e){var n=e.alternate;V(Ct,Ct.current&1),V(vn,e),$n===null&&(n===null||li.current!==null||n.memoizedState!==null)&&($n=e)}function Nv(e){if(e.tag===22){if(V(Ct,Ct.current),V(vn,e),$n===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&($n=e)}}else Ur()}function Ur(){V(Ct,Ct.current),V(vn,vn.current)}function pr(e){W(vn),$n===e&&($n=null),W(Ct)}var Ct=C(0);function bs(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Df(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Uc(e,n,i,s){n=e.memoizedState,i=i(s,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Gc={enqueueSetState:function(e,n,i){e=e._reactInternals;var s=an(),f=Br(s);f.payload=n,i!=null&&(f.callback=i),n=$r(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var s=an(),f=Br(s);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=$r(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=an(),s=Br(i);s.tag=2,n!=null&&(s.callback=n),n=$r(e,s,i),n!==null&&(ln(n,e,i),cl(n,e,i))}};function Dv(e,n,i,s,f,m,O){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,m,O):n.prototype&&n.prototype.isPureReactComponent?!el(i,s)||!el(f,m):!0}function Lv(e,n,i,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==e&&Gc.enqueueReplaceState(n,n.state,null)}function Ra(e,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}var Ss=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function zv(e){Ss(e)}function Pv(e){console.error(e)}function Hv(e){Ss(e)}function ws(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function kv(e,n,i){try{var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Vc(e,n,i){return i=Br(i),i.tag=3,i.payload={element:null},i.callback=function(){ws(e,n)},i}function Bv(e){return e=Br(e),e.tag=3,e}function $v(e,n,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=s.value;e.payload=function(){return f(m)},e.callback=function(){kv(n,i,s)}}var O=i.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(e.callback=function(){kv(n,i,s),typeof f!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this));var A=s.stack;this.componentDidCatch(s.value,{componentStack:A!==null?A:""})})}function gE(e,n,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&il(n,i,f,!0),i=vn.current,i!==null){switch(i.tag){case 13:return $n===null?gf():i.alternate===null&&mt===0&&(mt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===Sc?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),yf(e,s,f)),!1;case 22:return i.flags|=65536,s===Sc?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),yf(e,s,f)),!1}throw Error(l(435,i.tag))}return yf(e,s,f),gf(),!1}if(Ye)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==hc&&(e=Error(l(422),{cause:s}),al(hn(e,i)))):(s!==hc&&(n=Error(l(423),{cause:s}),al(hn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=hn(s,i),f=Vc(e.stateNode,s,f),Oc(e,f),mt!==4&&(mt=2)),!1;var m=Error(l(520),{cause:s});if(m=hn(m,i),El===null?El=[m]:El.push(m),mt!==4&&(mt=2),n===null)return!0;s=hn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Vc(i.stateNode,s,e),Oc(i,e),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Fr===null||!Fr.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Bv(f),$v(f,e,i,s),Oc(i,f),!1}i=i.return}while(i!==null);return!1}var Iv=Error(l(461)),_t=!1;function Dt(e,n,i,s){n.child=e===null?Mv(n,null,i,s):fi(n,e.child,i,s)}function qv(e,n,i,s,f){i=i.render;var m=n.ref;if("ref"in s){var O={};for(var A in s)A!=="ref"&&(O[A]=s[A])}else O=s;return Ta(n),s=_c(e,n,i,O,m,f),A=jc(),e!==null&&!_t?(Ac(e,n,f),mr(e,n,f)):(Ye&&A&&fc(n),n.flags|=1,Dt(e,n,s,f),n.child)}function Uv(e,n,i,s,f){if(e===null){var m=i.type;return typeof m=="function"&&!sc(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Gv(e,n,m,s,f)):(e=es(i.type,null,s,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Jc(e,f)){var O=m.memoizedProps;if(i=i.compare,i=i!==null?i:el,i(O,s)&&e.ref===n.ref)return mr(e,n,f)}return n.flags|=1,e=sr(m,s),e.ref=n.ref,e.return=n,n.child=e}function Gv(e,n,i,s,f){if(e!==null){var m=e.memoizedProps;if(el(m,s)&&e.ref===n.ref)if(_t=!1,n.pendingProps=s=m,Jc(e,f))(e.flags&131072)!==0&&(_t=!0);else return n.lanes=e.lanes,mr(e,n,f)}return Wc(e,n,i,s,f)}function Vv(e,n,i){var s=n.pendingProps,f=s.children,m=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=m!==null?m.baseLanes|i:i,e!==null){for(f=n.child=e.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;n.childLanes=m&~s}else n.childLanes=0,n.child=null;return Wv(e,n,s,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&is(n,m!==null?m.cachePool:null),m!==null?Gg(n,m):Ec(),Nv(n);else return n.lanes=n.childLanes=536870912,Wv(e,n,m!==null?m.baseLanes|i:i,i)}else m!==null?(is(n,m.cachePool),Gg(n,m),Ur(),n.memoizedState=null):(e!==null&&is(n,null),Ec(),Ur());return Dt(e,n,f,i),n.child}function Wv(e,n,i,s){var f=bc();return f=f===null?null:{parent:Et._currentValue,pool:f},n.memoizedState={baseLanes:i,cachePool:f},e!==null&&is(n,null),Ec(),Nv(n),e!==null&&il(e,n,s,!0),null}function xs(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Wc(e,n,i,s,f){return Ta(n),i=_c(e,n,i,s,void 0,f),s=jc(),e!==null&&!_t?(Ac(e,n,f),mr(e,n,f)):(Ye&&s&&fc(n),n.flags|=1,Dt(e,n,i,f),n.child)}function Yv(e,n,i,s,f,m){return Ta(n),n.updateQueue=null,i=Wg(n,s,i,f),Vg(e),s=jc(),e!==null&&!_t?(Ac(e,n,m),mr(e,n,m)):(Ye&&s&&fc(n),n.flags|=1,Dt(e,n,i,m),n.child)}function Xv(e,n,i,s,f){if(Ta(n),n.stateNode===null){var m=ti,O=i.contextType;typeof O=="object"&&O!==null&&(m=kt(O)),m=new i(s,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Gc,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=s,m.state=n.memoizedState,m.refs={},wc(n),O=i.contextType,m.context=typeof O=="object"&&O!==null?kt(O):ti,m.state=n.memoizedState,O=i.getDerivedStateFromProps,typeof O=="function"&&(Uc(n,i,O,s),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(O=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),O!==m.state&&Gc.enqueueReplaceState(m,m.state,null),dl(n,s,m,f),fl(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){m=n.stateNode;var A=n.memoizedProps,Y=Ra(i,A);m.props=Y;var re=m.context,ue=i.contextType;O=ti,typeof ue=="object"&&ue!==null&&(O=kt(ue));var de=i.getDerivedStateFromProps;ue=typeof de=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,ue||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||re!==O)&&Lv(n,m,s,O),kr=!1;var le=n.memoizedState;m.state=le,dl(n,s,m,f),fl(),re=n.memoizedState,A||le!==re||kr?(typeof de=="function"&&(Uc(n,i,de,s),re=n.memoizedState),(Y=kr||Dv(n,i,Y,s,le,re,O))?(ue||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=re),m.props=s,m.state=re,m.context=O,s=Y):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{m=n.stateNode,xc(e,n),O=n.memoizedProps,ue=Ra(i,O),m.props=ue,de=n.pendingProps,le=m.context,re=i.contextType,Y=ti,typeof re=="object"&&re!==null&&(Y=kt(re)),A=i.getDerivedStateFromProps,(re=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(O!==de||le!==Y)&&Lv(n,m,s,Y),kr=!1,le=n.memoizedState,m.state=le,dl(n,s,m,f),fl();var oe=n.memoizedState;O!==de||le!==oe||kr||e!==null&&e.dependencies!==null&&rs(e.dependencies)?(typeof A=="function"&&(Uc(n,i,A,s),oe=n.memoizedState),(ue=kr||Dv(n,i,ue,s,le,oe,Y)||e!==null&&e.dependencies!==null&&rs(e.dependencies))?(re||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,oe,Y),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,oe,Y)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=oe),m.props=s,m.state=oe,m.context=Y,s=ue):(typeof m.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),s=!1)}return m=s,xs(e,n),s=(n.flags&128)!==0,m||s?(m=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&s?(n.child=fi(n,e.child,null,f),n.child=fi(n,null,i,f)):Dt(e,n,i,f),n.memoizedState=m.state,e=n.child):e=mr(e,n,f),e}function Fv(e,n,i,s){return rl(),n.flags|=256,Dt(e,n,i,s),n.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Pg()}}function Fc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=yn),e}function Qv(e,n,i){var s=n.pendingProps,f=!1,m=(n.flags&128)!==0,O;if((O=m)||(O=e!==null&&e.memoizedState===null?!1:(Ct.current&2)!==0),O&&(f=!0,n.flags&=-129),O=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(f?qr(n):Ur(),Ye){var A=pt,Y;if(Y=A){e:{for(Y=A,A=Bn;Y.nodeType!==8;){if(!A){A=null;break e}if(Y=Nn(Y.nextSibling),Y===null){A=null;break e}}A=Y}A!==null?(n.memoizedState={dehydrated:A,treeContext:ba!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},Y=en(18,null,null,0),Y.stateNode=A,Y.return=n,n.child=Y,It=n,pt=null,Y=!0):Y=!1}Y||xa(n)}if(A=n.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return Df(A)?n.lanes=32:n.lanes=536870912,null;pr(n)}return A=s.children,s=s.fallback,f?(Ur(),f=n.mode,A=Os({mode:"hidden",children:A},f),s=ya(s,f,i,null),A.return=n,s.return=n,A.sibling=s,n.child=A,f=n.child,f.memoizedState=Xc(i),f.childLanes=Fc(e,O,i),n.memoizedState=Yc,s):(qr(n),Qc(n,A))}if(Y=e.memoizedState,Y!==null&&(A=Y.dehydrated,A!==null)){if(m)n.flags&256?(qr(n),n.flags&=-257,n=Zc(e,n,i)):n.memoizedState!==null?(Ur(),n.child=e.child,n.flags|=128,n=null):(Ur(),f=s.fallback,A=n.mode,s=Os({mode:"visible",children:s.children},A),f=ya(f,A,i,null),f.flags|=2,s.return=n,f.return=n,s.sibling=f,n.child=s,fi(n,e.child,null,i),s=n.child,s.memoizedState=Xc(i),s.childLanes=Fc(e,O,i),n.memoizedState=Yc,n=f);else if(qr(n),Df(A)){if(O=A.nextSibling&&A.nextSibling.dataset,O)var re=O.dgst;O=re,s=Error(l(419)),s.stack="",s.digest=O,al({value:s,source:null,stack:null}),n=Zc(e,n,i)}else if(_t||il(e,n,i,!1),O=(i&e.childLanes)!==0,_t||O){if(O=rt,O!==null&&(s=i&-i,s=(s&42)!==0?1:da(s),s=(s&(O.suspendedLanes|i))!==0?0:s,s!==0&&s!==Y.retryLane))throw Y.retryLane=s,ei(e,s),ln(O,e,s),Iv;A.data==="$?"||gf(),n=Zc(e,n,i)}else A.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=Y.treeContext,pt=Nn(A.nextSibling),It=n,Ye=!0,wa=null,Bn=!1,e!==null&&(mn[gn++]=ur,mn[gn++]=cr,mn[gn++]=ba,ur=e.id,cr=e.overflow,ba=n),n=Qc(n,s.children),n.flags|=4096);return n}return f?(Ur(),f=s.fallback,A=n.mode,Y=e.child,re=Y.sibling,s=sr(Y,{mode:"hidden",children:s.children}),s.subtreeFlags=Y.subtreeFlags&65011712,re!==null?f=sr(re,f):(f=ya(f,A,i,null),f.flags|=2),f.return=n,s.return=n,s.sibling=f,n.child=s,s=f,f=n.child,A=e.child.memoizedState,A===null?A=Xc(i):(Y=A.cachePool,Y!==null?(re=Et._currentValue,Y=Y.parent!==re?{parent:re,pool:re}:Y):Y=Pg(),A={baseLanes:A.baseLanes|i,cachePool:Y}),f.memoizedState=A,f.childLanes=Fc(e,O,i),n.memoizedState=Yc,s):(qr(n),i=e.child,e=i.sibling,i=sr(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,e!==null&&(O=n.deletions,O===null?(n.deletions=[e],n.flags|=16):O.push(e)),n.child=i,n.memoizedState=null,i)}function Qc(e,n){return n=Os({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Os(e,n){return e=en(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Zc(e,n,i){return fi(n,e.child,null,i),e=Qc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Zv(e,n,i){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),mc(e.return,n,i)}function Kc(e,n,i,s,f){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=i,m.tailMode=f)}function Kv(e,n,i){var s=n.pendingProps,f=s.revealOrder,m=s.tail;if(Dt(e,n,s.children,i),s=Ct.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zv(e,i,n);else if(e.tag===19)Zv(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(V(Ct,s),f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&bs(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Kc(n,!1,f,i,m);break;case"backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&bs(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Kc(n,!0,i,null,m);break;case"together":Kc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function mr(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Xr|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(il(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=sr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=sr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Jc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&rs(e)))}function vE(e,n,i){switch(n.tag){case 3:ce(n,n.stateNode.containerInfo),Hr(n,Et,e.memoizedState.cache),rl();break;case 27:case 5:pe(n);break;case 4:ce(n,n.stateNode.containerInfo);break;case 10:Hr(n,n.type,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(qr(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Qv(e,n,i):(qr(n),e=mr(e,n,i),e!==null?e.sibling:null);qr(n);break;case 19:var f=(e.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(il(e,n,i,!1),s=(i&n.childLanes)!==0),f){if(s)return Kv(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),V(Ct,Ct.current),s)break;return null;case 22:case 23:return n.lanes=0,Vv(e,n,i);case 24:Hr(n,Et,e.memoizedState.cache)}return mr(e,n,i)}function Jv(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)_t=!0;else{if(!Jc(e,i)&&(n.flags&128)===0)return _t=!1,vE(e,n,i);_t=(e.flags&131072)!==0}else _t=!1,Ye&&(n.flags&1048576)!==0&&jg(n,ns,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var s=n.elementType,f=s._init;if(s=f(s._payload),n.type=s,typeof s=="function")sc(s)?(e=Ra(s,e),n.tag=1,n=Xv(null,n,s,e,i)):(n.tag=0,n=Wc(null,n,s,e,i));else{if(s!=null){if(f=s.$$typeof,f===Z){n.tag=11,n=qv(null,n,s,e,i);break e}else if(f===P){n.tag=14,n=Uv(null,n,s,e,i);break e}}throw n=B(s)||s,Error(l(306,n,""))}}return n;case 0:return Wc(e,n,n.type,n.pendingProps,i);case 1:return s=n.type,f=Ra(s,n.pendingProps),Xv(e,n,s,f,i);case 3:e:{if(ce(n,n.stateNode.containerInfo),e===null)throw Error(l(387));s=n.pendingProps;var m=n.memoizedState;f=m.element,xc(e,n),dl(n,s,null,i);var O=n.memoizedState;if(s=O.cache,Hr(n,Et,s),s!==m.cache&&gc(n,[Et],i,!0),fl(),s=O.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:O.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Fv(e,n,s,i);break e}else if(s!==f){f=hn(Error(l(424)),n),al(f),n=Fv(e,n,s,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=Nn(e.firstChild),It=n,Ye=!0,wa=null,Bn=!0,i=Mv(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(rl(),s===f){n=mr(e,n,i);break e}Dt(e,n,s,i)}n=n.child}return n;case 26:return xs(e,n),e===null?(i=rb(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ye||(i=n.type,e=n.pendingProps,s=Hs(J.current).createElement(i),s[Tt]=n,s[wt]=e,zt(s,i,e),ht(s),n.stateNode=s):n.memoizedState=rb(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return pe(n),e===null&&Ye&&(s=n.stateNode=eb(n.type,n.pendingProps,J.current),It=n,Bn=!0,f=pt,Kr(n.type)?(Lf=f,pt=Nn(s.firstChild)):pt=f),Dt(e,n,n.pendingProps.children,i),xs(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((f=s=pt)&&(s=VE(s,n.type,n.pendingProps,Bn),s!==null?(n.stateNode=s,It=n,pt=Nn(s.firstChild),Bn=!1,f=!0):f=!1),f||xa(n)),pe(n),f=n.type,m=n.pendingProps,O=e!==null?e.memoizedProps:null,s=m.children,Af(f,m)?s=null:O!==null&&Af(f,O)&&(n.flags|=32),n.memoizedState!==null&&(f=_c(e,n,uE,null,null,i),Ll._currentValue=f),xs(e,n),Dt(e,n,s,i),n.child;case 6:return e===null&&Ye&&((e=i=pt)&&(i=WE(i,n.pendingProps,Bn),i!==null?(n.stateNode=i,It=n,pt=null,e=!0):e=!1),e||xa(n)),null;case 13:return Qv(e,n,i);case 4:return ce(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=fi(n,null,s,i):Dt(e,n,s,i),n.child;case 11:return qv(e,n,n.type,n.pendingProps,i);case 7:return Dt(e,n,n.pendingProps,i),n.child;case 8:return Dt(e,n,n.pendingProps.children,i),n.child;case 12:return Dt(e,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,Hr(n,n.type,s.value),Dt(e,n,s.children,i),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,Ta(n),f=kt(f),s=s(f),n.flags|=1,Dt(e,n,s,i),n.child;case 14:return Uv(e,n,n.type,n.pendingProps,i);case 15:return Gv(e,n,n.type,n.pendingProps,i);case 19:return Kv(e,n,i);case 31:return s=n.pendingProps,i=n.mode,s={mode:s.mode,children:s.children},e===null?(i=Os(s,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=sr(e.child,s),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return Vv(e,n,i);case 24:return Ta(n),s=kt(Et),e===null?(f=bc(),f===null&&(f=rt,m=vc(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),n.memoizedState={parent:s,cache:f},wc(n),Hr(n,Et,f)):((e.lanes&i)!==0&&(xc(e,n),dl(n,null,null,i),fl()),f=e.memoizedState,m=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Hr(n,Et,s)):(s=m.cache,Hr(n,Et,s),s!==f.cache&&gc(n,[Et],i,!0))),Dt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function gr(e){e.flags|=4}function ey(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sb(n)){if(n=vn.current,n!==null&&((Ge&4194048)===Ge?$n!==null:(Ge&62914560)!==Ge&&(Ge&536870912)===0||n!==$n))throw ul=Sc,Hg;e.flags|=8192}}function Ts(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ze():536870912,e.lanes|=n,mi|=n)}function bl(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ut(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=i,n}function yE(e,n,i){var s=n.pendingProps;switch(dc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(n),null;case 1:return ut(n),null;case 3:return i=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),dr(Et),me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(nl(n)?gr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ng())),ut(n),null;case 26:return i=n.memoizedState,e===null?(gr(n),i!==null?(ut(n),ey(n,i)):(ut(n),n.flags&=-16777217)):i?i!==e.memoizedState?(gr(n),ut(n),ey(n,i)):(ut(n),n.flags&=-16777217):(e.memoizedProps!==s&&gr(n),ut(n),n.flags&=-16777217),null;case 27:ve(n),i=J.current;var f=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}e=H.current,nl(n)?Ag(n):(e=eb(f,s,i),n.stateNode=e,gr(n))}return ut(n),null;case 5:if(ve(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}if(e=H.current,nl(n))Ag(n);else{switch(f=Hs(J.current),e){case 1:e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?f.createElement("select",{is:s.is}):f.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?f.createElement(i,{is:s.is}):f.createElement(i)}}e[Tt]=n,e[wt]=s;e:for(f=n.child;f!==null;){if(f.tag===5||f.tag===6)e.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)break e;for(;f.sibling===null;){if(f.return===null||f.return===n)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}n.stateNode=e;e:switch(zt(e,i,s),i){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(n)}}return ut(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(e=J.current,nl(n)){if(e=n.stateNode,i=n.memoizedProps,s=null,f=It,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Tt]=n,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||Yy(e.nodeValue,i)),e||xa(n)}else e=Hs(e).createTextNode(s),e[Tt]=n,n.stateNode=e}return ut(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=nl(n),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Tt]=n}else rl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ut(n),f=!1}else f=Ng(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=s!==null,e=e!==null&&e.memoizedState!==null,i){s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool);var m=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==f&&(s.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),Ts(n,n.updateQueue),ut(n),null;case 4:return me(),e===null&&Ef(n.stateNode.containerInfo),ut(n),null;case 10:return dr(n.type),ut(n),null;case 19:if(W(Ct),f=n.memoizedState,f===null)return ut(n),null;if(s=(n.flags&128)!==0,m=f.rendering,m===null)if(s)bl(f,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=bs(e),m!==null){for(n.flags|=128,bl(f,!1),e=m.updateQueue,n.updateQueue=e,Ts(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)_g(i,e),i=i.sibling;return V(Ct,Ct.current&1|2),n.child}e=e.sibling}f.tail!==null&&be()>Rs&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304)}else{if(!s)if(e=bs(m),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,Ts(n,e),bl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!Ye)return ut(n),null}else 2*be()-f.renderingStartTime>Rs&&i!==536870912&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304);f.isBackwards?(m.sibling=n.child,n.child=m):(e=f.last,e!==null?e.sibling=m:n.child=m,f.last=m)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=be(),n.sibling=null,e=Ct.current,V(Ct,s?e&1|2:e&1),n):(ut(n),null);case 22:case 23:return pr(n),Cc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(ut(n),n.subtreeFlags&6&&(n.flags|=8192)):ut(n),i=n.updateQueue,i!==null&&Ts(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),e!==null&&W(Ea),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),dr(Et),ut(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function bE(e,n){switch(dc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return dr(Et),me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ve(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));rl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return W(Ct),null;case 4:return me(),null;case 10:return dr(n.type),null;case 22:case 23:return pr(n),Cc(),e!==null&&W(Ea),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return dr(Et),null;case 25:return null;default:return null}}function ty(e,n){switch(dc(n),n.tag){case 3:dr(Et),me();break;case 26:case 27:case 5:ve(n);break;case 4:me();break;case 13:pr(n);break;case 19:W(Ct);break;case 10:dr(n.type);break;case 22:case 23:pr(n),Cc(),e!==null&&W(Ea);break;case 24:dr(Et)}}function Sl(e,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){s=void 0;var m=i.create,O=i.inst;s=m(),O.destroy=s}i=i.next}while(i!==f)}}catch(A){tt(n,n.return,A)}}function Gr(e,n,i){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&e)===e){var O=s.inst,A=O.destroy;if(A!==void 0){O.destroy=void 0,f=n;var Y=i,re=A;try{re()}catch(ue){tt(f,Y,ue)}}}s=s.next}while(s!==m)}}catch(ue){tt(n,n.return,ue)}}function ny(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Ug(n,i)}catch(s){tt(e,e.return,s)}}}function ry(e,n,i){i.props=Ra(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(s){tt(e,n,s)}}function wl(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof i=="function"?e.refCleanup=i(s):i.current=s}}catch(f){tt(e,n,f)}}function In(e,n){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){tt(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){tt(e,n,f)}else i.current=null}function ay(e){var n=e.type,i=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){tt(e,e.return,f)}}function ef(e,n,i){try{var s=e.stateNode;$E(s,e.type,i,n),s[wt]=n}catch(f){tt(e,e.return,f)}}function iy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kr(e.type)||e.tag===4}function tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nf(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ps));else if(s!==4&&(s===27&&Kr(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(nf(e,n,i),e=e.sibling;e!==null;)nf(e,n,i),e=e.sibling}function Es(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(s!==4&&(s===27&&Kr(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Es(e,n,i),e=e.sibling;e!==null;)Es(e,n,i),e=e.sibling}function ly(e){var n=e.stateNode,i=e.memoizedProps;try{for(var s=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);zt(n,s,i),n[Tt]=e,n[wt]=i}catch(m){tt(e,e.return,m)}}var vr=!1,St=!1,rf=!1,oy=typeof WeakSet=="function"?WeakSet:Set,jt=null;function SE(e,n){if(e=e.containerInfo,_f=Us,e=yg(e),tc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var O=0,A=-1,Y=-1,re=0,ue=0,de=e,le=null;t:for(;;){for(var oe;de!==i||f!==0&&de.nodeType!==3||(A=O+f),de!==m||s!==0&&de.nodeType!==3||(Y=O+s),de.nodeType===3&&(O+=de.nodeValue.length),(oe=de.firstChild)!==null;)le=de,de=oe;for(;;){if(de===e)break t;if(le===i&&++re===f&&(A=O),le===m&&++ue===s&&(Y=O),(oe=de.nextSibling)!==null)break;de=le,le=de.parentNode}de=oe}i=A===-1||Y===-1?null:{start:A,end:Y}}else i=null}i=i||{start:0,end:0}}else i=null;for(jf={focusedElem:e,selectionRange:i},Us=!1,jt=n;jt!==null;)if(n=jt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,jt=e;else for(;jt!==null;){switch(n=jt,m=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,i=n,f=m.memoizedProps,m=m.memoizedState,s=i.stateNode;try{var De=Ra(i.type,f,i.elementType===i.type);e=s.getSnapshotBeforeUpdate(De,m),s.__reactInternalSnapshotBeforeUpdate=e}catch(_e){tt(i,i.return,_e)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)Nf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,jt=e;break}jt=n.return}}function sy(e,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Vr(e,i),s&4&&Sl(5,i);break;case 1:if(Vr(e,i),s&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(O){tt(i,i.return,O)}else{var f=Ra(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(O){tt(i,i.return,O)}}s&64&&ny(i),s&512&&wl(i,i.return);break;case 3:if(Vr(e,i),s&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Ug(e,n)}catch(O){tt(i,i.return,O)}}break;case 27:n===null&&s&4&&ly(i);case 26:case 5:Vr(e,i),n===null&&s&4&&ay(i),s&512&&wl(i,i.return);break;case 12:Vr(e,i);break;case 13:Vr(e,i),s&4&&fy(e,i),s&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=jE.bind(null,i),YE(e,i))));break;case 22:if(s=i.memoizedState!==null||vr,!s){n=n!==null&&n.memoizedState!==null||St,f=vr;var m=St;vr=s,(St=n)&&!m?Wr(e,i,(i.subtreeFlags&8772)!==0):Vr(e,i),vr=f,St=m}break;case 30:break;default:Vr(e,i)}}function uy(e){var n=e.alternate;n!==null&&(e.alternate=null,uy(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ha(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Wt=!1;function yr(e,n,i){for(i=i.child;i!==null;)cy(e,n,i),i=i.sibling}function cy(e,n,i){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Ae,i)}catch{}switch(i.tag){case 26:St||In(i,n),yr(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:St||In(i,n);var s=st,f=Wt;Kr(i.type)&&(st=i.stateNode,Wt=!1),yr(e,n,i),Al(i.stateNode),st=s,Wt=f;break;case 5:St||In(i,n);case 6:if(s=st,f=Wt,st=null,yr(e,n,i),st=s,Wt=f,st!==null)if(Wt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(i.stateNode)}catch(m){tt(i,n,m)}else try{st.removeChild(i.stateNode)}catch(m){tt(i,n,m)}break;case 18:st!==null&&(Wt?(e=st,Ky(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),kl(e)):Ky(st,i.stateNode));break;case 4:s=st,f=Wt,st=i.stateNode.containerInfo,Wt=!0,yr(e,n,i),st=s,Wt=f;break;case 0:case 11:case 14:case 15:St||Gr(2,i,n),St||Gr(4,i,n),yr(e,n,i);break;case 1:St||(In(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&ry(i,n,s)),yr(e,n,i);break;case 21:yr(e,n,i);break;case 22:St=(s=St)||i.memoizedState!==null,yr(e,n,i),St=s;break;default:yr(e,n,i)}}function fy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(i){tt(n,n.return,i)}}function wE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new oy),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new oy),n;default:throw Error(l(435,e.tag))}}function af(e,n){var i=wE(e);n.forEach(function(s){var f=AE.bind(null,e,s);i.has(s)||(i.add(s),s.then(f,f))})}function tn(e,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],m=e,O=n,A=O;e:for(;A!==null;){switch(A.tag){case 27:if(Kr(A.type)){st=A.stateNode,Wt=!1;break e}break;case 5:st=A.stateNode,Wt=!1;break e;case 3:case 4:st=A.stateNode.containerInfo,Wt=!0;break e}A=A.return}if(st===null)throw Error(l(160));cy(m,O,f),st=null,Wt=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)dy(n,e),n=n.sibling}var Mn=null;function dy(e,n){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tn(n,e),nn(e),s&4&&(Gr(3,e,e.return),Sl(3,e),Gr(5,e,e.return));break;case 1:tn(n,e),nn(e),s&512&&(St||i===null||In(i,i.return)),s&64&&vr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=Mn;if(tn(n,e),nn(e),s&512&&(St||i===null||In(i,i.return)),s&4){var m=i!==null?i.memoizedState:null;if(s=e.memoizedState,i===null)if(s===null)if(e.stateNode===null){e:{s=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Dr]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(s),f.head.insertBefore(m,f.querySelector("head > title"))),zt(m,s,i),m[Tt]=e,ht(m),s=m;break e;case"link":var O=lb("link","href",f).get(s+(i.href||""));if(O){for(var A=0;A<O.length;A++)if(m=O[A],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){O.splice(A,1);break t}}m=f.createElement(s),zt(m,s,i),f.head.appendChild(m);break;case"meta":if(O=lb("meta","content",f).get(s+(i.content||""))){for(A=0;A<O.length;A++)if(m=O[A],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){O.splice(A,1);break t}}m=f.createElement(s),zt(m,s,i),f.head.appendChild(m);break;default:throw Error(l(468,s))}m[Tt]=e,ht(m),s=m}e.stateNode=s}else ob(f,e.type,e.stateNode);else e.stateNode=ib(f,s,e.memoizedProps);else m!==s?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,s===null?ob(f,e.type,e.stateNode):ib(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&ef(e,e.memoizedProps,i.memoizedProps)}break;case 27:tn(n,e),nn(e),s&512&&(St||i===null||In(i,i.return)),i!==null&&s&4&&ef(e,e.memoizedProps,i.memoizedProps);break;case 5:if(tn(n,e),nn(e),s&512&&(St||i===null||In(i,i.return)),e.flags&32){f=e.stateNode;try{Ya(f,"")}catch(oe){tt(e,e.return,oe)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,ef(e,f,i!==null?i.memoizedProps:f)),s&1024&&(rf=!0);break;case 6:if(tn(n,e),nn(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,i=e.stateNode;try{i.nodeValue=s}catch(oe){tt(e,e.return,oe)}}break;case 3:if($s=null,f=Mn,Mn=ks(n.containerInfo),tn(n,e),Mn=f,nn(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{kl(n.containerInfo)}catch(oe){tt(e,e.return,oe)}rf&&(rf=!1,hy(e));break;case 4:s=Mn,Mn=ks(e.stateNode.containerInfo),tn(n,e),nn(e),Mn=s;break;case 12:tn(n,e),nn(e);break;case 13:tn(n,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ff=be()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,af(e,s)));break;case 22:f=e.memoizedState!==null;var Y=i!==null&&i.memoizedState!==null,re=vr,ue=St;if(vr=re||f,St=ue||Y,tn(n,e),St=ue,vr=re,nn(e),s&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||Y||vr||St||_a(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){Y=i=n;try{if(m=Y.stateNode,f)O=m.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{A=Y.stateNode;var de=Y.memoizedProps.style,le=de!=null&&de.hasOwnProperty("display")?de.display:null;A.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(oe){tt(Y,Y.return,oe)}}}else if(n.tag===6){if(i===null){Y=n;try{Y.stateNode.nodeValue=f?"":Y.memoizedProps}catch(oe){tt(Y,Y.return,oe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,af(e,i))));break;case 19:tn(n,e),nn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,af(e,s)));break;case 30:break;case 21:break;default:tn(n,e),nn(e)}}function nn(e){var n=e.flags;if(n&2){try{for(var i,s=e.return;s!==null;){if(iy(s)){i=s;break}s=s.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var f=i.stateNode,m=tf(e);Es(e,m,f);break;case 5:var O=i.stateNode;i.flags&32&&(Ya(O,""),i.flags&=-33);var A=tf(e);Es(e,A,O);break;case 3:case 4:var Y=i.stateNode.containerInfo,re=tf(e);nf(e,re,Y);break;default:throw Error(l(161))}}catch(ue){tt(e,e.return,ue)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function hy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;hy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)sy(e,n.alternate,n),n=n.sibling}function _a(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Gr(4,n,n.return),_a(n);break;case 1:In(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&ry(n,n.return,i),_a(n);break;case 27:Al(n.stateNode);case 26:case 5:In(n,n.return),_a(n);break;case 22:n.memoizedState===null&&_a(n);break;case 30:_a(n);break;default:_a(n)}e=e.sibling}}function Wr(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=e,m=n,O=m.flags;switch(m.tag){case 0:case 11:case 15:Wr(f,m,i),Sl(4,m);break;case 1:if(Wr(f,m,i),s=m,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(re){tt(s,s.return,re)}if(s=m,f=s.updateQueue,f!==null){var A=s.stateNode;try{var Y=f.shared.hiddenCallbacks;if(Y!==null)for(f.shared.hiddenCallbacks=null,f=0;f<Y.length;f++)qg(Y[f],A)}catch(re){tt(s,s.return,re)}}i&&O&64&&ny(m),wl(m,m.return);break;case 27:ly(m);case 26:case 5:Wr(f,m,i),i&&s===null&&O&4&&ay(m),wl(m,m.return);break;case 12:Wr(f,m,i);break;case 13:Wr(f,m,i),i&&O&4&&fy(f,m);break;case 22:m.memoizedState===null&&Wr(f,m,i),wl(m,m.return);break;case 30:break;default:Wr(f,m,i)}n=n.sibling}}function lf(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ll(i))}function of(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e))}function qn(e,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)py(e,n,i,s),n=n.sibling}function py(e,n,i,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:qn(e,n,i,s),f&2048&&Sl(9,n);break;case 1:qn(e,n,i,s);break;case 3:qn(e,n,i,s),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e)));break;case 12:if(f&2048){qn(e,n,i,s),e=n.stateNode;try{var m=n.memoizedProps,O=m.id,A=m.onPostCommit;typeof A=="function"&&A(O,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(Y){tt(n,n.return,Y)}}else qn(e,n,i,s);break;case 13:qn(e,n,i,s);break;case 23:break;case 22:m=n.stateNode,O=n.alternate,n.memoizedState!==null?m._visibility&2?qn(e,n,i,s):xl(e,n):m._visibility&2?qn(e,n,i,s):(m._visibility|=2,di(e,n,i,s,(n.subtreeFlags&10256)!==0)),f&2048&&lf(O,n);break;case 24:qn(e,n,i,s),f&2048&&of(n.alternate,n);break;default:qn(e,n,i,s)}}function di(e,n,i,s,f){for(f=f&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var m=e,O=n,A=i,Y=s,re=O.flags;switch(O.tag){case 0:case 11:case 15:di(m,O,A,Y,f),Sl(8,O);break;case 23:break;case 22:var ue=O.stateNode;O.memoizedState!==null?ue._visibility&2?di(m,O,A,Y,f):xl(m,O):(ue._visibility|=2,di(m,O,A,Y,f)),f&&re&2048&&lf(O.alternate,O);break;case 24:di(m,O,A,Y,f),f&&re&2048&&of(O.alternate,O);break;default:di(m,O,A,Y,f)}n=n.sibling}}function xl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,s=n,f=s.flags;switch(s.tag){case 22:xl(i,s),f&2048&&lf(s.alternate,s);break;case 24:xl(i,s),f&2048&&of(s.alternate,s);break;default:xl(i,s)}n=n.sibling}}var Ol=8192;function hi(e){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)my(e),e=e.sibling}function my(e){switch(e.tag){case 26:hi(e),e.flags&Ol&&e.memoizedState!==null&&lC(Mn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Mn;Mn=ks(e.stateNode.containerInfo),hi(e),Mn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ol,Ol=16777216,hi(e),Ol=n):hi(e));break;default:hi(e)}}function gy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Tl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,yy(s,e)}gy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vy(e),e=e.sibling}function vy(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&Gr(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Cs(e)):Tl(e);break;default:Tl(e)}}function Cs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,yy(s,e)}gy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Gr(8,n,n.return),Cs(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Cs(n));break;default:Cs(n)}e=e.sibling}}function yy(e,n){for(;jt!==null;){var i=jt;switch(i.tag){case 0:case 11:case 15:Gr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ll(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,jt=s;else e:for(i=e;jt!==null;){s=jt;var f=s.sibling,m=s.return;if(uy(s),s===i){jt=null;break e}if(f!==null){f.return=m,jt=f;break e}jt=m}}}var xE={getCacheForType:function(e){var n=kt(Et),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},OE=typeof WeakMap=="function"?WeakMap:Map,Fe=0,rt=null,qe=null,Ge=0,Qe=0,rn=null,Yr=!1,pi=!1,sf=!1,br=0,mt=0,Xr=0,ja=0,uf=0,yn=0,mi=0,El=null,Yt=null,cf=!1,ff=0,Rs=1/0,_s=null,Fr=null,Lt=0,Qr=null,gi=null,vi=0,df=0,hf=null,by=null,Cl=0,pf=null;function an(){if((Fe&2)!==0&&Ge!==0)return Ge&-Ge;if(z.T!==null){var e=ai;return e!==0?e:wf()}return Ut()}function Sy(){yn===0&&(yn=(Ge&536870912)===0||Ye?Xe():536870912);var e=vn.current;return e!==null&&(e.flags|=32),yn}function ln(e,n,i){(e===rt&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(yi(e,0),Zr(e,Ge,yn,!1)),qt(e,i),((Fe&2)===0||e!==rt)&&(e===rt&&((Fe&2)===0&&(ja|=i),mt===4&&Zr(e,Ge,yn,!1)),Un(e))}function wy(e,n,i){if((Fe&6)!==0)throw Error(l(327));var s=!i&&(n&124)===0&&(n&e.expiredLanes)===0||se(e,n),f=s?CE(e,n):vf(e,n,!0),m=s;do{if(f===0){pi&&!s&&Zr(e,n,0,!1);break}else{if(i=e.current.alternate,m&&!TE(i)){f=vf(e,n,!1),m=!1;continue}if(f===2){if(m=n,e.errorRecoveryDisabledLanes&m)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){n=O;e:{var A=e;f=El;var Y=A.current.memoizedState.isDehydrated;if(Y&&(yi(A,O).flags|=256),O=vf(A,O,!1),O!==2){if(sf&&!Y){A.errorRecoveryDisabledLanes|=m,ja|=m,f=4;break e}m=Yt,Yt=f,m!==null&&(Yt===null?Yt=m:Yt.push.apply(Yt,m))}f=O}if(m=!1,f!==2)continue}}if(f===1){yi(e,0),Zr(e,n,0,!0);break}e:{switch(s=e,m=f,m){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Zr(s,n,yn,!Yr);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=ff+300-be(),10<f)){if(Zr(s,n,yn,!Yr),ae(s,0,!0)!==0)break e;s.timeoutHandle=Qy(xy.bind(null,s,i,Yt,_s,cf,n,yn,ja,mi,Yr,m,2,-0,0),f);break e}xy(s,i,Yt,_s,cf,n,yn,ja,mi,Yr,m,0,-0,0)}}break}while(!0);Un(e)}function xy(e,n,i,s,f,m,O,A,Y,re,ue,de,le,oe){if(e.timeoutHandle=-1,de=n.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Dl={stylesheets:null,count:0,unsuspend:iC},my(n),de=oC(),de!==null)){e.cancelPendingCommit=de(jy.bind(null,e,n,m,i,s,f,O,A,Y,ue,1,le,oe)),Zr(e,m,O,!re);return}jy(e,n,m,i,s,f,O,A,Y)}function TE(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],m=f.getSnapshot;f=f.value;try{if(!Jt(m(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Zr(e,n,i,s){n&=~uf,n&=~ja,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var f=n;0<f;){var m=31-dt(f),O=1<<m;s[m]=-1,f&=~O}i!==0&&Ht(e,i,n)}function js(){return(Fe&6)===0?(Rl(0),!1):!0}function mf(){if(qe!==null){if(Qe===0)var e=qe.return;else e=qe,fr=Oa=null,Mc(e),ci=null,vl=0,e=qe;for(;e!==null;)ty(e.alternate,e),e=e.return;qe=null}}function yi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,qE(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),mf(),rt=e,qe=i=sr(e.current,null),Ge=n,Qe=0,rn=null,Yr=!1,pi=se(e,n),sf=!1,mi=yn=uf=ja=Xr=mt=0,Yt=El=null,cf=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var f=31-dt(s),m=1<<f;n|=e[f],s&=~m}return br=n,Zo(),i}function Oy(e,n){$e=null,z.H=gs,n===sl||n===ls?(n=$g(),Qe=3):n===Hg?(n=$g(),Qe=4):Qe=n===Iv?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,rn=n,qe===null&&(mt=1,ws(e,hn(n,e.current)))}function Ty(){var e=z.H;return z.H=gs,e===null?gs:e}function Ey(){var e=z.A;return z.A=xE,e}function gf(){mt=4,Yr||(Ge&4194048)!==Ge&&vn.current!==null||(pi=!0),(Xr&134217727)===0&&(ja&134217727)===0||rt===null||Zr(rt,Ge,yn,!1)}function vf(e,n,i){var s=Fe;Fe|=2;var f=Ty(),m=Ey();(rt!==e||Ge!==n)&&(_s=null,yi(e,n)),n=!1;var O=mt;e:do try{if(Qe!==0&&qe!==null){var A=qe,Y=rn;switch(Qe){case 8:mf(),O=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var re=Qe;if(Qe=0,rn=null,bi(e,A,Y,re),i&&pi){O=0;break e}break;default:re=Qe,Qe=0,rn=null,bi(e,A,Y,re)}}EE(),O=mt;break}catch(ue){Oy(e,ue)}while(!0);return n&&e.shellSuspendCounter++,fr=Oa=null,Fe=s,z.H=f,z.A=m,qe===null&&(rt=null,Ge=0,Zo()),O}function EE(){for(;qe!==null;)Cy(qe)}function CE(e,n){var i=Fe;Fe|=2;var s=Ty(),f=Ey();rt!==e||Ge!==n?(_s=null,Rs=be()+500,yi(e,n)):pi=se(e,n);e:do try{if(Qe!==0&&qe!==null){n=qe;var m=rn;t:switch(Qe){case 1:Qe=0,rn=null,bi(e,n,m,1);break;case 2:case 9:if(kg(m)){Qe=0,rn=null,Ry(n);break}n=function(){Qe!==2&&Qe!==9||rt!==e||(Qe=7),Un(e)},m.then(n,n);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:kg(m)?(Qe=0,rn=null,Ry(n)):(Qe=0,rn=null,bi(e,n,m,7));break;case 5:var O=null;switch(qe.tag){case 26:O=qe.memoizedState;case 5:case 27:var A=qe;if(!O||sb(O)){Qe=0,rn=null;var Y=A.sibling;if(Y!==null)qe=Y;else{var re=A.return;re!==null?(qe=re,As(re)):qe=null}break t}}Qe=0,rn=null,bi(e,n,m,5);break;case 6:Qe=0,rn=null,bi(e,n,m,6);break;case 8:mf(),mt=6;break e;default:throw Error(l(462))}}RE();break}catch(ue){Oy(e,ue)}while(!0);return fr=Oa=null,z.H=s,z.A=f,Fe=i,qe!==null?0:(rt=null,Ge=0,Zo(),mt)}function RE(){for(;qe!==null&&!ye();)Cy(qe)}function Cy(e){var n=Jv(e.alternate,e,br);e.memoizedProps=e.pendingProps,n===null?As(e):qe=n}function Ry(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Yv(i,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=Yv(i,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:Mc(n);default:ty(i,n),n=qe=_g(n,br),n=Jv(i,n,br)}e.memoizedProps=e.pendingProps,n===null?As(e):qe=n}function bi(e,n,i,s){fr=Oa=null,Mc(n),ci=null,vl=0;var f=n.return;try{if(gE(e,f,n,i,Ge)){mt=1,ws(e,hn(i,e.current)),qe=null;return}}catch(m){if(f!==null)throw qe=f,m;mt=1,ws(e,hn(i,e.current)),qe=null;return}n.flags&32768?(Ye||s===1?e=!0:pi||(Ge&536870912)!==0?e=!1:(Yr=e=!0,(s===2||s===9||s===3||s===6)&&(s=vn.current,s!==null&&s.tag===13&&(s.flags|=16384))),_y(n,e)):As(n)}function As(e){var n=e;do{if((n.flags&32768)!==0){_y(n,Yr);return}e=n.return;var i=yE(n.alternate,n,br);if(i!==null){qe=i;return}if(n=n.sibling,n!==null){qe=n;return}qe=n=e}while(n!==null);mt===0&&(mt=5)}function _y(e,n){do{var i=bE(e.alternate,e);if(i!==null){i.flags&=32767,qe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){qe=e;return}qe=e=i}while(e!==null);mt=6,qe=null}function jy(e,n,i,s,f,m,O,A,Y){e.cancelPendingCommit=null;do Ms();while(Lt!==0);if((Fe&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(m=n.lanes|n.childLanes,m|=lc,tr(e,i,m,O,A,Y),e===rt&&(qe=rt=null,Ge=0),gi=n,Qr=e,vi=i,df=m,hf=f,by=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ME(ke,function(){return Ly(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,f=S.p,S.p=2,O=Fe,Fe|=4;try{SE(e,n,i)}finally{Fe=O,S.p=f,z.T=s}}Lt=1,Ay(),My(),Ny()}}function Ay(){if(Lt===1){Lt=0;var e=Qr,n=gi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=z.T,z.T=null;var s=S.p;S.p=2;var f=Fe;Fe|=4;try{dy(n,e);var m=jf,O=yg(e.containerInfo),A=m.focusedElem,Y=m.selectionRange;if(O!==A&&A&&A.ownerDocument&&vg(A.ownerDocument.documentElement,A)){if(Y!==null&&tc(A)){var re=Y.start,ue=Y.end;if(ue===void 0&&(ue=re),"selectionStart"in A)A.selectionStart=re,A.selectionEnd=Math.min(ue,A.value.length);else{var de=A.ownerDocument||document,le=de&&de.defaultView||window;if(le.getSelection){var oe=le.getSelection(),De=A.textContent.length,_e=Math.min(Y.start,De),et=Y.end===void 0?_e:Math.min(Y.end,De);!oe.extend&&_e>et&&(O=et,et=_e,_e=O);var ee=gg(A,_e),K=gg(A,et);if(ee&&K&&(oe.rangeCount!==1||oe.anchorNode!==ee.node||oe.anchorOffset!==ee.offset||oe.focusNode!==K.node||oe.focusOffset!==K.offset)){var ne=de.createRange();ne.setStart(ee.node,ee.offset),oe.removeAllRanges(),_e>et?(oe.addRange(ne),oe.extend(K.node,K.offset)):(ne.setEnd(K.node,K.offset),oe.addRange(ne))}}}}for(de=[],oe=A;oe=oe.parentNode;)oe.nodeType===1&&de.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<de.length;A++){var fe=de[A];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Us=!!_f,jf=_f=null}finally{Fe=f,S.p=s,z.T=i}}e.current=n,Lt=2}}function My(){if(Lt===2){Lt=0;var e=Qr,n=gi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=z.T,z.T=null;var s=S.p;S.p=2;var f=Fe;Fe|=4;try{sy(e,n.alternate,n)}finally{Fe=f,S.p=s,z.T=i}}Lt=3}}function Ny(){if(Lt===4||Lt===3){Lt=0,Re();var e=Qr,n=gi,i=vi,s=by;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Lt=5:(Lt=0,gi=Qr=null,Dy(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Fr=null),Pn(i),n=n.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Ae,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=z.T,f=S.p,S.p=2,z.T=null;try{for(var m=e.onRecoverableError,O=0;O<s.length;O++){var A=s[O];m(A.value,{componentStack:A.stack})}}finally{z.T=n,S.p=f}}(vi&3)!==0&&Ms(),Un(e),f=e.pendingLanes,(i&4194090)!==0&&(f&42)!==0?e===pf?Cl++:(Cl=0,pf=e):Cl=0,Rl(0)}}function Dy(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ll(n)))}function Ms(e){return Ay(),My(),Ny(),Ly()}function Ly(){if(Lt!==5)return!1;var e=Qr,n=df;df=0;var i=Pn(vi),s=z.T,f=S.p;try{S.p=32>i?32:i,z.T=null,i=hf,hf=null;var m=Qr,O=vi;if(Lt=0,gi=Qr=null,vi=0,(Fe&6)!==0)throw Error(l(331));var A=Fe;if(Fe|=4,vy(m.current),py(m,m.current,O,i),Fe=A,Rl(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Ae,m)}catch{}return!0}finally{S.p=f,z.T=s,Dy(e,n)}}function zy(e,n,i){n=hn(i,n),n=Vc(e.stateNode,n,2),e=$r(e,n,2),e!==null&&(qt(e,2),Un(e))}function tt(e,n,i){if(e.tag===3)zy(e,e,i);else for(;n!==null;){if(n.tag===3){zy(n,e,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Fr===null||!Fr.has(s))){e=hn(i,e),i=Bv(2),s=$r(n,i,2),s!==null&&($v(i,s,n,e),qt(s,2),Un(s));break}}n=n.return}}function yf(e,n,i){var s=e.pingCache;if(s===null){s=e.pingCache=new OE;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(i)||(sf=!0,f.add(i),e=_E.bind(null,e,n,i),n.then(e,e))}function _E(e,n,i){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,rt===e&&(Ge&i)===i&&(mt===4||mt===3&&(Ge&62914560)===Ge&&300>be()-ff?(Fe&2)===0&&yi(e,0):uf|=i,mi===Ge&&(mi=0)),Un(e)}function Py(e,n){n===0&&(n=Ze()),e=ei(e,n),e!==null&&(qt(e,n),Un(e))}function jE(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Py(e,i)}function AE(e,n){var i=0;switch(e.tag){case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),Py(e,i)}function ME(e,n){return ge(e,n)}var Ns=null,Si=null,bf=!1,Ds=!1,Sf=!1,Aa=0;function Un(e){e!==Si&&e.next===null&&(Si===null?Ns=Si=e:Si=Si.next=e),Ds=!0,bf||(bf=!0,DE())}function Rl(e,n){if(!Sf&&Ds){Sf=!0;do for(var i=!1,s=Ns;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var m=0;else{var O=s.suspendedLanes,A=s.pingedLanes;m=(1<<31-dt(42|e)+1)-1,m&=f&~(O&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,$y(s,m))}else m=Ge,m=ae(s,s===rt?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||se(s,m)||(i=!0,$y(s,m));s=s.next}while(i);Sf=!1}}function NE(){Hy()}function Hy(){Ds=bf=!1;var e=0;Aa!==0&&(IE()&&(e=Aa),Aa=0);for(var n=be(),i=null,s=Ns;s!==null;){var f=s.next,m=ky(s,n);m===0?(s.next=null,i===null?Ns=f:i.next=f,f===null&&(Si=i)):(i=s,(e!==0||(m&3)!==0)&&(Ds=!0)),s=f}Rl(e)}function ky(e,n){for(var i=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var O=31-dt(m),A=1<<O,Y=f[O];Y===-1?((A&i)===0||(A&s)!==0)&&(f[O]=Ve(A,n)):Y<=n&&(e.expiredLanes|=A),m&=~A}if(n=rt,i=Ge,i=ae(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,i===0||e===n&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Se(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||se(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(s!==null&&Se(s),Pn(i)){case 2:case 8:i=Ee;break;case 32:i=ke;break;case 268435456:i=ft;break;default:i=ke}return s=By.bind(null,e),i=ge(i,s),e.callbackPriority=n,e.callbackNode=i,n}return s!==null&&s!==null&&Se(s),e.callbackPriority=2,e.callbackNode=null,2}function By(e,n){if(Lt!==0&&Lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Ms()&&e.callbackNode!==i)return null;var s=Ge;return s=ae(e,e===rt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(wy(e,s,n),ky(e,be()),e.callbackNode!=null&&e.callbackNode===i?By.bind(null,e):null)}function $y(e,n){if(Ms())return null;wy(e,n,!0)}function DE(){UE(function(){(Fe&6)!==0?ge(Pe,NE):Hy()})}function wf(){return Aa===0&&(Aa=Xe()),Aa}function Iy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Go(""+e)}function qy(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function LE(e,n,i,s,f){if(n==="submit"&&i&&i.stateNode===f){var m=Iy((f[wt]||null).action),O=s.submitter;O&&(n=(n=O[wt]||null)?Iy(n.formAction):O.getAttribute("formAction"),n!==null&&(m=n,O=null));var A=new Xo("action","action",null,s,f);e.push({event:A,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Aa!==0){var Y=O?qy(f,O):new FormData(f);$c(i,{pending:!0,data:Y,method:f.method,action:m},null,Y)}}else typeof m=="function"&&(A.preventDefault(),Y=O?qy(f,O):new FormData(f),$c(i,{pending:!0,data:Y,method:f.method,action:m},m,Y))},currentTarget:f}]})}}for(var xf=0;xf<ic.length;xf++){var Of=ic[xf],zE=Of.toLowerCase(),PE=Of[0].toUpperCase()+Of.slice(1);An(zE,"on"+PE)}An(wg,"onAnimationEnd"),An(xg,"onAnimationIteration"),An(Og,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(JT,"onTransitionRun"),An(eE,"onTransitionStart"),An(tE,"onTransitionCancel"),An(Tg,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="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(" "),HE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function Uy(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],f=s.event;s=s.listeners;e:{var m=void 0;if(n)for(var O=s.length-1;0<=O;O--){var A=s[O],Y=A.instance,re=A.currentTarget;if(A=A.listener,Y!==m&&f.isPropagationStopped())break e;m=A,f.currentTarget=re;try{m(f)}catch(ue){Ss(ue)}f.currentTarget=null,m=Y}else for(O=0;O<s.length;O++){if(A=s[O],Y=A.instance,re=A.currentTarget,A=A.listener,Y!==m&&f.isPropagationStopped())break e;m=A,f.currentTarget=re;try{m(f)}catch(ue){Ss(ue)}f.currentTarget=null,m=Y}}}}function Ue(e,n){var i=n[Nr];i===void 0&&(i=n[Nr]=new Set);var s=e+"__bubble";i.has(s)||(Gy(n,e,2,!1),i.add(s))}function Tf(e,n,i){var s=0;n&&(s|=4),Gy(i,e,s,n)}var Ls="_reactListening"+Math.random().toString(36).slice(2);function Ef(e){if(!e[Ls]){e[Ls]=!0,rr.forEach(function(i){i!=="selectionchange"&&(HE.has(i)||Tf(i,!1,e),Tf(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ls]||(n[Ls]=!0,Tf("selectionchange",!1,n))}}function Gy(e,n,i,s){switch(pb(n)){case 2:var f=cC;break;case 8:f=fC;break;default:f=Bf}i=f.bind(null,n,i,e),f=void 0,!Wu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function Cf(e,n,i,s,f){var m=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var O=s.tag;if(O===3||O===4){var A=s.stateNode.containerInfo;if(A===f)break;if(O===4)for(O=s.return;O!==null;){var Y=O.tag;if((Y===3||Y===4)&&O.stateNode.containerInfo===f)return;O=O.return}for(;A!==null;){if(O=nr(A),O===null)return;if(Y=O.tag,Y===5||Y===6||Y===26||Y===27){s=m=O;continue e}A=A.parentNode}}s=s.return}Zm(function(){var re=m,ue=Gu(i),de=[];e:{var le=Eg.get(e);if(le!==void 0){var oe=Xo,De=e;switch(e){case"keypress":if(Wo(i)===0)break e;case"keydown":case"keyup":oe=MT;break;case"focusin":De="focus",oe=Qu;break;case"focusout":De="blur",oe=Qu;break;case"beforeblur":case"afterblur":oe=Qu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=bT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=LT;break;case wg:case xg:case Og:oe=xT;break;case Tg:oe=PT;break;case"scroll":case"scrollend":oe=vT;break;case"wheel":oe=kT;break;case"copy":case"cut":case"paste":oe=TT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=ng;break;case"toggle":case"beforetoggle":oe=$T}var _e=(n&4)!==0,et=!_e&&(e==="scroll"||e==="scrollend"),ee=_e?le!==null?le+"Capture":null:le;_e=[];for(var K=re,ne;K!==null;){var fe=K;if(ne=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||ne===null||ee===null||(fe=Yi(K,ee),fe!=null&&_e.push(jl(K,fe,ne))),et)break;K=K.return}0<_e.length&&(le=new oe(le,De,null,i,ue),de.push({event:le,listeners:_e}))}}if((n&7)===0){e:{if(le=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",le&&i!==Uu&&(De=i.relatedTarget||i.fromElement)&&(nr(De)||De[Hn]))break e;if((oe||le)&&(le=ue.window===ue?ue:(le=ue.ownerDocument)?le.defaultView||le.parentWindow:window,oe?(De=i.relatedTarget||i.toElement,oe=re,De=De?nr(De):null,De!==null&&(et=u(De),_e=De.tag,De!==et||_e!==5&&_e!==27&&_e!==6)&&(De=null)):(oe=null,De=re),oe!==De)){if(_e=eg,fe="onMouseLeave",ee="onMouseEnter",K="mouse",(e==="pointerout"||e==="pointerover")&&(_e=ng,fe="onPointerLeave",ee="onPointerEnter",K="pointer"),et=oe==null?le:Lr(oe),ne=De==null?le:Lr(De),le=new _e(fe,K+"leave",oe,i,ue),le.target=et,le.relatedTarget=ne,fe=null,nr(ue)===re&&(_e=new _e(ee,K+"enter",De,i,ue),_e.target=ne,_e.relatedTarget=et,fe=_e),et=fe,oe&&De)t:{for(_e=oe,ee=De,K=0,ne=_e;ne;ne=wi(ne))K++;for(ne=0,fe=ee;fe;fe=wi(fe))ne++;for(;0<K-ne;)_e=wi(_e),K--;for(;0<ne-K;)ee=wi(ee),ne--;for(;K--;){if(_e===ee||ee!==null&&_e===ee.alternate)break t;_e=wi(_e),ee=wi(ee)}_e=null}else _e=null;oe!==null&&Vy(de,le,oe,_e,!1),De!==null&&et!==null&&Vy(de,et,De,_e,!0)}}e:{if(le=re?Lr(re):window,oe=le.nodeName&&le.nodeName.toLowerCase(),oe==="select"||oe==="input"&&le.type==="file")var xe=cg;else if(sg(le))if(fg)xe=QT;else{xe=XT;var Ie=YT}else oe=le.nodeName,!oe||oe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?re&&qu(re.elementType)&&(xe=cg):xe=FT;if(xe&&(xe=xe(e,re))){ug(de,xe,i,ue);break e}Ie&&Ie(e,le,re),e==="focusout"&&re&&le.type==="number"&&re.memoizedProps.value!=null&&Iu(le,"number",le.value)}switch(Ie=re?Lr(re):window,e){case"focusin":(sg(Ie)||Ie.contentEditable==="true")&&(Za=Ie,nc=re,tl=null);break;case"focusout":tl=nc=Za=null;break;case"mousedown":rc=!0;break;case"contextmenu":case"mouseup":case"dragend":rc=!1,bg(de,i,ue);break;case"selectionchange":if(KT)break;case"keydown":case"keyup":bg(de,i,ue)}var Te;if(Ku)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Qa?lg(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(rg&&i.locale!=="ko"&&(Qa||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Qa&&(Te=Km()):(Pr=ue,Yu="value"in Pr?Pr.value:Pr.textContent,Qa=!0)),Ie=zs(re,Me),0<Ie.length&&(Me=new tg(Me,e,null,i,ue),de.push({event:Me,listeners:Ie}),Te?Me.data=Te:(Te=og(i),Te!==null&&(Me.data=Te)))),(Te=qT?UT(e,i):GT(e,i))&&(Me=zs(re,"onBeforeInput"),0<Me.length&&(Ie=new tg("onBeforeInput","beforeinput",null,i,ue),de.push({event:Ie,listeners:Me}),Ie.data=Te)),LE(de,e,re,i,ue)}Uy(de,n)})}function jl(e,n,i){return{instance:e,listener:n,currentTarget:i}}function zs(e,n){for(var i=n+"Capture",s=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Yi(e,i),f!=null&&s.unshift(jl(e,f,m)),f=Yi(e,n),f!=null&&s.push(jl(e,f,m))),e.tag===3)return s;e=e.return}return[]}function wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vy(e,n,i,s,f){for(var m=n._reactName,O=[];i!==null&&i!==s;){var A=i,Y=A.alternate,re=A.stateNode;if(A=A.tag,Y!==null&&Y===s)break;A!==5&&A!==26&&A!==27||re===null||(Y=re,f?(re=Yi(i,m),re!=null&&O.unshift(jl(i,re,Y))):f||(re=Yi(i,m),re!=null&&O.push(jl(i,re,Y)))),i=i.return}O.length!==0&&e.push({event:n,listeners:O})}var kE=/\r\n?/g,BE=/\u0000|\uFFFD/g;function Wy(e){return(typeof e=="string"?e:""+e).replace(kE,`
49
+ `).replace(BE,"")}function Yy(e,n){return n=Wy(n),Wy(e)===n}function Ps(){}function Je(e,n,i,s,f,m){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ya(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ya(e,""+s);break;case"className":Io(e,"class",s);break;case"tabIndex":Io(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Io(e,i,s);break;case"style":Fm(e,s,m);break;case"data":if(n!=="object"){Io(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Go(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(n!=="input"&&Je(e,n,"name",f.name,f,null),Je(e,n,"formEncType",f.formEncType,f,null),Je(e,n,"formMethod",f.formMethod,f,null),Je(e,n,"formTarget",f.formTarget,f,null)):(Je(e,n,"encType",f.encType,f,null),Je(e,n,"method",f.method,f,null),Je(e,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Go(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(e.onclick=Ps);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}i=Go(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""+s):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,s):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(i,s):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):e.setAttribute(i,s);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),$o(e,"popover",s);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":$o(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=mT.get(i)||i,$o(e,i,s))}}function Rf(e,n,i,s,f,m){switch(i){case"style":Fm(e,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof s=="string"?Ya(e,s):(typeof s=="number"||typeof s=="bigint")&&Ya(e,""+s);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Ps);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pa.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),m=e[wt]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(n,m,f),typeof s=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,s,f);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):$o(e,i,s)}}}function zt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var s=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var O=i[m];if(O!=null)switch(m){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,m,O,i,null)}}f&&Je(e,n,"srcSet",i.srcSet,i,null),s&&Je(e,n,"src",i.src,i,null);return;case"input":Ue("invalid",e);var A=m=O=f=null,Y=null,re=null;for(s in i)if(i.hasOwnProperty(s)){var ue=i[s];if(ue!=null)switch(s){case"name":f=ue;break;case"type":O=ue;break;case"checked":Y=ue;break;case"defaultChecked":re=ue;break;case"value":m=ue;break;case"defaultValue":A=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(l(137,n));break;default:Je(e,n,s,ue,i,null)}}Vm(e,m,A,Y,re,O,f,!1),qo(e);return;case"select":Ue("invalid",e),s=O=m=null;for(f in i)if(i.hasOwnProperty(f)&&(A=i[f],A!=null))switch(f){case"value":m=A;break;case"defaultValue":O=A;break;case"multiple":s=A;default:Je(e,n,f,A,i,null)}n=m,i=O,e.multiple=!!s,n!=null?Wa(e,!!s,n,!1):i!=null&&Wa(e,!!s,i,!0);return;case"textarea":Ue("invalid",e),m=f=s=null;for(O in i)if(i.hasOwnProperty(O)&&(A=i[O],A!=null))switch(O){case"value":s=A;break;case"defaultValue":f=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(91));break;default:Je(e,n,O,A,i,null)}Ym(e,s,f,m),qo(e);return;case"option":for(Y in i)if(i.hasOwnProperty(Y)&&(s=i[Y],s!=null))switch(Y){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Je(e,n,Y,s,i,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(s=0;s<_l.length;s++)Ue(_l[s],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in i)if(i.hasOwnProperty(re)&&(s=i[re],s!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,re,s,i,null)}return;default:if(qu(n)){for(ue in i)i.hasOwnProperty(ue)&&(s=i[ue],s!==void 0&&Rf(e,n,ue,s,i,void 0));return}}for(A in i)i.hasOwnProperty(A)&&(s=i[A],s!=null&&Je(e,n,A,s,i,null))}function $E(e,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,O=null,A=null,Y=null,re=null,ue=null;for(oe in i){var de=i[oe];if(i.hasOwnProperty(oe)&&de!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":Y=de;default:s.hasOwnProperty(oe)||Je(e,n,oe,null,s,de)}}for(var le in s){var oe=s[le];if(de=i[le],s.hasOwnProperty(le)&&(oe!=null||de!=null))switch(le){case"type":m=oe;break;case"name":f=oe;break;case"checked":re=oe;break;case"defaultChecked":ue=oe;break;case"value":O=oe;break;case"defaultValue":A=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,n));break;default:oe!==de&&Je(e,n,le,oe,s,de)}}$u(e,O,A,Y,re,ue,m,f);return;case"select":oe=O=A=le=null;for(m in i)if(Y=i[m],i.hasOwnProperty(m)&&Y!=null)switch(m){case"value":break;case"multiple":oe=Y;default:s.hasOwnProperty(m)||Je(e,n,m,null,s,Y)}for(f in s)if(m=s[f],Y=i[f],s.hasOwnProperty(f)&&(m!=null||Y!=null))switch(f){case"value":le=m;break;case"defaultValue":A=m;break;case"multiple":O=m;default:m!==Y&&Je(e,n,f,m,s,Y)}n=A,i=O,s=oe,le!=null?Wa(e,!!i,le,!1):!!s!=!!i&&(n!=null?Wa(e,!!i,n,!0):Wa(e,!!i,i?[]:"",!1));return;case"textarea":oe=le=null;for(A in i)if(f=i[A],i.hasOwnProperty(A)&&f!=null&&!s.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Je(e,n,A,null,s,f)}for(O in s)if(f=s[O],m=i[O],s.hasOwnProperty(O)&&(f!=null||m!=null))switch(O){case"value":le=f;break;case"defaultValue":oe=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==m&&Je(e,n,O,f,s,m)}Wm(e,le,oe);return;case"option":for(var De in i)if(le=i[De],i.hasOwnProperty(De)&&le!=null&&!s.hasOwnProperty(De))switch(De){case"selected":e.selected=!1;break;default:Je(e,n,De,null,s,le)}for(Y in s)if(le=s[Y],oe=i[Y],s.hasOwnProperty(Y)&&le!==oe&&(le!=null||oe!=null))switch(Y){case"selected":e.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Je(e,n,Y,le,s,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in i)le=i[_e],i.hasOwnProperty(_e)&&le!=null&&!s.hasOwnProperty(_e)&&Je(e,n,_e,null,s,le);for(re in s)if(le=s[re],oe=i[re],s.hasOwnProperty(re)&&le!==oe&&(le!=null||oe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(l(137,n));break;default:Je(e,n,re,le,s,oe)}return;default:if(qu(n)){for(var et in i)le=i[et],i.hasOwnProperty(et)&&le!==void 0&&!s.hasOwnProperty(et)&&Rf(e,n,et,void 0,s,le);for(ue in s)le=s[ue],oe=i[ue],!s.hasOwnProperty(ue)||le===oe||le===void 0&&oe===void 0||Rf(e,n,ue,le,s,oe);return}}for(var ee in i)le=i[ee],i.hasOwnProperty(ee)&&le!=null&&!s.hasOwnProperty(ee)&&Je(e,n,ee,null,s,le);for(de in s)le=s[de],oe=i[de],!s.hasOwnProperty(de)||le===oe||le==null&&oe==null||Je(e,n,de,le,s,oe)}var _f=null,jf=null;function Hs(e){return e.nodeType===9?e:e.ownerDocument}function Xy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Af(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Mf=null;function IE(){var e=window.event;return e&&e.type==="popstate"?e===Mf?!1:(Mf=e,!0):(Mf=null,!1)}var Qy=typeof setTimeout=="function"?setTimeout:void 0,qE=typeof clearTimeout=="function"?clearTimeout:void 0,Zy=typeof Promise=="function"?Promise:void 0,UE=typeof queueMicrotask=="function"?queueMicrotask:typeof Zy<"u"?function(e){return Zy.resolve(null).then(e).catch(GE)}:Qy;function GE(e){setTimeout(function(){throw e})}function Kr(e){return e==="head"}function Ky(e,n){var i=n,s=0,f=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"){if(0<s&&8>s){i=s;var O=e.ownerDocument;if(i&1&&Al(O.documentElement),i&2&&Al(O.body),i&4)for(i=O.head,Al(i),O=i.firstChild;O;){var A=O.nextSibling,Y=O.nodeName;O[Dr]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&O.rel.toLowerCase()==="stylesheet"||i.removeChild(O),O=A}}if(f===0){e.removeChild(m),kl(n);return}f--}else i==="$"||i==="$?"||i==="$!"?f++:s=i.charCodeAt(0)-48;else s=0;i=m}while(i);kl(n)}function Nf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Nf(i),ha(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function VE(e,n,i,s){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Dr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Nn(e.nextSibling),e===null)break}return null}function WE(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Nn(e.nextSibling),e===null))return null;return e}function Df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function YE(e,n){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Nn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Lf=null;function Jy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function eb(e,n,i){switch(n=Hs(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Al(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ha(e)}var bn=new Map,tb=new Set;function ks(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sr=S.d;S.d={f:XE,r:FE,D:QE,C:ZE,L:KE,m:JE,X:tC,S:eC,M:nC};function XE(){var e=Sr.f(),n=js();return e||n}function FE(e){var n=kn(e);n!==null&&n.tag===5&&n.type==="form"?wv(n):Sr.r(e)}var xi=typeof document>"u"?null:document;function nb(e,n,i){var s=xi;if(s&&typeof n=="string"&&n){var f=dn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),tb.has(f)||(tb.add(f),e={rel:e,crossOrigin:i,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),zt(n,"link",e),ht(n),s.head.appendChild(n)))}}function QE(e){Sr.D(e),nb("dns-prefetch",e,null)}function ZE(e,n){Sr.C(e,n),nb("preconnect",e,n)}function KE(e,n,i){Sr.L(e,n,i);var s=xi;if(s&&e&&n){var f='link[rel="preload"][as="'+dn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+dn(i.imageSizes)+'"]')):f+='[href="'+dn(e)+'"]';var m=f;switch(n){case"style":m=Oi(e);break;case"script":m=Ti(e)}bn.has(m)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),bn.set(m,e),s.querySelector(f)!==null||n==="style"&&s.querySelector(Ml(m))||n==="script"&&s.querySelector(Nl(m))||(n=s.createElement("link"),zt(n,"link",e),ht(n),s.head.appendChild(n)))}}function JE(e,n){Sr.m(e,n);var i=xi;if(i&&e){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+dn(s)+'"][href="'+dn(e)+'"]',m=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ti(e)}if(!bn.has(m)&&(e=g({rel:"modulepreload",href:e},n),bn.set(m,e),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Nl(m)))return}s=i.createElement("link"),zt(s,"link",e),ht(s),i.head.appendChild(s)}}}function eC(e,n,i){Sr.S(e,n,i);var s=xi;if(s&&e){var f=zr(s).hoistableStyles,m=Oi(e);n=n||"default";var O=f.get(m);if(!O){var A={loading:0,preload:null};if(O=s.querySelector(Ml(m)))A.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=bn.get(m))&&zf(e,i);var Y=O=s.createElement("link");ht(Y),zt(Y,"link",e),Y._p=new Promise(function(re,ue){Y.onload=re,Y.onerror=ue}),Y.addEventListener("load",function(){A.loading|=1}),Y.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Bs(O,n,s)}O={type:"stylesheet",instance:O,count:1,state:A},f.set(m,O)}}}function tC(e,n){Sr.X(e,n);var i=xi;if(i&&e){var s=zr(i).hoistableScripts,f=Ti(e),m=s.get(f);m||(m=i.querySelector(Nl(f)),m||(e=g({src:e,async:!0},n),(n=bn.get(f))&&Pf(e,n),m=i.createElement("script"),ht(m),zt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function nC(e,n){Sr.M(e,n);var i=xi;if(i&&e){var s=zr(i).hoistableScripts,f=Ti(e),m=s.get(f);m||(m=i.querySelector(Nl(f)),m||(e=g({src:e,async:!0,type:"module"},n),(n=bn.get(f))&&Pf(e,n),m=i.createElement("script"),ht(m),zt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function rb(e,n,i,s){var f=(f=J.current)?ks(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Oi(i.href),i=zr(f).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Oi(i.href);var m=zr(f).hoistableStyles,O=m.get(e);if(O||(f=f.ownerDocument||f,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,O),(m=f.querySelector(Ml(e)))&&!m._p&&(O.instance=m,O.state.loading=5),bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},bn.set(e,i),m||rC(f,e,i,O.state))),n&&s===null)throw Error(l(528,""));return O}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ti(i),i=zr(f).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Oi(e){return'href="'+dn(e)+'"'}function Ml(e){return'link[rel="stylesheet"]['+e+"]"}function ab(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function rC(e,n,i,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),zt(n,"link",i),ht(n),e.head.appendChild(n))}function Ti(e){return'[src="'+dn(e)+'"]'}function Nl(e){return"script[async]"+e}function ib(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+dn(i.href)+'"]');if(s)return n.instance=s,ht(s),s;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ht(s),zt(s,"style",f),Bs(s,i.precedence,e),n.instance=s;case"stylesheet":f=Oi(i.href);var m=e.querySelector(Ml(f));if(m)return n.state.loading|=4,n.instance=m,ht(m),m;s=ab(i),(f=bn.get(f))&&zf(s,f),m=(e.ownerDocument||e).createElement("link"),ht(m);var O=m;return O._p=new Promise(function(A,Y){O.onload=A,O.onerror=Y}),zt(m,"link",s),n.state.loading|=4,Bs(m,i.precedence,e),n.instance=m;case"script":return m=Ti(i.src),(f=e.querySelector(Nl(m)))?(n.instance=f,ht(f),f):(s=i,(f=bn.get(m))&&(s=g({},i),Pf(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),ht(f),zt(f,"link",s),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Bs(s,i.precedence,e));return n.instance}function Bs(e,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,m=f,O=0;O<s.length;O++){var A=s[O];if(A.dataset.precedence===n)m=A;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function zf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Pf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var $s=null;function lb(e,n,i){if($s===null){var s=new Map,f=$s=new Map;f.set(i,s)}else f=$s,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var m=i[f];if(!(m[Dr]||m[Tt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var O=m.getAttribute(n)||"";O=e+O;var A=s.get(O);A?A.push(m):s.set(O,[m])}}return s}function ob(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function aC(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function sb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Dl=null;function iC(){}function lC(e,n,i){if(Dl===null)throw Error(l(475));var s=Dl;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var f=Oi(i.href),m=e.querySelector(Ml(f));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Is.bind(s),e.then(s,s)),n.state.loading|=4,n.instance=m,ht(m);return}m=e.ownerDocument||e,i=ab(i),(f=bn.get(f))&&zf(i,f),m=m.createElement("link"),ht(m);var O=m;O._p=new Promise(function(A,Y){O.onload=A,O.onerror=Y}),zt(m,"link",i),n.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(s.count++,n=Is.bind(s),e.addEventListener("load",n),e.addEventListener("error",n))}}function oC(){if(Dl===null)throw Error(l(475));var e=Dl;return e.stylesheets&&e.count===0&&Hf(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Hf(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function Is(){if(this.count--,this.count===0){if(this.stylesheets)Hf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qs=null;function Hf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qs=new Map,n.forEach(sC,e),qs=null,Is.call(e))}function sC(e,n){if(!(n.state.loading&4)){var i=qs.get(e);if(i)var s=i.get(null);else{i=new Map,qs.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var O=f[m];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(i.set(O.dataset.precedence,O),s=O)}s&&i.set(null,s)}f=n.instance,O=f.getAttribute("data-precedence"),m=i.get(O)||s,m===s&&i.set(null,f),i.set(O,f),this.count++,s=Is.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),m?m.parentNode.insertBefore(f,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Ll={$$typeof:q,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function uC(e,n,i,s,f,m,O,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ub(e,n,i,s,f,m,O,A,Y,re,ue,de){return e=new uC(e,n,i,O,A,Y,re,de),n=1,m===!0&&(n|=24),m=en(3,null,null,n),e.current=m,m.stateNode=e,n=vc(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:s,isDehydrated:i,cache:n},wc(m),e}function cb(e){return e?(e=ti,e):ti}function fb(e,n,i,s,f,m){f=cb(f),s.context===null?s.context=f:s.pendingContext=f,s=Br(n),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=$r(e,s,n),i!==null&&(ln(i,e,n),cl(i,e,n))}function db(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function kf(e,n){db(e,n),(e=e.alternate)&&db(e,n)}function hb(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&ln(n,e,67108864),kf(e,67108864)}}var Us=!0;function cC(e,n,i,s){var f=z.T;z.T=null;var m=S.p;try{S.p=2,Bf(e,n,i,s)}finally{S.p=m,z.T=f}}function fC(e,n,i,s){var f=z.T;z.T=null;var m=S.p;try{S.p=8,Bf(e,n,i,s)}finally{S.p=m,z.T=f}}function Bf(e,n,i,s){if(Us){var f=$f(s);if(f===null)Cf(e,n,s,Gs,i),mb(e,s);else if(hC(f,e,n,i,s))s.stopPropagation();else if(mb(e,s),n&4&&-1<dC.indexOf(e)){for(;f!==null;){var m=kn(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var O=cn(m.pendingLanes);if(O!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;O;){var Y=1<<31-dt(O);A.entanglements[1]|=Y,O&=~Y}Un(m),(Fe&6)===0&&(Rs=be()+500,Rl(0))}}break;case 13:A=ei(m,2),A!==null&&ln(A,m,2),js(),kf(m,2)}if(m=$f(s),m===null&&Cf(e,n,s,Gs,i),m===f)break;f=m}f!==null&&s.stopPropagation()}else Cf(e,n,s,null,i)}}function $f(e){return e=Gu(e),If(e)}var Gs=null;function If(e){if(Gs=null,e=nr(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Gs=e,null}function pb(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Le()){case Pe:return 2;case Ee:return 8;case ke:case ot:return 32;case ft:return 268435456;default:return 32}default:return 32}}var qf=!1,Jr=null,ea=null,ta=null,zl=new Map,Pl=new Map,na=[],dC="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".split(" ");function mb(e,n){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":zl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(n.pointerId)}}function Hl(e,n,i,s,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]},n!==null&&(n=kn(n),n!==null&&hb(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function hC(e,n,i,s,f){switch(n){case"focusin":return Jr=Hl(Jr,e,n,i,s,f),!0;case"dragenter":return ea=Hl(ea,e,n,i,s,f),!0;case"mouseover":return ta=Hl(ta,e,n,i,s,f),!0;case"pointerover":var m=f.pointerId;return zl.set(m,Hl(zl.get(m)||null,e,n,i,s,f)),!0;case"gotpointercapture":return m=f.pointerId,Pl.set(m,Hl(Pl.get(m)||null,e,n,i,s,f)),!0}return!1}function gb(e){var n=nr(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,Bo(e.priority,function(){if(i.tag===13){var s=an();s=da(s);var f=ei(i,s);f!==null&&ln(f,i,s),kf(i,s)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vs(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=$f(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);Uu=s,i.target.dispatchEvent(s),Uu=null}else return n=kn(i),n!==null&&hb(n),e.blockedOn=i,!1;n.shift()}return!0}function vb(e,n,i){Vs(e)&&i.delete(n)}function pC(){qf=!1,Jr!==null&&Vs(Jr)&&(Jr=null),ea!==null&&Vs(ea)&&(ea=null),ta!==null&&Vs(ta)&&(ta=null),zl.forEach(vb),Pl.forEach(vb)}function Ws(e,n){e.blockedOn===n&&(e.blockedOn=null,qf||(qf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pC)))}var Ys=null;function yb(e){Ys!==e&&(Ys=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Ys===e&&(Ys=null);for(var n=0;n<e.length;n+=3){var i=e[n],s=e[n+1],f=e[n+2];if(typeof s!="function"){if(If(s||i)===null)continue;break}var m=kn(i);m!==null&&(e.splice(n,3),n-=3,$c(m,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function kl(e){function n(Y){return Ws(Y,e)}Jr!==null&&Ws(Jr,e),ea!==null&&Ws(ea,e),ta!==null&&Ws(ta,e),zl.forEach(n),Pl.forEach(n);for(var i=0;i<na.length;i++){var s=na[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<na.length&&(i=na[0],i.blockedOn===null);)gb(i),i.blockedOn===null&&na.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],m=i[s+1],O=f[wt]||null;if(typeof m=="function")O||yb(i);else if(O){var A=null;if(m&&m.hasAttribute("formAction")){if(f=m,O=m[wt]||null)A=O.formAction;else if(If(f)!==null)continue}else A=O.action;typeof A=="function"?i[s+1]=A:(i.splice(s,3),s-=3),yb(i)}}}function Uf(e){this._internalRoot=e}Xs.prototype.render=Uf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,s=an();fb(i,s,e,n,null,null)},Xs.prototype.unmount=Uf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;fb(e.current,2,null,e,null,null),js(),n[Hn]=null}};function Xs(e){this._internalRoot=e}Xs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ut();e={blockedOn:null,target:e,priority:n};for(var i=0;i<na.length&&n!==0&&n<na[i].priority;i++);na.splice(i,0,e),i===0&&gb(e)}};var bb=t.version;if(bb!=="19.1.0")throw Error(l(527,bb,"19.1.0"));S.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=h(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var mC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fs.isDisabled&&Fs.supportsFiber)try{Ae=Fs.inject(mC),Be=Fs}catch{}}return $l.createRoot=function(e,n){if(!o(e))throw Error(l(299));var i=!1,s="",f=zv,m=Pv,O=Hv,A=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(O=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(A=n.unstable_transitionCallbacks)),n=ub(e,1,!1,null,null,i,s,f,m,O,A,null),e[Hn]=n.current,Ef(e),new Uf(n)},$l.hydrateRoot=function(e,n,i){if(!o(e))throw Error(l(299));var s=!1,f="",m=zv,O=Pv,A=Hv,Y=null,re=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(O=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(Y=i.unstable_transitionCallbacks),i.formState!==void 0&&(re=i.formState)),n=ub(e,1,!0,n,i??null,s,f,m,O,A,Y,re),n.context=cb(null),i=n.current,s=an(),s=da(s),f=Br(s),f.callback=null,$r(i,f,s),i=s,n.current.lanes=i,qt(n,i),Un(n),e[Hn]=n.current,Ef(e),new Xs(n)},$l.version="19.1.0",$l}var Ab;function TC(){if(Ab)return Wf.exports;Ab=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Wf.exports=OC(),Wf.exports}var EC=TC();const CC=Kn(EC);var w=Cn();const Ft=Kn(w);/**
50
+ * react-router v7.12.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Xp=(r=>(r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE",r))(Xp||{}),Mb="popstate";function RC(r={}){function t(l,o){let{pathname:u,search:c,hash:d}=l.location;return Ep("",{pathname:u,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(l,o){return typeof o=="string"?o:io(o)}return jC(t,a,null,r)}function ct(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function xn(r,t){if(!r){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _C(){return Math.random().toString(36).substring(2,10)}function Nb(r,t){return{usr:r.state,key:r.key,idx:t}}function Ep(r,t,a=null,l){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof t=="string"?Di(t):t,state:a,key:t&&t.key||l||_C()}}function io({pathname:r="/",search:t="",hash:a=""}){return t&&t!=="?"&&(r+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function Di(r){let t={};if(r){let a=r.indexOf("#");a>=0&&(t.hash=r.substring(a),r=r.substring(0,a));let l=r.indexOf("?");l>=0&&(t.search=r.substring(l),r=r.substring(0,l)),r&&(t.pathname=r)}return t}function jC(r,t,a,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,c=o.history,d="POP",h=null,p=g();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function g(){return(c.state||{idx:null}).idx}function y(){d="POP";let L=g(),k=L==null?null:L-p;p=L,h&&h({action:d,location:_.location,delta:k})}function x(L,k){d="PUSH";let G=Ep(_.location,L,k);p=g()+1;let q=Nb(G,p),Z=_.createHref(G);try{c.pushState(q,"",Z)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(Z)}u&&h&&h({action:d,location:_.location,delta:1})}function E(L,k){d="REPLACE";let G=Ep(_.location,L,k);p=g();let q=Nb(G,p),Z=_.createHref(G);c.replaceState(q,"",Z),u&&h&&h({action:d,location:_.location,delta:0})}function j(L){return AC(L)}let _={get action(){return d},get location(){return r(o,c)},listen(L){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Mb,y),h=L,()=>{o.removeEventListener(Mb,y),h=null}},createHref(L){return t(o,L)},createURL:j,encodeLocation(L){let k=j(L);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:x,replace:E,go(L){return c.go(L)}};return _}function AC(r,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ct(a,"No window.location.(origin|href) available to create URL");let l=typeof r=="string"?r:io(r);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=a+l),new URL(l,a)}function tw(r,t,a="/"){return MC(r,t,a,!1)}function MC(r,t,a,l){let o=typeof t=="string"?Di(t):t,u=Cr(o.pathname||"/",a);if(u==null)return null;let c=nw(r);NC(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=UC(u);d=IC(c[h],p,l)}return d}function nw(r,t=[],a=[],l="",o=!1){let u=(c,d,h=o,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(l)&&h)return;ct(g.relativePath.startsWith(l),`Absolute route path "${g.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(l.length)}let y=Tr([l,g.relativePath]),x=a.concat(g);c.children&&c.children.length>0&&(ct(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),nw(c.children,t,x,y,h)),!(c.path==null&&!c.index)&&t.push({path:y,score:BC(y,c.index),routesMeta:x})};return r.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))u(c,d);else for(let p of rw(c.path))u(c,d,!0,p)}),t}function rw(r){let t=r.split("/");if(t.length===0)return[];let[a,...l]=t,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(l.length===0)return o?[u,""]:[u];let c=rw(l.join("/")),d=[];return d.push(...c.map(h=>h===""?u:[u,h].join("/"))),o&&d.push(...c),d.map(h=>r.startsWith("/")&&h===""?"/":h)}function NC(r){r.sort((t,a)=>t.score!==a.score?a.score-t.score:$C(t.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var DC=/^:[\w-]+$/,LC=3,zC=2,PC=1,HC=10,kC=-2,Db=r=>r==="*";function BC(r,t){let a=r.split("/"),l=a.length;return a.some(Db)&&(l+=kC),t&&(l+=zC),a.filter(o=>!Db(o)).reduce((o,u)=>o+(DC.test(u)?LC:u===""?PC:HC),l)}function $C(r,t){return r.length===t.length&&r.slice(0,-1).every((l,o)=>l===t[o])?r[r.length-1]-t[t.length-1]:0}function IC(r,t,a=!1){let{routesMeta:l}=r,o={},u="/",c=[];for(let d=0;d<l.length;++d){let h=l[d],p=d===l.length-1,g=u==="/"?t:t.slice(u.length)||"/",y=uu({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),x=h.route;if(!y&&p&&a&&!l[l.length-1].route.index&&(y=uu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:Tr([u,y.pathname]),pathnameBase:YC(Tr([u,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(u=Tr([u,y.pathnameBase]))}return c}function uu(r,t){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[a,l]=qC(r.path,r.caseSensitive,r.end),o=t.match(a);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((p,{paramName:g,isOptional:y},x)=>{if(g==="*"){let j=d[x]||"";c=u.slice(0,u.length-j.length).replace(/(.)\/+$/,"$1")}const E=d[x];return y&&!E?p[g]=void 0:p[g]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:r}}function qC(r,t=!1,a=!0){xn(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let l=[],o="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(l.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(l.push({paramName:"*"}),o+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":r!==""&&r!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),l]}function UC(r){try{return r.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xn(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),r}}function Cr(r,t){if(t==="/")return r;if(!r.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,l=r.charAt(a);return l&&l!=="/"?null:r.slice(a)||"/"}var aw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,GC=r=>aw.test(r);function VC(r,t="/"){let{pathname:a,search:l="",hash:o=""}=typeof r=="string"?Di(r):r,u;if(a)if(GC(a))u=a;else{if(a.includes("//")){let c=a;a=a.replace(/\/\/+/g,"/"),xn(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${a}`)}a.startsWith("/")?u=Lb(a.substring(1),"/"):u=Lb(a,t)}else u=t;return{pathname:u,search:XC(l),hash:FC(o)}}function Lb(r,t){let a=t.replace(/\/+$/,"").split("/");return r.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Zf(r,t,a,l){return`Cannot include a '${r}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function WC(r){return r.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function iw(r){let t=WC(r);return t.map((a,l)=>l===t.length-1?a.pathname:a.pathnameBase)}function lw(r,t,a,l=!1){let o;typeof r=="string"?o=Di(r):(o={...r},ct(!o.pathname||!o.pathname.includes("?"),Zf("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),Zf("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),Zf("#","search","hash",o)));let u=r===""||o.pathname==="",c=u?"/":o.pathname,d;if(c==null)d=a;else{let y=t.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),y-=1;o.pathname=x.join("/")}d=y>=0?t[y]:"/"}let h=VC(o,d),p=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var Tr=r=>r.join("/").replace(/\/\/+/g,"/"),YC=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),XC=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,FC=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,QC=class{constructor(r,t,a,l=!1){this.status=r,this.statusText=t||"",this.internal=l,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function ZC(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function KC(r){return r.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ow=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sw(r,t){let a=r;if(typeof a!="string"||!aw.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let l=a,o=!1;if(ow)try{let u=new URL(window.location.href),c=a.startsWith("//")?new URL(u.protocol+a):new URL(a),d=Cr(c.pathname,t);c.origin===u.origin&&d!=null?a=d+c.search+c.hash:o=!0}catch{xn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uw=["POST","PUT","PATCH","DELETE"];new Set(uw);var JC=["GET",...uw];new Set(JC);var Li=w.createContext(null);Li.displayName="DataRouter";var wu=w.createContext(null);wu.displayName="DataRouterState";var e2=w.createContext(!1),cw=w.createContext({isTransitioning:!1});cw.displayName="ViewTransition";var t2=w.createContext(new Map);t2.displayName="Fetchers";var n2=w.createContext(null);n2.displayName="Await";var Rn=w.createContext(null);Rn.displayName="Navigation";var zi=w.createContext(null);zi.displayName="Location";var Ln=w.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var Fp=w.createContext(null);Fp.displayName="RouteError";var fw="REACT_ROUTER_ERROR",r2="REDIRECT",a2="ROUTE_ERROR_RESPONSE";function i2(r){if(r.startsWith(`${fw}:${r2}:{`))try{let t=JSON.parse(r.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function l2(r){if(r.startsWith(`${fw}:${a2}:{`))try{let t=JSON.parse(r.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new QC(t.status,t.statusText,t.data)}catch{}}function o2(r,{relative:t}={}){ct(xo(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:l}=w.useContext(Rn),{hash:o,pathname:u,search:c}=Eo(r,{relative:t}),d=u;return a!=="/"&&(d=u==="/"?a:Tr([a,u])),l.createHref({pathname:d,search:c,hash:o})}function xo(){return w.useContext(zi)!=null}function Jn(){return ct(xo(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(zi).location}function dw(){return w.useContext(zi).navigationType}var hw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pw(r){w.useContext(Rn).static||w.useLayoutEffect(r)}function Qp(){let{isDataRoute:r}=w.useContext(Ln);return r?w2():s2()}function s2(){ct(xo(),"useNavigate() may be used only in the context of a <Router> component.");let r=w.useContext(Li),{basename:t,navigator:a}=w.useContext(Rn),{matches:l}=w.useContext(Ln),{pathname:o}=Jn(),u=JSON.stringify(iw(l)),c=w.useRef(!1);return pw(()=>{c.current=!0}),w.useCallback((h,p={})=>{if(xn(c.current,hw),!c.current)return;if(typeof h=="number"){a.go(h);return}let g=lw(h,JSON.parse(u),o,p.relative==="path");r==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Tr([t,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[t,a,u,o,r])}var mw=w.createContext(null);function Oo(){return w.useContext(mw)}function u2(r){let t=w.useContext(Ln).outlet;return w.useMemo(()=>t&&w.createElement(mw.Provider,{value:r},t),[t,r])}function To(){let{matches:r}=w.useContext(Ln),t=r[r.length-1];return t?t.params:{}}function Eo(r,{relative:t}={}){let{matches:a}=w.useContext(Ln),{pathname:l}=Jn(),o=JSON.stringify(iw(a));return w.useMemo(()=>lw(r,JSON.parse(o),l,t==="path"),[r,o,l,t])}function c2(r,t){return gw(r,t)}function gw(r,t,a,l,o){var G;ct(xo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=w.useContext(Rn),{matches:c}=w.useContext(Ln),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let q=y&&y.path||"";yw(p,!y||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let x=Jn(),E;if(t){let q=typeof t=="string"?Di(t):t;ct(g==="/"||((G=q.pathname)==null?void 0:G.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${q.pathname}" was given in the \`location\` prop.`),E=q}else E=x;let j=E.pathname||"/",_=j;if(g!=="/"){let q=g.replace(/^\//,"").split("/");_="/"+j.replace(/^\//,"").split("/").slice(q.length).join("/")}let L=tw(r,{pathname:_});xn(y||L!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),xn(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=m2(L&&L.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:Tr([g,u.encodeLocation?u.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?g:Tr([g,u.encodeLocation?u.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),c,a,l,o);return t&&k?w.createElement(zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},k):k}function f2(){let r=S2(),t=ZC(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),a=r instanceof Error?r.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",r),c=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:u},"ErrorBoundary")," or"," ",w.createElement("code",{style:u},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),a?w.createElement("pre",{style:o},a):null,c)}var d2=w.createElement(f2,null),vw=class extends w.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){this.props.onError?this.props.onError(r,t):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const a=l2(r.digest);a&&(r=a)}let t=r!==void 0?w.createElement(Ln.Provider,{value:this.props.routeContext},w.createElement(Fp.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?w.createElement(h2,{error:r},t):t}};vw.contextType=e2;var Kf=new WeakMap;function h2({children:r,error:t}){let{basename:a}=w.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let l=i2(t.digest);if(l){let o=Kf.get(t);if(o)throw o;let u=sw(l.location,a);if(ow&&!Kf.get(t))if(u.isExternal||l.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:l.replace}));throw Kf.set(t,c),c}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return r}function p2({routeContext:r,match:t,children:a}){let l=w.useContext(Li);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Ln.Provider,{value:r},a)}function m2(r,t=[],a=null,l=null,o=null){if(r==null){if(!a)return null;if(a.errors)r=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)r=a.matches;else return null}let u=r,c=a==null?void 0:a.errors;if(c!=null){let g=u.findIndex(y=>y.route.id&&(c==null?void 0:c[y.route.id])!==void 0);ct(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(a)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=g),y.route.id){let{loaderData:x,errors:E}=a,j=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!E||E[y.route.id]===void 0);if(y.route.lazy||j){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}let p=a&&l?(g,y)=>{var x,E;l(g,{location:a.location,params:((E=(x=a.matches)==null?void 0:x[0])==null?void 0:E.params)??{},unstable_pattern:KC(a.matches),errorInfo:y})}:void 0;return u.reduceRight((g,y,x)=>{let E,j=!1,_=null,L=null;a&&(E=c&&y.route.id?c[y.route.id]:void 0,_=y.route.errorElement||d2,d&&(h<0&&x===0?(yw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,L=null):h===x&&(j=!0,L=y.route.hydrateFallbackElement||null)));let k=t.concat(u.slice(0,x+1)),G=()=>{let q;return E?q=_:j?q=L:y.route.Component?q=w.createElement(y.route.Component,null):y.route.element?q=y.route.element:q=g,w.createElement(p2,{match:y,routeContext:{outlet:g,matches:k,isDataRoute:a!=null},children:q})};return a&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?w.createElement(vw,{location:a.location,revalidation:a.revalidation,component:_,error:E,children:G(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:p}):G()},null)}function Zp(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function g2(r){let t=w.useContext(Li);return ct(t,Zp(r)),t}function v2(r){let t=w.useContext(wu);return ct(t,Zp(r)),t}function y2(r){let t=w.useContext(Ln);return ct(t,Zp(r)),t}function Kp(r){let t=y2(r),a=t.matches[t.matches.length-1];return ct(a.route.id,`${r} can only be used on routes that contain a unique "id"`),a.route.id}function b2(){return Kp("useRouteId")}function S2(){var l;let r=w.useContext(Fp),t=v2("useRouteError"),a=Kp("useRouteError");return r!==void 0?r:(l=t.errors)==null?void 0:l[a]}function w2(){let{router:r}=g2("useNavigate"),t=Kp("useNavigate"),a=w.useRef(!1);return pw(()=>{a.current=!0}),w.useCallback(async(o,u={})=>{xn(a.current,hw),a.current&&(typeof o=="number"?await r.navigate(o):await r.navigate(o,{fromRouteId:t,...u}))},[r,t])}var zb={};function yw(r,t,a){!t&&!zb[r]&&(zb[r]=!0,xn(!1,a))}w.memo(x2);function x2({routes:r,future:t,state:a,onError:l}){return gw(r,void 0,a,l,t)}function Jp(r){return u2(r.context)}function $t(r){ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function O2({basename:r="/",children:t=null,location:a,navigationType:l="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){ct(!xo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:d,navigator:o,static:u,unstable_useTransitions:c,future:{}}),[d,o,u,c]);typeof a=="string"&&(a=Di(a));let{pathname:p="/",search:g="",hash:y="",state:x=null,key:E="default"}=a,j=w.useMemo(()=>{let _=Cr(p,d);return _==null?null:{location:{pathname:_,search:g,hash:y,state:x,key:E},navigationType:l}},[d,p,g,y,x,E,l]);return xn(j!=null,`<Router basename="${d}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:w.createElement(Rn.Provider,{value:h},w.createElement(zi.Provider,{children:t,value:j}))}function T2({children:r,location:t}){return c2(Cp(r),t)}function Cp(r,t=[]){let a=[];return w.Children.forEach(r,(l,o)=>{if(!w.isValidElement(l))return;let u=[...t,o];if(l.type===w.Fragment){a.push.apply(a,Cp(l.props.children,u));return}ct(l.type===$t,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=Cp(l.props.children,u)),a.push(c)}),a}var au="get",iu="application/x-www-form-urlencoded";function xu(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function E2(r){return xu(r)&&r.tagName.toLowerCase()==="button"}function C2(r){return xu(r)&&r.tagName.toLowerCase()==="form"}function R2(r){return xu(r)&&r.tagName.toLowerCase()==="input"}function _2(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function j2(r,t){return r.button===0&&(!t||t==="_self")&&!_2(r)}function Rp(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((t,a)=>{let l=r[a];return t.concat(Array.isArray(l)?l.map(o=>[a,o]):[[a,l]])},[]))}function A2(r,t){let a=Rp(r);return t&&t.forEach((l,o)=>{a.has(o)||t.getAll(o).forEach(u=>{a.append(o,u)})}),a}var Qs=null;function M2(){if(Qs===null)try{new FormData(document.createElement("form"),0),Qs=!1}catch{Qs=!0}return Qs}var N2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jf(r){return r!=null&&!N2.has(r)?(xn(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${iu}"`),null):r}function D2(r,t){let a,l,o,u,c;if(C2(r)){let d=r.getAttribute("action");l=d?Cr(d,t):null,a=r.getAttribute("method")||au,o=Jf(r.getAttribute("enctype"))||iu,u=new FormData(r)}else if(E2(r)||R2(r)&&(r.type==="submit"||r.type==="image")){let d=r.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=r.getAttribute("formaction")||d.getAttribute("action");if(l=h?Cr(h,t):null,a=r.getAttribute("formmethod")||d.getAttribute("method")||au,o=Jf(r.getAttribute("formenctype"))||Jf(d.getAttribute("enctype"))||iu,u=new FormData(d,r),!M2()){let{name:p,type:g,value:y}=r;if(g==="image"){let x=p?`${p}.`:"";u.append(`${x}x`,"0"),u.append(`${x}y`,"0")}else p&&u.append(p,y)}}else{if(xu(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=au,l=null,o=iu,c=r}return u&&o==="text/plain"&&(c=u,u=void 0),{action:l,method:a.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function em(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function L2(r,t,a,l){let o=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return a?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:t&&Cr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${l}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${l}`,o}async function z2(r,t){if(r.id in t)return t[r.id];try{let a=await import(r.module);return t[r.id]=a,a}catch(a){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function P2(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function H2(r,t,a){let l=await Promise.all(r.map(async o=>{let u=t.routes[o.route.id];if(u){let c=await z2(u,a);return c.links?c.links():[]}return[]}));return I2(l.flat(1).filter(P2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Pb(r,t,a,l,o,u){let c=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,d=(h,p)=>{var g;return a[p].pathname!==h.pathname||((g=a[p].route.path)==null?void 0:g.endsWith("*"))&&a[p].params["*"]!==h.params["*"]};return u==="assets"?t.filter((h,p)=>c(h,p)||d(h,p)):u==="data"?t.filter((h,p)=>{var y;let g=l.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=a[0])==null?void 0:y.params)||{},nextUrl:new URL(r,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function k2(r,t,{includeHydrateFallback:a}={}){return B2(r.map(l=>{let o=t.routes[l.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function B2(r){return[...new Set(r)]}function $2(r){let t={},a=Object.keys(r).sort();for(let l of a)t[l]=r[l];return t}function I2(r,t){let a=new Set;return new Set(t),r.reduce((l,o)=>{let u=JSON.stringify($2(o));return a.has(u)||(a.add(u),l.push({key:u,link:o})),l},[])}function bw(){let r=w.useContext(Li);return em(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function q2(){let r=w.useContext(wu);return em(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var tm=w.createContext(void 0);tm.displayName="FrameworkContext";function Sw(){let r=w.useContext(tm);return em(r,"You must render this element inside a <HydratedRouter> element"),r}function U2(r,t){let a=w.useContext(tm),[l,o]=w.useState(!1),[u,c]=w.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:y}=t,x=w.useRef(null);w.useEffect(()=>{if(r==="render"&&c(!0),r==="viewport"){let _=k=>{k.forEach(G=>{c(G.isIntersecting)})},L=new IntersectionObserver(_,{threshold:.5});return x.current&&L.observe(x.current),()=>{L.disconnect()}}},[r]),w.useEffect(()=>{if(l){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[l]);let E=()=>{o(!0)},j=()=>{o(!1),c(!1)};return a?r!=="intent"?[u,x,{}]:[u,x,{onFocus:Il(d,E),onBlur:Il(h,j),onMouseEnter:Il(p,E),onMouseLeave:Il(g,j),onTouchStart:Il(y,E)}]:[!1,x,{}]}function Il(r,t){return a=>{r&&r(a),a.defaultPrevented||t(a)}}function G2({page:r,...t}){let{router:a}=bw(),l=w.useMemo(()=>tw(a.routes,r,a.basename),[a.routes,r,a.basename]);return l?w.createElement(W2,{page:r,matches:l,...t}):null}function V2(r){let{manifest:t,routeModules:a}=Sw(),[l,o]=w.useState([]);return w.useEffect(()=>{let u=!1;return H2(r,t,a).then(c=>{u||o(c)}),()=>{u=!0}},[r,t,a]),l}function W2({page:r,matches:t,...a}){let l=Jn(),{future:o,manifest:u,routeModules:c}=Sw(),{basename:d}=bw(),{loaderData:h,matches:p}=q2(),g=w.useMemo(()=>Pb(r,t,p,u,l,"data"),[r,t,p,u,l]),y=w.useMemo(()=>Pb(r,t,p,u,l,"assets"),[r,t,p,u,l]),x=w.useMemo(()=>{if(r===l.pathname+l.search+l.hash)return[];let _=new Set,L=!1;if(t.forEach(G=>{var Z;let q=u.routes[G.route.id];!q||!q.hasLoader||(!g.some(N=>N.route.id===G.route.id)&&G.route.id in h&&((Z=c[G.route.id])!=null&&Z.shouldRevalidate)||q.hasClientLoader?L=!0:_.add(G.route.id))}),_.size===0)return[];let k=L2(r,d,o.unstable_trailingSlashAwareDataRequests,"data");return L&&_.size>0&&k.searchParams.set("_routes",t.filter(G=>_.has(G.route.id)).map(G=>G.route.id).join(",")),[k.pathname+k.search]},[d,o.unstable_trailingSlashAwareDataRequests,h,l,u,g,t,r,c]),E=w.useMemo(()=>k2(y,u),[y,u]),j=V2(y);return w.createElement(w.Fragment,null,x.map(_=>w.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),E.map(_=>w.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),j.map(({key:_,link:L})=>w.createElement("link",{key:_,nonce:a.nonce,...L})))}function Y2(...r){return t=>{r.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var X2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{X2&&(window.__reactRouterVersion="7.12.0")}catch{}function F2({basename:r,children:t,unstable_useTransitions:a,window:l}){let o=w.useRef();o.current==null&&(o.current=RC({window:l,v5Compat:!0}));let u=o.current,[c,d]=w.useState({action:u.action,location:u.location}),h=w.useCallback(p=>{a===!1?d(p):w.startTransition(()=>d(p))},[a]);return w.useLayoutEffect(()=>u.listen(h),[u,h]),w.createElement(O2,{basename:r,children:t,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:a})}var ww=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,on=w.forwardRef(function({onClick:t,discover:a="render",prefetch:l="none",relative:o,reloadDocument:u,replace:c,state:d,target:h,to:p,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:x,...E},j){let{basename:_,unstable_useTransitions:L}=w.useContext(Rn),k=typeof p=="string"&&ww.test(p),G=sw(p,_);p=G.to;let q=o2(p,{relative:o}),[Z,N,M]=U2(l,E),P=K2(p,{replace:c,state:d,target:h,preventScrollReset:g,relative:o,viewTransition:y,unstable_defaultShouldRevalidate:x,unstable_useTransitions:L});function Q(T){t&&t(T),T.defaultPrevented||P(T)}let D=w.createElement("a",{...E,...M,href:G.absoluteURL||q,onClick:G.isExternal||u?t:Q,ref:Y2(j,N),target:h,"data-discover":!k&&a==="render"?"true":void 0});return Z&&!k?w.createElement(w.Fragment,null,D,w.createElement(G2,{page:q})):D});on.displayName="Link";var cu=w.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:l="",end:o=!1,style:u,to:c,viewTransition:d,children:h,...p},g){let y=Eo(c,{relative:p.relative}),x=Jn(),E=w.useContext(wu),{navigator:j,basename:_}=w.useContext(Rn),L=E!=null&&rR(y)&&d===!0,k=j.encodeLocation?j.encodeLocation(y).pathname:y.pathname,G=x.pathname,q=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;a||(G=G.toLowerCase(),q=q?q.toLowerCase():null,k=k.toLowerCase()),q&&_&&(q=Cr(q,_)||q);const Z=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let N=G===k||!o&&G.startsWith(k)&&G.charAt(Z)==="/",M=q!=null&&(q===k||!o&&q.startsWith(k)&&q.charAt(k.length)==="/"),P={isActive:N,isPending:M,isTransitioning:L},Q=N?t:void 0,D;typeof l=="function"?D=l(P):D=[l,N?"active":null,M?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let T=typeof u=="function"?u(P):u;return w.createElement(on,{...p,"aria-current":Q,className:D,ref:g,style:T,to:c,viewTransition:d},typeof h=="function"?h(P):h)});cu.displayName="NavLink";var Q2=w.forwardRef(({discover:r="render",fetcherKey:t,navigate:a,reloadDocument:l,replace:o,state:u,method:c=au,action:d,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:x,...E},j)=>{let{unstable_useTransitions:_}=w.useContext(Rn),L=tR(),k=nR(d,{relative:p}),G=c.toLowerCase()==="get"?"get":"post",q=typeof d=="string"&&ww.test(d),Z=N=>{if(h&&h(N),N.defaultPrevented)return;N.preventDefault();let M=N.nativeEvent.submitter,P=(M==null?void 0:M.getAttribute("formmethod"))||c,Q=()=>L(M||N.currentTarget,{fetcherKey:t,method:P,navigate:a,replace:o,state:u,relative:p,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:x});_&&a!==!1?w.startTransition(()=>Q()):Q()};return w.createElement("form",{ref:j,method:G,action:k,onSubmit:l?h:Z,...E,"data-discover":!q&&r==="render"?"true":void 0})});Q2.displayName="Form";function Z2(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xw(r){let t=w.useContext(Li);return ct(t,Z2(r)),t}function K2(r,{target:t,replace:a,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h}={}){let p=Qp(),g=Jn(),y=Eo(r,{relative:u});return w.useCallback(x=>{if(j2(x,t)){x.preventDefault();let E=a!==void 0?a:io(g)===io(y),j=()=>p(r,{replace:E,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d});h?w.startTransition(()=>j()):j()}},[g,p,y,a,l,t,r,o,u,c,d,h])}function Co(r){xn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(Rp(r)),a=w.useRef(!1),l=Jn(),o=w.useMemo(()=>A2(l.search,a.current?null:t.current),[l.search]),u=Qp(),c=w.useCallback((d,h)=>{const p=Rp(typeof d=="function"?d(new URLSearchParams(o)):d);a.current=!0,u("?"+p,h)},[u,o]);return[o,c]}var J2=0,eR=()=>`__${String(++J2)}__`;function tR(){let{router:r}=xw("useSubmit"),{basename:t}=w.useContext(Rn),a=b2(),l=r.fetch,o=r.navigate;return w.useCallback(async(u,c={})=>{let{action:d,method:h,encType:p,formData:g,body:y}=D2(u,t);if(c.navigate===!1){let x=c.fetcherKey||eR();await l(x,a,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||h,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||h,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,o,t,a])}function nR(r,{relative:t}={}){let{basename:a}=w.useContext(Rn),l=w.useContext(Ln);ct(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),u={...Eo(r||".",{relative:t})},c=Jn();if(r==null){u.search=c.search;let d=new URLSearchParams(u.search),h=d.getAll("index");if(h.some(g=>g==="")){d.delete("index"),h.filter(y=>y).forEach(y=>d.append("index",y));let g=d.toString();u.search=g?`?${g}`:""}}return(!r||r===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Tr([a,u.pathname])),io(u)}function rR(r,{relative:t}={}){let a=w.useContext(cw);ct(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=xw("useViewTransitionState"),o=Eo(r,{relative:t});if(!a.isTransitioning)return!1;let u=Cr(a.currentLocation.pathname,l)||a.currentLocation.pathname,c=Cr(a.nextLocation.pathname,l)||a.nextLocation.pathname;return uu(o.pathname,c)!=null||uu(o.pathname,u)!=null}var Xn,Jl,_p;class aR{constructor(){Sn(this,Xn)}async getCampaignList(t){const a=new URL("/api/campaigns",window.location.href);return t.sortBy&&a.searchParams.append("sort_by",t.sortBy),aa(this,Xn,Jl).call(this,a,t),await(await fetch(a.toString())).json()}async getContentList(t){const{campaign:a,filter:l}=t,o=t.type==="post"?"posts":t.type==="product"?"products":"content",u=new URL(`/api/campaigns/${a.id}/${o}`,window.location.href);return t.collectionId&&u.searchParams.set("collection_id",t.collectionId),aa(this,Xn,_p).call(this,u,l),aa(this,Xn,Jl).call(this,u,t),await(await fetch(u.toString())).json()}async getCampaign(t){const{withCounts:a=!1}=t;let l;return t.id!==void 0?l=new URL(`/api/campaigns/${t.id}`,window.location.href):(l=new URL(`/api/campaigns/${encodeURIComponent(t.vanity)}`,window.location.href),l.searchParams.append("by_vanity","true")),l.searchParams.append("with_counts",a?"true":"false"),await(await fetch(l.toString())).json()}async getContentFilterOptions(t,a){const l=typeof t=="string"?t:t.id,o=a==="post"?"posts":"products",u=new URL(`/api/campaigns/${l}/${o}/filter_options`,window.location.href);return await(await fetch(u.toString())).json()}async getPost(t,a=""){const l=new URL(`/api/posts/${t}`,window.location.href);return a&&(l.search=a),await(await fetch(l.toString())).json()}async getProduct(t){const a=new URL(`/api/products/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollection(t){const a=new URL(`/api/collections/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollectionList(t){const{campaign:a,search:l,sortBy:o}=t,u=typeof a=="string"?a:a.id,c=new URL(`/api/campaigns/${u}/collections`,window.location.href);return l&&c.searchParams.append("search",l),o&&c.searchParams.append("sort_by",o),aa(this,Xn,Jl).call(this,c,t),await(await fetch(c.toString())).json()}async getPostTagList(t){const{campaign:a}=t,l=typeof a=="string"?a:a.id,o=new URL(`/api/campaigns/${l}/post_tags`,window.location.href);return await(await fetch(o.toString())).json()}async getBrowseSettings(){const t=new URL("/api/settings/browse",window.location.href);return await(await fetch(t.toString())).json()}async getBrowseSettingOptions(){const t=new URL("/api/settings/browse/options",window.location.href);return await(await fetch(t.toString())).json()}async getMediaList(t){const{campaign:a,filter:l}=t,o=new URL(`/api/campaigns/${a.id}/media`,window.location.href);return aa(this,Xn,_p).call(this,o,l),aa(this,Xn,Jl).call(this,o,t),await(await fetch(o.toString())).json()}async getMediaFilterOptions(t){const a=typeof t=="string"?t:t.id,l=new URL(`/api/campaigns/${a}/media/filter_options`,window.location.href);return await(await fetch(l.toString())).json()}saveBrowseSettings(t){return fetch("/api/settings/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}}Xn=new WeakSet,Jl=function(t,a){a.page&&t.searchParams.append("p",String(a.page)),t.searchParams.append("n",String(a.itemsPerPage))},_p=function(t,a){a.options.forEach(({searchParam:l,value:o})=>{o===null?t.searchParams.delete(l):t.searchParams.append(l,o)})};const Ow=w.createContext({});function iR(r){const{children:t}=r;return b.jsx(Ow.Provider,{value:{api:new aR},children:t})}const er=()=>w.useContext(Ow);var lR=Function.prototype.toString,ed=Object.create,oR=Object.prototype.toString,sR=function(){function r(){this._keys=[],this._values=[]}return r.prototype.has=function(t){return!!~this._keys.indexOf(t)},r.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},r.prototype.set=function(t,a){this._keys.push(t),this._values.push(a)},r}();function uR(){return new sR}function cR(){return new WeakMap}var fR=typeof WeakMap<"u"?cR:uR;function nm(r){if(!r)return ed(null);var t=r.constructor;if(t===Object)return r===Object.prototype?{}:ed(r);if(t&&~lR.call(t).indexOf("[native code]"))try{return new t}catch{}return ed(r)}function dR(r){var t="";return r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.unicode&&(t+="u"),r.sticky&&(t+="y"),t}function hR(r){return r.flags}var pR=/test/g.flags==="g"?hR:dR;function Tw(r){var t=oR.call(r);return t.substring(8,t.length-1)}function mR(r){return r[Symbol.toStringTag]||Tw(r)}var gR=typeof Symbol<"u"?mR:Tw,vR=Object.defineProperty,yR=Object.getOwnPropertyDescriptor,Ew=Object.getOwnPropertyNames,rm=Object.getOwnPropertySymbols,Cw=Object.prototype,Rw=Cw.hasOwnProperty,bR=Cw.propertyIsEnumerable,_w=typeof rm=="function";function SR(r){return Ew(r).concat(rm(r))}var wR=_w?SR:Ew;function Ou(r,t,a){for(var l=wR(r),o=0,u=l.length,c=void 0,d=void 0;o<u;++o)if(c=l[o],!(c==="callee"||c==="caller")){if(d=yR(r,c),!d){t[c]=a.copier(r[c],a);continue}!d.get&&!d.set&&(d.value=a.copier(d.value,a));try{vR(t,c,d)}catch{t[c]=d.value}}return t}function xR(r,t){var a=new t.Constructor;t.cache.set(r,a);for(var l=0,o=r.length;l<o;++l)a[l]=t.copier(r[l],t);return a}function OR(r,t){var a=new t.Constructor;return t.cache.set(r,a),Ou(r,a,t)}function jw(r,t){return r.slice(0)}function TR(r,t){return r.slice(0,r.size,r.type)}function ER(r,t){return new t.Constructor(jw(r.buffer))}function CR(r,t){return new t.Constructor(r.getTime())}function Aw(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l,o){a.set(o,t.copier(l,t))}),a}function RR(r,t){return Ou(r,Aw(r,t),t)}function _R(r,t){var a=nm(t.prototype);t.cache.set(r,a);for(var l in r)Rw.call(r,l)&&(a[l]=t.copier(r[l],t));return a}function jR(r,t){var a=nm(t.prototype);t.cache.set(r,a);for(var l in r)Rw.call(r,l)&&(a[l]=t.copier(r[l],t));for(var o=rm(r),u=0,c=o.length,d=void 0;u<c;++u)d=o[u],bR.call(r,d)&&(a[d]=t.copier(r[d],t));return a}var AR=_w?jR:_R;function MR(r,t){var a=nm(t.prototype);return t.cache.set(r,a),Ou(r,a,t)}function td(r,t){return new t.Constructor(r.valueOf())}function NR(r,t){var a=new t.Constructor(r.source,pR(r));return a.lastIndex=r.lastIndex,a}function lu(r,t){return r}function Mw(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l){a.add(t.copier(l,t))}),a}function DR(r,t){return Ou(r,Mw(r,t),t)}var LR=Array.isArray,am=Object.assign,zR=Object.getPrototypeOf||function(r){return r.__proto__},Nw={array:xR,arrayBuffer:jw,blob:TR,dataView:ER,date:CR,error:lu,map:Aw,object:AR,regExp:NR,set:Mw},PR=am({},Nw,{array:OR,map:RR,object:MR,set:DR});function HR(r){return{Arguments:r.object,Array:r.array,ArrayBuffer:r.arrayBuffer,Blob:r.blob,Boolean:td,DataView:r.dataView,Date:r.date,Error:r.error,Float32Array:r.arrayBuffer,Float64Array:r.arrayBuffer,Int8Array:r.arrayBuffer,Int16Array:r.arrayBuffer,Int32Array:r.arrayBuffer,Map:r.map,Number:td,Object:r.object,Promise:lu,RegExp:r.regExp,Set:r.set,String:td,WeakMap:lu,WeakSet:lu,Uint8Array:r.arrayBuffer,Uint8ClampedArray:r.arrayBuffer,Uint16Array:r.arrayBuffer,Uint32Array:r.arrayBuffer,Uint64Array:r.arrayBuffer}}function Dw(r){var t=am({},Nw,r),a=HR(t),l=a.Array,o=a.Object;function u(c,d){if(d.prototype=d.Constructor=void 0,!c||typeof c!="object")return c;if(d.cache.has(c))return d.cache.get(c);if(d.prototype=zR(c),d.Constructor=d.prototype&&d.prototype.constructor,!d.Constructor||d.Constructor===Object)return o(c,d);if(LR(c))return l(c,d);var h=a[gR(c)];return h?h(c,d):typeof c.then=="function"?c:o(c,d)}return function(d){return u(d,{Constructor:void 0,cache:fR(),copier:u,prototype:void 0})}}function kR(r){return Dw(am({},PR,r))}kR({});var Er=Dw({}),nd,Hb;function Lw(){if(Hb)return nd;Hb=1;var r=Object.prototype.toString;return nd=function(a){var l=r.call(a),o=l==="[object Arguments]";return o||(o=l!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&r.call(a.callee)==="[object Function]"),o},nd}var rd,kb;function BR(){if(kb)return rd;kb=1;var r;if(!Object.keys){var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Lw(),o=Object.prototype.propertyIsEnumerable,u=!o.call({toString:null},"toString"),c=o.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(x){var E=x.constructor;return E&&E.prototype===x},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var x in window)try{if(!p["$"+x]&&t.call(window,x)&&window[x]!==null&&typeof window[x]=="object")try{h(window[x])}catch{return!0}}catch{return!0}return!1}(),y=function(x){if(typeof window>"u"||!g)return h(x);try{return h(x)}catch{return!1}};r=function(E){var j=E!==null&&typeof E=="object",_=a.call(E)==="[object Function]",L=l(E),k=j&&a.call(E)==="[object String]",G=[];if(!j&&!_&&!L)throw new TypeError("Object.keys called on a non-object");var q=c&&_;if(k&&E.length>0&&!t.call(E,0))for(var Z=0;Z<E.length;++Z)G.push(String(Z));if(L&&E.length>0)for(var N=0;N<E.length;++N)G.push(String(N));else for(var M in E)!(q&&M==="prototype")&&t.call(E,M)&&G.push(String(M));if(u)for(var P=y(E),Q=0;Q<d.length;++Q)!(P&&d[Q]==="constructor")&&t.call(E,d[Q])&&G.push(d[Q]);return G}}return rd=r,rd}var ad,Bb;function im(){if(Bb)return ad;Bb=1;var r=Array.prototype.slice,t=Lw(),a=Object.keys,l=a?function(c){return a(c)}:BR(),o=Object.keys;return l.shim=function(){if(Object.keys){var c=function(){var d=Object.keys(arguments);return d&&d.length===arguments.length}(1,2);c||(Object.keys=function(h){return t(h)?o(r.call(h)):o(h)})}else Object.keys=l;return Object.keys||l},ad=l,ad}var id,$b;function zw(){return $b||($b=1,id=Object),id}var ld,Ib;function $R(){return Ib||(Ib=1,ld=Error),ld}var od,qb;function IR(){return qb||(qb=1,od=EvalError),od}var sd,Ub;function qR(){return Ub||(Ub=1,sd=RangeError),sd}var ud,Gb;function UR(){return Gb||(Gb=1,ud=ReferenceError),ud}var cd,Vb;function GR(){return Vb||(Vb=1,cd=SyntaxError),cd}var fd,Wb;function Pi(){return Wb||(Wb=1,fd=TypeError),fd}var dd,Yb;function VR(){return Yb||(Yb=1,dd=URIError),dd}var hd,Xb;function WR(){return Xb||(Xb=1,hd=Math.abs),hd}var pd,Fb;function YR(){return Fb||(Fb=1,pd=Math.floor),pd}var md,Qb;function XR(){return Qb||(Qb=1,md=Math.max),md}var gd,Zb;function FR(){return Zb||(Zb=1,gd=Math.min),gd}var vd,Kb;function QR(){return Kb||(Kb=1,vd=Math.pow),vd}var yd,Jb;function ZR(){return Jb||(Jb=1,yd=Math.round),yd}var bd,e0;function KR(){return e0||(e0=1,bd=Number.isNaN||function(t){return t!==t}),bd}var Sd,t0;function JR(){if(t0)return Sd;t0=1;var r=KR();return Sd=function(a){return r(a)||a===0?a:a<0?-1:1},Sd}var wd,n0;function e_(){return n0||(n0=1,wd=Object.getOwnPropertyDescriptor),wd}var xd,r0;function Ro(){if(r0)return xd;r0=1;var r=e_();if(r)try{r([],"length")}catch{r=null}return xd=r,xd}var Od,a0;function t_(){if(a0)return Od;a0=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Od=r,Od}var Td,i0;function Tu(){return i0||(i0=1,Td=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var o=42;t[a]=o;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,a);if(d.value!==o||d.enumerable!==!0)return!1}return!0}),Td}var Ed,l0;function lm(){if(l0)return Ed;l0=1;var r=typeof Symbol<"u"&&Symbol,t=Tu();return Ed=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Ed}var Cd,o0;function Pw(){return o0||(o0=1,Cd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Cd}var Rd,s0;function Hw(){if(s0)return Rd;s0=1;var r=zw();return Rd=r.getPrototypeOf||null,Rd}var _d,u0;function n_(){if(u0)return _d;u0=1;var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,a=Math.max,l="[object Function]",o=function(h,p){for(var g=[],y=0;y<h.length;y+=1)g[y]=h[y];for(var x=0;x<p.length;x+=1)g[x+h.length]=p[x];return g},u=function(h,p){for(var g=[],y=p,x=0;y<h.length;y+=1,x+=1)g[x]=h[y];return g},c=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};return _d=function(h){var p=this;if(typeof p!="function"||t.apply(p)!==l)throw new TypeError(r+p);for(var g=u(arguments,1),y,x=function(){if(this instanceof y){var k=p.apply(this,o(g,arguments));return Object(k)===k?k:this}return p.apply(h,o(g,arguments))},E=a(0,p.length-g.length),j=[],_=0;_<E;_++)j[_]="$"+_;if(y=Function("binder","return function ("+c(j,",")+"){ return binder.apply(this,arguments); }")(x),p.prototype){var L=function(){};L.prototype=p.prototype,y.prototype=new L,L.prototype=null}return y},_d}var jd,c0;function _o(){if(c0)return jd;c0=1;var r=n_();return jd=Function.prototype.bind||r,jd}var Ad,f0;function om(){return f0||(f0=1,Ad=Function.prototype.call),Ad}var Md,d0;function kw(){return d0||(d0=1,Md=Function.prototype.apply),Md}var Nd,h0;function r_(){return h0||(h0=1,Nd=typeof Reflect<"u"&&Reflect&&Reflect.apply),Nd}var Dd,p0;function a_(){if(p0)return Dd;p0=1;var r=_o(),t=kw(),a=om(),l=r_();return Dd=l||r.call(a,t),Dd}var Ld,m0;function Bw(){if(m0)return Ld;m0=1;var r=_o(),t=Pi(),a=om(),l=a_();return Ld=function(u){if(u.length<1||typeof u[0]!="function")throw new t("a function is required");return l(r,a,u)},Ld}var zd,g0;function i_(){if(g0)return zd;g0=1;var r=Bw(),t=Ro(),a;try{a=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var l=!!a&&t&&t(Object.prototype,"__proto__"),o=Object,u=o.getPrototypeOf;return zd=l&&typeof l.get=="function"?r([l.get]):typeof u=="function"?function(d){return u(d==null?d:o(d))}:!1,zd}var Pd,v0;function l_(){if(v0)return Pd;v0=1;var r=Pw(),t=Hw(),a=i_();return Pd=r?function(o){return r(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:a?function(o){return a(o)}:null,Pd}var Hd,y0;function $w(){if(y0)return Hd;y0=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,a=_o();return Hd=a.call(r,t),Hd}var kd,b0;function un(){if(b0)return kd;b0=1;var r,t=zw(),a=$R(),l=IR(),o=qR(),u=UR(),c=GR(),d=Pi(),h=VR(),p=WR(),g=YR(),y=XR(),x=FR(),E=QR(),j=ZR(),_=JR(),L=Function,k=function(me){try{return L('"use strict"; return ('+me+").constructor;")()}catch{}},G=Ro(),q=t_(),Z=function(){throw new d},N=G?function(){try{return arguments.callee,Z}catch{try{return G(arguments,"callee").get}catch{return Z}}}():Z,M=lm()(),P=l_(),Q=Hw(),D=Pw(),T=kw(),F=om(),$={},I=typeof Uint8Array>"u"||!P?r:P(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":M&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&P?P(P([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M||!P?r:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":G,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M||!P?r:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&P?P(""[Symbol.iterator]()):r,"%Symbol%":M?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":N,"%TypedArray%":I,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":F,"%Function.prototype.apply%":T,"%Object.defineProperty%":q,"%Object.getPrototypeOf%":Q,"%Math.abs%":p,"%Math.floor%":g,"%Math.max%":y,"%Math.min%":x,"%Math.pow%":E,"%Math.round%":j,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(P)try{null.error}catch(me){var U=P(P(me));B["%Error.prototype%"]=U}var z=function me(pe){var ve;if(pe==="%AsyncFunction%")ve=k("async function () {}");else if(pe==="%GeneratorFunction%")ve=k("function* () {}");else if(pe==="%AsyncGeneratorFunction%")ve=k("async function* () {}");else if(pe==="%AsyncGenerator%"){var he=me("%AsyncGeneratorFunction%");he&&(ve=he.prototype)}else if(pe==="%AsyncIteratorPrototype%"){var ge=me("%AsyncGenerator%");ge&&P&&(ve=P(ge.prototype))}return B[pe]=ve,ve},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=_o(),R=$w(),v=te.call(F,Array.prototype.concat),C=te.call(T,Array.prototype.splice),W=te.call(F,String.prototype.replace),V=te.call(F,String.prototype.slice),H=te.call(F,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,ie=function(pe){var ve=V(pe,0,1),he=V(pe,-1);if(ve==="%"&&he!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&ve!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ge=[];return W(pe,X,function(Se,ye,Re,be){ge[ge.length]=Re?W(be,J,"$1"):ye||Se}),ge},ce=function(pe,ve){var he=pe,ge;if(R(S,he)&&(ge=S[he],he="%"+ge[0]+"%"),R(B,he)){var Se=B[he];if(Se===$&&(Se=z(he)),typeof Se>"u"&&!ve)throw new d("intrinsic "+pe+" exists, but is not available. Please file an issue!");return{alias:ge,name:he,value:Se}}throw new c("intrinsic "+pe+" does not exist!")};return kd=function(pe,ve){if(typeof pe!="string"||pe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new d('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,pe)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=ie(pe),ge=he.length>0?he[0]:"",Se=ce("%"+ge+"%",ve),ye=Se.name,Re=Se.value,be=!1,Le=Se.alias;Le&&(ge=Le[0],C(he,v([0,1],Le)));for(var Pe=1,Ee=!0;Pe<he.length;Pe+=1){var ke=he[Pe],ot=V(ke,0,1),ft=V(ke,-1);if((ot==='"'||ot==="'"||ot==="`"||ft==='"'||ft==="'"||ft==="`")&&ot!==ft)throw new c("property names with quotes must have matching quotes");if((ke==="constructor"||!Ee)&&(be=!0),ge+="."+ke,ye="%"+ge+"%",R(B,ye))Re=B[ye];else if(Re!=null){if(!(ke in Re)){if(!ve)throw new d("base intrinsic for "+pe+" exists, but the property is not available.");return}if(G&&Pe+1>=he.length){var yt=G(Re,ke);Ee=!!yt,Ee&&"get"in yt&&!("originalValue"in yt.get)?Re=yt.get:Re=Re[ke]}else Ee=R(Re,ke),Re=Re[ke];Ee&&!be&&(B[ye]=Re)}}return Re},kd}var Bd,S0;function Eu(){if(S0)return Bd;S0=1;var r=un(),t=r("%Object.defineProperty%",!0),a=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};return a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},Bd=a,Bd}var $d,w0;function sm(){if(w0)return $d;w0=1;var r=Eu()(),t=un(),a=r&&t("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch{a=!1}var l=t("%SyntaxError%"),o=t("%TypeError%"),u=Ro();return $d=function(d,h,p){if(!d||typeof d!="object"&&typeof d!="function")throw new o("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var g=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,E=arguments.length>6?arguments[6]:!1,j=!!u&&u(d,h);if(a)a(d,h,{configurable:x===null&&j?j.configurable:!x,enumerable:g===null&&j?j.enumerable:!g,value:p,writable:y===null&&j?j.writable:!y});else if(E||!g&&!y&&!x)d[h]=p;else throw new l("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$d}var Id,x0;function qa(){if(x0)return Id;x0=1;var r=im(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,l=Array.prototype.concat,o=sm(),u=function(p){return typeof p=="function"&&a.call(p)==="[object Function]"},c=Eu()(),d=function(p,g,y,x){if(g in p){if(x===!0){if(p[g]===y)return}else if(!u(x)||!x())return}c?o(p,g,y,!0):o(p,g,y)},h=function(p,g){var y=arguments.length>2?arguments[2]:{},x=r(g);t&&(x=l.call(x,Object.getOwnPropertySymbols(g)));for(var E=0;E<x.length;E+=1)d(p,x[E],g[x[E]],y[x[E]])};return h.supportsDescriptors=!!c,Id=h,Id}var qd={exports:{}},Ud,O0;function o_(){if(O0)return Ud;O0=1;var r=un(),t=sm(),a=Eu()(),l=Ro(),o=r("%TypeError%"),u=r("%Math.floor%");return Ud=function(d,h){if(typeof d!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new o("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],g=!0,y=!0;if("length"in d&&l){var x=l(d,"length");x&&!x.configurable&&(g=!1),x&&!x.writable&&(y=!1)}return(g||y||!p)&&(a?t(d,"length",h,!0,!0):t(d,"length",h)),d},Ud}var T0;function Hi(){return T0||(T0=1,function(r){var t=_o(),a=un(),l=o_(),o=a("%TypeError%"),u=a("%Function.prototype.apply%"),c=a("%Function.prototype.call%"),d=a("%Reflect.apply%",!0)||t.call(c,u),h=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}r.exports=function(x){if(typeof x!="function")throw new o("a function is required");var E=d(t,c,arguments);return l(E,1+p(0,x.length-(arguments.length-1)),!0)};var g=function(){return d(t,u,arguments)};h?h(r.exports,"apply",{value:g}):r.exports.apply=g}(qd)),qd.exports}var Gd,E0;function zn(){if(E0)return Gd;E0=1;var r=un(),t=Hi(),a=t(r("String.prototype.indexOf"));return Gd=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t(c):c},Gd}var Vd,C0;function Iw(){if(C0)return Vd;C0=1;var r=im(),t=Tu()(),a=zn(),l=Object,o=a("Array.prototype.push"),u=a("Object.prototype.propertyIsEnumerable"),c=t?Object.getOwnPropertySymbols:null;return Vd=function(h,p){if(h==null)throw new TypeError("target must be an object");var g=l(h);if(arguments.length===1)return g;for(var y=1;y<arguments.length;++y){var x=l(arguments[y]),E=r(x),j=t&&(Object.getOwnPropertySymbols||c);if(j)for(var _=j(x),L=0;L<_.length;++L){var k=_[L];u(x,k)&&o(E,k)}for(var G=0;G<E.length;++G){var q=E[G];if(u(x,q)){var Z=x[q];g[q]=Z}}}return g},Vd}var Wd,R0;function qw(){if(R0)return Wd;R0=1;var r=Iw(),t=function(){if(!Object.assign)return!1;for(var l="abcdefghijklmnopqrst",o=l.split(""),u={},c=0;c<o.length;++c)u[o[c]]=o[c];var d=Object.assign({},u),h="";for(var p in d)h+=p;return l!==h},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var l=Object.preventExtensions({1:2});try{Object.assign(l,"xy")}catch{return l[1]==="y"}return!1};return Wd=function(){return!Object.assign||t()||a()?r:Object.assign},Wd}var Yd,_0;function s_(){if(_0)return Yd;_0=1;var r=qa(),t=qw();return Yd=function(){var l=t();return r(Object,{assign:l},{assign:function(){return Object.assign!==l}}),l},Yd}var Xd,j0;function u_(){if(j0)return Xd;j0=1;var r=qa(),t=Hi(),a=Iw(),l=qw(),o=s_(),u=t.apply(l()),c=function(h,p){return u(Object,arguments)};return r(c,{getPolyfill:l,implementation:a,shim:o}),Xd=c,Xd}var Fd,A0;function c_(){if(A0)return Fd;A0=1;var r=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}r.functionsHaveConfigurableNames=function(){if(!r()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var a=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof a=="function"&&(function(){}).bind().name!==""},Fd=r,Fd}var Qd,M0;function f_(){if(M0)return Qd;M0=1;var r=sm(),t=Eu()(),a=c_().functionsHaveConfigurableNames(),l=TypeError;return Qd=function(u,c){if(typeof u!="function")throw new l("`fn` is not a function");var d=arguments.length>2&&!!arguments[2];return(!d||a)&&(t?r(u,"name",c,!0,!0):r(u,"name",c)),u},Qd}var Zd,N0;function Uw(){if(N0)return Zd;N0=1;var r=f_(),t=Object,a=TypeError;return Zd=r(function(){if(this!=null&&this!==t(this))throw new a("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),Zd}var Kd,D0;function Gw(){if(D0)return Kd;D0=1;var r=Uw(),t=qa().supportsDescriptors,a=Object.getOwnPropertyDescriptor;return Kd=function(){if(t&&/a/mig.flags==="gim"){var o=a(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var u="",c={};if(Object.defineProperty(c,"hasIndices",{get:function(){u+="d"}}),Object.defineProperty(c,"sticky",{get:function(){u+="y"}}),u==="dy")return o.get}}return r},Kd}var Jd,L0;function d_(){if(L0)return Jd;L0=1;var r=qa().supportsDescriptors,t=Gw(),a=Object.getOwnPropertyDescriptor,l=Object.defineProperty,o=TypeError,u=Object.getPrototypeOf,c=/a/;return Jd=function(){if(!r||!u)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var h=t(),p=u(c),g=a(p,"flags");return(!g||g.get!==h)&&l(p,"flags",{configurable:!0,enumerable:!1,get:h}),h},Jd}var eh,z0;function h_(){if(z0)return eh;z0=1;var r=qa(),t=Hi(),a=Uw(),l=Gw(),o=d_(),u=t(l());return r(u,{getPolyfill:l,implementation:a,shim:o}),eh=u,eh}var ql={exports:{}},th,P0;function Ua(){if(P0)return th;P0=1;var r=Tu();return th=function(){return r()&&!!Symbol.toStringTag},th}var nh,H0;function Vw(){if(H0)return nh;H0=1;var r=Ua()(),t=zn(),a=t("Object.prototype.toString"),l=function(d){return r&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},o=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},u=function(){return l(arguments)}();return l.isLegacyArguments=o,nh=u?l:o,nh}const p_={},m_=Object.freeze(Object.defineProperty({__proto__:null,default:p_},Symbol.toStringTag,{value:"Module"})),g_=J1(m_);var rh,k0;function Cu(){if(k0)return rh;k0=1;var r=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&t&&typeof t.get=="function"?t.get:null,l=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,u=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=o&&u&&typeof u.get=="function"?u.get:null,d=o&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,p=h?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,y=g?WeakSet.prototype.has:null,x=typeof WeakRef=="function"&&WeakRef.prototype,E=x?WeakRef.prototype.deref:null,j=Boolean.prototype.valueOf,_=Object.prototype.toString,L=Function.prototype.toString,k=String.prototype.match,G=String.prototype.slice,q=String.prototype.replace,Z=String.prototype.toUpperCase,N=String.prototype.toLowerCase,M=RegExp.prototype.test,P=Array.prototype.concat,Q=Array.prototype.join,D=Array.prototype.slice,T=Math.floor,F=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,B=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===B||!0)?Symbol.toStringTag:null,z=Object.prototype.propertyIsEnumerable,S=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function te(ae,se){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||M.call(/e/,se))return se;var Ve=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Xe=ae<0?-T(-ae):T(ae);if(Xe!==ae){var Ze=String(Xe),ze=G.call(se,Ze.length+1);return q.call(Ze,Ve,"$&_")+"."+q.call(q.call(ze,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(se,Ve,"$&_")}var R=g_,v=R.custom,C=Se(v)?v:null,W={__proto__:null,double:'"',single:"'"},V={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};rh=function ae(se,Ve,Xe,Ze){var ze=Ve||{};if(be(ze,"quoteStyle")&&!be(W,ze.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(be(ze,"maxStringLength")&&(typeof ze.maxStringLength=="number"?ze.maxStringLength<0&&ze.maxStringLength!==1/0:ze.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var qt=be(ze,"customInspect")?ze.customInspect:!0;if(typeof qt!="boolean"&&qt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(be(ze,"indent")&&ze.indent!==null&&ze.indent!==" "&&!(parseInt(ze.indent,10)===ze.indent&&ze.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(be(ze,"numericSeparator")&&typeof ze.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tr=ze.numericSeparator;if(typeof se>"u")return"undefined";if(se===null)return"null";if(typeof se=="boolean")return se?"true":"false";if(typeof se=="string")return Be(se,ze);if(typeof se=="number"){if(se===0)return 1/0/se>0?"0":"-0";var Ht=String(se);return tr?te(se,Ht):Ht}if(typeof se=="bigint"){var _n=String(se)+"n";return tr?te(se,_n):_n}var da=typeof ze.depth>"u"?5:ze.depth;if(typeof Xe>"u"&&(Xe=0),Xe>=da&&da>0&&typeof se=="object")return ie(se)?"[Array]":"[Object]";var Pn=Ga(ze,Xe);if(typeof Ze>"u")Ze=[];else if(Ee(Ze,se)>=0)return"[Circular]";function Ut(rr,pa,ar){if(pa&&(Ze=D.call(Ze),Ze.push(pa)),ar){var ir={depth:ze.depth};return be(ze,"quoteStyle")&&(ir.quoteStyle=ze.quoteStyle),ae(rr,ir,Xe+1,Ze)}return ae(rr,ze,Xe+1,Ze)}if(typeof se=="function"&&!me(se)){var Bo=Pe(se),jn=cn(se,Ut);return"[Function"+(Bo?": "+Bo:" (anonymous)")+"]"+(jn.length>0?" { "+Q.call(jn,", ")+" }":"")}if(Se(se)){var Tt=B?q.call(String(se),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(se);return typeof se=="object"&&!B?dt(Tt):Tt}if(Ae(se)){for(var wt="<"+N.call(String(se.nodeName)),Hn=se.attributes||[],Nr=0;Nr<Hn.length;Nr++)wt+=" "+Hn[Nr].name+"="+H(X(Hn[Nr].value),"double",ze);return wt+=">",se.childNodes&&se.childNodes.length&&(wt+="..."),wt+="</"+N.call(String(se.nodeName))+">",wt}if(ie(se)){if(se.length===0)return"[]";var Gi=cn(se,Ut);return Pn&&!Pu(Gi)?"["+Mr(Gi,Pn)+"]":"[ "+Q.call(Gi,", ")+" ]"}if(pe(se)){var Vi=cn(se,Ut);return!("cause"in Error.prototype)&&"cause"in se&&!z.call(se,"cause")?"{ ["+String(se)+"] "+Q.call(P.call("[cause]: "+Ut(se.cause),Vi),", ")+" }":Vi.length===0?"["+String(se)+"]":"{ ["+String(se)+"] "+Q.call(Vi,", ")+" }"}if(typeof se=="object"&&qt){if(C&&typeof se[C]=="function"&&R)return R(se,{depth:da-Xe});if(qt!=="symbol"&&typeof se.inspect=="function")return se.inspect()}if(ke(se)){var Wi=[];return l&&l.call(se,function(rr,pa){Wi.push(Ut(pa,se,!0)+" => "+Ut(rr,se))}),ko("Map",a.call(se),Wi,Pn)}if(yt(se)){var Dr=[];return d&&d.call(se,function(rr){Dr.push(Ut(rr,se))}),ko("Set",c.call(se),Dr,Pn)}if(ot(se))return Ui("WeakMap");if(Nt(se))return Ui("WeakSet");if(ft(se))return Ui("WeakRef");if(he(se))return dt(Ut(Number(se)));if(ye(se))return dt(Ut(F.call(se)));if(ge(se))return dt(j.call(se));if(ve(se))return dt(Ut(String(se)));if(typeof window<"u"&&se===window)return"{ [object Window] }";if(typeof globalThis<"u"&&se===globalThis||typeof xr<"u"&&se===xr)return"{ [object globalThis] }";if(!ce(se)&&!me(se)){var ha=cn(se,Ut),nr=S?S(se)===Object.prototype:se instanceof Object||se.constructor===Object,kn=se instanceof Object?"":"null prototype",Lr=!nr&&U&&Object(se)===se&&U in se?G.call(Le(se),8,-1):kn?"Object":"",zr=nr||typeof se.constructor!="function"?"":se.constructor.name?se.constructor.name+" ":"",ht=zr+(Lr||kn?"["+Q.call(P.call([],Lr||[],kn||[]),": ")+"] ":"");return ha.length===0?ht+"{}":Pn?ht+"{"+Mr(ha,Pn)+"}":ht+"{ "+Q.call(ha,", ")+" }"}return String(se)};function H(ae,se,Ve){var Xe=Ve.quoteStyle||se,Ze=W[Xe];return Ze+ae+Ze}function X(ae){return q.call(String(ae),/"/g,"&quot;")}function J(ae){return!U||!(typeof ae=="object"&&(U in ae||typeof ae[U]<"u"))}function ie(ae){return Le(ae)==="[object Array]"&&J(ae)}function ce(ae){return Le(ae)==="[object Date]"&&J(ae)}function me(ae){return Le(ae)==="[object RegExp]"&&J(ae)}function pe(ae){return Le(ae)==="[object Error]"&&J(ae)}function ve(ae){return Le(ae)==="[object String]"&&J(ae)}function he(ae){return Le(ae)==="[object Number]"&&J(ae)}function ge(ae){return Le(ae)==="[object Boolean]"&&J(ae)}function Se(ae){if(B)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!I)return!1;try{return I.call(ae),!0}catch{}return!1}function ye(ae){if(!ae||typeof ae!="object"||!F)return!1;try{return F.call(ae),!0}catch{}return!1}var Re=Object.prototype.hasOwnProperty||function(ae){return ae in this};function be(ae,se){return Re.call(ae,se)}function Le(ae){return _.call(ae)}function Pe(ae){if(ae.name)return ae.name;var se=k.call(L.call(ae),/^function\s*([\w$]+)/);return se?se[1]:null}function Ee(ae,se){if(ae.indexOf)return ae.indexOf(se);for(var Ve=0,Xe=ae.length;Ve<Xe;Ve++)if(ae[Ve]===se)return Ve;return-1}function ke(ae){if(!a||!ae||typeof ae!="object")return!1;try{a.call(ae);try{c.call(ae)}catch{return!0}return ae instanceof Map}catch{}return!1}function ot(ae){if(!p||!ae||typeof ae!="object")return!1;try{p.call(ae,p);try{y.call(ae,y)}catch{return!0}return ae instanceof WeakMap}catch{}return!1}function ft(ae){if(!E||!ae||typeof ae!="object")return!1;try{return E.call(ae),!0}catch{}return!1}function yt(ae){if(!c||!ae||typeof ae!="object")return!1;try{c.call(ae);try{a.call(ae)}catch{return!0}return ae instanceof Set}catch{}return!1}function Nt(ae){if(!y||!ae||typeof ae!="object")return!1;try{y.call(ae,y);try{p.call(ae,p)}catch{return!0}return ae instanceof WeakSet}catch{}return!1}function Ae(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement<"u"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function Be(ae,se){if(ae.length>se.maxStringLength){var Ve=ae.length-se.maxStringLength,Xe="... "+Ve+" more character"+(Ve>1?"s":"");return Be(G.call(ae,0,se.maxStringLength),se)+Xe}var Ze=V[se.quoteStyle||"single"];Ze.lastIndex=0;var ze=q.call(q.call(ae,Ze,"\\$1"),/[\x00-\x1f]/g,nt);return H(ze,"single",se)}function nt(ae){var se=ae.charCodeAt(0),Ve={8:"b",9:"t",10:"n",12:"f",13:"r"}[se];return Ve?"\\"+Ve:"\\x"+(se<16?"0":"")+Z.call(se.toString(16))}function dt(ae){return"Object("+ae+")"}function Ui(ae){return ae+" { ? }"}function ko(ae,se,Ve,Xe){var Ze=Xe?Mr(Ve,Xe):Q.call(Ve,", ");return ae+" ("+se+") {"+Ze+"}"}function Pu(ae){for(var se=0;se<ae.length;se++)if(Ee(ae[se],`
61
+ `)>=0)return!1;return!0}function Ga(ae,se){var Ve;if(ae.indent===" ")Ve=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Ve=Q.call(Array(ae.indent+1)," ");else return null;return{base:Ve,prev:Q.call(Array(se+1),Ve)}}function Mr(ae,se){if(ae.length===0)return"";var Ve=`
62
+ `+se.prev+se.base;return Ve+Q.call(ae,","+Ve)+`
63
+ `+se.prev}function cn(ae,se){var Ve=ie(ae),Xe=[];if(Ve){Xe.length=ae.length;for(var Ze=0;Ze<ae.length;Ze++)Xe[Ze]=be(ae,Ze)?se(ae[Ze],ae):""}var ze=typeof $=="function"?$(ae):[],qt;if(B){qt={};for(var tr=0;tr<ze.length;tr++)qt["$"+ze[tr]]=ze[tr]}for(var Ht in ae)be(ae,Ht)&&(Ve&&String(Number(Ht))===Ht&&Ht<ae.length||B&&qt["$"+Ht]instanceof Symbol||(M.call(/[^\w$]/,Ht)?Xe.push(se(Ht,ae)+": "+se(ae[Ht],ae)):Xe.push(Ht+": "+se(ae[Ht],ae))));if(typeof $=="function")for(var _n=0;_n<ze.length;_n++)z.call(ae,ze[_n])&&Xe.push("["+se(ze[_n])+"]: "+se(ae[ze[_n]],ae));return Xe}return rh}var ah,B0;function v_(){if(B0)return ah;B0=1;var r=Cu(),t=Pi(),a=function(d,h,p){for(var g=d,y;(y=g.next)!=null;g=y)if(y.key===h)return g.next=y.next,p||(y.next=d.next,d.next=y),y},l=function(d,h){if(d){var p=a(d,h);return p&&p.value}},o=function(d,h,p){var g=a(d,h);g?g.value=p:d.next={key:h,next:d.next,value:p}},u=function(d,h){return d?!!a(d,h):!1},c=function(d,h){if(d)return a(d,h,!0)};return ah=function(){var h,p={assert:function(g){if(!p.has(g))throw new t("Side channel does not contain "+r(g))},delete:function(g){var y=h&&h.next,x=c(h,g);return x&&y&&y===x&&(h=void 0),!!x},get:function(g){return l(h,g)},has:function(g){return u(h,g)},set:function(g,y){h||(h={next:void 0}),o(h,g,y)}};return p},ah}var ih,$0;function Ww(){if($0)return ih;$0=1;var r=un(),t=Bw(),a=t([r("%String.prototype.indexOf%")]);return ih=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t([c]):c},ih}var lh,I0;function Yw(){if(I0)return lh;I0=1;var r=un(),t=Ww(),a=Cu(),l=Pi(),o=r("%Map%",!0),u=t("Map.prototype.get",!0),c=t("Map.prototype.set",!0),d=t("Map.prototype.has",!0),h=t("Map.prototype.delete",!0),p=t("Map.prototype.size",!0);return lh=!!o&&function(){var y,x={assert:function(E){if(!x.has(E))throw new l("Side channel does not contain "+a(E))},delete:function(E){if(y){var j=h(y,E);return p(y)===0&&(y=void 0),j}return!1},get:function(E){if(y)return u(y,E)},has:function(E){return y?d(y,E):!1},set:function(E,j){y||(y=new o),c(y,E,j)}};return x},lh}var oh,q0;function y_(){if(q0)return oh;q0=1;var r=un(),t=Ww(),a=Cu(),l=Yw(),o=Pi(),u=r("%WeakMap%",!0),c=t("WeakMap.prototype.get",!0),d=t("WeakMap.prototype.set",!0),h=t("WeakMap.prototype.has",!0),p=t("WeakMap.prototype.delete",!0);return oh=u?function(){var y,x,E={assert:function(j){if(!E.has(j))throw new o("Side channel does not contain "+a(j))},delete:function(j){if(u&&j&&(typeof j=="object"||typeof j=="function")){if(y)return p(y,j)}else if(l&&x)return x.delete(j);return!1},get:function(j){return u&&j&&(typeof j=="object"||typeof j=="function")&&y?c(y,j):x&&x.get(j)},has:function(j){return u&&j&&(typeof j=="object"||typeof j=="function")&&y?h(y,j):!!x&&x.has(j)},set:function(j,_){u&&j&&(typeof j=="object"||typeof j=="function")?(y||(y=new u),d(y,j,_)):l&&(x||(x=l()),x.set(j,_))}};return E}:l,oh}var sh,U0;function Xw(){if(U0)return sh;U0=1;var r=Pi(),t=Cu(),a=v_(),l=Yw(),o=y_(),u=o||l||a;return sh=function(){var d,h={assert:function(p){if(!h.has(p))throw new r("Side channel does not contain "+t(p))},delete:function(p){return!!d&&d.delete(p)},get:function(p){return d&&d.get(p)},has:function(p){return!!d&&d.has(p)},set:function(p,g){d||(d=u()),d.set(p,g)}};return h},sh}var uh,G0;function b_(){if(G0)return uh;G0=1;var r=un(),t=$w(),a=Xw()(),l=r("%TypeError%"),o={assert:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");if(a.assert(u),!o.has(u,c))throw new l("`"+c+"` is not present on `O`")},get:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return d&&d["$"+c]},has:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return!!d&&t(d,"$"+c)},set:function(u,c,d){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var h=a.get(u);h||(h={},a.set(u,h)),h["$"+c]=d}};return Object.freeze&&Object.freeze(o),uh=o,uh}var ch,V0;function S_(){if(V0)return ch;V0=1;var r=b_(),t=SyntaxError,a=typeof StopIteration=="object"?StopIteration:null;return ch=function(o){if(!a)throw new t("this environment lacks StopIteration");r.set(o,"[[Done]]",!1);var u={next:function(){var d=r.get(this,"[[Iterator]]"),h=r.get(d,"[[Done]]");try{return{done:h,value:h?void 0:d.next()}}catch(p){if(r.set(d,"[[Done]]",!0),p!==a)throw p;return{done:!0,value:void 0}}}};return r.set(u,"[[Iterator]]",o),u},ch}var fh,W0;function w_(){if(W0)return fh;W0=1;var r={}.toString;return fh=Array.isArray||function(t){return r.call(t)=="[object Array]"},fh}var dh,Y0;function Fw(){if(Y0)return dh;Y0=1;var r=String.prototype.valueOf,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object String]",o=Ua()();return dh=function(c){return typeof c=="string"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},dh}var hh,X0;function Qw(){if(X0)return hh;X0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;r||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),hh=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c),o)try{o.call(c)}catch{return!0}return c instanceof r}catch{}return!1},hh}var ph,F0;function Zw(){if(F0)return ph;F0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;t||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!o&&(a=function(c){return!1}),ph=a||function(c){if(!c||typeof c!="object")return!1;try{if(o.call(c),l)try{l.call(c)}catch{return!0}return c instanceof t}catch{}return!1},ph}var Q0;function x_(){if(Q0)return ql.exports;Q0=1;var r=Vw(),t=S_();if(lm()()||Tu()()){var a=Symbol.iterator;ql.exports=function(D){if(D!=null&&typeof D[a]<"u")return D[a]();if(r(D))return Array.prototype[a].call(D)}}else{var l=w_(),o=Fw(),u=un(),c=u("%Map%",!0),d=u("%Set%",!0),h=zn(),p=h("Array.prototype.push"),g=h("String.prototype.charCodeAt"),y=h("String.prototype.slice"),x=function(D,T){var F=D.length;if(T+1>=F)return T+1;var $=g(D,T);if($<55296||$>56319)return T+1;var I=g(D,T+1);return I<56320||I>57343?T+1:T+2},E=function(D){var T=0;return{next:function(){var $=T>=D.length,I;return $||(I=D[T],T+=1),{done:$,value:I}}}},j=function(D,T){if(l(D)||r(D))return E(D);if(o(D)){var F=0;return{next:function(){var I=x(D,F),B=y(D,F,I);return F=I,{done:I>D.length,value:B}}}}if(T&&typeof D["_es6-shim iterator_"]<"u")return D["_es6-shim iterator_"]()};if(!c&&!d)ql.exports=function(D){if(D!=null)return j(D,!0)};else{var _=Qw(),L=Zw(),k=h("Map.prototype.forEach",!0),G=h("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var q=h("Map.prototype.iterator",!0),Z=h("Set.prototype.iterator",!0);var N=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),M=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),P=function(D){if(_(D)){if(q)return t(q(D));if(N)return N(D);if(k){var T=[];return k(D,function($,I){p(T,[I,$])}),E(T)}}if(L(D)){if(Z)return t(Z(D));if(M)return M(D);if(G){var F=[];return G(D,function($){p(F,$)}),E(F)}}};ql.exports=function(D){return P(D)||j(D)}}}return ql.exports}var mh,Z0;function Kw(){if(Z0)return mh;Z0=1;var r=function(t){return t!==t};return mh=function(a,l){return a===0&&l===0?1/a===1/l:!!(a===l||r(a)&&r(l))},mh}var gh,K0;function Jw(){if(K0)return gh;K0=1;var r=Kw();return gh=function(){return typeof Object.is=="function"?Object.is:r},gh}var vh,J0;function O_(){if(J0)return vh;J0=1;var r=Jw(),t=qa();return vh=function(){var l=r();return t(Object,{is:l},{is:function(){return Object.is!==l}}),l},vh}var yh,eS;function T_(){if(eS)return yh;eS=1;var r=qa(),t=Hi(),a=Kw(),l=Jw(),o=O_(),u=t(l(),Object);return r(u,{getPolyfill:l,implementation:a,shim:o}),yh=u,yh}var bh,tS;function E_(){if(tS)return bh;tS=1;var r={}.toString;return bh=Array.isArray||function(t){return r.call(t)=="[object Array]"},bh}var Sh,nS;function C_(){if(nS)return Sh;nS=1;var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},t(function(){throw 42},null,a)}catch(G){G!==l&&(t=null)}else t=null;var o=/^\s*class\b/,u=function(q){try{var Z=r.call(q);return o.test(Z)}catch{return!1}},c=function(q){try{return u(q)?!1:(r.call(q),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",y="[object HTMLAllCollection]",x="[object HTML document.all class]",E="[object HTMLCollection]",j=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var k=document.all;d.call(k)===d.call(document.all)&&(L=function(q){if((_||!q)&&(typeof q>"u"||typeof q=="object"))try{var Z=d.call(q);return(Z===y||Z===x||Z===E||Z===h)&&q("")==null}catch{}return!1})}return Sh=t?function(q){if(L(q))return!0;if(!q||typeof q!="function"&&typeof q!="object")return!1;try{t(q,null,a)}catch(Z){if(Z!==l)return!1}return!u(q)&&c(q)}:function(q){if(L(q))return!0;if(!q||typeof q!="function"&&typeof q!="object")return!1;if(j)return c(q);if(u(q))return!1;var Z=d.call(q);return Z!==p&&Z!==g&&!/^\[object HTML/.test(Z)?!1:c(q)},Sh}var wh,rS;function R_(){if(rS)return wh;rS=1;var r=C_(),t=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var y=0,x=h.length;y<x;y++)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},o=function(h,p,g){for(var y=0,x=h.length;y<x;y++)g==null?p(h.charAt(y),y,h):p.call(g,h.charAt(y),y,h)},u=function(h,p,g){for(var y in h)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},c=function(h,p,g){if(!r(p))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=g),t.call(h)==="[object Array]"?l(h,p,y):typeof h=="string"?o(h,p,y):u(h,p,y)};return wh=c,wh}var xh,aS;function __(){if(aS)return xh;aS=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?xr:globalThis;return xh=function(){for(var l=[],o=0;o<r.length;o++)typeof t[r[o]]=="function"&&(l[l.length]=r[o]);return l},xh}var Oh,iS;function ex(){if(iS)return Oh;iS=1;var r=R_(),t=__(),a=Hi(),l=zn(),o=Ro(),u=l("Object.prototype.toString"),c=Ua()(),d=typeof globalThis>"u"?xr:globalThis,h=t(),p=l("String.prototype.slice"),g=Object.getPrototypeOf,y=l("Array.prototype.indexOf",!0)||function(L,k){for(var G=0;G<L.length;G+=1)if(L[G]===k)return G;return-1},x={__proto__:null};c&&o&&g?r(h,function(_){var L=new d[_];if(Symbol.toStringTag in L){var k=g(L),G=o(k,Symbol.toStringTag);if(!G){var q=g(k);G=o(q,Symbol.toStringTag)}x["$"+_]=a(G.get)}}):r(h,function(_){var L=new d[_],k=L.slice||L.set;k&&(x["$"+_]=a(k))});var E=function(L){var k=!1;return r(x,function(G,q){if(!k)try{"$"+G(L)===q&&(k=p(q,1))}catch{}}),k},j=function(L){var k=!1;return r(x,function(G,q){if(!k)try{G(L),k=p(q,1)}catch{}}),k};return Oh=function(L){if(!L||typeof L!="object")return!1;if(!c){var k=p(u(L),8,-1);return y(h,k)>-1?k:k!=="Object"?!1:j(L)}return o?E(L):null},Oh}var Th,lS;function j_(){if(lS)return Th;lS=1;var r=ex();return Th=function(a){return!!r(a)},Th}var Eh,oS;function tx(){if(oS)return Eh;oS=1;var r=Hi(),t=zn(),a=un(),l=j_(),o=a("ArrayBuffer",!0),u=a("Float32Array",!0),c=t("ArrayBuffer.prototype.byteLength",!0),d=o&&!c&&new o().slice,h=d&&r(d);return Eh=c||h?function(g){if(!g||typeof g!="object")return!1;try{return c?c(g):h(g,0),!0}catch{return!1}}:u?function(g){try{return new u(g).buffer===g&&!l(g)}catch(y){return typeof g=="object"&&y.name==="RangeError"}}:function(g){return!1},Eh}var Ch,sS;function A_(){if(sS)return Ch;sS=1;var r=Date.prototype.getDay,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Date]",o=Ua()();return Ch=function(c){return typeof c!="object"||c===null?!1:o?t(c):a.call(c)===l},Ch}var Rh,uS;function M_(){if(uS)return Rh;uS=1;var r=zn(),t=Ua()(),a,l,o,u;if(t){a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),o={};var c=function(){throw o};u={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c)}var d=r("Object.prototype.toString"),h=Object.getOwnPropertyDescriptor,p="[object RegExp]";return Rh=t?function(y){if(!y||typeof y!="object")return!1;var x=h(y,"lastIndex"),E=x&&a(x,"value");if(!E)return!1;try{l(y,u)}catch(j){return j===o}}:function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:d(y)===p},Rh}var _h,cS;function N_(){if(cS)return _h;cS=1;var r=zn(),t=r("SharedArrayBuffer.prototype.byteLength",!0);return _h=t?function(l){if(!l||typeof l!="object")return!1;try{return t(l),!0}catch{return!1}}:function(l){return!1},_h}var jh,fS;function D_(){if(fS)return jh;fS=1;var r=Number.prototype.toString,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Number]",o=Ua()();return jh=function(c){return typeof c=="number"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},jh}var Ah,dS;function L_(){if(dS)return Ah;dS=1;var r=zn(),t=r("Boolean.prototype.toString"),a=r("Object.prototype.toString"),l=function(d){try{return t(d),!0}catch{return!1}},o="[object Boolean]",u=Ua()();return Ah=function(d){return typeof d=="boolean"?!0:d===null||typeof d!="object"?!1:u&&Symbol.toStringTag in d?l(d):a(d)===o},Ah}var Zs={exports:{}},hS;function z_(){if(hS)return Zs.exports;hS=1;var r=Object.prototype.toString,t=lm()();if(t){var a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,o=function(c){return typeof c.valueOf()!="symbol"?!1:l.test(a.call(c))};Zs.exports=function(c){if(typeof c=="symbol")return!0;if(r.call(c)!=="[object Symbol]")return!1;try{return o(c)}catch{return!1}}}else Zs.exports=function(c){return!1};return Zs.exports}var Ks={exports:{}},Mh,pS;function P_(){if(pS)return Mh;pS=1;var r=typeof BigInt<"u"&&BigInt;return Mh=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},Mh}var mS;function H_(){if(mS)return Ks.exports;mS=1;var r=P_()();if(r){var t=BigInt.prototype.valueOf,a=function(o){try{return t.call(o),!0}catch{}return!1};Ks.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:a(o)}}else Ks.exports=function(o){return!1};return Ks.exports}var Nh,gS;function k_(){if(gS)return Nh;gS=1;var r=Fw(),t=D_(),a=L_(),l=z_(),o=H_();return Nh=function(c){if(c==null||typeof c!="object"&&typeof c!="function")return null;if(r(c))return"String";if(t(c))return"Number";if(a(c))return"Boolean";if(l(c))return"Symbol";if(o(c))return"BigInt"},Nh}var Dh,vS;function B_(){if(vS)return Dh;vS=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,a;r||(a=function(c){return!1});var l=r?r.prototype.has:null,o=t?t.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),Dh=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c,l),o)try{o.call(c,o)}catch{return!0}return c instanceof r}catch{}return!1},Dh}var Js={exports:{}},yS;function $_(){if(yS)return Js.exports;yS=1;var r=un(),t=zn(),a=r("%WeakSet%",!0),l=t("WeakSet.prototype.has",!0);if(l){var o=t("WeakMap.prototype.has",!0);Js.exports=function(c){if(!c||typeof c!="object")return!1;try{if(l(c,l),o)try{o(c,o)}catch{return!0}return c instanceof a}catch{}return!1}}else Js.exports=function(c){return!1};return Js.exports}var Lh,bS;function I_(){if(bS)return Lh;bS=1;var r=Qw(),t=Zw(),a=B_(),l=$_();return Lh=function(u){if(u&&typeof u=="object"){if(r(u))return"Map";if(t(u))return"Set";if(a(u))return"WeakMap";if(l(u))return"WeakSet"}return!1},Lh}var zh,SS;function q_(){if(SS)return zh;SS=1;var r=zn(),t=r("ArrayBuffer.prototype.byteLength",!0),a=tx();return zh=function(o){return a(o)?t?t(o):o.byteLength:NaN},zh}var Ph,wS;function U_(){if(wS)return Ph;wS=1;var r=u_(),t=zn(),a=h_(),l=un(),o=x_(),u=Xw(),c=T_(),d=Vw(),h=E_(),p=tx(),g=A_(),y=M_(),x=N_(),E=im(),j=k_(),_=I_(),L=ex(),k=q_(),G=t("SharedArrayBuffer.prototype.byteLength",!0),q=t("Date.prototype.getTime"),Z=Object.getPrototypeOf,N=t("Object.prototype.toString"),M=l("%Set%",!0),P=t("Map.prototype.has",!0),Q=t("Map.prototype.get",!0),D=t("Map.prototype.size",!0),T=t("Set.prototype.add",!0),F=t("Set.prototype.delete",!0),$=t("Set.prototype.has",!0),I=t("Set.prototype.size",!0);function B(H,X,J,ie){for(var ce=o(H),me;(me=ce.next())&&!me.done;)if(R(X,me.value,J,ie))return F(H,me.value),!0;return!1}function U(H){if(typeof H>"u")return null;if(typeof H!="object")return typeof H=="symbol"?!1:typeof H=="string"||typeof H=="number"?+H==+H:!0}function z(H,X,J,ie,ce,me){var pe=U(J);if(pe!=null)return pe;var ve=Q(X,pe),he=r({},ce,{strict:!1});return typeof ve>"u"&&!P(X,pe)||!R(ie,ve,he,me)?!1:!P(H,pe)&&R(ie,ve,he,me)}function S(H,X,J){var ie=U(J);return ie??($(X,ie)&&!$(H,ie))}function te(H,X,J,ie,ce,me){for(var pe=o(H),ve,he;(ve=pe.next())&&!ve.done;)if(he=ve.value,R(J,he,ce,me)&&R(ie,Q(X,he),ce,me))return F(H,he),!0;return!1}function R(H,X,J,ie){var ce=J||{};if(ce.strict?c(H,X):H===X)return!0;var me=j(H),pe=j(X);if(me!==pe)return!1;if(!H||!X||typeof H!="object"&&typeof X!="object")return ce.strict?c(H,X):H==X;var ve=ie.has(H),he=ie.has(X),ge;if(ve&&he){if(ie.get(H)===ie.get(X))return!0}else ge={};return ve||ie.set(H,ge),he||ie.set(X,ge),V(H,X,ce,ie)}function v(H){return!H||typeof H!="object"||typeof H.length!="number"||typeof H.copy!="function"||typeof H.slice!="function"||H.length>0&&typeof H[0]!="number"?!1:!!(H.constructor&&H.constructor.isBuffer&&H.constructor.isBuffer(H))}function C(H,X,J,ie){if(I(H)!==I(X))return!1;for(var ce=o(H),me=o(X),pe,ve,he;(pe=ce.next())&&!pe.done;)if(pe.value&&typeof pe.value=="object")he||(he=new M),T(he,pe.value);else if(!$(X,pe.value)){if(J.strict||!S(H,X,pe.value))return!1;he||(he=new M),T(he,pe.value)}if(he){for(;(ve=me.next())&&!ve.done;)if(ve.value&&typeof ve.value=="object"){if(!B(he,ve.value,J.strict,ie))return!1}else if(!J.strict&&!$(H,ve.value)&&!B(he,ve.value,J.strict,ie))return!1;return I(he)===0}return!0}function W(H,X,J,ie){if(D(H)!==D(X))return!1;for(var ce=o(H),me=o(X),pe,ve,he,ge,Se,ye;(pe=ce.next())&&!pe.done;)if(ge=pe.value[0],Se=pe.value[1],ge&&typeof ge=="object")he||(he=new M),T(he,ge);else if(ye=Q(X,ge),typeof ye>"u"&&!P(X,ge)||!R(Se,ye,J,ie)){if(J.strict||!z(H,X,ge,Se,J,ie))return!1;he||(he=new M),T(he,ge)}if(he){for(;(ve=me.next())&&!ve.done;)if(ge=ve.value[0],ye=ve.value[1],ge&&typeof ge=="object"){if(!te(he,H,ge,ye,J,ie))return!1}else if(!J.strict&&(!H.has(ge)||!R(Q(H,ge),ye,J,ie))&&!te(he,H,ge,ye,r({},J,{strict:!1}),ie))return!1;return I(he)===0}return!0}function V(H,X,J,ie){var ce,me;if(typeof H!=typeof X||H==null||X==null||N(H)!==N(X)||d(H)!==d(X))return!1;var pe=h(H),ve=h(X);if(pe!==ve)return!1;var he=H instanceof Error,ge=X instanceof Error;if(he!==ge||(he||ge)&&(H.name!==X.name||H.message!==X.message))return!1;var Se=y(H),ye=y(X);if(Se!==ye||(Se||ye)&&(H.source!==X.source||a(H)!==a(X)))return!1;var Re=g(H),be=g(X);if(Re!==be||(Re||be)&&q(H)!==q(X)||J.strict&&Z&&Z(H)!==Z(X))return!1;var Le=L(H),Pe=L(X);if(Le!==Pe)return!1;if(Le||Pe){if(H.length!==X.length)return!1;for(ce=0;ce<H.length;ce++)if(H[ce]!==X[ce])return!1;return!0}var Ee=v(H),ke=v(X);if(Ee!==ke)return!1;if(Ee||ke){if(H.length!==X.length)return!1;for(ce=0;ce<H.length;ce++)if(H[ce]!==X[ce])return!1;return!0}var ot=p(H),ft=p(X);if(ot!==ft)return!1;if(ot||ft)return k(H)!==k(X)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(H),new Uint8Array(X),J,ie);var yt=x(H),Nt=x(X);if(yt!==Nt)return!1;if(yt||Nt)return G(H)!==G(X)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(H),new Uint8Array(X),J,ie);if(typeof H!=typeof X)return!1;var Ae=E(H),Be=E(X);if(Ae.length!==Be.length)return!1;for(Ae.sort(),Be.sort(),ce=Ae.length-1;ce>=0;ce--)if(Ae[ce]!=Be[ce])return!1;for(ce=Ae.length-1;ce>=0;ce--)if(me=Ae[ce],!R(H[me],X[me],J,ie))return!1;var nt=_(H),dt=_(X);return nt!==dt?!1:nt==="Set"||dt==="Set"?C(H,X,J,ie):nt==="Map"?W(H,X,J,ie):!0}return Ph=function(X,J,ie){return R(X,J,ie,u())},Ph}var G_=U_();const Zn=Kn(G_);var Hh={exports:{}};/*!
64
+ Copyright (c) 2018 Jed Watson.
65
+ Licensed under the MIT License (MIT), see
66
+ http://jedwatson.github.io/classnames
67
+ */var xS;function jo(){return xS||(xS=1,function(r){(function(){var t={}.hasOwnProperty;function a(){for(var u="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(u=o(u,l(d)))}return u}function l(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var c="";for(var d in u)t.call(u,d)&&u[d]&&(c=o(c,d));return c}function o(u,c){return c?u?u+" "+c:u+c:u}r.exports?(a.default=a,r.exports=a):window.classNames=a})()}(Hh)),Hh.exports}var V_=jo();const Oe=Kn(V_);function jp(){return jp=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},jp.apply(null,arguments)}function nx(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)!==-1)continue;a[l]=r[l]}return a}function OS(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function W_(r){var t=Y_(r,"string");return typeof t=="symbol"?t:String(t)}function Y_(r,t){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var l=a.call(r,t);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function rx(r,t,a){var l=w.useRef(r!==void 0),o=w.useState(t),u=o[0],c=o[1],d=r!==void 0,h=l.current;return l.current=d,!d&&h&&u!==t&&c(t),[d?r:u,w.useCallback(function(p){for(var g=arguments.length,y=new Array(g>1?g-1:0),x=1;x<g;x++)y[x-1]=arguments[x];a&&a.apply(void 0,[p].concat(y)),c(p)},[a])]}function X_(r,t){return Object.keys(t).reduce(function(a,l){var o,u=a,c=u[OS(l)],d=u[l],h=nx(u,[OS(l),l].map(W_)),p=t[l],g=rx(d,c,r[p]),y=g[0],x=g[1];return jp({},h,(o={},o[l]=y,o[p]=x,o))},r)}function Ap(r,t){return Ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},Ap(r,t)}function F_(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,Ap(r,t)}const ax=["xxl","xl","lg","md","sm","xs"],ix="xs",Ao=w.createContext({prefixes:{},breakpoints:ax,minBreakpoint:ix}),{Consumer:EN,Provider:CN}=Ao;function Ce(r,t){const{prefixes:a}=w.useContext(Ao);return r||a[t]||t}function um(){const{breakpoints:r}=w.useContext(Ao);return r}function cm(){const{minBreakpoint:r}=w.useContext(Ao);return r}function fm(){const{dir:r}=w.useContext(Ao);return r==="rtl"}function ki(r){return r&&r.ownerDocument||document}function Q_(r){var t=ki(r);return t&&t.defaultView||window}function Z_(r,t){return Q_(r).getComputedStyle(r,t)}var K_=/([A-Z])/g;function J_(r){return r.replace(K_,"-$1").toLowerCase()}var e3=/^ms-/;function eu(r){return J_(r).replace(e3,"-ms-")}var t3=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function n3(r){return!!(r&&t3.test(r))}function Ha(r,t){var a="",l="";if(typeof t=="string")return r.style.getPropertyValue(eu(t))||Z_(r).getPropertyValue(eu(t));Object.keys(t).forEach(function(o){var u=t[o];!u&&u!==0?r.style.removeProperty(eu(o)):n3(o)?l+=o+"("+u+") ":a+=eu(o)+": "+u+";"}),l&&(a+="transform: "+l+";"),r.style.cssText+=";"+a}var kh={exports:{}},Bh,TS;function r3(){if(TS)return Bh;TS=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bh=r,Bh}var $h,ES;function a3(){if(ES)return $h;ES=1;var r=r3();function t(){}function a(){}return a.resetWarningCache=t,$h=function(){function l(c,d,h,p,g,y){if(y!==r){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}l.isRequired=l;function o(){return l}var u={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:o,element:l,elementType:l,instanceOf:o,node:l,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return u.PropTypes=u,u},$h}var CS;function lx(){return CS||(CS=1,kh.exports=a3()()),kh.exports}var i3=lx();const Pt=Kn(i3);var l3=ew();const za=Kn(l3),RS={disabled:!1},ox=Ft.createContext(null);var o3=function(t){return t.scrollTop},eo="unmounted",Na="exited",Yn="entering",oa="entered",fu="exiting",jr=function(r){F_(t,r);function t(l,o){var u;u=r.call(this,l,o)||this;var c=o,d=c&&!c.isMounting?l.enter:l.appear,h;return u.appearStatus=null,l.in?d?(h=Na,u.appearStatus=Yn):h=oa:l.unmountOnExit||l.mountOnEnter?h=eo:h=Na,u.state={status:h},u.nextCallback=null,u}t.getDerivedStateFromProps=function(o,u){var c=o.in;return c&&u.status===eo?{status:Na}:null};var a=t.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(o){var u=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==Yn&&c!==oa&&(u=Yn):(c===Yn||c===oa)&&(u=fu)}this.updateStatus(!1,u)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var o=this.props.timeout,u,c,d;return u=c=d=o,o!=null&&typeof o!="number"&&(u=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:u,enter:c,appear:d}},a.updateStatus=function(o,u){if(o===void 0&&(o=!1),u!==null)if(this.cancelNextCallback(),u===Yn){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:za.findDOMNode(this);c&&o3(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Na&&this.setState({status:eo})},a.performEnter=function(o){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[za.findDOMNode(this),d],p=h[0],g=h[1],y=this.getTimeouts(),x=d?y.appear:y.enter;if(!o&&!c||RS.disabled){this.safeSetState({status:oa},function(){u.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:Yn},function(){u.props.onEntering(p,g),u.onTransitionEnd(x,function(){u.safeSetState({status:oa},function(){u.props.onEntered(p,g)})})})},a.performExit=function(){var o=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:za.findDOMNode(this);if(!u||RS.disabled){this.safeSetState({status:Na},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:fu},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:Na},function(){o.props.onExited(d)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(o,u){u=this.setNextCallback(u),this.setState(o,u)},a.setNextCallback=function(o){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},a.onTransitionEnd=function(o,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:za.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],g=h[1];this.props.addEndListener(p,g)}o!=null&&setTimeout(this.nextCallback,o)},a.render=function(){var o=this.state.status;if(o===eo)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=nx(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ft.createElement(ox.Provider,{value:null},typeof c=="function"?c(o,d):Ft.cloneElement(Ft.Children.only(c),d))},t}(Ft.Component);jr.contextType=ox;jr.propTypes={};function Ei(){}jr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ei,onEntering:Ei,onEntered:Ei,onExit:Ei,onExiting:Ei,onExited:Ei};jr.UNMOUNTED=eo;jr.EXITED=Na;jr.ENTERING=Yn;jr.ENTERED=oa;jr.EXITING=fu;function sx(r){return r.code==="Escape"||r.keyCode===27}function s3(){const r=w.version.split(".");return{major:+r[0],minor:+r[1],patch:+r[2]}}function Bi(r){if(!r||typeof r=="function")return null;const{major:t}=s3();return t>=19?r.props.ref:r.ref}const $i=!!(typeof window<"u"&&window.document&&window.document.createElement);var Mp=!1,Np=!1;try{var Ih={get passive(){return Mp=!0},get once(){return Np=Mp=!0}};$i&&(window.addEventListener("test",Ih,Ih),window.removeEventListener("test",Ih,!0))}catch{}function ux(r,t,a,l){if(l&&typeof l!="boolean"&&!Np){var o=l.once,u=l.capture,c=a;!Np&&o&&(c=a.__once||function d(h){this.removeEventListener(t,d,u),a.call(this,h)},a.__once=c),r.addEventListener(t,c,Mp?l:u)}r.addEventListener(t,a,l)}function Dp(r,t,a,l){var o=l&&typeof l!="boolean"?l.capture:l;r.removeEventListener(t,a,o),a.__once&&r.removeEventListener(t,a.__once,o)}function Or(r,t,a,l){return ux(r,t,a,l),function(){Dp(r,t,a,l)}}function u3(r,t,a,l){if(l===void 0&&(l=!0),r){var o=document.createEvent("HTMLEvents");o.initEvent(t,a,l),r.dispatchEvent(o)}}function c3(r){var t=Ha(r,"transitionDuration")||"",a=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*a}function f3(r,t,a){a===void 0&&(a=5);var l=!1,o=setTimeout(function(){l||u3(r,"transitionend",!0)},t+a),u=Or(r,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(o),u()}}function cx(r,t,a,l){a==null&&(a=c3(r)||0);var o=f3(r,a,l),u=Or(r,"transitionend",t);return function(){o(),u()}}function _S(r,t){const a=Ha(r,t)||"",l=a.indexOf("ms")===-1?1e3:1;return parseFloat(a)*l}function fx(r,t){const a=_S(r,"transitionDuration"),l=_S(r,"transitionDelay"),o=cx(r,u=>{u.target===r&&(o(),t(u))},a+l)}function d3(r){r.offsetHeight}const jS=r=>!r||typeof r=="function"?r:t=>{r.current=t};function h3(r,t){const a=jS(r),l=jS(t);return o=>{a&&a(o),l&&l(o)}}function Ru(r,t){return w.useMemo(()=>h3(r,t),[r,t])}function du(r){return r&&"setState"in r?za.findDOMNode(r):r??null}const dm=Ft.forwardRef(({onEnter:r,onEntering:t,onEntered:a,onExit:l,onExiting:o,onExited:u,addEndListener:c,children:d,childRef:h,...p},g)=>{const y=w.useRef(null),x=Ru(y,h),E=M=>{x(du(M))},j=M=>P=>{M&&y.current&&M(y.current,P)},_=w.useCallback(j(r),[r]),L=w.useCallback(j(t),[t]),k=w.useCallback(j(a),[a]),G=w.useCallback(j(l),[l]),q=w.useCallback(j(o),[o]),Z=w.useCallback(j(u),[u]),N=w.useCallback(j(c),[c]);return b.jsx(jr,{ref:g,...p,onEnter:_,onEntered:k,onEntering:L,onExit:G,onExited:Z,onExiting:q,addEndListener:N,nodeRef:y,children:typeof d=="function"?(M,P)=>d(M,{...P,ref:E}):Ft.cloneElement(d,{ref:E})})});dm.displayName="TransitionWrapper";function p3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function lo(r){const t=p3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}const _u=r=>w.forwardRef((t,a)=>b.jsx("div",{...t,ref:a,className:Oe(t.className,r)}));function AS(){return w.useState(null)}function m3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function wn(r){const t=m3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}function dx(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function g3(r){const t=w.useRef(null);return w.useEffect(()=>{t.current=r}),t.current}const v3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",y3=typeof document<"u",MS=y3||v3?w.useLayoutEffect:w.useEffect,b3=["as","disabled"];function S3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function w3(r){return!r||r.trim()==="#"}function hm({tagName:r,disabled:t,href:a,target:l,rel:o,role:u,onClick:c,tabIndex:d=0,type:h}){r||(a!=null||l!=null||o!=null?r="a":r="button");const p={tagName:r};if(r==="button")return[{type:h||"button",disabled:t},p];const g=x=>{if((t||r==="a"&&w3(a))&&x.preventDefault(),t){x.stopPropagation();return}c==null||c(x)},y=x=>{x.key===" "&&(x.preventDefault(),g(x))};return r==="a"&&(a||(a="#"),t&&(a=void 0)),[{role:u??"button",disabled:void 0,tabIndex:t?void 0:d,href:a,target:r==="a"?l:void 0,"aria-disabled":t||void 0,rel:r==="a"?o:void 0,onClick:g,onKeyDown:y},p]}const hx=w.forwardRef((r,t)=>{let{as:a,disabled:l}=r,o=S3(r,b3);const[u,{tagName:c}]=hm(Object.assign({tagName:a,disabled:l},o));return b.jsx(c,Object.assign({},o,u,{ref:t}))});hx.displayName="Button";const x3=["onKeyDown"];function O3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function T3(r){return!r||r.trim()==="#"}const px=w.forwardRef((r,t)=>{let{onKeyDown:a}=r,l=O3(r,x3);const[o]=hm(Object.assign({tagName:"a"},l)),u=wn(c=>{o.onKeyDown(c),a==null||a(c)});return T3(l.href)||l.role==="button"?b.jsx("a",Object.assign({ref:t},l,o,{onKeyDown:u})):b.jsx("a",Object.assign({ref:t},l,{onKeyDown:a}))});px.displayName="Anchor";const E3={[Yn]:"show",[oa]:"show"},sa=w.forwardRef(({className:r,children:t,transitionClasses:a={},onEnter:l,...o},u)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},d=w.useCallback((h,p)=>{d3(h),l==null||l(h,p)},[l]);return b.jsx(dm,{ref:u,addEndListener:fx,...c,onEnter:d,childRef:Bi(t),children:(h,p)=>w.cloneElement(t,{...p,className:Oe("fade",r,t.props.className,E3[h],a[h])})})});sa.displayName="Fade";const C3={"aria-label":Pt.string,onClick:Pt.func,variant:Pt.oneOf(["white"])},pm=w.forwardRef(({className:r,variant:t,"aria-label":a="Close",...l},o)=>b.jsx("button",{ref:o,type:"button",className:Oe("btn-close",t&&`btn-close-${t}`,r),"aria-label":a,...l}));pm.displayName="CloseButton";pm.propTypes=C3;const Ii=w.forwardRef(({bsPrefix:r,bg:t="primary",pill:a=!1,text:l,className:o,as:u="span",...c},d)=>{const h=Ce(r,"badge");return b.jsx(u,{ref:d,...c,className:Oe(o,h,a&&"rounded-pill",l&&`text-${l}`,t&&`bg-${t}`)})});Ii.displayName="Badge";const Qt=w.forwardRef(({as:r,bsPrefix:t,variant:a="primary",size:l,active:o=!1,disabled:u=!1,className:c,...d},h)=>{const p=Ce(t,"btn"),[g,{tagName:y}]=hm({tagName:r,disabled:u,...d}),x=y;return b.jsx(x,{...g,...d,ref:h,disabled:u,className:Oe(c,p,o&&"active",a&&`${p}-${a}`,l&&`${p}-${l}`,d.href&&u&&"disabled")})});Qt.displayName="Button";const mx=w.forwardRef(({bsPrefix:r,size:t,vertical:a=!1,className:l,role:o="group",as:u="div",...c},d)=>{const h=Ce(r,"btn-group");let p=h;return a&&(p=`${h}-vertical`),b.jsx(u,{...c,ref:d,role:o,className:Oe(l,p,t&&`${h}-${t}`)})});mx.displayName="ButtonGroup";const mm=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-body"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));mm.displayName="CardBody";const gx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-footer"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));gx.displayName="CardFooter";const gm=w.createContext(null);gm.displayName="CardHeaderContext";const vx=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"card-header"),c=w.useMemo(()=>({cardHeaderBsPrefix:u}),[u]);return b.jsx(gm.Provider,{value:c,children:b.jsx(a,{ref:o,...l,className:Oe(t,u)})})});vx.displayName="CardHeader";const yx=w.forwardRef(({bsPrefix:r,className:t,variant:a,as:l="img",...o},u)=>{const c=Ce(r,"card-img");return b.jsx(l,{ref:u,className:Oe(a?`${c}-${a}`:c,t),...o})});yx.displayName="CardImg";const bx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-img-overlay"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));bx.displayName="CardImgOverlay";const Sx=w.forwardRef(({className:r,bsPrefix:t,as:a="a",...l},o)=>(t=Ce(t,"card-link"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));Sx.displayName="CardLink";const R3=_u("h6"),wx=w.forwardRef(({className:r,bsPrefix:t,as:a=R3,...l},o)=>(t=Ce(t,"card-subtitle"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));wx.displayName="CardSubtitle";const xx=w.forwardRef(({className:r,bsPrefix:t,as:a="p",...l},o)=>(t=Ce(t,"card-text"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));xx.displayName="CardText";const _3=_u("h5"),Ox=w.forwardRef(({className:r,bsPrefix:t,as:a=_3,...l},o)=>(t=Ce(t,"card-title"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));Ox.displayName="CardTitle";const Tx=w.forwardRef(({bsPrefix:r,className:t,bg:a,text:l,border:o,body:u=!1,children:c,as:d="div",...h},p)=>{const g=Ce(r,"card");return b.jsx(d,{ref:p,...h,className:Oe(t,g,a&&`bg-${a}`,l&&`text-${l}`,o&&`border-${o}`),children:u?b.jsx(mm,{children:c}):c})});Tx.displayName="Card";const it=Object.assign(Tx,{Img:yx,Title:Ox,Subtitle:wx,Body:mm,Link:Sx,Text:xx,Header:vx,Footer:gx,ImgOverlay:bx});function j3(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function A3(r){const t=w.useRef(r);return t.current=r,t}function Ex(r){const t=A3(r);w.useEffect(()=>()=>t.current(),[])}const Lp=2**31-1;function Cx(r,t,a){const l=a-Date.now();r.current=l<=Lp?setTimeout(t,l):setTimeout(()=>Cx(r,t,a),Lp)}function M3(){const r=j3(),t=w.useRef();return Ex(()=>clearTimeout(t.current)),w.useMemo(()=>{const a=()=>clearTimeout(t.current);function l(o,u=0){r()&&(a(),u<=Lp?t.current=setTimeout(o,u):Cx(t,o,Date.now()+u))}return{set:l,clear:a,handleRef:t}},[])}function N3(r,t){return w.Children.toArray(r).some(a=>w.isValidElement(a)&&a.type===t)}function D3({as:r,bsPrefix:t,className:a,...l}){t=Ce(t,"col");const o=um(),u=cm(),c=[],d=[];return o.forEach(h=>{const p=l[h];delete l[h];let g,y,x;typeof p=="object"&&p!=null?{span:g,offset:y,order:x}=p:g=p;const E=h!==u?`-${h}`:"";g&&c.push(g===!0?`${t}${E}`:`${t}${E}-${g}`),x!=null&&d.push(`order${E}-${x}`),y!=null&&d.push(`offset${E}-${y}`)}),[{...l,className:Oe(a,...c,...d)},{as:r,bsPrefix:t,spans:c}]}const lt=w.forwardRef((r,t)=>{const[{className:a,...l},{as:o="div",bsPrefix:u,spans:c}]=D3(r);return b.jsx(o,{...l,ref:t,className:Oe(a,!c.length&&u)})});lt.displayName="Col";const On=w.forwardRef(({bsPrefix:r,fluid:t=!1,as:a="div",className:l,...o},u)=>{const c=Ce(r,"container"),d=typeof t=="string"?`-${t}`:"-fluid";return b.jsx(a,{ref:u,...o,className:Oe(l,t?`${c}${d}`:c)})});On.displayName="Container";var L3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Da(r,t){return L3(r.querySelectorAll(t))}function z3(r,t,a){const l=w.useRef(r!==void 0),[o,u]=w.useState(t),c=r!==void 0,d=l.current;return l.current=c,!c&&d&&o!==t&&u(t),[c?r:o,w.useCallback((...h)=>{const[p,...g]=h;let y=a==null?void 0:a(p,...g);return u(p),y},[a])]}function P3(){const[,r]=w.useReducer(t=>t+1,0);return r}var NS=Object.prototype.hasOwnProperty;function DS(r,t,a){for(a of r.keys())if(to(a,t))return a}function to(r,t){var a,l,o;if(r===t)return!0;if(r&&t&&(a=r.constructor)===t.constructor){if(a===Date)return r.getTime()===t.getTime();if(a===RegExp)return r.toString()===t.toString();if(a===Array){if((l=r.length)===t.length)for(;l--&&to(r[l],t[l]););return l===-1}if(a===Set){if(r.size!==t.size)return!1;for(l of r)if(o=l,o&&typeof o=="object"&&(o=DS(t,o),!o)||!t.has(o))return!1;return!0}if(a===Map){if(r.size!==t.size)return!1;for(l of r)if(o=l[0],o&&typeof o=="object"&&(o=DS(t,o),!o)||!to(l[1],t.get(o)))return!1;return!0}if(a===ArrayBuffer)r=new Uint8Array(r),t=new Uint8Array(t);else if(a===DataView){if((l=r.byteLength)===t.byteLength)for(;l--&&r.getInt8(l)===t.getInt8(l););return l===-1}if(ArrayBuffer.isView(r)){if((l=r.byteLength)===t.byteLength)for(;l--&&r[l]===t[l];);return l===-1}if(!a||typeof r=="object"){l=0;for(a in r)if(NS.call(r,a)&&++l&&!NS.call(t,a)||!(a in t)||!to(r[a],t[a]))return!1;return Object.keys(t).length===l}}return r!==r&&t!==t}function H3(r){const t=dx();return[r[0],w.useCallback(a=>{if(t())return r[1](a)},[t,r[1]])]}var Zt="top",Tn="bottom",En="right",Kt="left",vm="auto",Mo=[Zt,Tn,En,Kt],Ri="start",oo="end",k3="clippingParents",Rx="viewport",Ul="popper",B3="reference",LS=Mo.reduce(function(r,t){return r.concat([t+"-"+Ri,t+"-"+oo])},[]),_x=[].concat(Mo,[vm]).reduce(function(r,t){return r.concat([t,t+"-"+Ri,t+"-"+oo])},[]),$3="beforeRead",I3="read",q3="afterRead",U3="beforeMain",G3="main",V3="afterMain",W3="beforeWrite",Y3="write",X3="afterWrite",F3=[$3,I3,q3,U3,G3,V3,W3,Y3,X3];function Fn(r){return r.split("-")[0]}function sn(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var t=r.ownerDocument;return t&&t.defaultView||window}return r}function $a(r){var t=sn(r).Element;return r instanceof t||r instanceof Element}function Qn(r){var t=sn(r).HTMLElement;return r instanceof t||r instanceof HTMLElement}function ym(r){if(typeof ShadowRoot>"u")return!1;var t=sn(r).ShadowRoot;return r instanceof t||r instanceof ShadowRoot}var ka=Math.max,hu=Math.min,_i=Math.round;function zp(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function jx(){return!/^((?!chrome|android).)*safari/i.test(zp())}function ji(r,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var l=r.getBoundingClientRect(),o=1,u=1;t&&Qn(r)&&(o=r.offsetWidth>0&&_i(l.width)/r.offsetWidth||1,u=r.offsetHeight>0&&_i(l.height)/r.offsetHeight||1);var c=$a(r)?sn(r):window,d=c.visualViewport,h=!jx()&&a,p=(l.left+(h&&d?d.offsetLeft:0))/o,g=(l.top+(h&&d?d.offsetTop:0))/u,y=l.width/o,x=l.height/u;return{width:y,height:x,top:g,right:p+y,bottom:g+x,left:p,x:p,y:g}}function bm(r){var t=ji(r),a=r.offsetWidth,l=r.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:r.offsetLeft,y:r.offsetTop,width:a,height:l}}function Ax(r,t){var a=t.getRootNode&&t.getRootNode();if(r.contains(t))return!0;if(a&&ym(a)){var l=t;do{if(l&&r.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function ua(r){return r?(r.nodeName||"").toLowerCase():null}function Rr(r){return sn(r).getComputedStyle(r)}function Q3(r){return["table","td","th"].indexOf(ua(r))>=0}function fa(r){return(($a(r)?r.ownerDocument:r.document)||window.document).documentElement}function ju(r){return ua(r)==="html"?r:r.assignedSlot||r.parentNode||(ym(r)?r.host:null)||fa(r)}function zS(r){return!Qn(r)||Rr(r).position==="fixed"?null:r.offsetParent}function Z3(r){var t=/firefox/i.test(zp()),a=/Trident/i.test(zp());if(a&&Qn(r)){var l=Rr(r);if(l.position==="fixed")return null}var o=ju(r);for(ym(o)&&(o=o.host);Qn(o)&&["html","body"].indexOf(ua(o))<0;){var u=Rr(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function No(r){for(var t=sn(r),a=zS(r);a&&Q3(a)&&Rr(a).position==="static";)a=zS(a);return a&&(ua(a)==="html"||ua(a)==="body"&&Rr(a).position==="static")?t:a||Z3(r)||t}function Sm(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function no(r,t,a){return ka(r,hu(t,a))}function K3(r,t,a){var l=no(r,t,a);return l>a?a:l}function Mx(){return{top:0,right:0,bottom:0,left:0}}function Nx(r){return Object.assign({},Mx(),r)}function Dx(r,t){return t.reduce(function(a,l){return a[l]=r,a},{})}var J3=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,Nx(typeof t!="number"?t:Dx(t,Mo))};function ej(r){var t,a=r.state,l=r.name,o=r.options,u=a.elements.arrow,c=a.modifiersData.popperOffsets,d=Fn(a.placement),h=Sm(d),p=[Kt,En].indexOf(d)>=0,g=p?"height":"width";if(!(!u||!c)){var y=J3(o.padding,a),x=bm(u),E=h==="y"?Zt:Kt,j=h==="y"?Tn:En,_=a.rects.reference[g]+a.rects.reference[h]-c[h]-a.rects.popper[g],L=c[h]-a.rects.reference[h],k=No(u),G=k?h==="y"?k.clientHeight||0:k.clientWidth||0:0,q=_/2-L/2,Z=y[E],N=G-x[g]-y[j],M=G/2-x[g]/2+q,P=no(Z,M,N),Q=h;a.modifiersData[l]=(t={},t[Q]=P,t.centerOffset=P-M,t)}}function tj(r){var t=r.state,a=r.options,l=a.element,o=l===void 0?"[data-popper-arrow]":l;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ax(t.elements.popper,o)&&(t.elements.arrow=o))}const nj={name:"arrow",enabled:!0,phase:"main",fn:ej,effect:tj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(r){return r.split("-")[1]}var rj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aj(r,t){var a=r.x,l=r.y,o=t.devicePixelRatio||1;return{x:_i(a*o)/o||0,y:_i(l*o)/o||0}}function PS(r){var t,a=r.popper,l=r.popperRect,o=r.placement,u=r.variation,c=r.offsets,d=r.position,h=r.gpuAcceleration,p=r.adaptive,g=r.roundOffsets,y=r.isFixed,x=c.x,E=x===void 0?0:x,j=c.y,_=j===void 0?0:j,L=typeof g=="function"?g({x:E,y:_}):{x:E,y:_};E=L.x,_=L.y;var k=c.hasOwnProperty("x"),G=c.hasOwnProperty("y"),q=Kt,Z=Zt,N=window;if(p){var M=No(a),P="clientHeight",Q="clientWidth";if(M===sn(a)&&(M=fa(a),Rr(M).position!=="static"&&d==="absolute"&&(P="scrollHeight",Q="scrollWidth")),M=M,o===Zt||(o===Kt||o===En)&&u===oo){Z=Tn;var D=y&&M===N&&N.visualViewport?N.visualViewport.height:M[P];_-=D-l.height,_*=h?1:-1}if(o===Kt||(o===Zt||o===Tn)&&u===oo){q=En;var T=y&&M===N&&N.visualViewport?N.visualViewport.width:M[Q];E-=T-l.width,E*=h?1:-1}}var F=Object.assign({position:d},p&&rj),$=g===!0?aj({x:E,y:_},sn(a)):{x:E,y:_};if(E=$.x,_=$.y,h){var I;return Object.assign({},F,(I={},I[Z]=G?"0":"",I[q]=k?"0":"",I.transform=(N.devicePixelRatio||1)<=1?"translate("+E+"px, "+_+"px)":"translate3d("+E+"px, "+_+"px, 0)",I))}return Object.assign({},F,(t={},t[Z]=G?_+"px":"",t[q]=k?E+"px":"",t.transform="",t))}function ij(r){var t=r.state,a=r.options,l=a.gpuAcceleration,o=l===void 0?!0:l,u=a.adaptive,c=u===void 0?!0:u,d=a.roundOffsets,h=d===void 0?!0:d,p={placement:Fn(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,PS(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PS(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const lj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ij,data:{}};var tu={passive:!0};function oj(r){var t=r.state,a=r.instance,l=r.options,o=l.scroll,u=o===void 0?!0:o,c=l.resize,d=c===void 0?!0:c,h=sn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&p.forEach(function(g){g.addEventListener("scroll",a.update,tu)}),d&&h.addEventListener("resize",a.update,tu),function(){u&&p.forEach(function(g){g.removeEventListener("scroll",a.update,tu)}),d&&h.removeEventListener("resize",a.update,tu)}}const sj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oj,data:{}};var uj={left:"right",right:"left",bottom:"top",top:"bottom"};function ou(r){return r.replace(/left|right|bottom|top/g,function(t){return uj[t]})}var cj={start:"end",end:"start"};function HS(r){return r.replace(/start|end/g,function(t){return cj[t]})}function wm(r){var t=sn(r),a=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:a,scrollTop:l}}function xm(r){return ji(fa(r)).left+wm(r).scrollLeft}function fj(r,t){var a=sn(r),l=fa(r),o=a.visualViewport,u=l.clientWidth,c=l.clientHeight,d=0,h=0;if(o){u=o.width,c=o.height;var p=jx();(p||!p&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:u,height:c,x:d+xm(r),y:h}}function dj(r){var t,a=fa(r),l=wm(r),o=(t=r.ownerDocument)==null?void 0:t.body,u=ka(a.scrollWidth,a.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ka(a.scrollHeight,a.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-l.scrollLeft+xm(r),h=-l.scrollTop;return Rr(o||a).direction==="rtl"&&(d+=ka(a.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:d,y:h}}function Om(r){var t=Rr(r),a=t.overflow,l=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+l)}function Lx(r){return["html","body","#document"].indexOf(ua(r))>=0?r.ownerDocument.body:Qn(r)&&Om(r)?r:Lx(ju(r))}function ro(r,t){var a;t===void 0&&(t=[]);var l=Lx(r),o=l===((a=r.ownerDocument)==null?void 0:a.body),u=sn(l),c=o?[u].concat(u.visualViewport||[],Om(l)?l:[]):l,d=t.concat(c);return o?d:d.concat(ro(ju(c)))}function Pp(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function hj(r,t){var a=ji(r,!1,t==="fixed");return a.top=a.top+r.clientTop,a.left=a.left+r.clientLeft,a.bottom=a.top+r.clientHeight,a.right=a.left+r.clientWidth,a.width=r.clientWidth,a.height=r.clientHeight,a.x=a.left,a.y=a.top,a}function kS(r,t,a){return t===Rx?Pp(fj(r,a)):$a(t)?hj(t,a):Pp(dj(fa(r)))}function pj(r){var t=ro(ju(r)),a=["absolute","fixed"].indexOf(Rr(r).position)>=0,l=a&&Qn(r)?No(r):r;return $a(l)?t.filter(function(o){return $a(o)&&Ax(o,l)&&ua(o)!=="body"}):[]}function mj(r,t,a,l){var o=t==="clippingParents"?pj(r):[].concat(t),u=[].concat(o,[a]),c=u[0],d=u.reduce(function(h,p){var g=kS(r,p,l);return h.top=ka(g.top,h.top),h.right=hu(g.right,h.right),h.bottom=hu(g.bottom,h.bottom),h.left=ka(g.left,h.left),h},kS(r,c,l));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function zx(r){var t=r.reference,a=r.element,l=r.placement,o=l?Fn(l):null,u=l?Ai(l):null,c=t.x+t.width/2-a.width/2,d=t.y+t.height/2-a.height/2,h;switch(o){case Zt:h={x:c,y:t.y-a.height};break;case Tn:h={x:c,y:t.y+t.height};break;case En:h={x:t.x+t.width,y:d};break;case Kt:h={x:t.x-a.width,y:d};break;default:h={x:t.x,y:t.y}}var p=o?Sm(o):null;if(p!=null){var g=p==="y"?"height":"width";switch(u){case Ri:h[p]=h[p]-(t[g]/2-a[g]/2);break;case oo:h[p]=h[p]+(t[g]/2-a[g]/2);break}}return h}function so(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=l===void 0?r.placement:l,u=a.strategy,c=u===void 0?r.strategy:u,d=a.boundary,h=d===void 0?k3:d,p=a.rootBoundary,g=p===void 0?Rx:p,y=a.elementContext,x=y===void 0?Ul:y,E=a.altBoundary,j=E===void 0?!1:E,_=a.padding,L=_===void 0?0:_,k=Nx(typeof L!="number"?L:Dx(L,Mo)),G=x===Ul?B3:Ul,q=r.rects.popper,Z=r.elements[j?G:x],N=mj($a(Z)?Z:Z.contextElement||fa(r.elements.popper),h,g,c),M=ji(r.elements.reference),P=zx({reference:M,element:q,placement:o}),Q=Pp(Object.assign({},q,P)),D=x===Ul?Q:M,T={top:N.top-D.top+k.top,bottom:D.bottom-N.bottom+k.bottom,left:N.left-D.left+k.left,right:D.right-N.right+k.right},F=r.modifiersData.offset;if(x===Ul&&F){var $=F[o];Object.keys(T).forEach(function(I){var B=[En,Tn].indexOf(I)>=0?1:-1,U=[Zt,Tn].indexOf(I)>=0?"y":"x";T[I]+=$[U]*B})}return T}function gj(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=a.boundary,u=a.rootBoundary,c=a.padding,d=a.flipVariations,h=a.allowedAutoPlacements,p=h===void 0?_x:h,g=Ai(l),y=g?d?LS:LS.filter(function(j){return Ai(j)===g}):Mo,x=y.filter(function(j){return p.indexOf(j)>=0});x.length===0&&(x=y);var E=x.reduce(function(j,_){return j[_]=so(r,{placement:_,boundary:o,rootBoundary:u,padding:c})[Fn(_)],j},{});return Object.keys(E).sort(function(j,_){return E[j]-E[_]})}function vj(r){if(Fn(r)===vm)return[];var t=ou(r);return[HS(r),t,HS(t)]}function yj(r){var t=r.state,a=r.options,l=r.name;if(!t.modifiersData[l]._skip){for(var o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!0:c,h=a.fallbackPlacements,p=a.padding,g=a.boundary,y=a.rootBoundary,x=a.altBoundary,E=a.flipVariations,j=E===void 0?!0:E,_=a.allowedAutoPlacements,L=t.options.placement,k=Fn(L),G=k===L,q=h||(G||!j?[ou(L)]:vj(L)),Z=[L].concat(q).reduce(function(H,X){return H.concat(Fn(X)===vm?gj(t,{placement:X,boundary:g,rootBoundary:y,padding:p,flipVariations:j,allowedAutoPlacements:_}):X)},[]),N=t.rects.reference,M=t.rects.popper,P=new Map,Q=!0,D=Z[0],T=0;T<Z.length;T++){var F=Z[T],$=Fn(F),I=Ai(F)===Ri,B=[Zt,Tn].indexOf($)>=0,U=B?"width":"height",z=so(t,{placement:F,boundary:g,rootBoundary:y,altBoundary:x,padding:p}),S=B?I?En:Kt:I?Tn:Zt;N[U]>M[U]&&(S=ou(S));var te=ou(S),R=[];if(u&&R.push(z[$]<=0),d&&R.push(z[S]<=0,z[te]<=0),R.every(function(H){return H})){D=F,Q=!1;break}P.set(F,R)}if(Q)for(var v=j?3:1,C=function(X){var J=Z.find(function(ie){var ce=P.get(ie);if(ce)return ce.slice(0,X).every(function(me){return me})});if(J)return D=J,"break"},W=v;W>0;W--){var V=C(W);if(V==="break")break}t.placement!==D&&(t.modifiersData[l]._skip=!0,t.placement=D,t.reset=!0)}}const bj={name:"flip",enabled:!0,phase:"main",fn:yj,requiresIfExists:["offset"],data:{_skip:!1}};function BS(r,t,a){return a===void 0&&(a={x:0,y:0}),{top:r.top-t.height-a.y,right:r.right-t.width+a.x,bottom:r.bottom-t.height+a.y,left:r.left-t.width-a.x}}function $S(r){return[Zt,En,Tn,Kt].some(function(t){return r[t]>=0})}function Sj(r){var t=r.state,a=r.name,l=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,c=so(t,{elementContext:"reference"}),d=so(t,{altBoundary:!0}),h=BS(c,l),p=BS(d,o,u),g=$S(h),y=$S(p);t.modifiersData[a]={referenceClippingOffsets:h,popperEscapeOffsets:p,isReferenceHidden:g,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":y})}const wj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sj};function xj(r,t,a){var l=Fn(r),o=[Kt,Zt].indexOf(l)>=0?-1:1,u=typeof a=="function"?a(Object.assign({},t,{placement:r})):a,c=u[0],d=u[1];return c=c||0,d=(d||0)*o,[Kt,En].indexOf(l)>=0?{x:d,y:c}:{x:c,y:d}}function Oj(r){var t=r.state,a=r.options,l=r.name,o=a.offset,u=o===void 0?[0,0]:o,c=_x.reduce(function(g,y){return g[y]=xj(y,t.rects,u),g},{}),d=c[t.placement],h=d.x,p=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=p),t.modifiersData[l]=c}const Tj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oj};function Ej(r){var t=r.state,a=r.name;t.modifiersData[a]=zx({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Cj={name:"popperOffsets",enabled:!0,phase:"read",fn:Ej,data:{}};function Rj(r){return r==="x"?"y":"x"}function _j(r){var t=r.state,a=r.options,l=r.name,o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!1:c,h=a.boundary,p=a.rootBoundary,g=a.altBoundary,y=a.padding,x=a.tether,E=x===void 0?!0:x,j=a.tetherOffset,_=j===void 0?0:j,L=so(t,{boundary:h,rootBoundary:p,padding:y,altBoundary:g}),k=Fn(t.placement),G=Ai(t.placement),q=!G,Z=Sm(k),N=Rj(Z),M=t.modifiersData.popperOffsets,P=t.rects.reference,Q=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,T=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(M){if(u){var I,B=Z==="y"?Zt:Kt,U=Z==="y"?Tn:En,z=Z==="y"?"height":"width",S=M[Z],te=S+L[B],R=S-L[U],v=E?-Q[z]/2:0,C=G===Ri?P[z]:Q[z],W=G===Ri?-Q[z]:-P[z],V=t.elements.arrow,H=E&&V?bm(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mx(),J=X[B],ie=X[U],ce=no(0,P[z],H[z]),me=q?P[z]/2-v-ce-J-T.mainAxis:C-ce-J-T.mainAxis,pe=q?-P[z]/2+v+ce+ie+T.mainAxis:W+ce+ie+T.mainAxis,ve=t.elements.arrow&&No(t.elements.arrow),he=ve?Z==="y"?ve.clientTop||0:ve.clientLeft||0:0,ge=(I=F==null?void 0:F[Z])!=null?I:0,Se=S+me-ge-he,ye=S+pe-ge,Re=no(E?hu(te,Se):te,S,E?ka(R,ye):R);M[Z]=Re,$[Z]=Re-S}if(d){var be,Le=Z==="x"?Zt:Kt,Pe=Z==="x"?Tn:En,Ee=M[N],ke=N==="y"?"height":"width",ot=Ee+L[Le],ft=Ee-L[Pe],yt=[Zt,Kt].indexOf(k)!==-1,Nt=(be=F==null?void 0:F[N])!=null?be:0,Ae=yt?ot:Ee-P[ke]-Q[ke]-Nt+T.altAxis,Be=yt?Ee+P[ke]+Q[ke]-Nt-T.altAxis:ft,nt=E&&yt?K3(Ae,Ee,Be):no(E?Ae:ot,Ee,E?Be:ft);M[N]=nt,$[N]=nt-Ee}t.modifiersData[l]=$}}const jj={name:"preventOverflow",enabled:!0,phase:"main",fn:_j,requiresIfExists:["offset"]};function Aj(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Mj(r){return r===sn(r)||!Qn(r)?wm(r):Aj(r)}function Nj(r){var t=r.getBoundingClientRect(),a=_i(t.width)/r.offsetWidth||1,l=_i(t.height)/r.offsetHeight||1;return a!==1||l!==1}function Dj(r,t,a){a===void 0&&(a=!1);var l=Qn(t),o=Qn(t)&&Nj(t),u=fa(t),c=ji(r,o,a),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!a)&&((ua(t)!=="body"||Om(u))&&(d=Mj(t)),Qn(t)?(h=ji(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=xm(u))),{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function Lj(r){var t=new Map,a=new Set,l=[];r.forEach(function(u){t.set(u.name,u)});function o(u){a.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(d){if(!a.has(d)){var h=t.get(d);h&&o(h)}}),l.push(u)}return r.forEach(function(u){a.has(u.name)||o(u)}),l}function zj(r){var t=Lj(r);return F3.reduce(function(a,l){return a.concat(t.filter(function(o){return o.phase===l}))},[])}function Pj(r){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(r())})})),t}}function Hj(r){var t=r.reduce(function(a,l){var o=a[l.name];return a[l.name]=o?Object.assign({},o,l,{options:Object.assign({},o.options,l.options),data:Object.assign({},o.data,l.data)}):l,a},{});return Object.keys(t).map(function(a){return t[a]})}var IS={placement:"bottom",modifiers:[],strategy:"absolute"};function qS(){for(var r=arguments.length,t=new Array(r),a=0;a<r;a++)t[a]=arguments[a];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function kj(r){r===void 0&&(r={});var t=r,a=t.defaultModifiers,l=a===void 0?[]:a,o=t.defaultOptions,u=o===void 0?IS:o;return function(d,h,p){p===void 0&&(p=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},IS,u),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},y=[],x=!1,E={state:g,setOptions:function(k){var G=typeof k=="function"?k(g.options):k;_(),g.options=Object.assign({},u,g.options,G),g.scrollParents={reference:$a(d)?ro(d):d.contextElement?ro(d.contextElement):[],popper:ro(h)};var q=zj(Hj([].concat(l,g.options.modifiers)));return g.orderedModifiers=q.filter(function(Z){return Z.enabled}),j(),E.update()},forceUpdate:function(){if(!x){var k=g.elements,G=k.reference,q=k.popper;if(qS(G,q)){g.rects={reference:Dj(G,No(q),g.options.strategy==="fixed"),popper:bm(q)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(T){return g.modifiersData[T.name]=Object.assign({},T.data)});for(var Z=0;Z<g.orderedModifiers.length;Z++){if(g.reset===!0){g.reset=!1,Z=-1;continue}var N=g.orderedModifiers[Z],M=N.fn,P=N.options,Q=P===void 0?{}:P,D=N.name;typeof M=="function"&&(g=M({state:g,options:Q,name:D,instance:E})||g)}}}},update:Pj(function(){return new Promise(function(L){E.forceUpdate(),L(g)})}),destroy:function(){_(),x=!0}};if(!qS(d,h))return E;E.setOptions(p).then(function(L){!x&&p.onFirstUpdate&&p.onFirstUpdate(L)});function j(){g.orderedModifiers.forEach(function(L){var k=L.name,G=L.options,q=G===void 0?{}:G,Z=L.effect;if(typeof Z=="function"){var N=Z({state:g,name:k,instance:E,options:q}),M=function(){};y.push(N||M)}})}function _(){y.forEach(function(L){return L()}),y=[]}return E}}const Bj=kj({defaultModifiers:[wj,Cj,lj,sj,Tj,bj,jj,nj]}),$j=["enabled","placement","strategy","modifiers"];function Ij(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const qj={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Uj={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:r})=>()=>{const{reference:t,popper:a}=r.elements;if("removeAttribute"in t){const l=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==a.id);l.length?t.setAttribute("aria-describedby",l.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:r})=>{var t;const{popper:a,reference:l}=r.elements,o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();if(a.id&&o==="tooltip"&&"setAttribute"in l){const u=l.getAttribute("aria-describedby");if(u&&u.split(",").indexOf(a.id)!==-1)return;l.setAttribute("aria-describedby",u?`${u},${a.id}`:a.id)}}},Gj=[];function Vj(r,t,a={}){let{enabled:l=!0,placement:o="bottom",strategy:u="absolute",modifiers:c=Gj}=a,d=Ij(a,$j);const h=w.useRef(c),p=w.useRef(),g=w.useCallback(()=>{var L;(L=p.current)==null||L.update()},[]),y=w.useCallback(()=>{var L;(L=p.current)==null||L.forceUpdate()},[]),[x,E]=H3(w.useState({placement:o,update:g,forceUpdate:y,attributes:{},styles:{popper:{},arrow:{}}})),j=w.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:L})=>{const k={},G={};Object.keys(L.elements).forEach(q=>{k[q]=L.styles[q],G[q]=L.attributes[q]}),E({state:L,styles:k,attributes:G,update:g,forceUpdate:y,placement:L.placement})}}),[g,y,E]),_=w.useMemo(()=>(to(h.current,c)||(h.current=c),h.current),[c]);return w.useEffect(()=>{!p.current||!l||p.current.setOptions({placement:o,strategy:u,modifiers:[..._,j,qj]})},[u,o,j,l,_]),w.useEffect(()=>{if(!(!l||r==null||t==null))return p.current=Bj(r,t,Object.assign({},d,{placement:o,strategy:u,modifiers:[..._,Uj,j]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,E(L=>Object.assign({},L,{attributes:{},styles:{popper:{}}})))}},[l,r,t]),x}function uo(r,t){if(r.contains)return r.contains(t);if(r.compareDocumentPosition)return r===t||!!(r.compareDocumentPosition(t)&16)}var qh,US;function Wj(){if(US)return qh;US=1;var r=function(){};return qh=r,qh}var Yj=Wj();const Xj=Kn(Yj),GS=()=>{};function Fj(r){return r.button===0}function Qj(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}const su=r=>r&&("current"in r?r.current:r),VS={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Zj(r,t=GS,{disabled:a,clickTrigger:l="click"}={}){const o=w.useRef(!1),u=w.useRef(!1),c=w.useCallback(p=>{const g=su(r);Xj(!!g,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!g||Qj(p)||!Fj(p)||!!uo(g,p.target)||u.current,u.current=!1},[r]),d=wn(p=>{const g=su(r);g&&uo(g,p.target)?u.current=!0:u.current=!1}),h=wn(p=>{o.current||t(p)});w.useEffect(()=>{var p,g;if(a||r==null)return;const y=ki(su(r)),x=y.defaultView||window;let E=(p=x.event)!=null?p:(g=x.parent)==null?void 0:g.event,j=null;VS[l]&&(j=Or(y,VS[l],d,!0));const _=Or(y,l,c,!0),L=Or(y,l,G=>{if(G===E){E=void 0;return}h(G)});let k=[];return"ontouchstart"in y.documentElement&&(k=[].slice.call(y.body.children).map(G=>Or(G,"mousemove",GS))),()=>{j==null||j(),_(),L(),k.forEach(G=>G())}},[r,a,l,c,d,h])}function Kj(r){const t={};return Array.isArray(r)?(r==null||r.forEach(a=>{t[a.name]=a}),t):r||t}function Jj(r={}){return Array.isArray(r)?r:Object.keys(r).map(t=>(r[t].name=t,r[t]))}function eA({enabled:r,enableEvents:t,placement:a,flip:l,offset:o,fixed:u,containerPadding:c,arrowElement:d,popperConfig:h={}}){var p,g,y,x;const E=Kj(h.modifiers);return Object.assign({},h,{placement:a,enabled:r,strategy:u?"fixed":h.strategy,modifiers:Jj(Object.assign({},E,{eventListeners:{enabled:t,options:(p=E.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},E.preventOverflow,{options:Object.assign({padding:c},(g=E.preventOverflow)==null?void 0:g.options)}),offset:{options:Object.assign({offset:o},(y=E.offset)==null?void 0:y.options)},arrow:Object.assign({},E.arrow,{enabled:!!d,options:Object.assign({},(x=E.arrow)==null?void 0:x.options,{element:d})}),flip:Object.assign({enabled:!!l},E.flip)}))})}const Px={prefix:String(Math.round(Math.random()*1e10)),current:0},Hx=Ft.createContext(Px),tA=Ft.createContext(!1);let Uh=new WeakMap;function nA(r=!1){let t=w.useContext(Hx),a=w.useRef(null);if(a.current===null&&!r){var l,o;let u=(o=Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(l=o.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let c=Uh.get(u);c==null?Uh.set(u,{id:t.current,state:u.memoizedState}):u.memoizedState!==c.state&&(t.current=c.id,Uh.delete(u))}a.current=++t.current}return a.current}function rA(r){let t=w.useContext(Hx),a=nA(!!r),l=`react-aria${t.prefix}`;return r||`${l}-${a}`}function aA(r){let t=Ft.useId(),[a]=w.useState(uA()),l=a?"react-aria":`react-aria${Px.prefix}`;return r||`${l}-${t}`}const iA=typeof Ft.useId=="function"?aA:rA;function lA(){return!1}function oA(){return!0}function sA(r){return()=>{}}function uA(){return typeof Ft.useSyncExternalStore=="function"?Ft.useSyncExternalStore(sA,lA,oA):w.useContext(tA)}const Mi=w.createContext(null),co=(r,t=null)=>r!=null?String(r):t||null,Tm=w.createContext(null);Tm.displayName="NavContext";const cA="data-rr-ui-",fA="rrUi";function Au(r){return`${cA}${r}`}function dA(r){return`${fA}${r}`}const kx=w.createContext($i?window:void 0);kx.Provider;function Em(){return w.useContext(kx)}const hA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",pA=typeof document<"u",Bx=pA||hA?w.useLayoutEffect:w.useEffect,$x=w.createContext(null);$x.displayName="InputGroupContext";const Ix=w.createContext(null);Ix.displayName="NavbarContext";const mA={type:Pt.string,tooltip:Pt.bool,as:Pt.elementType},Mu=w.forwardRef(({as:r="div",className:t,type:a="valid",tooltip:l=!1,...o},u)=>b.jsx(r,{...o,ref:u,className:Oe(t,`${a}-${l?"tooltip":"feedback"}`)}));Mu.displayName="Feedback";Mu.propTypes=mA;const _r=w.createContext({}),Do=w.forwardRef(({id:r,bsPrefix:t,className:a,type:l="checkbox",isValid:o=!1,isInvalid:u=!1,as:c="input",...d},h)=>{const{controlId:p}=w.useContext(_r);return t=Ce(t,"form-check-input"),b.jsx(c,{...d,ref:h,type:l,id:r||p,className:Oe(a,t,o&&"is-valid",u&&"is-invalid")})});Do.displayName="FormCheckInput";const pu=w.forwardRef(({bsPrefix:r,className:t,htmlFor:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-check-label"),b.jsx("label",{...l,ref:o,htmlFor:a||u,className:Oe(t,r)})});pu.displayName="FormCheckLabel";const qx=w.forwardRef(({id:r,bsPrefix:t,bsSwitchPrefix:a,inline:l=!1,reverse:o=!1,disabled:u=!1,isValid:c=!1,isInvalid:d=!1,feedbackTooltip:h=!1,feedback:p,feedbackType:g,className:y,style:x,title:E="",type:j="checkbox",label:_,children:L,as:k="input",...G},q)=>{t=Ce(t,"form-check"),a=Ce(a,"form-switch");const{controlId:Z}=w.useContext(_r),N=w.useMemo(()=>({controlId:r||Z}),[Z,r]),M=!L&&_!=null&&_!==!1||N3(L,pu),P=b.jsx(Do,{...G,type:j==="switch"?"checkbox":j,ref:q,isValid:c,isInvalid:d,disabled:u,as:k});return b.jsx(_r.Provider,{value:N,children:b.jsx("div",{style:x,className:Oe(y,M&&t,l&&`${t}-inline`,o&&`${t}-reverse`,j==="switch"&&a),children:L||b.jsxs(b.Fragment,{children:[P,M&&b.jsx(pu,{title:E,children:_}),p&&b.jsx(Mu,{type:g,tooltip:h,children:p})]})})})});qx.displayName="FormCheck";const mu=Object.assign(qx,{Input:Do,Label:pu}),Ux=w.forwardRef(({bsPrefix:r,type:t,size:a,htmlSize:l,id:o,className:u,isValid:c=!1,isInvalid:d=!1,plaintext:h,readOnly:p,as:g="input",...y},x)=>{const{controlId:E}=w.useContext(_r);return r=Ce(r,"form-control"),b.jsx(g,{...y,type:t,size:l,ref:x,readOnly:p,id:o||E,className:Oe(u,h?`${r}-plaintext`:r,a&&`${r}-${a}`,t==="color"&&`${r}-color`,c&&"is-valid",d&&"is-invalid")})});Ux.displayName="FormControl";const gA=Object.assign(Ux,{Feedback:Mu}),Gx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"form-floating"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));Gx.displayName="FormFloating";const Cm=w.forwardRef(({controlId:r,as:t="div",...a},l)=>{const o=w.useMemo(()=>({controlId:r}),[r]);return b.jsx(_r.Provider,{value:o,children:b.jsx(t,{...a,ref:l})})});Cm.displayName="FormGroup";const Vx=w.forwardRef(({as:r="label",bsPrefix:t,column:a=!1,visuallyHidden:l=!1,className:o,htmlFor:u,...c},d)=>{const{controlId:h}=w.useContext(_r);t=Ce(t,"form-label");let p="col-form-label";typeof a=="string"&&(p=`${p} ${p}-${a}`);const g=Oe(o,t,l&&"visually-hidden",a&&p);return u=u||h,a?b.jsx(lt,{ref:d,as:"label",className:g,htmlFor:u,...c}):b.jsx(r,{ref:d,className:g,htmlFor:u,...c})});Vx.displayName="FormLabel";const Wx=w.forwardRef(({bsPrefix:r,className:t,id:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-range"),b.jsx("input",{...l,type:"range",ref:o,className:Oe(t,r),id:a||u})});Wx.displayName="FormRange";const Yx=w.forwardRef(({bsPrefix:r,size:t,htmlSize:a,className:l,isValid:o=!1,isInvalid:u=!1,id:c,...d},h)=>{const{controlId:p}=w.useContext(_r);return r=Ce(r,"form-select"),b.jsx("select",{...d,size:a,ref:h,className:Oe(l,r,t&&`${r}-${t}`,o&&"is-valid",u&&"is-invalid"),id:c||p})});Yx.displayName="FormSelect";const Xx=w.forwardRef(({bsPrefix:r,className:t,as:a="small",muted:l,...o},u)=>(r=Ce(r,"form-text"),b.jsx(a,{...o,ref:u,className:Oe(t,r,l&&"text-muted")})));Xx.displayName="FormText";const Fx=w.forwardRef((r,t)=>b.jsx(mu,{...r,ref:t,type:"switch"}));Fx.displayName="Switch";const vA=Object.assign(Fx,{Input:mu.Input,Label:mu.Label}),Qx=w.forwardRef(({bsPrefix:r,className:t,children:a,controlId:l,label:o,...u},c)=>(r=Ce(r,"form-floating"),b.jsxs(Cm,{ref:c,className:Oe(t,r),controlId:l,...u,children:[a,b.jsx("label",{htmlFor:l,children:o})]})));Qx.displayName="FloatingLabel";const yA={_ref:Pt.any,validated:Pt.bool,as:Pt.elementType},Rm=w.forwardRef(({className:r,validated:t,as:a="form",...l},o)=>b.jsx(a,{...l,ref:o,className:Oe(r,t&&"was-validated")}));Rm.displayName="Form";Rm.propTypes=yA;const Mt=Object.assign(Rm,{Group:Cm,Control:gA,Floating:Gx,Check:mu,Switch:vA,Label:Vx,Text:Xx,Range:Wx,Select:Yx,FloatingLabel:Qx}),Nu=w.forwardRef(({className:r,bsPrefix:t,as:a="span",...l},o)=>(t=Ce(t,"input-group-text"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));Nu.displayName="InputGroupText";const bA=r=>b.jsx(Nu,{children:b.jsx(Do,{type:"checkbox",...r})}),SA=r=>b.jsx(Nu,{children:b.jsx(Do,{type:"radio",...r})}),Zx=w.forwardRef(({bsPrefix:r,size:t,hasValidation:a,className:l,as:o="div",...u},c)=>{r=Ce(r,"input-group");const d=w.useMemo(()=>({}),[]);return b.jsx($x.Provider,{value:d,children:b.jsx(o,{ref:c,...u,className:Oe(l,r,t&&`${r}-${t}`,a&&"has-validation")})})});Zx.displayName="InputGroup";const Kx=Object.assign(Zx,{Text:Nu,Radio:SA,Checkbox:bA}),WS=r=>!r||typeof r=="function"?r:t=>{r.current=t};function wA(r,t){const a=WS(r),l=WS(t);return o=>{a&&a(o),l&&l(o)}}function Lo(r,t){return w.useMemo(()=>wA(r,t),[r,t])}const qi=w.createContext(null),xA=["as","active","eventKey"];function OA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function Jx({key:r,onClick:t,active:a,id:l,role:o,disabled:u}){const c=w.useContext(Mi),d=w.useContext(Tm),h=w.useContext(qi);let p=a;const g={role:o};if(d){!o&&d.role==="tablist"&&(g.role="tab");const y=d.getControllerId(r??null),x=d.getControlledId(r??null);g[Au("event-key")]=r,g.id=y||l,p=a==null&&r!=null?d.activeKey===r:a,(p||!(h!=null&&h.unmountOnExit)&&!(h!=null&&h.mountOnEnter))&&(g["aria-controls"]=x)}return g.role==="tab"&&(g["aria-selected"]=p,p||(g.tabIndex=-1),u&&(g.tabIndex=-1,g["aria-disabled"]=!0)),g.onClick=wn(y=>{u||(t==null||t(y),r!=null&&c&&!y.isPropagationStopped()&&c(r,y))}),[g,{isActive:p}]}const eO=w.forwardRef((r,t)=>{let{as:a=hx,active:l,eventKey:o}=r,u=OA(r,xA);const[c,d]=Jx(Object.assign({key:co(o,u.href),active:l},u));return c[Au("active")]=d.isActive,b.jsx(a,Object.assign({},u,c,{ref:t}))});eO.displayName="NavItem";const TA=["as","onSelect","activeKey","role","onKeyDown"];function EA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const YS=()=>{},XS=Au("event-key"),tO=w.forwardRef((r,t)=>{let{as:a="div",onSelect:l,activeKey:o,role:u,onKeyDown:c}=r,d=EA(r,TA);const h=P3(),p=w.useRef(!1),g=w.useContext(Mi),y=w.useContext(qi);let x,E;y&&(u=u||"tablist",o=y.activeKey,x=y.getControlledId,E=y.getControllerId);const j=w.useRef(null),_=q=>{const Z=j.current;if(!Z)return null;const N=Da(Z,`[${XS}]:not([aria-disabled=true])`),M=Z.querySelector("[aria-selected=true]");if(!M||M!==document.activeElement)return null;const P=N.indexOf(M);if(P===-1)return null;let Q=P+q;return Q>=N.length&&(Q=0),Q<0&&(Q=N.length-1),N[Q]},L=(q,Z)=>{q!=null&&(l==null||l(q,Z),g==null||g(q,Z))},k=q=>{if(c==null||c(q),!y)return;let Z;switch(q.key){case"ArrowLeft":case"ArrowUp":Z=_(-1);break;case"ArrowRight":case"ArrowDown":Z=_(1);break;default:return}Z&&(q.preventDefault(),L(Z.dataset[dA("EventKey")]||null,q),p.current=!0,h())};w.useEffect(()=>{if(j.current&&p.current){const q=j.current.querySelector(`[${XS}][aria-selected=true]`);q==null||q.focus()}p.current=!1});const G=Lo(t,j);return b.jsx(Mi.Provider,{value:L,children:b.jsx(Tm.Provider,{value:{role:u,activeKey:co(o),getControlledId:x||YS,getControllerId:E||YS},children:b.jsx(a,Object.assign({},d,{onKeyDown:k,ref:G,role:u}))})})});tO.displayName="Nav";const CA=Object.assign(tO,{Item:eO});var nu;function FS(r){if((!nu&&nu!==0||r)&&$i){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),nu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nu}function RA(){return w.useState(null)}function Gh(r){r===void 0&&(r=ki());try{var t=r.activeElement;return!t||!t.nodeName?null:t}catch{return r.body}}function _A(r){const t=w.useRef(r);return t.current=r,t}function jA(r){const t=_A(r);w.useEffect(()=>()=>t.current(),[])}function AA(r=document){const t=r.defaultView;return Math.abs(t.innerWidth-r.documentElement.clientWidth)}const QS=Au("modal-open");class _m{constructor({ownerDocument:t,handleContainerOverflow:a=!0,isRTL:l=!1}={}){this.handleContainerOverflow=a,this.isRTL=l,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return AA(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const a={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[l]:o.style[l]},t.scrollBarWidth&&(a[l]=`${parseInt(Ha(o,l)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(QS,""),Ha(o,a)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const a=this.getElement();a.removeAttribute(QS),Object.assign(a.style,t.style)}add(t){let a=this.modals.indexOf(t);return a!==-1||(a=this.modals.length,this.modals.push(t),this.setModalAttributes(t),a!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),a}remove(t){const a=this.modals.indexOf(t);a!==-1&&(this.modals.splice(a,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Vh=(r,t)=>$i?r==null?(t||ki()).body:(typeof r=="function"&&(r=r()),r&&"current"in r&&(r=r.current),r&&("nodeType"in r||r.getBoundingClientRect)?r:null):null;function Hp(r,t){const a=Em(),[l,o]=w.useState(()=>Vh(r,a==null?void 0:a.document));if(!l){const u=Vh(r);u&&o(u)}return w.useEffect(()=>{},[t,l]),w.useEffect(()=>{const u=Vh(r);u!==l&&o(u)},[r,l]),l}function jm({children:r,in:t,onExited:a,mountOnEnter:l,unmountOnExit:o}){const u=w.useRef(null),c=w.useRef(t),d=wn(a);w.useEffect(()=>{t?c.current=!0:d(u.current)},[t,d]);const h=Lo(u,Bi(r)),p=w.cloneElement(r,{ref:h});return t?p:o||!c.current&&l?null:p}const MA=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function NA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function DA(r){let{onEnter:t,onEntering:a,onEntered:l,onExit:o,onExiting:u,onExited:c,addEndListener:d,children:h}=r,p=NA(r,MA);const g=w.useRef(null),y=Lo(g,Bi(h)),x=Z=>N=>{Z&&g.current&&Z(g.current,N)},E=w.useCallback(x(t),[t]),j=w.useCallback(x(a),[a]),_=w.useCallback(x(l),[l]),L=w.useCallback(x(o),[o]),k=w.useCallback(x(u),[u]),G=w.useCallback(x(c),[c]),q=w.useCallback(x(d),[d]);return Object.assign({},p,{nodeRef:g},t&&{onEnter:E},a&&{onEntering:j},l&&{onEntered:_},o&&{onExit:L},u&&{onExiting:k},c&&{onExited:G},d&&{addEndListener:q},{children:typeof h=="function"?(Z,N)=>h(Z,Object.assign({},N,{ref:y})):w.cloneElement(h,{ref:y})})}const LA=["component"];function zA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const PA=w.forwardRef((r,t)=>{let{component:a}=r,l=zA(r,LA);const o=DA(l);return b.jsx(a,Object.assign({ref:t},o))});function HA({in:r,onTransition:t}){const a=w.useRef(null),l=w.useRef(!0),o=wn(t);return MS(()=>{if(!a.current)return;let u=!1;return o({in:r,element:a.current,initial:l.current,isStale:()=>u}),()=>{u=!0}},[r,o]),MS(()=>(l.current=!1,()=>{l.current=!0}),[]),a}function kA({children:r,in:t,onExited:a,onEntered:l,transition:o}){const[u,c]=w.useState(!t);t&&u&&c(!1);const d=HA({in:!!t,onTransition:p=>{const g=()=>{p.isStale()||(p.in?l==null||l(p.element,p.initial):(c(!0),a==null||a(p.element)))};Promise.resolve(o(p)).then(g,y=>{throw p.in||c(!0),y})}}),h=Lo(d,Bi(r));return u&&!t?null:w.cloneElement(r,{ref:h})}function kp(r,t,a){return r?b.jsx(PA,Object.assign({},a,{component:r})):t?b.jsx(kA,Object.assign({},a,{transition:t})):b.jsx(jm,Object.assign({},a))}const BA=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function $A(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}let Wh;function IA(r){return Wh||(Wh=new _m({ownerDocument:r==null?void 0:r.document})),Wh}function qA(r){const t=Em(),a=r||IA(t),l=w.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>a.add(l.current),remove:()=>a.remove(l.current),isTopModal:()=>a.isTopModal(l.current),setDialogRef:w.useCallback(o=>{l.current.dialog=o},[]),setBackdropRef:w.useCallback(o=>{l.current.backdrop=o},[])})}const nO=w.forwardRef((r,t)=>{let{show:a=!1,role:l="dialog",className:o,style:u,children:c,backdrop:d=!0,keyboard:h=!0,onBackdropClick:p,onEscapeKeyDown:g,transition:y,runTransition:x,backdropTransition:E,runBackdropTransition:j,autoFocus:_=!0,enforceFocus:L=!0,restoreFocus:k=!0,restoreFocusOptions:G,renderDialog:q,renderBackdrop:Z=ye=>b.jsx("div",Object.assign({},ye)),manager:N,container:M,onShow:P,onHide:Q=()=>{},onExit:D,onExited:T,onExiting:F,onEnter:$,onEntering:I,onEntered:B}=r,U=$A(r,BA);const z=Em(),S=Hp(M),te=qA(N),R=dx(),v=g3(a),[C,W]=w.useState(!a),V=w.useRef(null);w.useImperativeHandle(t,()=>te,[te]),$i&&!v&&a&&(V.current=Gh(z==null?void 0:z.document)),a&&C&&W(!1);const H=wn(()=>{if(te.add(),pe.current=Or(document,"keydown",ce),me.current=Or(document,"focus",()=>setTimeout(J),!0),P&&P(),_){var ye,Re;const be=Gh((ye=(Re=te.dialog)==null?void 0:Re.ownerDocument)!=null?ye:z==null?void 0:z.document);te.dialog&&be&&!uo(te.dialog,be)&&(V.current=be,te.dialog.focus())}}),X=wn(()=>{if(te.remove(),pe.current==null||pe.current(),me.current==null||me.current(),k){var ye;(ye=V.current)==null||ye.focus==null||ye.focus(G),V.current=null}});w.useEffect(()=>{!a||!S||H()},[a,S,H]),w.useEffect(()=>{C&&X()},[C,X]),jA(()=>{X()});const J=wn(()=>{if(!L||!R()||!te.isTopModal())return;const ye=Gh(z==null?void 0:z.document);te.dialog&&ye&&!uo(te.dialog,ye)&&te.dialog.focus()}),ie=wn(ye=>{ye.target===ye.currentTarget&&(p==null||p(ye),d===!0&&Q())}),ce=wn(ye=>{h&&sx(ye)&&te.isTopModal()&&(g==null||g(ye),ye.defaultPrevented||Q())}),me=w.useRef(),pe=w.useRef(),ve=(...ye)=>{W(!0),T==null||T(...ye)};if(!S)return null;const he=Object.assign({role:l,ref:te.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},U,{style:u,className:o,tabIndex:-1});let ge=q?q(he):b.jsx("div",Object.assign({},he,{children:w.cloneElement(c,{role:"document"})}));ge=kp(y,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!a,onExit:D,onExiting:F,onExited:ve,onEnter:$,onEntering:I,onEntered:B,children:ge});let Se=null;return d&&(Se=Z({ref:te.setBackdropRef,onClick:ie}),Se=kp(E,j,{in:!!a,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Se})),b.jsx(b.Fragment,{children:za.createPortal(b.jsxs(b.Fragment,{children:[Se,ge]}),S)})});nO.displayName="Modal";const rO=Object.assign(nO,{Manager:_m});function Bp(r,t){return r.classList?!!t&&r.classList.contains(t):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+t+" ")!==-1}function UA(r,t){r.classList?r.classList.add(t):Bp(r,t)||(typeof r.className=="string"?r.className=r.className+" "+t:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+t))}function ZS(r,t){return r.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function GA(r,t){r.classList?r.classList.remove(t):typeof r.className=="string"?r.className=ZS(r.className,t):r.setAttribute("class",ZS(r.className&&r.className.baseVal||"",t))}const Ci={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class aO extends _m{adjustAndStore(t,a,l){const o=a.style[t];a.dataset[t]=o,Ha(a,{[t]:`${parseFloat(Ha(a,t))+l}px`})}restore(t,a){const l=a.dataset[t];l!==void 0&&(delete a.dataset[t],Ha(a,{[t]:l}))}setContainerStyle(t){super.setContainerStyle(t);const a=this.getElement();if(UA(a,"modal-open"),!t.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Da(a,Ci.FIXED_CONTENT).forEach(u=>this.adjustAndStore(l,u,t.scrollBarWidth)),Da(a,Ci.STICKY_CONTENT).forEach(u=>this.adjustAndStore(o,u,-t.scrollBarWidth)),Da(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.adjustAndStore(o,u,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const a=this.getElement();GA(a,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Da(a,Ci.FIXED_CONTENT).forEach(u=>this.restore(l,u)),Da(a,Ci.STICKY_CONTENT).forEach(u=>this.restore(o,u)),Da(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.restore(o,u))}}let Yh;function iO(r){return Yh||(Yh=new aO(r)),Yh}const lO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-body"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));lO.displayName="ModalBody";const Am=w.createContext({onHide(){}}),Mm=w.forwardRef(({bsPrefix:r,className:t,contentClassName:a,centered:l,size:o,fullscreen:u,children:c,scrollable:d,...h},p)=>{r=Ce(r,"modal");const g=`${r}-dialog`,y=typeof u=="string"?`${r}-fullscreen-${u}`:`${r}-fullscreen`;return b.jsx("div",{...h,ref:p,className:Oe(g,t,o&&`${r}-${o}`,l&&`${g}-centered`,d&&`${g}-scrollable`,u&&y),children:b.jsx("div",{className:Oe(`${r}-content`,a),children:c})})});Mm.displayName="ModalDialog";const oO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-footer"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));oO.displayName="ModalFooter";const Nm=w.forwardRef(({closeLabel:r="Close",closeVariant:t,closeButton:a=!1,onHide:l,children:o,...u},c)=>{const d=w.useContext(Am),h=lo(()=>{d==null||d.onHide(),l==null||l()});return b.jsxs("div",{ref:c,...u,children:[o,a&&b.jsx(pm,{"aria-label":r,variant:t,onClick:h})]})});Nm.displayName="AbstractModalHeader";const sO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"modal-header"),b.jsx(Nm,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));sO.displayName="ModalHeader";const VA=_u("h4"),uO=w.forwardRef(({className:r,bsPrefix:t,as:a=VA,...l},o)=>(t=Ce(t,"modal-title"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));uO.displayName="ModalTitle";function WA(r){return b.jsx(sa,{...r,timeout:null})}function YA(r){return b.jsx(sa,{...r,timeout:null})}const cO=w.forwardRef(({bsPrefix:r,className:t,style:a,dialogClassName:l,contentClassName:o,children:u,dialogAs:c=Mm,"data-bs-theme":d,"aria-labelledby":h,"aria-describedby":p,"aria-label":g,show:y=!1,animation:x=!0,backdrop:E=!0,keyboard:j=!0,onEscapeKeyDown:_,onShow:L,onHide:k,container:G,autoFocus:q=!0,enforceFocus:Z=!0,restoreFocus:N=!0,restoreFocusOptions:M,onEntered:P,onExit:Q,onExiting:D,onEnter:T,onEntering:F,onExited:$,backdropClassName:I,manager:B,...U},z)=>{const[S,te]=w.useState({}),[R,v]=w.useState(!1),C=w.useRef(!1),W=w.useRef(!1),V=w.useRef(null),[H,X]=RA(),J=Ru(z,X),ie=lo(k),ce=fm();r=Ce(r,"modal");const me=w.useMemo(()=>({onHide:ie}),[ie]);function pe(){return B||iO({isRTL:ce})}function ve(Ae){if(!$i)return;const Be=pe().getScrollbarWidth()>0,nt=Ae.scrollHeight>ki(Ae).documentElement.clientHeight;te({paddingRight:Be&&!nt?FS():void 0,paddingLeft:!Be&&nt?FS():void 0})}const he=lo(()=>{H&&ve(H.dialog)});Ex(()=>{Dp(window,"resize",he),V.current==null||V.current()});const ge=()=>{C.current=!0},Se=Ae=>{C.current&&H&&Ae.target===H.dialog&&(W.current=!0),C.current=!1},ye=()=>{v(!0),V.current=cx(H.dialog,()=>{v(!1)})},Re=Ae=>{Ae.target===Ae.currentTarget&&ye()},be=Ae=>{if(E==="static"){Re(Ae);return}if(W.current||Ae.target!==Ae.currentTarget){W.current=!1;return}k==null||k()},Le=Ae=>{j?_==null||_(Ae):(Ae.preventDefault(),E==="static"&&ye())},Pe=(Ae,Be)=>{Ae&&ve(Ae),T==null||T(Ae,Be)},Ee=Ae=>{V.current==null||V.current(),Q==null||Q(Ae)},ke=(Ae,Be)=>{F==null||F(Ae,Be),ux(window,"resize",he)},ot=Ae=>{Ae&&(Ae.style.display=""),$==null||$(Ae),Dp(window,"resize",he)},ft=w.useCallback(Ae=>b.jsx("div",{...Ae,className:Oe(`${r}-backdrop`,I,!x&&"show")}),[x,I,r]),yt={...a,...S};yt.display="block";const Nt=Ae=>b.jsx("div",{role:"dialog",...Ae,style:yt,className:Oe(t,r,R&&`${r}-static`,!x&&"show"),onClick:E?be:void 0,onMouseUp:Se,"data-bs-theme":d,"aria-label":g,"aria-labelledby":h,"aria-describedby":p,children:b.jsx(c,{...U,onMouseDown:ge,className:l,contentClassName:o,children:u})});return b.jsx(Am.Provider,{value:me,children:b.jsx(rO,{show:y,ref:J,backdrop:E,container:G,keyboard:!0,autoFocus:q,enforceFocus:Z,restoreFocus:N,restoreFocusOptions:M,onEscapeKeyDown:Le,onShow:L,onHide:k,onEnter:Pe,onEntering:ke,onEntered:P,onExit:Ee,onExiting:D,onExited:ot,manager:pe(),transition:x?WA:void 0,backdropTransition:x?YA:void 0,renderBackdrop:ft,renderDialog:Nt})})});cO.displayName="Modal";const Pa=Object.assign(cO,{Body:lO,Header:sO,Title:uO,Footer:oO,Dialog:Mm,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),fO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"nav-item"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));fO.displayName="NavItem";const dO=w.forwardRef(({bsPrefix:r,className:t,as:a=px,active:l,eventKey:o,disabled:u=!1,...c},d)=>{r=Ce(r,"nav-link");const[h,p]=Jx({key:co(o,c.href),active:l,disabled:u,...c});return b.jsx(a,{...c,...h,ref:d,disabled:u,className:Oe(t,r,u&&"disabled",p.isActive&&"active")})});dO.displayName="NavLink";const hO=w.forwardRef((r,t)=>{const{as:a="div",bsPrefix:l,variant:o,fill:u=!1,justify:c=!1,navbar:d,navbarScroll:h,className:p,activeKey:g,...y}=X_(r,{activeKey:"onSelect"}),x=Ce(l,"nav");let E,j,_=!1;const L=w.useContext(Ix),k=w.useContext(gm);return L?(E=L.bsPrefix,_=d??!0):k&&({cardHeaderBsPrefix:j}=k),b.jsx(CA,{as:a,ref:t,activeKey:g,className:Oe(p,{[x]:!_,[`${E}-nav`]:_,[`${E}-nav-scroll`]:_&&h,[`${j}-${o}`]:!!j,[`${x}-${o}`]:!!o,[`${x}-fill`]:u,[`${x}-justified`]:c}),...y})});hO.displayName="Nav";const Gl=Object.assign(hO,{Item:fO,Link:dO}),$p=new WeakMap,KS=(r,t)=>{if(!r||!t)return;const a=$p.get(t)||new Map;$p.set(t,a);let l=a.get(r);return l||(l=t.matchMedia(r),l.refCount=0,a.set(l.media,l)),l};function XA(r,t=typeof window>"u"?void 0:window){const a=KS(r,t),[l,o]=w.useState(()=>a?a.matches:!1);return Bx(()=>{let u=KS(r,t);if(!u)return o(!1);let c=$p.get(t);const d=()=>{o(u.matches)};return u.refCount++,u.addListener(d),d(),()=>{u.removeListener(d),u.refCount--,u.refCount<=0&&(c==null||c.delete(u.media)),u=void 0}},[r]),l}function FA(r){const t=Object.keys(r);function a(d,h){return d===h?h:d?`${d} and ${h}`:h}function l(d){return t[Math.min(t.indexOf(d)+1,t.length-1)]}function o(d){const h=l(d);let p=r[h];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function u(d){let h=r[d];return typeof h=="number"&&(h=`${h}px`),`(min-width: ${h})`}function c(d,h,p){let g;typeof d=="object"?(g=d,p=h,h=!0):(h=h||!0,g={[d]:h});let y=w.useMemo(()=>Object.entries(g).reduce((x,[E,j])=>((j==="up"||j===!0)&&(x=a(x,u(E))),(j==="down"||j===!0)&&(x=a(x,o(E))),x),""),[JSON.stringify(g)]);return XA(y,p)}return c}const QA=FA({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),pO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"offcanvas-body"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));pO.displayName="OffcanvasBody";const ZA={[Yn]:"show",[oa]:"show"},mO=w.forwardRef(({bsPrefix:r,className:t,children:a,in:l=!1,mountOnEnter:o=!1,unmountOnExit:u=!1,appear:c=!1,...d},h)=>(r=Ce(r,"offcanvas"),b.jsx(dm,{ref:h,addEndListener:fx,in:l,mountOnEnter:o,unmountOnExit:u,appear:c,...d,childRef:Bi(a),children:(p,g)=>w.cloneElement(a,{...g,className:Oe(t,a.props.className,(p===Yn||p===fu)&&`${r}-toggling`,ZA[p])})})));mO.displayName="OffcanvasToggling";const gO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"offcanvas-header"),b.jsx(Nm,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));gO.displayName="OffcanvasHeader";const KA=_u("h5"),vO=w.forwardRef(({className:r,bsPrefix:t,as:a=KA,...l},o)=>(t=Ce(t,"offcanvas-title"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));vO.displayName="OffcanvasTitle";function JA(r){return b.jsx(mO,{...r})}function eM(r){return b.jsx(sa,{...r})}const yO=w.forwardRef(({bsPrefix:r,className:t,children:a,"aria-labelledby":l,placement:o="start",responsive:u,show:c=!1,backdrop:d=!0,keyboard:h=!0,scroll:p=!1,onEscapeKeyDown:g,onShow:y,onHide:x,container:E,autoFocus:j=!0,enforceFocus:_=!0,restoreFocus:L=!0,restoreFocusOptions:k,onEntered:G,onExit:q,onExiting:Z,onEnter:N,onEntering:M,onExited:P,backdropClassName:Q,manager:D,renderStaticNode:T=!1,...F},$)=>{const I=w.useRef();r=Ce(r,"offcanvas");const[B,U]=w.useState(!1),z=lo(x),S=QA(u||"xs","up");w.useEffect(()=>{U(u?c&&!S:c)},[c,u,S]);const te=w.useMemo(()=>({onHide:z}),[z]);function R(){return D||(p?(I.current||(I.current=new aO({handleContainerOverflow:!1})),I.current):iO())}const v=(H,...X)=>{H&&(H.style.visibility="visible"),N==null||N(H,...X)},C=(H,...X)=>{H&&(H.style.visibility=""),P==null||P(...X)},W=w.useCallback(H=>b.jsx("div",{...H,className:Oe(`${r}-backdrop`,Q)}),[Q,r]),V=H=>b.jsx("div",{...H,...F,className:Oe(t,u?`${r}-${u}`:r,`${r}-${o}`),"aria-labelledby":l,children:a});return b.jsxs(b.Fragment,{children:[!B&&(u||T)&&V({}),b.jsx(Am.Provider,{value:te,children:b.jsx(rO,{show:B,ref:$,backdrop:d,container:E,keyboard:h,autoFocus:j,enforceFocus:_&&!p,restoreFocus:L,restoreFocusOptions:k,onEscapeKeyDown:g,onShow:y,onHide:z,onEnter:v,onEntering:M,onEntered:G,onExit:q,onExiting:Z,onExited:C,manager:R(),transition:JA,backdropTransition:eM,renderBackdrop:W,renderDialog:V})})]})});yO.displayName="Offcanvas";const JS=Object.assign(yO,{Body:pO,Header:gO,Title:vO}),tM=()=>{};function nM(r,t,{disabled:a,clickTrigger:l}={}){const o=t||tM;Zj(r,o,{disabled:a,clickTrigger:l});const u=wn(c=>{sx(c)&&o(c)});w.useEffect(()=>{if(a||r==null)return;const c=ki(su(r));let d=(c.defaultView||window).event;const h=Or(c,"keyup",p=>{if(p===d){d=void 0;return}u(p)});return()=>{h()}},[r,a,u])}const bO=w.forwardRef((r,t)=>{const{flip:a,offset:l,placement:o,containerPadding:u,popperConfig:c={},transition:d,runTransition:h}=r,[p,g]=AS(),[y,x]=AS(),E=Lo(g,t),j=Hp(r.container),_=Hp(r.target),[L,k]=w.useState(!r.show),G=Vj(_,p,eA({placement:o,enableEvents:!!r.show,containerPadding:u||5,flip:a,offset:l,arrowElement:y,popperConfig:c}));r.show&&L&&k(!1);const q=(...F)=>{k(!0),r.onExited&&r.onExited(...F)},Z=r.show||!L;if(nM(p,r.onHide,{disabled:!r.rootClose||r.rootCloseDisabled,clickTrigger:r.rootCloseEvent}),!Z)return null;const{onExit:N,onExiting:M,onEnter:P,onEntering:Q,onEntered:D}=r;let T=r.children(Object.assign({},G.attributes.popper,{style:G.styles.popper,ref:E}),{popper:G,placement:o,show:!!r.show,arrowProps:Object.assign({},G.attributes.arrow,{style:G.styles.arrow,ref:x})});return T=kp(d,h,{in:!!r.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:T,onExit:N,onExiting:M,onExited:q,onEnter:P,onEntering:Q,onEntered:D}),j?za.createPortal(T,j):null});bO.displayName="Overlay";const SO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-header"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));SO.displayName="PopoverHeader";const Dm=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-body"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));Dm.displayName="PopoverBody";function wO(r,t){let a=r;return r==="left"?a=t?"end":"start":r==="right"&&(a=t?"start":"end"),a}function xO(r="absolute"){return{position:r,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const OO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,body:u,arrowProps:c,hasDoneInitialMeasure:d,popper:h,show:p,...g},y)=>{const x=Ce(r,"popover"),E=fm(),[j]=(t==null?void 0:t.split("-"))||[],_=wO(j,E);let L=l;return p&&!d&&(L={...l,...xO(h==null?void 0:h.strategy)}),b.jsxs("div",{ref:y,role:"tooltip",style:L,"x-placement":j,className:Oe(a,x,j&&`bs-popover-${_}`),...g,children:[b.jsx("div",{className:"popover-arrow",...c}),u?b.jsx(Dm,{children:o}):o]})});OO.displayName="Popover";const Ip=Object.assign(OO,{Header:SO,Body:Dm,POPPER_OFFSET:[0,8]}),TO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,arrowProps:u,hasDoneInitialMeasure:c,popper:d,show:h,...p},g)=>{r=Ce(r,"tooltip");const y=fm(),[x]=(t==null?void 0:t.split("-"))||[],E=wO(x,y);let j=l;return h&&!c&&(j={...l,...xO(d==null?void 0:d.strategy)}),b.jsxs("div",{ref:g,style:j,role:"tooltip","x-placement":x,className:Oe(a,r,`bs-tooltip-${E}`),...p,children:[b.jsx("div",{className:"tooltip-arrow",...u}),b.jsx("div",{className:`${r}-inner`,children:o})]})});TO.displayName="Tooltip";const rM=Object.assign(TO,{TOOLTIP_OFFSET:[0,6]});function aM(r){const t=w.useRef(null),a=Ce(void 0,"popover"),l=Ce(void 0,"tooltip"),o=w.useMemo(()=>({name:"offset",options:{offset:()=>{if(r)return r;if(t.current){if(Bp(t.current,a))return Ip.POPPER_OFFSET;if(Bp(t.current,l))return rM.TOOLTIP_OFFSET}return[0,0]}}}),[r,a,l]);return[t,[o]]}function iM(r,t){const{ref:a}=r,{ref:l}=t;r.ref=a.__wrapped||(a.__wrapped=o=>a(du(o))),t.ref=l.__wrapped||(l.__wrapped=o=>l(du(o)))}const EO=w.forwardRef(({children:r,transition:t=sa,popperConfig:a={},rootClose:l=!1,placement:o="top",show:u=!1,...c},d)=>{const h=w.useRef({}),[p,g]=w.useState(null),[y,x]=aM(c.offset),E=Ru(d,y),j=t===!0?sa:t||void 0,_=lo(L=>{g(L),a==null||a.onFirstUpdate==null||a.onFirstUpdate(L)});return Bx(()=>{p&&c.target&&(h.current.scheduleUpdate==null||h.current.scheduleUpdate())},[p,c.target]),w.useEffect(()=>{u||g(null)},[u]),b.jsx(bO,{...c,ref:E,popperConfig:{...a,modifiers:x.concat(a.modifiers||[]),onFirstUpdate:_},transition:j,rootClose:l,placement:o,show:u,children:(L,{arrowProps:k,popper:G,show:q})=>{var Z;iM(L,k);const N=G==null?void 0:G.placement,M=Object.assign(h.current,{state:G==null?void 0:G.state,scheduleUpdate:G==null?void 0:G.update,placement:N,outOfBoundaries:(G==null||(Z=G.state)==null||(Z=Z.modifiersData.hide)==null?void 0:Z.isReferenceHidden)||!1,strategy:a.strategy}),P=!!p;return typeof r=="function"?r({...L,placement:N,show:q,...!t&&q&&{className:"show"},popper:M,arrowProps:k,hasDoneInitialMeasure:P}):w.cloneElement(r,{...L,placement:N,arrowProps:k,popper:M,hasDoneInitialMeasure:P,className:Oe(r.props.className,!t&&q&&"show"),style:{...r.props.style,...L.style}})}})});EO.displayName="Overlay";function lM(r){return r&&typeof r=="object"?r:{show:r,hide:r}}function e1(r,t,a){const[l]=t,o=l.currentTarget,u=l.relatedTarget||l.nativeEvent[a];(!u||u!==o)&&!uo(o,u)&&r(...t)}Pt.oneOf(["click","hover","focus"]);const oM=({trigger:r=["hover","focus"],overlay:t,children:a,popperConfig:l={},show:o,defaultShow:u=!1,onToggle:c,delay:d,placement:h,flip:p=h&&h.indexOf("auto")!==-1,...g})=>{const y=w.useRef(null),x=Ru(y,Bi(a)),E=M3(),j=w.useRef(""),[_,L]=rx(o,u,c),k=lM(d),{onFocus:G,onBlur:q,onClick:Z}=typeof a!="function"?w.Children.only(a).props:{},N=U=>{x(du(U))},M=w.useCallback(()=>{if(E.clear(),j.current="show",!k.show){L(!0);return}E.set(()=>{j.current==="show"&&L(!0)},k.show)},[k.show,L,E]),P=w.useCallback(()=>{if(E.clear(),j.current="hide",!k.hide){L(!1);return}E.set(()=>{j.current==="hide"&&L(!1)},k.hide)},[k.hide,L,E]),Q=w.useCallback((...U)=>{M(),G==null||G(...U)},[M,G]),D=w.useCallback((...U)=>{P(),q==null||q(...U)},[P,q]),T=w.useCallback((...U)=>{L(!_),Z==null||Z(...U)},[Z,L,_]),F=w.useCallback((...U)=>{e1(M,U,"fromElement")},[M]),$=w.useCallback((...U)=>{e1(P,U,"toElement")},[P]),I=r==null?[]:[].concat(r),B={ref:N};return I.indexOf("click")!==-1&&(B.onClick=T),I.indexOf("focus")!==-1&&(B.onFocus=Q,B.onBlur=D),I.indexOf("hover")!==-1&&(B.onMouseOver=F,B.onMouseOut=$),b.jsxs(b.Fragment,{children:[typeof a=="function"?a(B):w.cloneElement(a,B),b.jsx(EO,{...g,show:_,onHide:P,flip:p,placement:h,popperConfig:l,target:y.current,children:t})]})},vt=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"row"),c=um(),d=cm(),h=`${u}-cols`,p=[];return c.forEach(g=>{const y=l[g];delete l[g];let x;y!=null&&typeof y=="object"?{cols:x}=y:x=y;const E=g!==d?`-${g}`:"";x!=null&&p.push(`${h}${E}-${x}`)}),b.jsx(a,{ref:o,...l,className:Oe(t,u,...p)})});vt.displayName="Row";function sM(r,t=ax,a=ix){const l=[];return Object.entries(r).forEach(([o,u])=>{u!=null&&(typeof u=="object"?t.forEach(c=>{const d=u[c];if(d!=null){const h=c!==a?`-${c}`:"";l.push(`${o}${h}-${d}`)}}):l.push(`${o}-${u}`))}),l}const Ne=w.forwardRef(({as:r="div",bsPrefix:t,className:a,direction:l,gap:o,...u},c)=>{t=Ce(t,l==="horizontal"?"hstack":"vstack");const d=um(),h=cm();return b.jsx(r,{...u,ref:c,className:Oe(a,t,...sM({gap:o},d,h))})});Ne.displayName="Stack";const uM=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],cM=["activeKey","getControlledId","getControllerId"],fM=["as"];function qp(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function CO(r){let{active:t,eventKey:a,mountOnEnter:l,transition:o,unmountOnExit:u,role:c="tabpanel",onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:y,onExited:x}=r,E=qp(r,uM);const j=w.useContext(qi);if(!j)return[Object.assign({},E,{role:c}),{eventKey:a,isActive:t,mountOnEnter:l,transition:o,unmountOnExit:u,onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:y,onExited:x}];const{activeKey:_,getControlledId:L,getControllerId:k}=j,G=qp(j,cM),q=co(a);return[Object.assign({},E,{role:c,id:L(a),"aria-labelledby":k(a)}),{eventKey:a,isActive:t==null&&q!=null?co(_)===q:t,transition:o||G.transition,mountOnEnter:l??G.mountOnEnter,unmountOnExit:u??G.unmountOnExit,onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:y,onExited:x}]}const RO=w.forwardRef((r,t)=>{let{as:a="div"}=r,l=qp(r,fM);const[o,{isActive:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:g,onExited:y,mountOnEnter:x,unmountOnExit:E,transition:j=jm}]=CO(l);return b.jsx(qi.Provider,{value:null,children:b.jsx(Mi.Provider,{value:null,children:b.jsx(j,{in:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:g,onExited:y,mountOnEnter:x,unmountOnExit:E,children:b.jsx(a,Object.assign({},o,{ref:t,hidden:!u,"aria-hidden":!u}))})})})});RO.displayName="TabPanel";const _O=r=>{const{id:t,generateChildId:a,onSelect:l,activeKey:o,defaultActiveKey:u,transition:c,mountOnEnter:d,unmountOnExit:h,children:p}=r,[g,y]=z3(o,u,l),x=iA(t),E=w.useMemo(()=>a||((_,L)=>x?`${x}-${L}-${_}`:null),[x,a]),j=w.useMemo(()=>({onSelect:y,activeKey:g,transition:c,mountOnEnter:d||!1,unmountOnExit:h||!1,getControlledId:_=>E(_,"tabpane"),getControllerId:_=>E(_,"tab")}),[y,g,c,d,h,E]);return b.jsx(qi.Provider,{value:j,children:b.jsx(Mi.Provider,{value:y||null,children:p})})};_O.Panel=RO;function jO(r){return typeof r=="boolean"?r?sa:jm:r}const AO=({transition:r,...t})=>b.jsx(_O,{...t,transition:jO(r)});AO.displayName="TabContainer";const MO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"tab-content"),b.jsx(a,{ref:o,className:Oe(r,t),...l})));MO.displayName="TabContent";const NO=w.forwardRef(({bsPrefix:r,transition:t,...a},l)=>{const[{className:o,as:u="div",...c},{isActive:d,onEnter:h,onEntering:p,onEntered:g,onExit:y,onExiting:x,onExited:E,mountOnEnter:j,unmountOnExit:_,transition:L=sa}]=CO({...a,transition:jO(t)}),k=Ce(r,"tab-pane");return b.jsx(qi.Provider,{value:null,children:b.jsx(Mi.Provider,{value:null,children:b.jsx(L,{in:d,onEnter:h,onEntering:p,onEntered:g,onExit:y,onExiting:x,onExited:E,mountOnEnter:j,unmountOnExit:_,children:b.jsx(u,{...c,ref:l,className:Oe(o,k,d&&"active")})})})})});NO.displayName="TabPane";const dM={eventKey:Pt.oneOfType([Pt.string,Pt.number]),title:Pt.node.isRequired,disabled:Pt.bool,tabClassName:Pt.string,tabAttrs:Pt.object},DO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};DO.propTypes=dM;const ru=Object.assign(DO,{Container:AO,Content:MO,Pane:NO}),hM=()=>{},LO=w.forwardRef(({bsPrefix:r,name:t,className:a,checked:l,type:o,onChange:u,value:c,disabled:d,id:h,inputRef:p,...g},y)=>(r=Ce(r,"btn-check"),b.jsxs(b.Fragment,{children:[b.jsx("input",{className:r,name:t,type:o,value:c,ref:p,autoComplete:"off",checked:!!l,disabled:!!d,onChange:u||hM,id:h}),b.jsx(Qt,{...g,ref:y,className:Oe(a,d&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:h})]})));LO.displayName="ToggleButton";var ho,po,mo,go,vo,yo,bo,So,wo,Su,zO;const ao=class ao{constructor(t){Sn(this,Su);Sn(this,ho);Sn(this,po);Sn(this,mo);Sn(this,go);Sn(this,vo);Sn(this,yo);Sn(this,bo);Sn(this,So);Sn(this,wo);Vn(this,ho,t.year),Vn(this,po,t.month),Vn(this,mo,t.day),Vn(this,go,t.hour||0),Vn(this,vo,t.minute||0),Vn(this,yo,t.second||0),Vn(this,bo,t.gmt||"+0000");const a=aa(this,Su,zO).call(this);if(a.ok)Vn(this,So,a.parsed),Vn(this,wo,a.dateTimeStr);else throw Error(`DateTime creation error: ${a.message}`)}static from(t){if(typeof t=="string"){const u=/^(\d{4})-(\d{2})-(\d{2})(?: (\d{2}):(\d{2})(?::(\d{2}))?(?: ([+-]\d{4}))?)?/.exec(t);if(u){const[c,d,h,p,g,y,x,E]=u,j={year:Number(d),month:Number(h),day:Number(p),hour:Number(g),minute:Number(y),second:Number(x),gmt:E};return x!==void 0&&(x.startsWith("+")||x.startsWith("-"))&&(j.second=void 0,j.gmt=x),new ao(j)}throw Error(`Could not create DateTime object from "${t}": invalid format`)}const a=new Date;a.setTime(t);const l={year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds()};return new ao(l)}valueOf(){return Gn(this,So)}toString(){return Gn(this,wo)}};ho=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo=new WeakMap,So=new WeakMap,wo=new WeakMap,Su=new WeakSet,zO=function(){const t=`${Gn(this,ho).toString().padStart(4,"0")}-${Gn(this,po).toString().padStart(2,"0")}-${Gn(this,mo).toString().padStart(2,"0")}`,a=`${Gn(this,go).toString().padStart(2,"0")}:${Gn(this,vo).toString().padStart(2,"0")}:${Gn(this,yo).toString().padStart(2,"0")}`,l=`${t}T${a}${Gn(this,bo)}`;try{return{ok:!0,parsed:new Date(l),dateTimeStr:l}}catch{return{ok:!1,message:`failed to parse date from ${l}`}}},ao.FORMAT="yyyy-MM-dd [hh:mm[:ss] [GMT]]";let Up=ao;const pM=[Up];class Gp{static getProperty(t,a,l=!1){const o=a.split(".");let u=t;for(;o.length>0;){const c=o.shift();if(u&&typeof u=="object"){if(u=u[c],u===void 0){if(l)throw new t1(a);return u}}else if(l)throw new t1(a)}return u}static clean(t,a){const l=(a==null?void 0:a.deep)||!1,o=(a==null?void 0:a.cleanNulls)||!1,u=(a==null?void 0:a.cleanEmptyObjects)||!1;if(!t||typeof t!="object")return t;const c={};for(const[d,h]of Object.entries(t))if(!(h===void 0||h===null&&o))if(h!==null&&typeof h=="object"&&!pM.find(g=>h instanceof g)){const g=l?this.clean(h,a):h;(Object.entries(g).length>0||!u)&&(c[d]=g)}else c[d]=h;return Array.isArray(t)?Object.values(c):c}}class t1 extends Error{constructor(t){super(),this.name="ObjectPropertyNotFoundError",this.prop=t}}class PO{static getCampaignCreationName(t){return Gp.getProperty(t,"raw.attributes.creation_name")}static getProductRichTextDescription(t){const a=Gp.getProperty(t,"raw.data.attributes.description_rich_text");return a||(t.description?t.description.replaceAll(`
68
+ `,"<br />"):null)}}const ca=w.forwardRef((r,t)=>{const{mediaId:a,thumbnail:l=!1,...o}=r,u=`/media/${a}${l?"?t=1":""}`,c=w.useCallback(d=>{d.currentTarget.style.display="none"},[]);return b.jsx("img",{ref:t,src:u,onError:c,...o})}),Vp={Post:"post",Collection:"collection"};function Ia(r){var t;return(t=r.creator)!=null&&t.vanity?`/${encodeURIComponent(r.creator.vanity)}`:`/campaigns/${r.id}`}function fo(r){let t,a;switch(r.type){case"post":t="posts",a=r.id;break;case"product":{r.productType===Vp.Post?(t="posts",a=r.referencedEntityId):r.productType===Vp.Collection?(t="collections",a=r.referencedEntityId):(t="products",a=r.id);break}}const l=r.url?r.url.split("/").pop():null;return l&&l.split("-").pop()===a?`/${t}/${l}`:`/${t}/${a}`}const Xh={postCount:"article",mediaCount:"image",productCount:"storefront"};function mM(r){const{campaign:t}=r,a=PO.getCampaignCreationName(t),l={postCount:[t.postCount,Xh.postCount],productCount:[t.productCount,Xh.productCount],mediaCount:[t.mediaCount,Xh.mediaCount]},o=Object.keys(l).reduce((u,c)=>{const[d,h]=l[c];return d>0&&u.push(b.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[b.jsx("span",{className:"campaign-card__count-icon material-icons-outlined",children:h}),b.jsx("span",{className:"campaign-card__count-text",children:d})]},`${t.id}:${c}`)),u},[]);return b.jsx(it,{className:"campaign-card mb-3",children:b.jsxs(it.Body,{className:"d-flex p-0",children:[b.jsx(ca,{className:"campaign-card__avatar",mediaId:`campaign:${t.id}:avatar`}),b.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[b.jsx("h6",{className:"campaign-card__title",children:b.jsx(on,{to:Ia(t),children:t.name})}),a?b.jsx("div",{className:"campaign-card__creation-name",children:a}):null,b.jsxs(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:[...o]})]})]})})}function Du(r){const{total:t,page:a,itemsPerPage:l}=r;if(t>l){const o=(a-1)*l,u=o+1,c=Math.min(o+l,t),d=typeof r.subject=="string"?r.subject:r.subject.plural;return`Showing ${u} - ${c} of ${t} ${d}`}else{const o=typeof r.subject=="string"?r.subject:t===1?r.subject.singular:r.subject.plural;return`Total ${t} ${o}`}}class gM{static getPaginationParams(t,a){const l=new URL(t),o=l.searchParams.get("p")||1,u=l.searchParams.get("n")||a,c=Number(o),d=Number(u);if(isNaN(c))throw TypeError('Invalid param "p"');if(c<=0)throw RangeError(`Invalid value "${c}" for param "p"`);if(isNaN(d))throw TypeError('Invalid param "n"');if(d<=0)throw RangeError(`Invalid value "${d}" for param "n"`);return{limit:d,offset:(c-1)*d}}}function vM(r){const{currentPage:t,totalPages:a,onChange:l}=r,[o,u]=w.useState(t),c=w.useRef(null),d=w.useCallback(()=>{c.current&&c.current.focus()},[]),h=w.useCallback(()=>{c.current&&c.current.blur()},[]),p=w.useCallback(()=>{if(!c.current)return;const g=Number(c.current.value);if(isNaN(g)||g===t)return;const y=Math.max(Math.min(a,g),1);l(y)},[t,a]);return b.jsx(oM,{trigger:"click",rootClose:!0,placement:"top",onEntered:d,onExited:h,overlay:b.jsx(Ip,{children:b.jsx(Ip.Body,{children:b.jsxs(Ne,{direction:"horizontal",children:[b.jsx("span",{className:"text-nowrap me-2",children:"Go to:"}),b.jsxs(Kx,{children:[b.jsx(Mt.Control,{ref:c,value:o,type:"number",required:!0,size:"sm",style:{width:"10em"},onChange:g=>u(Number(g.target.value))}),b.jsx(Qt,{onClick:p,children:"→"})]})]})})}),children:b.jsx(Qt,{variant:"outline-primary",children:"..."})})}const Wn=10;function yM(r,t){const a=window.location.href,{limit:l,offset:o}=gM.getPaginationParams(a,t),u=Math.ceil(r/l);if(u===1)return null;const c=[],d=Math.floor(o/l)+1;if(u<=Wn)c.push(Dn(1,u,d));else if(d<Wn-1)c.push(Dn(1,Wn-1,d)),c.push(Dn(u,u,d));else if(d>=u-Wn+2)c.push(Dn(1,1,d)),c.push(Dn(u-Wn+2,u,d));else{c.push(Dn(1,1,d));let g=Math.floor(d/(Wn-2))+1,y=2+(g-1)*(Wn-3),x=y+Wn-3;d>=x&&(g++,y+=Wn-3,x+=Wn-3),x===u-1?c.push(Dn(y,u,d)):(c.push(Dn(y,x,d)),c.push(Dn(u,u,d)))}const h=d>1?Dn(d-1,d-1,d)[0].page:null,p=d<u?Dn(d+1,d+1,d)[0].page:null;return{currentPage:d,totalPages:u,sections:c,previousPage:h,nextPage:p}}function Dn(r,t,a){const l=[];for(let o=r;o<=t;o++)l.push({page:o,isCurrent:o===a});return l}function Lu(r){const{totalItems:t,itemsPerPage:a,onChange:l}=r,o=yM(t,a);if(!o)return null;const u=d=>{const h=d.currentTarget.dataset.page;h!==void 0&&!isNaN(Number(h))&&l(Number(h))},c=[];o.previousPage&&c.push(b.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.previousPage,children:"<"}));for(let d=0;d<o.sections.length;d++){const h=o.sections[d];c.push(...h.map(p=>{const g=p.isCurrent?void 0:u,y=p.isCurrent?"primary":"outline-primary";return b.jsx(Qt,{variant:y,onClick:g,"data-page":p.page,children:p.page})})),d<o.sections.length-1&&c.push(b.jsx(vM,{currentPage:o.currentPage,totalPages:o.totalPages,onChange:l}))}return o.nextPage&&c.push(b.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.nextPage,children:">"})),b.jsx("div",{className:"d-flex justify-content-center",children:b.jsx(mx,{className:"mt-2 mb-4",children:c})})}var Fh={},Qh={},Vl={exports:{}},La={exports:{}},bM=La.exports,n1;function SM(){return n1||(n1=1,(function(){var r,t,a,l,o,u;typeof performance<"u"&&performance!==null&&performance.now?La.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(La.exports=function(){return(r()-o)/1e6},t=process.hrtime,r=function(){var c;return c=t(),c[0]*1e9+c[1]},l=r(),u=process.uptime()*1e9,o=l-u):Date.now?(La.exports=function(){return Date.now()-a},a=Date.now()):(La.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(bM)),La.exports}var r1;function wM(){if(r1)return Vl.exports;r1=1;for(var r=SM(),t=typeof window>"u"?xr:window,a=["moz","webkit"],l="AnimationFrame",o=t["request"+l],u=t["cancel"+l]||t["cancelRequest"+l],c=0;!o&&c<a.length;c++)o=t[a[c]+"Request"+l],u=t[a[c]+"Cancel"+l]||t[a[c]+"CancelRequest"+l];if(!o||!u){var d=0,h=0,p=[],g=1e3/60;o=function(y){if(p.length===0){var x=r(),E=Math.max(0,g-(x-d));d=E+x,setTimeout(function(){var j=p.slice(0);p.length=0;for(var _=0;_<j.length;_++)if(!j[_].cancelled)try{j[_].callback(d)}catch(L){setTimeout(function(){throw L},0)}},Math.round(E))}return p.push({handle:++h,callback:y,cancelled:!1}),h},u=function(y){for(var x=0;x<p.length;x++)p[x].handle===y&&(p[x].cancelled=!0)}}return Vl.exports=function(y){return o.call(t,y)},Vl.exports.cancel=function(){u.apply(t,arguments)},Vl.exports.polyfill=function(y){y||(y=t),y.requestAnimationFrame=o,y.cancelAnimationFrame=u},Vl.exports}var Wl={exports:{}},Zh,a1;function xM(){if(a1)return Zh;a1=1;var r=null,t=["Webkit","Moz","O","ms"];return Zh=function(l){r||(r=document.createElement("div"));var o=r.style;if(l in o)return l;for(var u=l.charAt(0).toUpperCase()+l.slice(1),c=t.length;c>=0;c--){var d=t[c]+u;if(d in o)return d}return!1},Zh}var Kh,i1;function OM(){if(i1)return Kh;i1=1,Kh=l;var r=/\s/,t=/(_|-|\.|:)/,a=/([a-z][A-Z]|[A-Z][a-z])/;function l(h){return r.test(h)?h.toLowerCase():t.test(h)?(u(h)||h).toLowerCase():a.test(h)?d(h).toLowerCase():h.toLowerCase()}var o=/[\W_]+(.|$)/g;function u(h){return h.replace(o,function(p,g){return g?" "+g:""})}var c=/(.)([A-Z]+)/g;function d(h){return h.replace(c,function(p,g,y){return g+" "+y.toLowerCase().split("").join(" ")})}return Kh}var Jh,l1;function TM(){if(l1)return Jh;l1=1;var r=OM();Jh=t;function t(a){return r(a).replace(/[\W_]+(.|$)/g,function(l,o){return o?" "+o:""}).trim()}return Jh}var ep,o1;function EM(){if(o1)return ep;o1=1;var r=TM();ep=t;function t(a){return r(a).replace(/\s(\w)/g,function(l,o){return o.toUpperCase()})}return ep}var tp,s1;function CM(){if(s1)return tp;s1=1;var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return tp=function(t,a){return typeof a=="number"&&!r[t]?a+"px":a},tp}var u1;function HO(){if(u1)return Wl.exports;u1=1;var r=xM(),t=EM(),a={float:"cssFloat"},l=CM();function o(h,p,g){var y=a[p];if(typeof y>"u"&&(y=c(p)),y){if(g===void 0)return h.style[y];h.style[y]=l(y,g)}}function u(h,p){for(var g in p)p.hasOwnProperty(g)&&o(h,g,p[g])}function c(h){var p=t(h),g=r(p);return a[p]=a[h]=a[g]=g,g}function d(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return Wl.exports=d,Wl.exports.set=d,Wl.exports.get=function(h,p){return Array.isArray(p)?p.reduce(function(g,y){return g[y]=o(h,y||""),g},{}):o(h,p||"")},Wl.exports}var np={},c1;function RM(){return c1||(c1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){return typeof a=="string"}}(np)),np}var rp={},f1;function _M(){return f1||(f1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var t=HO(),a=l(t);function l(c){return c&&c.__esModule?c:{default:c}}var o=!1;function u(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(c&&o!==!1)return o;if(typeof document<"u"){var d=document.createElement("div");(0,a.default)(d,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(d),o=d.offsetWidth-d.clientWidth,document.body.removeChild(d)}else o=0;return o||0}}(rp)),rp}var ap={},d1;function jM(){return d1||(d1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(){return!1}}(ap)),ap}var ip={},h1;function AM(){return h1||(h1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientWidth,o=getComputedStyle(a),u=o.paddingLeft,c=o.paddingRight;return l-parseFloat(u)-parseFloat(c)}}(ip)),ip}var lp={},p1;function MM(){return p1||(p1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientHeight,o=getComputedStyle(a),u=o.paddingTop,c=o.paddingBottom;return l-parseFloat(u)-parseFloat(c)}}(lp)),lp}var Xt={},m1;function NM(){return m1||(m1=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},Xt.containerStyleAutoHeight={height:"auto"},Xt.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},Xt.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},Xt.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},Xt.trackHorizontalStyleDefault={position:"absolute",height:6},Xt.trackVerticalStyleDefault={position:"absolute",width:6},Xt.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},Xt.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},Xt.disableSelectStyle={userSelect:"none"},Xt.disableSelectStyleReset={userSelect:""}),Xt}var ia={},g1;function DM(){if(g1)return ia;g1=1,Object.defineProperty(ia,"__esModule",{value:!0});var r=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(g[E]=x[E])}return g};ia.renderViewDefault=u,ia.renderTrackHorizontalDefault=c,ia.renderTrackVerticalDefault=d,ia.renderThumbHorizontalDefault=h,ia.renderThumbVerticalDefault=p;var t=Cn(),a=l(t);function l(g){return g&&g.__esModule?g:{default:g}}function o(g,y){var x={};for(var E in g)y.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(g,E)&&(x[E]=g[E]);return x}function u(g){return a.default.createElement("div",g)}function c(g){var y=g.style,x=o(g,["style"]),E=r({},y,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:E},x))}function d(g){var y=g.style,x=o(g,["style"]),E=r({},y,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:E},x))}function h(g){var y=g.style,x=o(g,["style"]),E=r({},y,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:E},x))}function p(g){var y=g.style,x=o(g,["style"]),E=r({},y,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:E},x))}return ia}var v1;function LM(){return v1||(v1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var t=Object.assign||function($){for(var I=1;I<arguments.length;I++){var B=arguments[I];for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&($[U]=B[U])}return $},a=function(){function $(I,B){for(var U=0;U<B.length;U++){var z=B[U];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,z.key,z)}}return function(I,B,U){return B&&$(I.prototype,B),U&&$(I,U),I}}(),l=wM(),o=M(l),u=HO(),c=M(u),d=Cn(),h=lx(),p=M(h),g=RM(),y=M(g),x=_M(),E=M(x),j=jM(),_=M(j),L=AM(),k=M(L),G=MM(),q=M(G),Z=NM(),N=DM();function M($){return $&&$.__esModule?$:{default:$}}function P($,I){var B={};for(var U in $)I.indexOf(U)>=0||Object.prototype.hasOwnProperty.call($,U)&&(B[U]=$[U]);return B}function Q($,I){if(!($ instanceof I))throw new TypeError("Cannot call a class as a function")}function D($,I){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:$}function T($,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);$.prototype=Object.create(I&&I.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf($,I):$.__proto__=I)}var F=function($){T(I,$);function I(B){var U;Q(this,I);for(var z=arguments.length,S=Array(z>1?z-1:0),te=1;te<z;te++)S[te-1]=arguments[te];var R=D(this,(U=I.__proto__||Object.getPrototypeOf(I)).call.apply(U,[this,B].concat(S)));return R.getScrollLeft=R.getScrollLeft.bind(R),R.getScrollTop=R.getScrollTop.bind(R),R.getScrollWidth=R.getScrollWidth.bind(R),R.getScrollHeight=R.getScrollHeight.bind(R),R.getClientWidth=R.getClientWidth.bind(R),R.getClientHeight=R.getClientHeight.bind(R),R.getValues=R.getValues.bind(R),R.getThumbHorizontalWidth=R.getThumbHorizontalWidth.bind(R),R.getThumbVerticalHeight=R.getThumbVerticalHeight.bind(R),R.getScrollLeftForOffset=R.getScrollLeftForOffset.bind(R),R.getScrollTopForOffset=R.getScrollTopForOffset.bind(R),R.scrollLeft=R.scrollLeft.bind(R),R.scrollTop=R.scrollTop.bind(R),R.scrollToLeft=R.scrollToLeft.bind(R),R.scrollToTop=R.scrollToTop.bind(R),R.scrollToRight=R.scrollToRight.bind(R),R.scrollToBottom=R.scrollToBottom.bind(R),R.handleTrackMouseEnter=R.handleTrackMouseEnter.bind(R),R.handleTrackMouseLeave=R.handleTrackMouseLeave.bind(R),R.handleHorizontalTrackMouseDown=R.handleHorizontalTrackMouseDown.bind(R),R.handleVerticalTrackMouseDown=R.handleVerticalTrackMouseDown.bind(R),R.handleHorizontalThumbMouseDown=R.handleHorizontalThumbMouseDown.bind(R),R.handleVerticalThumbMouseDown=R.handleVerticalThumbMouseDown.bind(R),R.handleWindowResize=R.handleWindowResize.bind(R),R.handleScroll=R.handleScroll.bind(R),R.handleDrag=R.handleDrag.bind(R),R.handleDragEnd=R.handleDragEnd.bind(R),R.state={didMountUniversal:!1},R}return a(I,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var U=this.props.universal;U&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,l.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var U=this.view||{},z=U.scrollLeft,S=z===void 0?0:z,te=U.scrollTop,R=te===void 0?0:te,v=U.scrollWidth,C=v===void 0?0:v,W=U.scrollHeight,V=W===void 0?0:W,H=U.clientWidth,X=H===void 0?0:H,J=U.clientHeight,ie=J===void 0?0:J;return{left:S/(C-X)||0,top:R/(V-ie)||0,scrollLeft:S,scrollTop:R,scrollWidth:C,scrollHeight:V,clientWidth:X,clientHeight:ie}}},{key:"getThumbHorizontalWidth",value:function(){var U=this.props,z=U.thumbSize,S=U.thumbMinSize,te=this.view,R=te.scrollWidth,v=te.clientWidth,C=(0,k.default)(this.trackHorizontal),W=Math.ceil(v/R*C);return C<=W?0:z||Math.max(W,S)}},{key:"getThumbVerticalHeight",value:function(){var U=this.props,z=U.thumbSize,S=U.thumbMinSize,te=this.view,R=te.scrollHeight,v=te.clientHeight,C=(0,q.default)(this.trackVertical),W=Math.ceil(v/R*C);return C<=W?0:z||Math.max(W,S)}},{key:"getScrollLeftForOffset",value:function(U){var z=this.view,S=z.scrollWidth,te=z.clientWidth,R=(0,k.default)(this.trackHorizontal),v=this.getThumbHorizontalWidth();return U/(R-v)*(S-te)}},{key:"getScrollTopForOffset",value:function(U){var z=this.view,S=z.scrollHeight,te=z.clientHeight,R=(0,q.default)(this.trackVertical),v=this.getThumbVerticalHeight();return U/(R-v)*(S-te)}},{key:"scrollLeft",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=U)}},{key:"scrollTop",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=U)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var U=this.view,z=this.trackHorizontal,S=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;U.addEventListener("scroll",this.handleScroll),(0,E.default)()&&(z.addEventListener("mouseenter",this.handleTrackMouseEnter),z.addEventListener("mouseleave",this.handleTrackMouseLeave),z.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),S.addEventListener("mouseenter",this.handleTrackMouseEnter),S.addEventListener("mouseleave",this.handleTrackMouseLeave),S.addEventListener("mousedown",this.handleVerticalTrackMouseDown),te.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var U=this.view,z=this.trackHorizontal,S=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;U.removeEventListener("scroll",this.handleScroll),(0,E.default)()&&(z.removeEventListener("mouseenter",this.handleTrackMouseEnter),z.removeEventListener("mouseleave",this.handleTrackMouseLeave),z.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),S.removeEventListener("mouseenter",this.handleTrackMouseEnter),S.removeEventListener("mouseleave",this.handleTrackMouseLeave),S.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),te.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(U){var z=this,S=this.props,te=S.onScroll,R=S.onScrollFrame;te&&te(U),this.update(function(v){var C=v.scrollLeft,W=v.scrollTop;z.viewScrollLeft=C,z.viewScrollTop=W,R&&R(v)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var U=this.props.onScrollStart;U&&U(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var U=this.props.autoHide;U&&this.showTracks()}},{key:"handleScrollStop",value:function(){var U=this.props.onScrollStop;U&&U(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,E.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(U){U.preventDefault();var z=U.target,S=U.clientX,te=z.getBoundingClientRect(),R=te.left,v=this.getThumbHorizontalWidth(),C=Math.abs(R-S)-v/2;this.view.scrollLeft=this.getScrollLeftForOffset(C)}},{key:"handleVerticalTrackMouseDown",value:function(U){U.preventDefault();var z=U.target,S=U.clientY,te=z.getBoundingClientRect(),R=te.top,v=this.getThumbVerticalHeight(),C=Math.abs(R-S)-v/2;this.view.scrollTop=this.getScrollTopForOffset(C)}},{key:"handleHorizontalThumbMouseDown",value:function(U){U.preventDefault(),this.handleDragStart(U);var z=U.target,S=U.clientX,te=z.offsetWidth,R=z.getBoundingClientRect(),v=R.left;this.prevPageX=te-(S-v)}},{key:"handleVerticalThumbMouseDown",value:function(U){U.preventDefault(),this.handleDragStart(U);var z=U.target,S=U.clientY,te=z.offsetHeight,R=z.getBoundingClientRect(),v=R.top;this.prevPageY=te-(S-v)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,Z.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=_.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,Z.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(U){this.dragging=!0,U.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(U){if(this.prevPageX){var z=U.clientX,S=this.trackHorizontal.getBoundingClientRect(),te=S.left,R=this.getThumbHorizontalWidth(),v=R-this.prevPageX,C=-te+z-v;this.view.scrollLeft=this.getScrollLeftForOffset(C)}if(this.prevPageY){var W=U.clientY,V=this.trackVertical.getBoundingClientRect(),H=V.top,X=this.getThumbVerticalHeight(),J=X-this.prevPageY,ie=-H+W-J;this.view.scrollTop=this.getScrollTopForOffset(ie)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var U=this.props.autoHide;U&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var U=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var z=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,c.default)(U.trackHorizontal,{opacity:0}),(0,c.default)(U.trackVertical,{opacity:0})},z)}}},{key:"detectScrolling",value:function(){var U=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){U.lastViewScrollLeft===U.viewScrollLeft&&U.lastViewScrollTop===U.viewScrollTop&&(clearInterval(U.detectScrollingInterval),U.scrolling=!1,U.handleScrollStop()),U.lastViewScrollLeft=U.viewScrollLeft,U.lastViewScrollTop=U.viewScrollTop},100))}},{key:"raf",value:function(U){var z=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){z.requestFrame=void 0,U()})}},{key:"update",value:function(U){var z=this;this.raf(function(){return z._update(U)})}},{key:"_update",value:function(U){var z=this.props,S=z.onUpdate,te=z.hideTracksWhenNotNeeded,R=this.getValues();if((0,E.default)()){var v=R.scrollLeft,C=R.clientWidth,W=R.scrollWidth,V=(0,k.default)(this.trackHorizontal),H=this.getThumbHorizontalWidth(),X=v/(W-C)*(V-H),J={width:H,transform:"translateX("+X+"px)"},ie=R.scrollTop,ce=R.clientHeight,me=R.scrollHeight,pe=(0,q.default)(this.trackVertical),ve=this.getThumbVerticalHeight(),he=ie/(me-ce)*(pe-ve),ge={height:ve,transform:"translateY("+he+"px)"};if(te){var Se={visibility:W>C?"visible":"hidden"},ye={visibility:me>ce?"visible":"hidden"};(0,c.default)(this.trackHorizontal,Se),(0,c.default)(this.trackVertical,ye)}(0,c.default)(this.thumbHorizontal,J),(0,c.default)(this.thumbVertical,ge)}S&&S(R),typeof U=="function"&&U(R)}},{key:"render",value:function(){var U=this,z=(0,E.default)(),S=this.props;S.onScroll,S.onScrollFrame,S.onScrollStart,S.onScrollStop,S.onUpdate;var te=S.renderView,R=S.renderTrackHorizontal,v=S.renderTrackVertical,C=S.renderThumbHorizontal,W=S.renderThumbVertical,V=S.tagName;S.hideTracksWhenNotNeeded;var H=S.autoHide;S.autoHideTimeout;var X=S.autoHideDuration;S.thumbSize,S.thumbMinSize;var J=S.universal,ie=S.autoHeight,ce=S.autoHeightMin,me=S.autoHeightMax,pe=S.style,ve=S.children,he=P(S,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ge=this.state.didMountUniversal,Se=t({},Z.containerStyleDefault,ie&&t({},Z.containerStyleAutoHeight,{minHeight:ce,maxHeight:me}),pe),ye=t({},Z.viewStyleDefault,{marginRight:z?-z:0,marginBottom:z?-z:0},ie&&t({},Z.viewStyleAutoHeight,{minHeight:(0,y.default)(ce)?"calc("+ce+" + "+z+"px)":ce+z,maxHeight:(0,y.default)(me)?"calc("+me+" + "+z+"px)":me+z}),ie&&J&&!ge&&{minHeight:ce,maxHeight:me},J&&!ge&&Z.viewStyleUniversalInitial),Re={transition:"opacity "+X+"ms",opacity:0},be=t({},Z.trackHorizontalStyleDefault,H&&Re,(!z||J&&!ge)&&{display:"none"}),Le=t({},Z.trackVerticalStyleDefault,H&&Re,(!z||J&&!ge)&&{display:"none"});return(0,d.createElement)(V,t({},he,{style:Se,ref:function(Ee){U.container=Ee}}),[(0,d.cloneElement)(te({style:ye}),{key:"view",ref:function(Ee){U.view=Ee}},ve),(0,d.cloneElement)(R({style:be}),{key:"trackHorizontal",ref:function(Ee){U.trackHorizontal=Ee}},(0,d.cloneElement)(C({style:Z.thumbHorizontalStyleDefault}),{ref:function(Ee){U.thumbHorizontal=Ee}})),(0,d.cloneElement)(v({style:Le}),{key:"trackVertical",ref:function(Ee){U.trackVertical=Ee}},(0,d.cloneElement)(W({style:Z.thumbVerticalStyleDefault}),{ref:function(Ee){U.thumbVertical=Ee}}))])}}]),I}(d.Component);r.default=F,F.propTypes={onScroll:p.default.func,onScrollFrame:p.default.func,onScrollStart:p.default.func,onScrollStop:p.default.func,onUpdate:p.default.func,renderView:p.default.func,renderTrackHorizontal:p.default.func,renderTrackVertical:p.default.func,renderThumbHorizontal:p.default.func,renderThumbVertical:p.default.func,tagName:p.default.string,thumbSize:p.default.number,thumbMinSize:p.default.number,hideTracksWhenNotNeeded:p.default.bool,autoHide:p.default.bool,autoHideTimeout:p.default.number,autoHideDuration:p.default.number,autoHeight:p.default.bool,autoHeightMin:p.default.oneOfType([p.default.number,p.default.string]),autoHeightMax:p.default.oneOfType([p.default.number,p.default.string]),universal:p.default.bool,style:p.default.object,children:p.default.node},F.defaultProps={renderView:N.renderViewDefault,renderTrackHorizontal:N.renderTrackHorizontalDefault,renderTrackVertical:N.renderTrackVerticalDefault,renderThumbHorizontal:N.renderThumbHorizontalDefault,renderThumbVertical:N.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Qh)),Qh}var y1;function zM(){return y1||(y1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scrollbars=void 0;var t=LM(),a=l(t);function l(o){return o&&o.__esModule?o:{default:o}}r.default=a.default,r.Scrollbars=a.default}(Fh)),Fh}var PM=zM();const HM=Kn(PM),kO=w.forwardRef((r,t)=>{const{viewClassName:a,children:l}=r;return b.jsx(HM,{ref:t,className:"scrollbars",autoHide:!0,hideTracksWhenNotNeeded:!0,renderTrackHorizontal:o=>b.jsx("div",{...o,className:"custom-scrollbars__track-horizontal"}),renderTrackVertical:o=>b.jsx("div",{...o,className:"custom-scrollbars__track-vertical"}),renderThumbHorizontal:o=>b.jsx("div",{...o,className:"custom-scrollbars__thumb-horizontal"}),renderThumbVertical:o=>b.jsx("div",{...o,className:"custom-scrollbars__thumb-vertical"}),renderView:o=>b.jsx("div",{...o,className:a}),children:l})}),BO=w.createContext({});function kM(r){const{children:t}=r,a=w.useRef(null),l=w.useCallback((o,u)=>{a.current&&(a.current.scrollLeft(o),a.current.scrollTop(u))},[]);return b.jsx(BO.Provider,{value:{scrollTo:l},children:b.jsx(kO,{ref:a,children:t})})}const zo=()=>w.useContext(BO),$O=w.createContext({}),BM=(r,t)=>Zn(t,r)?r:t,$M=(r,t)=>Zn(t,r)?r:t;function IM(r){const{api:t}=er(),[a,l]=w.useReducer(BM,null),[o,u]=w.useReducer($M,null),c=w.useCallback(h=>{if(!a)return null;const p=Er(a);h.theme&&(p.theme=h.theme),h.listItemsPerPage&&(p.listItemsPerPage=h.listItemsPerPage),h.galleryItemsPerPage&&(p.galleryItemsPerPage=h.galleryItemsPerPage),h.maxContentWidth&&(p.maxContentWidth=h.maxContentWidth),(async()=>Zn(a,p)||(await t.saveBrowseSettings(p),l(p)))()},[t,a]),d=w.useCallback(()=>{(async()=>(l(await t.getBrowseSettings()),u(await t.getBrowseSettingOptions())))()},[t]);if(w.useEffect(()=>{d()},[d]),!(!a||!o))return b.jsx($O.Provider,{value:{settings:a,options:o,updateSettings:c,refreshSettings:d},children:r.children})}const Ar=()=>w.useContext($O),IO=w.createContext({});function qM(r){const{children:t}=r,a=w.useRef(null),l=w.useCallback(o=>{a.current&&(clearTimeout(a.current),a.current=null);const u=()=>{const c=[];o&&c.push(o),c.push("patreon-dl"),document.title=c.join(" | ")};o?u():a.current=setTimeout(()=>{a.current=null,u()},500)},[]);return b.jsx(IO.Provider,{value:{setTitle:l},children:t})}const Po=()=>w.useContext(IO);function UM(r){return{sortBy:"last_downloaded",page:null,itemsPerPage:r.listItemsPerPage}}const GM=(r,t)=>{const a=Er(r);return t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Zn(a,r)?r:a};function b1(){const{api:r}=er(),{setTitle:t}=Po(),{settings:a}=Ar(),{scrollTo:l}=zo(),[o,u]=w.useReducer(GM,UM(a)),[c,d]=w.useState(null),[h,p]=Co();w.useEffect(()=>{t("Home")},[t]),w.useEffect(()=>{const{sortBy:y,page:x}=o;if(y===null||x===null)return;const E=new AbortController;return(async()=>{const j=await r.getCampaignList({...o,sortBy:y,page:x});E.signal.aborted||d(j)})(),()=>E.abort()},[r,o]),w.useEffect(()=>{const y=Number(h.get("p"))||1;u({page:y}),l(0,0)},[h,l]),w.useEffect(()=>{u({itemsPerPage:a.listItemsPerPage})},[a.listItemsPerPage]);const g=(y,x=!1)=>{p(E=>{const j=new URLSearchParams(E);return j.set("p",String(y)),j},{replace:x})};if(w.useEffect(()=>{c&&c.campaigns.length===0&&c.total>0&&g(1,!0)},[c,g]),!!c)return b.jsx(On,{fluid:!0,children:b.jsx(vt,{className:"g-0 justify-content-center",children:b.jsxs(lt,{md:10,sm:12,className:`campaign-list mw-${a.maxContentWidth.toLowerCase()}`,children:[b.jsx("h2",{className:"my-4",children:"Creators"}),b.jsx(On,{fluid:!0,className:"p-0",children:b.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[b.jsx(lt,{className:"w-auto flex-fill",children:o.page?b.jsx(Du,{total:c.total,page:o.page,itemsPerPage:o.itemsPerPage,subject:{singular:"creator",plural:"creators"}}):null}),b.jsx(lt,{className:"w-auto d-flex justify-content-end",children:b.jsxs(Mt.Select,{size:"sm",className:"w-auto",onChange:y=>u({sortBy:y.currentTarget.value}),children:[b.jsx("option",{value:"a-z",selected:o.sortBy==="a-z",children:"A-Z"}),b.jsx("option",{value:"z-a",selected:o.sortBy==="z-a",children:"Z-A"}),b.jsx("option",{value:"most_media",selected:o.sortBy==="most_media",children:"Most media"}),b.jsx("option",{value:"most_content",selected:o.sortBy==="most_content",children:"Most content"}),b.jsx("option",{value:"last_downloaded",selected:o.sortBy==="last_downloaded",children:"Last downloaded"})]})})]})}),b.jsx("div",{className:"mb-4",children:c.campaigns.map(y=>b.jsx(mM,{campaign:y}))}),b.jsx(Lu,{totalItems:c.total,itemsPerPage:o.itemsPerPage,onChange:g})]})})})}const VM=r=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...r},w.createElement("path",{d:"M 171.3548387096774 407.741935483871 Q 170.32258064516128 411.8709677419355 166.19354838709677 411.8709677419355 Q 160 411.8709677419355 160 407.741935483871 Q 161.03225806451613 404.64516129032256 165.16129032258064 404.64516129032256 Q 170.32258064516128 404.64516129032256 171.3548387096774 407.741935483871 L 171.3548387096774 407.741935483871 Z M 139.3548387096774 403.61290322580646 Q 138.32258064516128 406.7096774193548 143.48387096774192 408.7741935483871 Q 148.6451612903226 409.80645161290323 149.67741935483872 406.7096774193548 Q 150.70967741935485 402.5806451612903 145.5483870967742 401.5483870967742 Q 140.38709677419354 400.51612903225805 139.3548387096774 403.61290322580646 L 139.3548387096774 403.61290322580646 Z M 184.7741935483871 401.5483870967742 Q 179.61290322580646 402.5806451612903 179.61290322580646 406.7096774193548 Q 180.6451612903226 409.80645161290323 185.80645161290323 409.80645161290323 Q 190.96774193548387 407.741935483871 190.96774193548387 404.64516129032256 Q 189.93548387096774 401.5483870967742 184.7741935483871 401.5483870967742 L 184.7741935483871 401.5483870967742 Z M 252.90322580645162 6.193548387096774 Q 142.4516129032258 8.258064516129032 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 Q 2.064516129032258 148.6451612903226 0 258.06451612903226 Q 1.032258064516129 345.80645161290323 48.516129032258064 411.8709677419355 Q 96 477.93548387096774 175.48387096774192 504.7741935483871 Q 194.06451612903226 505.80645161290323 193.03225806451613 492.38709677419354 Q 193.03225806451613 488.258064516129 193.03225806451613 476.9032258064516 Q 193.03225806451613 453.16129032258067 193.03225806451613 429.4193548387097 Q 190.96774193548387 429.4193548387097 173.41935483870967 431.48387096774195 Q 154.83870967741936 432.51612903225805 134.19354838709677 427.35483870967744 Q 113.54838709677419 421.16129032258067 105.29032258064517 398.4516129032258 Q 105.29032258064517 396.38709677419354 97.03225806451613 381.93548387096774 Q 88.7741935483871 368.51612903225805 76.38709677419355 360.258064516129 Q 74.3225806451613 359.2258064516129 68.12903225806451 352 Q 60.903225806451616 345.80645161290323 78.45161290322581 344.7741935483871 Q 79.48387096774194 343.741935483871 92.90322580645162 348.9032258064516 Q 106.3225806451613 353.03225806451616 117.6774193548387 371.61290322580646 Q 136.25806451612902 399.48387096774195 157.93548387096774 399.48387096774195 Q 180.6451612903226 399.48387096774195 193.03225806451613 393.2903225806452 Q 197.16129032258064 368.51612903225805 209.5483870967742 358.19354838709677 Q 164.1290322580645 356.1290322580645 130.06451612903226 335.48387096774195 Q 96 315.8709677419355 93.93548387096774 243.61290322580646 Q 93.93548387096774 222.96774193548387 100.12903225806451 209.5483870967742 Q 105.29032258064517 196.1290322580645 117.6774193548387 183.74193548387098 Q 115.61290322580645 177.5483870967742 113.54838709677419 158.96774193548387 Q 111.48387096774194 140.38709677419354 120.7741935483871 113.54838709677419 Q 139.3548387096774 110.45161290322581 164.1290322580645 124.90322580645162 Q 189.93548387096774 138.32258064516128 192 141.41935483870967 Q 192 141.41935483870967 192 141.41935483870967 Q 222.96774193548387 132.1290322580645 257.03225806451616 132.1290322580645 Q 290.06451612903226 132.1290322580645 322.06451612903226 141.41935483870967 Q 322.06451612903226 140.38709677419354 335.48387096774195 132.1290322580645 Q 347.8709677419355 123.87096774193549 364.38709677419354 117.6774193548387 Q 380.9032258064516 110.45161290322581 393.2903225806452 113.54838709677419 Q 402.5806451612903 140.38709677419354 400.51612903225805 158.96774193548387 Q 398.4516129032258 177.5483870967742 395.35483870967744 183.74193548387098 Q 407.741935483871 196.1290322580645 414.96774193548384 209.5483870967742 Q 422.19354838709677 222.96774193548387 422.19354838709677 243.61290322580646 Q 421.16129032258067 293.16129032258067 404.64516129032256 316.9032258064516 Q 387.0967741935484 339.61290322580646 360.258064516129 347.8709677419355 Q 333.4193548387097 356.1290322580645 303.48387096774195 358.19354838709677 Q 320 369.5483870967742 321.03225806451616 405.6774193548387 Q 321.03225806451616 443.8709677419355 321.03225806451616 473.80645161290323 Q 321.03225806451616 487.2258064516129 321.03225806451616 492.38709677419354 Q 320 505.80645161290323 338.5806451612903 504.7741935483871 Q 417.03225806451616 477.93548387096774 464.51612903225805 411.8709677419355 Q 510.96774193548384 345.80645161290323 512 258.06451612903226 Q 510.96774193548384 185.80645161290323 476.9032258064516 129.03225806451613 Q 441.80645161290323 72.25806451612904 384 39.225806451612904 Q 325.16129032258067 7.225806451612903 252.90322580645162 6.193548387096774 L 252.90322580645162 6.193548387096774 Z M 100.12903225806451 362.3225806451613 Q 98.06451612903226 364.38709677419354 101.16129032258064 367.48387096774195 Q 104.25806451612904 370.5806451612903 106.3225806451613 368.51612903225805 Q 108.38709677419355 366.4516129032258 105.29032258064517 363.35483870967744 Q 103.2258064516129 360.258064516129 100.12903225806451 362.3225806451613 L 100.12903225806451 362.3225806451613 Z M 88.7741935483871 354.06451612903226 Q 88.7741935483871 356.1290322580645 91.87096774193549 358.19354838709677 Q 94.96774193548387 359.2258064516129 96 357.16129032258067 Q 97.03225806451613 355.0967741935484 93.93548387096774 353.03225806451616 Q 90.83870967741936 352 88.7741935483871 354.06451612903226 L 88.7741935483871 354.06451612903226 Z M 122.83870967741936 390.19354838709677 Q 120.7741935483871 393.2903225806452 123.87096774193549 397.4193548387097 Q 128 400.51612903225805 131.09677419354838 398.4516129032258 Q 132.1290322580645 395.35483870967744 129.03225806451613 391.2258064516129 Q 124.90322580645162 388.1290322580645 122.83870967741936 390.19354838709677 L 122.83870967741936 390.19354838709677 Z M 110.45161290322581 375.741935483871 Q 108.38709677419355 377.80645161290323 110.45161290322581 381.93548387096774 Q 113.54838709677419 385.03225806451616 116.64516129032258 384 Q 118.70967741935483 381.93548387096774 116.64516129032258 377.80645161290323 Q 113.54838709677419 373.6774193548387 110.45161290322581 375.741935483871 L 110.45161290322581 375.741935483871 Z"}));function WM(r){const{show:t,onClose:a}=r,{settings:l,options:o,updateSettings:u,refreshSettings:c}=Ar();w.useEffect(()=>{t&&c()},[t,c]);const d=w.useCallback(h=>{const p=h.target.dataset.setting,g=h.target.dataset.type;if(!p)return;const y=g==="number"?Number(h.target.value):h.target.value;if(typeof y=="number"&&isNaN(y))return;const x={[p]:y};u(x)},[u]);return!l||!o?null:b.jsxs(Pa,{show:t,onHide:a,centered:!0,scrollable:!0,children:[b.jsx(Pa.Header,{closeButton:!0}),b.jsx(Pa.Body,{children:b.jsxs(Mt,{children:[b.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[b.jsx(Mt.Label,{column:!0,sm:5,children:"Theme:"}),b.jsx(lt,{sm:7,children:b.jsx(Mt.Select,{"data-setting":"theme",value:l.theme,onChange:d,children:o.themes.map(h=>b.jsx("option",{value:h.value,children:h.name},`theme-${h.value}`))})})]}),b.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[b.jsx(Mt.Label,{column:!0,sm:5,children:"List items per page:"}),b.jsx(lt,{sm:7,children:b.jsx(Mt.Select,{"data-setting":"listItemsPerPage","data-type":"number",value:l.listItemsPerPage,onChange:d,children:o.listItemsPerPage.map(h=>b.jsx("option",{value:h,children:h},`listItemsPerPage-${h}`))})})]}),b.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[b.jsx(Mt.Label,{column:!0,sm:5,children:"Gallery items per page:"}),b.jsx(lt,{sm:7,children:b.jsx(Mt.Select,{"data-setting":"galleryItemsPerPage","data-type":"number",value:l.galleryItemsPerPage,onChange:d,children:o.galleryItemsPerPage.map(h=>b.jsx("option",{value:h,children:h},`galleryItemsPerPage-${h}`))})})]}),b.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[b.jsx(Mt.Label,{column:!0,sm:5,children:"Max. content width:"}),b.jsx(lt,{sm:7,children:b.jsx(Mt.Select,{"data-setting":"maxContentWidth","data-type":"string",value:l.maxContentWidth,onChange:d,children:o.maxContentWidth.map(h=>b.jsx("option",{value:h,children:h},`maxContentWidth-${h}`))})})]})]})})]})}const qO=w.createContext({});function YM(r){const{children:t}=r,[a,l]=w.useState(!1),o=w.useCallback(()=>{l(!0)},[]),u=w.useCallback(()=>{l(!1)},[]);return b.jsxs(qO.Provider,{value:{showBrowseSettingsModal:o,closeBrowseSettingsModal:u},children:[t,b.jsx(WM,{show:a,onClose:u})]})}const XM=()=>w.useContext(qO);function UO(r){const{closeButton:t=!1,onClose:a}=r,{api:l}=er(),{showBrowseSettingsModal:o}=XM(),[u,c]=w.useState(null);w.useEffect(()=>{const g=new AbortController;return(async()=>{const y=(await l.getCampaignList({sortBy:"last_downloaded",itemsPerPage:10})).campaigns;g.signal.aborted||c(y)})(),()=>g.abort()},[l]);const d=w.useCallback(()=>{a&&a()},[a]),h=w.useCallback(g=>{g.preventDefault(),a&&a(),o()},[a,o]),p=w.useMemo(()=>{if(!u||u.length===0)return null;const g=u.map(y=>b.jsxs(on,{to:Ia(y),className:"sidebar__link",onClick:d,children:[b.jsx(ca,{className:"sidebar__link-icon me-2",mediaId:`campaign:${y.id}:avatar`}),b.jsx("span",{className:"sidebar__link-text",children:y.name})]}));return b.jsxs(Ne,{className:"mt-4 mb-5 px-3",gap:3,children:[b.jsx("h6",{className:"sidebar__section-title",children:"Recently downloaded"}),g]})},[u]);return b.jsx(b.Fragment,{children:b.jsx(it,{className:"sidebar p-0",children:b.jsxs(Ne,{className:"overflow-hidden",children:[b.jsxs(Ne,{direction:"horizontal",className:"sidebar__header justify-content-between p-3",children:[b.jsx("div",{className:"sidebar__brand fs-5 fw-bold",children:b.jsx(on,{to:"/",onClick:d,children:"patreon-dl"})}),t?b.jsx("button",{className:"btn-close",onClick:a?()=>a():void 0}):null]}),b.jsx(kO,{viewClassName:"sidebar__main",children:b.jsxs(Ne,{className:"flex-fill",children:[p,b.jsxs(Ne,{className:"justify-content-end px-3 pb-3",gap:3,children:[b.jsxs("a",{href:"#",className:"sidebar__link",onClick:h,children:[b.jsx("span",{className:"material-icons me-2",children:"settings"}),b.jsx("span",{className:"sidebar__link-text",children:"Settings"})]}),b.jsxs(on,{to:"https://github.com/patrickkfkan/patreon-dl",className:"sidebar__link",onClick:d,children:[b.jsx(VM,{className:"sidebar__link-icon sidebar__link-icon--svg me-2"}),b.jsx("span",{className:"sidebar__link-text",children:"Project homepage"})]})]})]})})]})})})}function FM(){const[r,t]=w.useState(!1);return b.jsxs(b.Fragment,{children:[b.jsx(Qt,{variant:"link",className:"sidebar-trigger d-flex align-items-center",onClick:()=>t(!0),children:b.jsx("span",{className:"material-icons",children:"menu"})}),b.jsx(JS,{show:r,onHide:()=>t(!1),placement:"start",children:b.jsx(JS.Body,{className:"p-0",children:b.jsx(UO,{closeButton:!0,onClose:()=>t(!1)})})})]})}function QM(){return b.jsx(On,{fluid:!0,className:"p-0 vh-100",children:b.jsxs(vt,{className:"g-0 h-100",children:[b.jsx(lt,{lg:3,className:"p-0 sticky-top d-none d-lg-block",style:{maxWidth:"18em"},children:b.jsx(UO,{})}),b.jsx(lt,{className:"p-0",children:b.jsxs(kM,{children:[b.jsxs(Ne,{direction:"horizontal",className:"d-lg-none sticky-top bg-body py-2",children:[b.jsx(FM,{}),b.jsx("div",{className:"fs-5",children:b.jsx(on,{className:"text-body",to:"/",children:"patreon-dl"})})]}),b.jsx(Jp,{})]})})]})})}/*! *****************************************************************************
69
+ Copyright (c) Microsoft Corporation.
70
+
71
+ Permission to use, copy, modify, and/or distribute this software for any
72
+ purpose with or without fee is hereby granted.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
75
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
76
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
77
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
78
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
79
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
80
+ PERFORMANCE OF THIS SOFTWARE.
81
+ ***************************************************************************** */function ZM(r,t){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&t.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(r);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(r,l[o])&&(a[l[o]]=r[l[o]]);return a}/*!
82
+ * lightgallery | 2.8.3 | March 1st 2025
83
+ * http://www.lightgalleryjs.com/
84
+ * Copyright (c) 2020 Sachin Neravath;
85
+ * @license GPLv3
86
+ *//*! *****************************************************************************
87
+ Copyright (c) Microsoft Corporation.
88
+
89
+ Permission to use, copy, modify, and/or distribute this software for any
90
+ purpose with or without fee is hereby granted.
91
+
92
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
93
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
94
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
95
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
96
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
97
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
98
+ PERFORMANCE OF THIS SOFTWARE.
99
+ ***************************************************************************** */var la=function(){return la=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},la.apply(this,arguments)};function KM(){for(var r=0,t=0,a=arguments.length;t<a;t++)r+=arguments[t].length;for(var l=Array(r),o=0,t=0;t<a;t++)for(var u=arguments[t],c=0,d=u.length;c<d;c++,o++)l[o]=u[c];return l}var at={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},JM={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function e4(){(function(){if(typeof window.CustomEvent=="function")return!1;function r(t,a){a=a||{bubbles:!1,cancelable:!1,detail:null};var l=document.createEvent("CustomEvent");return l.initCustomEvent(t,a.bubbles,a.cancelable,a.detail),l}window.CustomEvent=r})(),function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)}()}var GO=function(){function r(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return r.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=Math.random()*16|0,l=t=="x"?a:a&3|8;return l.toString(16)})},r.prototype._getSelector=function(t,a){if(a===void 0&&(a=document),typeof t!="string")return t;a=a||document;var l=t.substring(0,1);return l==="#"?a.querySelector(t):a.querySelectorAll(t)},r.prototype._each=function(t){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,t):t(this.selector,0),this):this},r.prototype._setCssVendorPrefix=function(t,a,l){var o=a.replace(/-([a-z])/gi,function(u,c){return c.toUpperCase()});this.cssVenderPrefixes.indexOf(o)!==-1?(t.style[o.charAt(0).toLowerCase()+o.slice(1)]=l,t.style["webkit"+o]=l,t.style["moz"+o]=l,t.style["ms"+o]=l,t.style["o"+o]=l):t.style[o]=l},r.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},r.prototype.isEventMatched=function(t,a){var l=a.split(".");return t.split(".").filter(function(o){return o}).every(function(o){return l.indexOf(o)!==-1})},r.prototype.attr=function(t,a){return a===void 0?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(l){l.setAttribute(t,a)}),this)},r.prototype.find=function(t){return je(this._getSelector(t,this.selector))},r.prototype.first=function(){return this.selector&&this.selector.length!==void 0?je(this.selector[0]):je(this.selector)},r.prototype.eq=function(t){return je(this.selector[t])},r.prototype.parent=function(){return je(this.selector.parentElement)},r.prototype.get=function(){return this._getFirstEl()},r.prototype.removeAttr=function(t){var a=t.split(" ");return this._each(function(l){a.forEach(function(o){return l.removeAttribute(o)})}),this},r.prototype.wrap=function(t){if(!this.firstElement)return this;var a=document.createElement("div");return a.className=t,this.firstElement.parentNode.insertBefore(a,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),a.appendChild(this.firstElement),this},r.prototype.addClass=function(t){return t===void 0&&(t=""),this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.add(l)})}),this},r.prototype.removeClass=function(t){return this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.remove(l)})}),this},r.prototype.hasClass=function(t){return this.firstElement?this.firstElement.classList.contains(t):!1},r.prototype.hasAttribute=function(t){return this.firstElement?this.firstElement.hasAttribute(t):!1},r.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},r.prototype.css=function(t,a){var l=this;return this._each(function(o){l._setCssVendorPrefix(o,t,a)}),this},r.prototype.on=function(t,a){var l=this;return this.selector?(t.split(" ").forEach(function(o){Array.isArray(r.eventListeners[o])||(r.eventListeners[o]=[]),r.eventListeners[o].push(a),l.selector.addEventListener(o.split(".")[0],a)}),this):this},r.prototype.once=function(t,a){var l=this;return this.on(t,function(){l.off(t),a(t)}),this},r.prototype.off=function(t){var a=this;return this.selector?(Object.keys(r.eventListeners).forEach(function(l){a.isEventMatched(t,l)&&(r.eventListeners[l].forEach(function(o){a.selector.removeEventListener(l.split(".")[0],o)}),r.eventListeners[l]=[])}),this):this},r.prototype.trigger=function(t,a){if(!this.firstElement)return this;var l=new CustomEvent(t.split(".")[0],{detail:a||null});return this.firstElement.dispatchEvent(l),this},r.prototype.load=function(t){var a=this;return fetch(t).then(function(l){return l.text()}).then(function(l){a.selector.innerHTML=l}),this},r.prototype.html=function(t){return t===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(a){a.innerHTML=t}),this)},r.prototype.append=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("beforeend",t):a.appendChild(t)}),this},r.prototype.prepend=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("afterbegin",t):t instanceof HTMLElement&&a.insertBefore(t.cloneNode(!0),a.firstChild)}),this},r.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},r.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},r.prototype.scrollTop=function(t){return t!==void 0?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},r.prototype.scrollLeft=function(t){return t!==void 0?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},r.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),a=je("body").style().marginLeft;return{left:t.left-parseFloat(a)+this.scrollLeft(),top:t.top+this.scrollTop()}},r.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},r.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},r.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},r.eventListeners={},r}();function je(r){return e4(),new GO(r)}var t4=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function n4(r){return r==="href"?"src":(r=r.replace("data-",""),r=r.charAt(0).toLowerCase()+r.slice(1),r=r.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),r)}var Rt={fetchCaptionFromUrl:function(r,t,a){fetch(r).then(function(l){return l.text()}).then(function(l){if(a==="append"){var o='<div class="lg-sub-html">'+l+"</div>";t.append(o)}else t.html(l)})},getSize:function(r,t,a,l){a===void 0&&(a=0);var o=je(r),u=o.attr("data-lg-size")||l;if(u){var c=u.split(",");if(c[1])for(var d=window.innerWidth,h=0;h<c.length;h++){var p=c[h],g=parseInt(p.split("-")[2],10);if(g>d){u=p;break}h===c.length-1&&(u=p)}var y=u.split("-"),x=parseInt(y[0],10),E=parseInt(y[1],10),j=t.width(),_=t.height()-a,L=Math.min(j,x),k=Math.min(_,E),G=Math.min(L/x,k/E);return{width:x*G,height:E*G}}},getTransform:function(r,t,a,l,o){if(o){var u=je(r).find("img").first();if(u.get()){var c=t.get().getBoundingClientRect(),d=c.width,h=t.height()-(a+l),p=u.width(),g=u.height(),y=u.style(),x=(d-p)/2-u.offset().left+(parseFloat(y.paddingLeft)||0)+(parseFloat(y.borderLeft)||0)+je(window).scrollLeft()+c.left,E=(h-g)/2-u.offset().top+(parseFloat(y.paddingTop)||0)+(parseFloat(y.borderTop)||0)+je(window).scrollTop()+a,j=p/o.width,_=g/o.height,L="translate3d("+(x*=-1)+"px, "+(E*=-1)+"px, 0) scale3d("+j+", "+_+", 1)";return L}}},getIframeMarkup:function(r,t,a,l,o,u){var c=u?'title="'+u+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+r+"; max-width:"+a+"; height: "+t+"; max-height:"+l+`">
100
+ <iframe class="lg-object" frameborder="0" `+c+' src="'+o+`" allowfullscreen="true"></iframe>
101
+ </div>`},getImgMarkup:function(r,t,a,l,o,u){var c=l?'srcset="'+l+'"':"",d=o?'sizes="'+o+'"':"",h="<img "+a+" "+c+" "+d+' class="lg-object lg-image" data-index="'+r+'" src="'+t+'" />',p="";if(u){var g=typeof u=="string"?JSON.parse(u):u;p=g.map(function(y){var x="";return Object.keys(y).forEach(function(E){x+=" "+E+'="'+y[E]+'"'}),"<source "+x+"></source>"})}return""+p+h},getResponsiveSrc:function(r){for(var t=[],a=[],l="",o=0;o<r.length;o++){var u=r[o].split(" ");u[0]===""&&u.splice(0,1),a.push(u[0]),t.push(u[1])}for(var c=window.innerWidth,d=0;d<t.length;d++)if(parseInt(t[d],10)>c){l=a[d];break}return l},isImageLoaded:function(r){return!(!r||!r.complete||r.naturalWidth===0)},getVideoPosterMarkup:function(r,t,a,l,o){var u="";o&&o.youtube?u="lg-has-youtube":o&&o.vimeo?u="lg-has-vimeo":u="lg-has-html5";var c=t;return typeof t!="string"&&(c=t.outerHTML),'<div class="lg-video-cont '+u+'" style="'+a+`">
102
+ <div class="lg-video-play-button">
103
+ <svg
104
+ viewBox="0 0 20 20"
105
+ preserveAspectRatio="xMidYMid"
106
+ focusable="false"
107
+ aria-labelledby="`+l+`"
108
+ role="img"
109
+ class="lg-video-play-icon"
110
+ >
111
+ <title>`+l+`</title>
112
+ <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>
113
+ </svg>
114
+ <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">
115
+ <circle cx="50%" cy="50%" r="20"></circle></svg>
116
+ <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">
117
+ <circle cx="50%" cy="50%" r="20"></circle>
118
+ </svg>
119
+ </div>
120
+ `+c+`
121
+ <img class="lg-object lg-video-poster" src="`+r+`" />
122
+ </div>`},getFocusableElements:function(r){var t=r.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),a=[].filter.call(t,function(l){var o=window.getComputedStyle(l);return o.display!=="none"&&o.visibility!=="hidden"});return a},getDynamicOptions:function(r,t,a,l){var o=[],u=KM(t4,t);return[].forEach.call(r,function(c){for(var d={},h=0;h<c.attributes.length;h++){var p=c.attributes[h];if(p.specified){var g=n4(p.name),y="";u.indexOf(g)>-1&&(y=g),y&&(d[y]=p.value)}}var x=je(c),E=x.find("img").first().attr("alt"),j=x.attr("title"),_=l?x.attr(l):x.find("img").first().attr("src");d.thumb=_,a&&!d.subHtml&&(d.subHtml=j||E||""),d.alt=E||j||"",o.push(d)}),o},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(r,t,a){if(!r){if(t)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(a+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var l=r.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=r.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),u=r.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(l)return{youtube:l};if(o)return{vimeo:o};if(u)return{wistia:u}}},S1=0,r4=function(){function r(t,a){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(S1++,this.lgId=S1,this.el=t,this.LGel=je(t),this.generateSettings(a),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return r.prototype.generateSettings=function(t){if(this.settings=la(la({},JM),t),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():Rt.isMobile()){var a=la(la({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=la(la({},this.settings),a)}},r.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var t=this.settings.container;if(typeof t=="function")this.settings.container=t();else if(typeof t=="string"){var a=document.querySelector(t);this.settings.container=a??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},r.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(at.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},r.prototype.openGalleryOnItemClick=function(){for(var t=this,a=function(u){var c=l.items[u],d=je(c),h=GO.generateUUID();d.attr("data-lg-id",h).on("click.lgcustom-item-"+h,function(p){p.preventDefault();var g=t.settings.index||u;t.openGallery(g,c)})},l=this,o=0;o<this.items.length;o++)a(o)},r.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(a){t.plugins.push(new a(t,je))})},r.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},r.prototype.getSlideItem=function(t){return je(this.getSlideItemId(t))},r.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},r.prototype.getIdName=function(t){return t+"-"+this.lgId},r.prototype.getElementById=function(t){return je("#"+this.getIdName(t))},r.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},r.prototype.buildStructure=function(){var t=this,a=this.$container&&this.$container.get();if(!a){var l="",o="";this.settings.controls&&(l='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button>
123
+ <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(o='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var u="";this.settings.allowMediaOverlap&&(u+="lg-media-overlap ");var c=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",d=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",h="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),p=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",g=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",y=`
124
+ <div class="`+h+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+c+" "+d+` role="dialog"
125
+ >
126
+ <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div>
127
+
128
+ <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+u+` ">
129
+
130
+ <div id="`+this.getIdName("lg-content")+`" class="lg-content">
131
+ <div id="`+this.getIdName("lg-inner")+`" class="lg-inner">
132
+ </div>
133
+ `+l+`
134
+ </div>
135
+ <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group">
136
+ `+g+`
137
+ `+p+`
138
+ </div>
139
+ `+(this.settings.appendSubHtmlTo===".lg-outer"?o:"")+`
140
+ <div id="`+this.getIdName("lg-components")+`" class="lg-components">
141
+ `+(this.settings.appendSubHtmlTo===".lg-sub-html"?o:"")+`
142
+ </div>
143
+ </div>
144
+ </div>
145
+ `;je(this.settings.container).append(y),document.body!==this.settings.container&&je(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var x=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(x+="lg-grab "),this.outer.addClass(x),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),je(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},r.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index],a=t.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,o=l.top,u=l.bottom;if(this.currentImageSize=Rt.getSize(this.items[this.index],this.outer,o+u,a&&this.settings.videoMaxSize),a&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var c=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",c)}this.LGel.trigger(at.containerResize)}},r.prototype.resizeVideoSlide=function(t,a){var l=this.getVideoContStyle(a),o=this.getSlideItem(t);o.find(".lg-video-cont").attr("style",l)},r.prototype.updateSlides=function(t,a){if(this.index>t.length-1&&(this.index=t.length-1),t.length===1&&(this.index=0),!t.length){this.closeGallery();return}var l=this.galleryItems[a].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var o=0;this.galleryItems.some(function(u,c){return u.src===l?(o=c,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(o,-1),this.loadContent(o,!0),this.getSlideItem(o).addClass("lg-current"),this.index=o,this.updateCurrentCounter(o),this.LGel.trigger(at.updateSlides)},r.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var t=je(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return Rt.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},r.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},r.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(je("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),a=window.innerWidth-t.width;je(document.body).css("padding-right",a+this.bodyPaddingRight+"px"),je(document.body).addClass("lg-overlay-open")}},r.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(je(document.body).css("padding-right",this.bodyPaddingRight+"px"),je(document.body).removeClass("lg-overlay-open"))},r.prototype.openGallery=function(t,a){var l=this;if(t===void 0&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=o;var u="";o.forEach(function(x){u=u+('<div id="'+x+'" class="lg-item"></div>')}),this.$inner.append(u),this.addHtml(t);var c="";this.mediaContainerPosition=this.getMediaContainerPosition();var d=this.mediaContainerPosition,h=d.top,p=d.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(h,p);var g=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&a&&(this.currentImageSize=Rt.getSize(a,this.outer,h+p,g&&this.settings.videoMaxSize),c=Rt.getTransform(a,this.outer,h,p,this.currentImageSize)),(!this.zoomFromOrigin||!c)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var y=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){l.outer.addClass("lg-components-open")},y),this.index=t,this.LGel.trigger(at.beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=je(window).scrollTop(),setTimeout(function(){if(l.zoomFromOrigin&&c){var x=l.getSlideItem(t);x.css("transform",c),setTimeout(function(){x.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",l.settings.startAnimationDuration+"ms"),l.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){x.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){l.$backdrop.addClass("in"),l.$container.addClass("lg-show-in")},10),setTimeout(function(){l.settings.trapFocus&&document.body===l.settings.container&&l.trapFocus()},l.settings.backdropDuration+50),(!l.zoomFromOrigin||!c)&&setTimeout(function(){l.outer.addClass("lg-visible")},l.settings.backdropDuration),l.slide(t,!1,!1,!1),l.LGel.trigger(at.afterOpen)}),document.body===this.settings.container&&je("html").addClass("lg-on")}},r.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,a=this.outer.find(".lg-components .lg-sub-html").get(),l=this.settings.defaultCaptionHeight||a&&a.clientHeight||0,o=this.outer.find(".lg-thumb-outer").get(),u=o?o.clientHeight:0,c=u+l;return{top:t,bottom:c}},r.prototype.setMediaContainerPosition=function(t,a){t===void 0&&(t=0),a===void 0&&(a=0),this.$content.css("top",t+"px").css("bottom",a+"px")},r.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},r.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},r.prototype.counter=function(){if(this.settings.counter){var t=`<div class="lg-counter" role="status" aria-live="polite">
146
+ <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> /
147
+ <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},r.prototype.addHtml=function(t){var a,l;if(this.galleryItems[t].subHtmlUrl?l=this.galleryItems[t].subHtmlUrl:a=this.galleryItems[t].subHtml,!l)if(a){var o=a.substring(0,1);(o==="."||o==="#")&&(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?a=je(this.items).eq(t).find(a).first().html():a=je(a).first().html())}else a="";if(this.settings.appendSubHtmlTo!==".lg-item")l?Rt.fetchCaptionFromUrl(l,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(a);else{var u=je(this.getSlideItemId(t));l?Rt.fetchCaptionFromUrl(l,u,"append"):u.append('<div class="lg-sub-html">'+a+"</div>")}typeof a<"u"&&a!==null&&(a===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(at.afterAppendSubHtml,{index:t})},r.prototype.preload=function(t){for(var a=1;a<=this.settings.preload&&!(a>=this.galleryItems.length-t);a++)this.loadContent(t+a,!1);for(var l=1;l<=this.settings.preload&&!(t-l<0);l++)this.loadContent(t-l,!1)},r.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+`px;
148
+ margin-left: -`+t.width/2+`px;
149
+ margin-top: -`+t.height/2+`px;
150
+ height:`+t.height+"px":""},r.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+`px;
151
+ height:`+t.height+"px":""},r.prototype.getDummyImageContent=function(t,a,l){var o;if(this.settings.dynamic||(o=je(this.items).eq(a)),o){var u=void 0;if(this.settings.exThumbImage?u=o.attr(this.settings.exThumbImage):u=o.find("img").first().attr("src"),!u)return"";var c=this.getDummyImgStyles(this.currentImageSize),d=document.createElement("img");return d.alt=l||"",d.src=u,d.className="lg-dummy-img",d.style.cssText=c,t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),d}return""},r.prototype.setImgMarkup=function(t,a,l){var o=this.galleryItems[l],u=o.alt,c=o.srcset,d=o.sizes,h=o.sources,p="",g=u?'alt="'+u+'"':"";this.isFirstSlideWithZoomAnimation()?p=this.getDummyImageContent(a,l,g):p=Rt.getImgMarkup(l,t,g,c,d,h);var y=document.createElement("picture");y.className="lg-img-wrap",je(y).append(p),a.prepend(y)},r.prototype.onSlideObjectLoad=function(t,a,l,o){var u=t.find(".lg-object").first();Rt.isImageLoaded(u.get())||a?l():(u.on("load.lg error.lg",function(){l&&l()}),u.on("error.lg",function(){o&&o()}))},r.prototype.onLgObjectLoad=function(t,a,l,o,u,c){var d=this;this.onSlideObjectLoad(t,c,function(){d.triggerSlideItemLoad(t,a,l,o,u)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+d.settings.strings.mediaLoadingFailed+"</span>")})},r.prototype.triggerSlideItemLoad=function(t,a,l,o,u){var c=this,d=this.galleryItems[a],h=u&&this.getSlideType(d)==="video"&&!d.poster?o:0;setTimeout(function(){t.addClass("lg-complete lg-complete_"),c.LGel.trigger(at.slideItemLoad,{index:a,delay:l||0,isFirstSlide:u})},h)},r.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},r.prototype.addSlideVideoInfo=function(t){var a=this;t.forEach(function(l,o){l.__slideVideoInfo=Rt.isVideo(l.src,!!l.video,o),l.__slideVideoInfo&&a.settings.loadYouTubePoster&&!l.poster&&l.__slideVideoInfo.youtube&&(l.poster="//img.youtube.com/vi/"+l.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},r.prototype.loadContent=function(t,a){var l=this,o=this.galleryItems[t],u=je(this.getSlideItemId(t)),c=o.poster,d=o.srcset,h=o.sizes,p=o.sources,g=o.src,y=o.video,x=y&&typeof y=="string"?JSON.parse(y):y;if(o.responsive){var E=o.responsive.split(",");g=Rt.getResponsiveSrc(E)||g}var j=o.__slideVideoInfo,_="",L=!!o.iframe,k=!this.lGalleryOn,G=0;if(k&&(this.zoomFromOrigin&&this.currentImageSize?G=this.settings.startAnimationDuration+10:G=this.settings.backdropDuration+10),!u.hasClass("lg-loaded")){if(j){var q=this.mediaContainerPosition,Z=q.top,N=q.bottom,M=Rt.getSize(this.items[t],this.outer,Z+N,j&&this.settings.videoMaxSize);_=this.getVideoContStyle(M)}if(L){var P=Rt.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,g,o.iframeTitle);u.prepend(P)}else if(c){var Q="",D=k&&this.zoomFromOrigin&&this.currentImageSize;D&&(Q=this.getDummyImageContent(u,t,""));var P=Rt.getVideoPosterMarkup(c,Q||"",_,this.settings.strings.playVideo,j);u.prepend(P)}else if(j){var P='<div class="lg-video-cont " style="'+_+'"></div>';u.prepend(P)}else if(this.setImgMarkup(g,u,t),d||p){var T=u.find(".lg-object");this.initPictureFill(T)}(c||j)&&this.LGel.trigger(at.hasVideo,{index:t,src:g,html5Video:x,hasPoster:!!c}),this.LGel.trigger(at.afterAppendSlide,{index:t}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(t)}var F=0;G&&!je(document.body).hasClass("lg-from-hash")&&(F=G),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){u.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),u.hasClass("lg-loaded")||setTimeout(function(){if(l.getSlideType(o)==="image"){var $=o.alt,I=$?'alt="'+$+'"':"";if(u.find(".lg-img-wrap").append(Rt.getImgMarkup(t,g,I,d,h,o.sources)),d||p){var B=u.find(".lg-object");l.initPictureFill(B)}}(l.getSlideType(o)==="image"||l.getSlideType(o)==="video"&&c)&&(l.onLgObjectLoad(u,t,G,F,!0,!1),l.onSlideObjectLoad(u,!!(j&&j.html5&&!c),function(){l.loadContentOnFirstSlideLoad(t,u,F)},function(){l.loadContentOnFirstSlideLoad(t,u,F)}))},this.settings.startAnimationDuration+100)),u.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!c)&&this.onLgObjectLoad(u,t,G,F,k,!!(j&&j.html5&&!c)),(!this.zoomFromOrigin||!this.currentImageSize)&&u.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){u.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,a===!0&&(u.hasClass("lg-complete_")?this.preload(t):u.find(".lg-object").first().on("load.lg error.lg",function(){l.preload(t)}))},r.prototype.loadContentOnFirstSlideLoad=function(t,a,l){var o=this;setTimeout(function(){a.find(".lg-dummy-img").remove(),a.removeClass("lg-first-slide"),o.outer.removeClass("lg-first-slide-loading"),o.isDummyImageRemoved=!0,o.preload(t)},l+300)},r.prototype.getItemsToBeInsertedToDom=function(t,a,l){var o=this;l===void 0&&(l=0);var u=[],c=Math.max(l,3);c=Math.min(c,this.galleryItems.length);var d="lg-item-"+this.lgId+"-"+a;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(g,y){u.push("lg-item-"+o.lgId+"-"+y)}),u;if(t<(this.galleryItems.length-1)/2){for(var h=t;h>t-c/2&&h>=0;h--)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t+h+1))}else{for(var h=t;h<=this.galleryItems.length-1&&h<t+c/2;h++)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t-h-1))}return this.settings.loop&&(t===this.galleryItems.length-1?u.push("lg-item-"+this.lgId+"-0"):t===0&&u.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),u.indexOf(d)===-1&&u.push("lg-item-"+this.lgId+"-"+a),u},r.prototype.organizeSlideItems=function(t,a){var l=this,o=this.getItemsToBeInsertedToDom(t,a,this.settings.numberOfSlideItemsInDom);return o.forEach(function(u){l.currentItemsInDom.indexOf(u)===-1&&l.$inner.append('<div id="'+u+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(u){o.indexOf(u)===-1&&je("#"+u).remove()}),o},r.prototype.getPreviousSlideIndex=function(){var t=0;try{var a=this.outer.find(".lg-current").first().attr("id");t=parseInt(a.split("-")[3])||0}catch{t=0}return t},r.prototype.setDownloadValue=function(t){if(this.settings.download){var a=this.galleryItems[t],l=a.downloadUrl===!1||a.downloadUrl==="false";if(l)this.outer.addClass("lg-hide-download");else{var o=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),o.attr("href",a.downloadUrl||a.src),a.download&&o.attr("download",a.download)}}},r.prototype.makeSlideAnimation=function(t,a,l){var o=this;this.lGalleryOn&&l.addClass("lg-slide-progress"),setTimeout(function(){o.outer.addClass("lg-no-trans"),o.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),t==="prev"?(a.addClass("lg-prev-slide"),l.addClass("lg-next-slide")):(a.addClass("lg-next-slide"),l.addClass("lg-prev-slide")),setTimeout(function(){o.outer.find(".lg-item").removeClass("lg-current"),a.addClass("lg-current"),o.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},r.prototype.slide=function(t,a,l,o){var u=this,c=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,c),!(this.lGalleryOn&&c===t)){var d=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var h=this.getSlideItem(t),p=this.getSlideItem(c),g=this.galleryItems[t],y=g.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(g)),this.setDownloadValue(t),y){var x=this.mediaContainerPosition,E=x.top,j=x.bottom,_=Rt.getSize(this.items[t],this.outer,E+j,y&&this.settings.videoMaxSize);this.resizeVideoSlide(t,_)}if(this.LGel.trigger(at.beforeSlide,{prevIndex:c,index:t,fromTouch:!!a,fromThumb:!!l}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),o||(t<c?o="prev":t>c&&(o="next")),!a)this.makeSlideAnimation(o,h,p);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var L=void 0,k=void 0;d>2?(L=t-1,k=t+1,(t===0&&c===d-1||t===d-1&&c===0)&&(k=0,L=d-1)):(L=0,k=1),o==="prev"?this.getSlideItem(k).addClass("lg-next-slide"):this.getSlideItem(L).addClass("lg-prev-slide"),h.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){u.loadContent(t,!0),u.settings.appendSubHtmlTo!==".lg-item"&&u.addHtml(t)},this.settings.speed+50+(a?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){u.lgBusy=!1,p.removeClass("lg-slide-progress"),u.LGel.trigger(at.afterSlide,{prevIndex:c,index:t,fromTouch:a,fromThumb:l})},(this.lGalleryOn?this.settings.speed+100:100)+(a?0:this.settings.slideDelay))}this.index=t}},r.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},r.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},r.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},r.prototype.touchMove=function(t,a,l){var o=a.pageX-t.pageX,u=a.pageY-t.pageY,c=!1;if(this.swipeDirection?c=!0:Math.abs(o)>15?(this.swipeDirection="horizontal",c=!0):Math.abs(u)>15&&(this.swipeDirection="vertical",c=!0),!!c){var d=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){l==null||l.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(d,o,0);var h=d.get().offsetWidth,p=h*15/100,g=p-Math.abs(o*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-h+o-g,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),h+o+g,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){l==null||l.preventDefault(),this.$container.addClass("lg-dragging-vertical");var y=1-Math.abs(u)/window.innerHeight;this.$backdrop.css("opacity",y);var x=1-Math.abs(u)/(window.innerWidth*2);this.setTranslate(d,0,u,x,x),Math.abs(u)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},r.prototype.touchEnd=function(t,a,l){var o=this,u;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var c=!0;if(o.swipeDirection==="horizontal"){u=t.pageX-a.pageX;var d=Math.abs(t.pageX-a.pageX);u<0&&d>o.settings.swipeThreshold?(o.goToNextSlide(!0),c=!1):u>0&&d>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),c=!1)}else if(o.swipeDirection==="vertical")if(u=Math.abs(t.pageY-a.pageY),o.settings.closable&&o.settings.swipeToClose&&u>100){o.closeGallery();return}else o.$backdrop.css("opacity",1);if(o.outer.find(".lg-item").removeAttr("style"),c&&Math.abs(t.pageX-a.pageX)<5){var h=je(l.target);o.isPosterElement(h)&&o.LGel.trigger(at.posterClick)}o.swipeDirection=void 0}),setTimeout(function(){!o.outer.hasClass("lg-dragging")&&o.settings.mode!=="lg-slide"&&o.outer.removeClass("lg-slide")},this.settings.speed+100)},r.prototype.enableSwipe=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&c.touches.length===1&&(u=!0,t.touchAction="swipe",t.manageSwipeClass(),a={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(c){u&&t.touchAction==="swipe"&&c.touches.length===1&&(l={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY},t.touchMove(a,l,c),o=!0)}),this.$inner.on("touchend.lg",function(c){if(t.touchAction==="swipe"){if(o)o=!1,t.touchEnd(l,a,c);else if(u){var d=je(c.target);t.isPosterElement(d)&&t.LGel.trigger(at.posterClick)}t.touchAction=void 0,u=!1}}))},r.prototype.enableDrag=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(c.preventDefault(),t.lgBusy||(t.manageSwipeClass(),a={pageX:c.pageX,pageY:c.pageY},o=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(at.dragStart)))}),je(window).on("mousemove.lg.global"+this.lgId,function(c){o&&t.lgOpened&&(u=!0,l={pageX:c.pageX,pageY:c.pageY},t.touchMove(a,l),t.LGel.trigger(at.dragMove))}),je(window).on("mouseup.lg.global"+this.lgId,function(c){if(t.lgOpened){var d=je(c.target);u?(u=!1,t.touchEnd(l,a,c),t.LGel.trigger(at.dragEnd)):t.isPosterElement(d)&&t.LGel.trigger(at.posterClick),o&&(o=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},r.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(a){!t.dragOrSwipeEnabled&&t.isPosterElement(je(a.target))&&t.LGel.trigger(at.posterClick)})},r.prototype.manageSwipeClass=function(){var t=this.index+1,a=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?a=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),a>-1&&this.getSlideItem(a).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},r.prototype.goToNextSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):l?(this.index=0,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){a.outer.removeClass("lg-right-end")},400)))},r.prototype.goToPrevSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):l?(this.index=this.galleryItems.length-1,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){a.outer.removeClass("lg-left-end")},400)))},r.prototype.keyPress=function(){var t=this;je(window).on("keydown.lg.global"+this.lgId,function(a){t.lgOpened&&t.settings.escKey===!0&&a.keyCode===27&&(a.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(a.keyCode===37&&(a.preventDefault(),t.goToPrevSlide()),a.keyCode===39&&(a.preventDefault(),t.goToNextSlide()))})},r.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},r.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var a=this.getElementById("lg-prev"),l=this.getElementById("lg-next");t+1===this.galleryItems.length?l.attr("disabled","disabled").addClass("disabled"):l.removeAttr("disabled").removeClass("disabled"),t===0?a.attr("disabled","disabled").addClass("disabled"):a.removeAttr("disabled").removeClass("disabled")}},r.prototype.setTranslate=function(t,a,l,o,u){o===void 0&&(o=1),u===void 0&&(u=1),t.css("transform","translate3d("+a+"px, "+l+"px, 0px) scale3d("+o+", "+u+", 1)")},r.prototype.mousewheel=function(){var t=this,a=0;this.outer.on("wheel.lg",function(l){if(!(!l.deltaY||t.galleryItems.length<2)){l.preventDefault();var o=new Date().getTime();o-a<1e3||(a=o,l.deltaY>0?t.goToNextSlide():l.deltaY<0&&t.goToPrevSlide())}})},r.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")||t.hasClass("lg-img-rotate")},r.prototype.isPosterElement=function(t){var a=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||a&&a.contains(t.get())},r.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},r.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var a=this.items[t],l=je(a);l.off("click.lgcustom-item-"+l.attr("data-lg-id"))}},r.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),je(window).on("keydown.lg.global"+this.lgId,function(a){if(t.lgOpened){var l=a.key==="Tab"||a.keyCode===9;if(l){var o=Rt.getFocusableElements(t.$container.get()),u=o[0],c=o[o.length-1];a.shiftKey?document.activeElement===u&&(c.focus(),a.preventDefault()):document.activeElement===c&&(u.focus(),a.preventDefault())}}})},r.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var a=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(l){var o=je(l.target);t.isSlideElement(o)?a=!0:a=!1}),this.outer.on("mousemove.lg",function(){a=!1}),this.outer.on("mouseup.lg",function(l){var o=je(l.target);t.isSlideElement(o)&&a&&(t.outer.hasClass("lg-dragging")||t.closeGallery())}))}},r.prototype.closeGallery=function(t){var a=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(at.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&je(window).scrollTop(this.prevScrollTop);var l=this.items[this.index],o;if(this.zoomFromOrigin&&l){var u=this.mediaContainerPosition,c=u.top,d=u.bottom,h=this.galleryItems[this.index],p=h.__slideVideoInfo,g=h.poster,y=Rt.getSize(l,this.outer,c+d,p&&g&&this.settings.videoMaxSize);o=Rt.getTransform(l,this.outer,c,d,y)}this.zoomFromOrigin&&o?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",o)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,je("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var x=this.zoomFromOrigin&&o?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){a.zoomFromOrigin&&o&&a.outer.removeClass("lg-zoom-from-image"),a.$container.removeClass("lg-show"),a.resetScrollBar(),a.$backdrop.removeAttr("style").css("transition-duration",a.settings.backdropDuration+"ms"),a.outer.removeClass("lg-closing "+a.settings.startClass),a.getSlideItem(a.index).removeClass("lg-start-end-progress"),a.$inner.empty(),a.lgOpened&&a.LGel.trigger(at.afterClose,{instance:a}),a.$container.get()&&a.$container.get().blur(),a.lgOpened=!1},x+100),x+100},r.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},r.prototype.destroyModules=function(t){this.plugins.forEach(function(a){try{t?a.destroy():a.closeGallery&&a.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},r.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(at.updateSlides)},r.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},r.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),je(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},r.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},r}();function a4(r,t){return new r4(r,t)}var gt={onAfterAppendSlide:"lgAfterAppendSlide",onInit:"lgInit",onHasVideo:"lgHasVideo",onContainerResize:"lgContainerResize",onAfterAppendSubHtml:"lgAfterAppendSubHtml",onBeforeOpen:"lgBeforeOpen",onAfterOpen:"lgAfterOpen",onSlideItemLoad:"lgSlideItemLoad",onBeforeSlide:"lgBeforeSlide",onAfterSlide:"lgAfterSlide",onPosterClick:"lgPosterClick",onDragStart:"lgDragStart",onDragMove:"lgDragMove",onDragEnd:"lgDragEnd",onBeforeNextSlide:"lgBeforeNextSlide",onBeforePrevSlide:"lgBeforePrevSlide",onBeforeClose:"lgBeforeClose",onAfterClose:"lgAfterClose",onRotateLeft:"lgRotateLeft",onRotateRight:"lgRotateRight",onFlipHorizontal:"lgFlipHorizontal",onFlipVertical:"lgFlipVertical"},Lm=function(r){var t=r.children,a=r.elementClassNames,l=r.onAfterAppendSlide,o=r.onInit,u=r.onHasVideo,c=r.onContainerResize,d=r.onAfterAppendSubHtml,h=r.onBeforeOpen,p=r.onAfterOpen,g=r.onSlideItemLoad,y=r.onBeforeSlide,x=r.onAfterSlide,E=r.onPosterClick,j=r.onDragStart,_=r.onDragMove,L=r.onDragEnd,k=r.onBeforeNextSlide,G=r.onBeforePrevSlide,q=r.onBeforeClose,Z=r.onAfterClose,N=r.onRotateLeft,M=r.onRotateRight,P=r.onFlipHorizontal,Q=r.onFlipVertical,D=ZM(r,["children","elementClassNames","onAfterAppendSlide","onInit","onHasVideo","onContainerResize","onAfterAppendSubHtml","onBeforeOpen","onAfterOpen","onSlideItemLoad","onBeforeSlide","onAfterSlide","onPosterClick","onDragStart","onDragMove","onDragEnd","onBeforeNextSlide","onBeforePrevSlide","onBeforeClose","onAfterClose","onRotateLeft","onRotateRight","onFlipHorizontal","onFlipVertical"]),T=w.useRef(null),F=w.useCallback(function(){l&&T&&T.current&&T.current.addEventListener(gt.onAfterAppendSlide,function($){l($.detail)}),o&&T&&T.current&&T.current.addEventListener(gt.onInit,function($){o($.detail)}),u&&T&&T.current&&T.current.addEventListener(gt.onHasVideo,function($){u($.detail)}),c&&T&&T.current&&T.current.addEventListener(gt.onContainerResize,function($){c($.detail)}),d&&T&&T.current&&T.current.addEventListener(gt.onAfterAppendSubHtml,function($){d($.detail)}),h&&T&&T.current&&T.current.addEventListener(gt.onBeforeOpen,function($){h($.detail)}),p&&T&&T.current&&T.current.addEventListener(gt.onAfterOpen,function($){p($.detail)}),g&&T&&T.current&&T.current.addEventListener(gt.onSlideItemLoad,function($){g($.detail)}),y&&T&&T.current&&T.current.addEventListener(gt.onBeforeSlide,function($){y($.detail)}),x&&T&&T.current&&T.current.addEventListener(gt.onAfterSlide,function($){x($.detail)}),E&&T&&T.current&&T.current.addEventListener(gt.onPosterClick,function($){E($.detail)}),j&&T&&T.current&&T.current.addEventListener(gt.onDragStart,function($){j($.detail)}),_&&T&&T.current&&T.current.addEventListener(gt.onDragMove,function($){_($.detail)}),L&&T&&T.current&&T.current.addEventListener(gt.onDragEnd,function($){L($.detail)}),k&&T&&T.current&&T.current.addEventListener(gt.onBeforeNextSlide,function($){k($.detail)}),G&&T&&T.current&&T.current.addEventListener(gt.onBeforePrevSlide,function($){G($.detail)}),q&&T&&T.current&&T.current.addEventListener(gt.onBeforeClose,function($){q($.detail)}),Z&&T&&T.current&&T.current.addEventListener(gt.onAfterClose,function($){Z($.detail)}),N&&T&&T.current&&T.current.addEventListener(gt.onRotateLeft,function($){N($.detail)}),M&&T&&T.current&&T.current.addEventListener(gt.onRotateRight,function($){M($.detail)}),P&&T&&T.current&&T.current.addEventListener(gt.onFlipHorizontal,function($){P($.detail)}),Q&&T&&T.current&&T.current.addEventListener(gt.onFlipVertical,function($){Q($.detail)})},[l,d,Z,N,M,P,Q,p,x,q,k,h,G,y,c,L,_,j,u,o,E,g]);return w.useEffect(function(){F();var $=a4(T.current,D);return function(){$.destroy()}},[F,D]),w.createElement("div",{className:"lg-react-element "+(a||""),ref:T},t)};/*!
152
+ * lightgallery | 2.8.3 | March 1st 2025
153
+ * http://www.lightgalleryjs.com/
154
+ * Copyright (c) 2020 Sachin Neravath;
155
+ * @license GPLv3
156
+ *//*! *****************************************************************************
157
+ Copyright (c) Microsoft Corporation.
158
+
159
+ Permission to use, copy, modify, and/or distribute this software for any
160
+ purpose with or without fee is hereby granted.
161
+
162
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
163
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
164
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
165
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
166
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
167
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
168
+ PERFORMANCE OF THIS SOFTWARE.
169
+ ***************************************************************************** */var gu=function(){return gu=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},gu.apply(this,arguments)},i4={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHeight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},Yl={containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",beforeOpen:"lgBeforeOpen",beforeSlide:"lgBeforeSlide"},zm=function(){function r(t,a){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=a,this}return r.prototype.init=function(){this.settings=gu(gu({},i4),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},r.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(a){var l=t.$LG(a.target);l.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(t.thumbClickable&&!t.core.lgBusy){var o=parseInt(l.attr("data-lg-item-id"));t.core.slide(o,!1,!0,!1)}},50)}),this.core.LGel.on(Yl.beforeSlide+".thumb",function(a){var l=a.detail.index;t.animateThumb(l)}),this.core.LGel.on(Yl.beforeOpen+".thumb",function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth}),this.core.LGel.on(Yl.updateSlides+".thumb",function(){t.rebuildThumbnails()}),this.core.LGel.on(Yl.containerResize+".thumb",function(){t.core.lgOpened&&setTimeout(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth},50)})},r.prototype.setThumbMarkup=function(){var t="lg-thumb-outer ";this.settings.alignThumbnails&&(t+="lg-thumb-align-"+this.settings.alignThumbnails);var a='<div class="'+t+`">
170
+ <div class="lg-thumb lg-group">
171
+ </div>
172
+ </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(a):this.core.outer.append(a),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},r.prototype.enableThumbDrag=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},l=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(o){t.thumbTotalWidth>t.thumbOuterWidth&&(o.preventDefault(),a.cords.startX=o.pageX,a.startTime=new Date,t.thumbClickable=!1,l=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(o){t.core.lgOpened&&l&&(a.cords.endX=o.pageX,a=t.onThumbTouchMove(a))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){t.core.lgOpened&&(a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0,l&&(l=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},r.prototype.enableThumbSwipe=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.startX=l.targetTouches[0].pageX,t.thumbClickable=!1,a.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.endX=l.targetTouches[0].pageX,a=t.onThumbTouchMove(a))}),this.$lgThumb.on("touchend.lg",function(){a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0})},r.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css("width",t.thumbTotalWidth+"px"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)},50),setTimeout(function(){t.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},r.prototype.setTranslate=function(t){this.$lgThumb.css("transform","translate3d(-"+t+"px, 0px, 0px)")},r.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},r.prototype.animateThumb=function(t){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var a=0;switch(this.settings.currentPagerPosition){case"left":a=0;break;case"middle":a=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":a=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-a,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},r.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=new Date().valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),t},r.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var a=t.endTime.valueOf()-t.startTime.valueOf(),l=t.cords.endX-t.cords.startX,o=Math.abs(l)/a;return o>.15&&t.endTime.valueOf()-t.touchMoveTime<30?(o+=1,o>2&&(o+=1),o=o+o*(Math.abs(l)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(o-1,2)+"settings"),l=l*o,this.translateX=this.getPossibleTransformX(this.translateX-l),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},r.prototype.getThumbHtml=function(t,a,l){var o=this.core.galleryItems[a].__slideVideoInfo||{},u;o.youtube&&this.settings.loadYouTubeThumbnail?u="//img.youtube.com/vi/"+o.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":u=t;var c=document.createElement("div");c.setAttribute("data-lg-item-id",a+""),c.className="lg-thumb-item "+(a===this.core.index?"active":""),c.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var d=document.createElement("img");return d.alt=l||"",d.setAttribute("data-lg-item-id",a+""),d.src=u,c.appendChild(d),c},r.prototype.setThumbItemHtml=function(t){for(var a=0;a<t.length;a++){var l=this.getThumbHtml(t[a].thumb,a,t[a].alt);this.$lgThumb.append(l)}},r.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},r.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(Yl.beforeSlide+".thumb",function(a){var l=t.core.outer.find(".lg-thumb-item"),o=a.detail.index;l.removeClass("active"),l.eq(o).addClass("active")})},r.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){t.core.outer.toggleClass("lg-components-open")}))},r.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(a){!t.core.lgOpened||!t.settings.toggleThumb||(a.keyCode===38?(a.preventDefault(),t.core.outer.addClass("lg-components-open")):a.keyCode===40&&(a.preventDefault(),t.core.outer.removeClass("lg-components-open")))})},r.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},r}();/*!
173
+ * lightgallery | 2.8.3 | March 1st 2025
174
+ * http://www.lightgalleryjs.com/
175
+ * Copyright (c) 2020 Sachin Neravath;
176
+ * @license GPLv3
177
+ *//*! *****************************************************************************
178
+ Copyright (c) Microsoft Corporation.
179
+
180
+ Permission to use, copy, modify, and/or distribute this software for any
181
+ purpose with or without fee is hereby granted.
182
+
183
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
184
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
185
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
186
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
187
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
188
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
189
+ PERFORMANCE OF THIS SOFTWARE.
190
+ ***************************************************************************** */var vu=function(){return vu=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},vu.apply(this,arguments)},l4={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},wr={containerResize:"lgContainerResize",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",afterSlide:"lgAfterSlide",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical"},op=500,Pm=function(){function r(t,a){return this.core=t,this.$LG=a,this.settings=vu(vu({},l4),this.core.settings),this}return r.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},r.prototype.enableZoom=function(t){var a=this,l=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?l=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){a.isImageSlide(a.core.index)&&(a.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===a.core.index&&a.setZoomEssentials())},l+30)},r.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(wr.slideItemLoad+".zoom",this.enableZoom.bind(this))},r.prototype.getDragCords=function(t){return{x:t.pageX,y:t.pageY}},r.prototype.getSwipeCords=function(t){var a=t.touches[0].pageX,l=t.touches[0].pageY;return{x:a,y:l}},r.prototype.getDragAllowedAxises=function(t,a){if(!this.containerRect)return{allowX:!1,allowY:!1};var l=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),o=0,u=0,c=l.getBoundingClientRect();t?(o=l.offsetHeight*t,u=l.offsetWidth*t):a?(o=c.height+a*c.height,u=c.width+a*c.width):(o=c.height,u=c.width);var d=o>this.containerRect.height,h=u>this.containerRect.width;return{allowX:h,allowY:d}},r.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},r.prototype.zoomImage=function(t,a,l,o){if(!(Math.abs(a)<=0)){var u=this.containerRect.width/2+this.containerRect.left,c=this.containerRect.height/2+this.containerRect.top+this.scrollTop,d,h;t===1&&(this.positionChanged=!1);var p=this.getDragAllowedAxises(0,a),g=p.allowY,y=p.allowX;this.positionChanged&&(d=this.left/(this.scale-a),h=this.top/(this.scale-a),this.pageX=u-d,this.pageY=c-h,this.positionChanged=!1);var x=this.getPossibleSwipeDragCords(a),E,j,_=u-this.pageX,L=c-this.pageY;if(t-a>1){var k=(t-a)/Math.abs(a);_=(a<0?-_:_)+this.left*(k+(a<0?-1:1)),L=(a<0?-L:L)+this.top*(k+(a<0?-1:1)),E=_/k,j=L/k}else{var k=(t-a)*a;E=_*k,j=L*k}l&&(y?this.isBeyondPossibleLeft(E,x.minX)?E=x.minX:this.isBeyondPossibleRight(E,x.maxX)&&(E=x.maxX):t>1&&(E<x.minX?E=x.minX:E>x.maxX&&(E=x.maxX)),g?this.isBeyondPossibleTop(j,x.minY)?j=x.minY:this.isBeyondPossibleBottom(j,x.maxY)&&(j=x.maxY):t>1&&(j<x.minY?j=x.minY:j>x.maxY&&(j=x.maxY))),this.setZoomStyles({x:E,y:j,scale:t}),this.left=E,this.top=j,o&&this.setZoomImageSize()}},r.prototype.resetImageTranslate=function(t){if(this.isImageSlide(t)){var a=this.core.getSlideItem(t).find(".lg-image").first();this.imageReset=!1,a.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),a.css("width","auto").css("height","auto"),setTimeout(function(){a.removeClass("no-transition")},10)}},r.prototype.setZoomImageSize=function(){var t=this,a=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var l=t.getCurrentImageActualSizeScale();t.scale>=l&&(a.addClass("no-transition"),t.imageReset=!0)},op),setTimeout(function(){var l=t.getCurrentImageActualSizeScale();if(t.scale>=l){var o=t.getDragAllowedAxises(t.scale);a.css("width",a.get().naturalWidth+"px").css("height",a.get().naturalHeight+"px"),t.core.outer.addClass("lg-actual-size"),o.allowX&&o.allowY?a.addClass("reset-transition"):o.allowX&&!o.allowY?a.addClass("reset-transition-x"):!o.allowX&&o.allowY&&a.addClass("reset-transition-y")}},op+50)},r.prototype.setZoomStyles=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),l=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=t.scale,l.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),o.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var u="translate3d("+t.x+"px, "+t.y+"px, 0)";a.css("transform",u)},r.prototype.setActualSize=function(t,a){var l=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var o=this.core.galleryItems[this.core.index];this.resetImageTranslate(t),setTimeout(function(){if(!(!o.src||l.core.outer.hasClass("lg-first-slide-loading"))){var u=l.getCurrentImageActualSizeScale(),c=l.scale;l.core.outer.hasClass("lg-zoomed")?l.scale=1:l.scale=l.getScale(u),l.setPageCords(a),l.beginZoom(l.scale),l.zoomImage(l.scale,l.scale-c,!0,!0)}},50),setTimeout(function(){l.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){l.zoomInProgress=!1},op+110)}},r.prototype.getNaturalWidth=function(t){var a=this.core.getSlideItem(t).find(".lg-image").first(),l=this.core.galleryItems[t].width;return l?parseFloat(l):a.get().naturalWidth},r.prototype.getActualSizeScale=function(t,a){var l,o;return t>=a?(l=t/a,o=l||2):o=1,o},r.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),a=t.get().offsetWidth,l=this.getNaturalWidth(this.core.index)||a;return this.getActualSizeScale(l,a)},r.prototype.getPageCords=function(t){var a={};if(t)a.x=t.pageX||t.touches[0].pageX,a.y=t.pageY||t.touches[0].pageY;else{var l=this.core.$content.get().getBoundingClientRect();a.x=l.width/2+l.left,a.y=l.height/2+this.scrollTop+l.top}return a},r.prototype.setPageCords=function(t){var a=this.getPageCords(t);this.pageX=a.x,this.pageY=a.y},r.prototype.manageActualPixelClassNames=function(){var t=this.core.getElementById("lg-actual-size");t.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},r.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),t>1},r.prototype.getScale=function(t){var a=this.getCurrentImageActualSizeScale();return t<1?t=1:t>a&&(t=a),t},r.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var a=null;this.core.outer.on("dblclick.lg",function(l){t.$LG(l.target).hasClass("lg-image")&&t.setActualSize(t.core.index,l)}),this.core.outer.on("touchstart.lg",function(l){var o=t.$LG(l.target);l.touches.length===1&&o.hasClass("lg-image")&&(a?(clearTimeout(a),a=null,l.preventDefault(),t.setActualSize(t.core.index,l)):a=setTimeout(function(){a=null},300))}),this.core.LGel.on(wr.containerResize+".zoom "+wr.rotateRight+".zoom "+wr.rotateLeft+".zoom "+wr.flipHorizontal+".zoom "+wr.flipVertical+".zoom",function(){if(!(!t.core.lgOpened||!t.isImageSlide(t.core.index)||t.core.touchAction)){var l=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();t.top=0,t.left=0,t.setZoomEssentials(),t.setZoomSwipeStyles(l,{x:0,y:0}),t.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(t.isImageSlide(t.core.index)){var l=0;t.imageReset&&(t.resetImageTranslate(t.core.index),l=50),setTimeout(function(){var o=t.scale-t.settings.scale;o<1&&(o=1),t.beginZoom(o),t.zoomImage(o,-t.settings.scale,!0,!t.settings.infiniteZoom)},l)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){t.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){t.setActualSize(t.core.index)}),this.core.LGel.on(wr.beforeOpen+".zoom",function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(wr.afterOpen+".zoom",function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1}),this.core.LGel.on(wr.afterSlide+".zoom",function(l){var o=l.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.zoomInProgress=!1,t.resetZoom(o),t.resetImageTranslate(o),t.isImageSlide(t.core.index)&&t.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},r.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var t=this.scale+this.settings.scale;this.settings.infiniteZoom||(t=this.getScale(t)),this.beginZoom(t),this.zoomImage(t,Math.min(this.settings.scale,t-this.scale),!0,!this.settings.infiniteZoom)}},r.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var a=this.core.getElementById("lg-actual-size"),l=this.core.getSlideItem(t!==void 0?t:this.core.index);a.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),l.find(".lg-img-wrap").first().removeAttr("style"),l.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},r.prototype.getTouchDistance=function(t){return Math.sqrt((t.touches[0].pageX-t.touches[1].pageX)*(t.touches[0].pageX-t.touches[1].pageX)+(t.touches[0].pageY-t.touches[1].pageY)*(t.touches[0].pageY-t.touches[1].pageY))},r.prototype.pinchZoom=function(){var t=this,a=0,l=!1,o=1,u=0,c=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(d){if(c=t.core.getSlideItem(t.core.index),!!t.isImageSlide(t.core.index)&&d.touches.length===2){if(d.preventDefault(),t.core.outer.hasClass("lg-first-slide-loading"))return;o=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.setPageCords(d),t.resetImageTranslate(t.core.index),t.core.touchAction="pinch",a=t.getTouchDistance(d)}}),this.core.$inner.on("touchmove.lg",function(d){if(d.touches.length===2&&t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){d.preventDefault();var h=t.getTouchDistance(d),p=a-h;if(!l&&Math.abs(p)>5&&(l=!0),l){u=t.scale;var g=Math.max(1,o+-p*.02);t.scale=Math.round((g+Number.EPSILON)*100)/100;var y=t.scale-u;t.zoomImage(t.scale,Math.round((y+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(d){if(t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){if(l=!1,a=0,t.scale<=1)t.resetZoom();else{var h=t.getCurrentImageActualSizeScale();if(t.scale>=h){var p=h-t.scale;p===0&&(p=.01),t.zoomImage(h,p,!1,!0)}t.manageActualPixelClassNames(),t.core.outer.addClass("lg-zoomed")}t.core.touchAction=void 0}})},r.prototype.touchendZoom=function(t,a,l,o,u){var c=a.x-t.x,d=a.y-t.y,h=Math.abs(c)/u+1,p=Math.abs(d)/u+1;h>2&&(h+=1),p>2&&(p+=1),c=c*h,d=d*p;var g=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),y={};y.x=this.left+c,y.y=this.top+d;var x=this.getPossibleSwipeDragCords();(Math.abs(c)>15||Math.abs(d)>15)&&(o&&(this.isBeyondPossibleTop(y.y,x.minY)?y.y=x.minY:this.isBeyondPossibleBottom(y.y,x.maxY)&&(y.y=x.maxY)),l&&(this.isBeyondPossibleLeft(y.x,x.minX)?y.x=x.minX:this.isBeyondPossibleRight(y.x,x.maxX)&&(y.x=x.maxX)),o?this.top=y.y:y.y=this.top,l?this.left=y.x:y.x=this.left,this.setZoomSwipeStyles(g,y),this.positionChanged=!0)},r.prototype.getZoomSwipeCords=function(t,a,l,o,u){var c={};if(o){if(c.y=this.top+(a.y-t.y),this.isBeyondPossibleTop(c.y,u.minY)){var d=u.minY-c.y;c.y=u.minY-d/6}else if(this.isBeyondPossibleBottom(c.y,u.maxY)){var h=c.y-u.maxY;c.y=u.maxY+h/6}}else c.y=this.top;if(l){if(c.x=this.left+(a.x-t.x),this.isBeyondPossibleLeft(c.x,u.minX)){var p=u.minX-c.x;c.x=u.minX-p/6}else if(this.isBeyondPossibleRight(c.x,u.maxX)){var g=c.x-u.maxX;c.x=u.maxX+g/6}}else c.x=this.left;return c},r.prototype.isBeyondPossibleLeft=function(t,a){return t>=a},r.prototype.isBeyondPossibleRight=function(t,a){return t<=a},r.prototype.isBeyondPossibleTop=function(t,a){return t>=a},r.prototype.isBeyondPossibleBottom=function(t,a){return t<=a},r.prototype.isImageSlide=function(t){var a=this.core.galleryItems[t];return this.core.getSlideType(a)==="image"},r.prototype.getPossibleSwipeDragCords=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-image").first(),l=this.core.mediaContainerPosition.bottom,o=a.get().getBoundingClientRect(),u=o.height,c=o.width;t&&(u=u+t*u,c=c+t*c);var d=(u-this.containerRect.height)/2,h=(this.containerRect.height-u)/2+l,p=(c-this.containerRect.width)/2,g=(this.containerRect.width-c)/2,y={minY:d,maxY:h,minX:p,maxX:g};return y},r.prototype.setZoomSwipeStyles=function(t,a){t.css("transform","translate3d("+a.x+"px, "+a.y+"px, 0)")},r.prototype.zoomSwipe=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=new Date,h=new Date,p,g,y=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(x){if(t.isImageSlide(t.core.index)&&(y=t.core.getSlideItem(t.core.index),(t.$LG(x.target).hasClass("lg-item")||y.get().contains(x.target))&&x.touches.length===1&&t.core.outer.hasClass("lg-zoomed"))){x.preventDefault(),d=new Date,t.core.touchAction="zoomSwipe",g=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var E=t.getDragAllowedAxises(0);c=E.allowY,u=E.allowX,(u||c)&&(a=t.getSwipeCords(x)),p=t.getPossibleSwipeDragCords(),t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(x){if(x.touches.length===1&&t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||y.get().contains(x.target))){x.preventDefault(),t.core.touchAction="zoomSwipe",l=t.getSwipeCords(x);var E=t.getZoomSwipeCords(a,l,u,c,p);(Math.abs(l.x-a.x)>15||Math.abs(l.y-a.y)>15)&&(o=!0,t.setZoomSwipeStyles(g,E))}}),this.core.$inner.on("touchend.lg",function(x){if(t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||y.get().contains(x.target))){if(x.preventDefault(),t.core.touchAction=void 0,t.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,h=new Date;var E=h.valueOf()-d.valueOf();t.touchendZoom(a,l,u,c,E)}})},r.prototype.zoomDrag=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=!1,h,p,g,y;this.core.outer.on("mousedown.lg.zoom",function(x){if(t.isImageSlide(t.core.index)){var E=t.core.getSlideItem(t.core.index);if(t.$LG(x.target).hasClass("lg-item")||E.get().contains(x.target)){h=new Date,y=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var j=t.getDragAllowedAxises(0);d=j.allowY,c=j.allowX,t.core.outer.hasClass("lg-zoomed")&&t.$LG(x.target).hasClass("lg-object")&&(c||d)&&(x.preventDefault(),a=t.getDragCords(x),g=t.getPossibleSwipeDragCords(),o=!0,t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(x){if(o){u=!0,l=t.getDragCords(x);var E=t.getZoomSwipeCords(a,l,c,d,g);t.setZoomSwipeStyles(y,E)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(x){if(o){if(p=new Date,o=!1,t.core.outer.removeClass("lg-zoom-dragging"),u&&(a.x!==l.x||a.y!==l.y)){l=t.getDragCords(x);var E=p.valueOf()-h.valueOf();t.touchendZoom(a,l,c,d,E)}u=!1}t.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},r.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},r.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},r}();/*!
191
+ * lightgallery | 2.8.3 | March 1st 2025
192
+ * http://www.lightgalleryjs.com/
193
+ * Copyright (c) 2020 Sachin Neravath;
194
+ * @license GPLv3
195
+ *//*! *****************************************************************************
196
+ Copyright (c) Microsoft Corporation.
197
+
198
+ Permission to use, copy, modify, and/or distribute this software for any
199
+ purpose with or without fee is hereby granted.
200
+
201
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
202
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
203
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
204
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
205
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
206
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
207
+ PERFORMANCE OF THIS SOFTWARE.
208
+ ***************************************************************************** */var Ba=function(){return Ba=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},Ba.apply(this,arguments)},o4={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},Xl={hasVideo:"lgHasVideo",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick"},Hm=function(r){return Object.keys(r).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(r[t])}).join("&")},s4=function(r){var t=r.slice(1).split("&").map(function(a){return a.split("=")}).reduce(function(a,l){var o=l.map(decodeURIComponent),u=o[0],c=o[1];return a[u]=c,a},{});return t},u4=function(r,t){if(!r.youtube)return"";var a=r.youtube[2]?s4(r.youtube[2]):"",l={wmode:"opaque",autoplay:0,mute:1,enablejsapi:1},o=t||{},u=Ba(Ba(Ba({},l),o),a),c="?"+Hm(u);return c},c4=function(r){return r.includes("youtube-nocookie.com")},f4=function(r,t){if(!t||!t.vimeo)return"";var a=t.vimeo[2]||"",l=Object.assign({},{autoplay:0,muted:1},r),o=l&&Object.keys(l).length!==0?Hm(l):"",u=t.vimeo[0].split("/").pop()||"",c=u.split("?")[0]||"",d=c.split("#")[0],h=t.vimeo[1]!==d;h&&(a=a.replace("/"+d,"")),a=a[0]=="?"?"&"+a.slice(1):a||"";var p=h?"h="+d:"";o=p?"&"+o:o;var g="?"+p+o+a;return g},km=function(){function r(t){return this.core=t,this.settings=Ba(Ba({},o4),this.core.settings),this}return r.prototype.init=function(){var t=this;this.core.LGel.on(Xl.hasVideo+".video",this.onHasVideo.bind(this)),this.core.LGel.on(Xl.posterClick+".video",function(){var a=t.core.getSlideItem(t.core.index);t.loadVideoOnPosterClick(a)}),this.core.LGel.on(Xl.slideItemLoad+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(Xl.beforeSlide+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(Xl.afterSlide+".video",this.onAfterSlide.bind(this))},r.prototype.onSlideItemLoad=function(t){var a=this,l=t.detail,o=l.isFirstSlide,u=l.index;this.settings.autoplayFirstVideo&&o&&u===this.core.index&&setTimeout(function(){a.loadAndPlayVideo(u)},200),!o&&this.settings.autoplayVideoOnSlide&&u===this.core.index&&this.loadAndPlayVideo(u)},r.prototype.onHasVideo=function(t){var a=t.detail,l=a.index,o=a.src,u=a.html5Video,c=a.hasPoster;c||(this.appendVideos(this.core.getSlideItem(l),{src:o,addClass:"lg-object",index:l,html5Video:u}),this.gotoNextSlideOnVideoEnd(o,l))},r.prototype.onBeforeSlide=function(t){if(this.core.lGalleryOn){var a=t.detail.prevIndex;this.pauseVideo(a)}},r.prototype.onAfterSlide=function(t){var a=this,l=t.detail,o=l.index,u=l.prevIndex,c=this.core.getSlideItem(o);this.settings.autoplayVideoOnSlide&&o!==u&&c.hasClass("lg-complete")&&setTimeout(function(){a.loadAndPlayVideo(o)},100)},r.prototype.loadAndPlayVideo=function(t){var a=this.core.getSlideItem(t),l=this.core.galleryItems[t];l.poster?this.loadVideoOnPosterClick(a,!0):this.playVideo(t)},r.prototype.playVideo=function(t){this.controlVideo(t,"play")},r.prototype.pauseVideo=function(t){this.controlVideo(t,"pause")},r.prototype.getVideoHtml=function(t,a,l,o){var u="",c=this.core.galleryItems[l].__slideVideoInfo||{},d=this.core.galleryItems[l],h=d.title||d.alt;h=h?'title="'+h+'"':"";var p=`allowtransparency="true"
209
+ frameborder="0"
210
+ scrolling="no"
211
+ allowfullscreen
212
+ mozallowfullscreen
213
+ webkitallowfullscreen
214
+ oallowfullscreen
215
+ msallowfullscreen`;if(c.youtube){var g="lg-youtube"+l,y=u4(c,this.settings.youTubePlayerParams),x=c4(t),E=x?"//www.youtube-nocookie.com/":"//www.youtube.com/";u='<iframe allow="autoplay" id='+g+' class="lg-video-object lg-youtube '+a+'" '+h+' src="'+E+"embed/"+(c.youtube[1]+y)+'" '+p+"></iframe>"}else if(c.vimeo){var g="lg-vimeo"+l,j=f4(this.settings.vimeoPlayerParams,c);u='<iframe allow="autoplay" id='+g+' class="lg-video-object lg-vimeo '+a+'" '+h+' src="//player.vimeo.com/video/'+(c.vimeo[1]+j)+'" '+p+"></iframe>"}else if(c.wistia){var _="lg-wistia"+l,j=Hm(this.settings.wistiaPlayerParams);j=j?"?"+j:"",u='<iframe allow="autoplay" id="'+_+'" src="//fast.wistia.net/embed/iframe/'+(c.wistia[4]+j)+'" '+h+' class="wistia_embed lg-video-object lg-wistia '+a+'" name="wistia_embed" '+p+"></iframe>"}else if(c.html5){for(var L="",k=0;k<o.source.length;k++){var G=o.source[k].type,q=G?'type="'+G+'"':"";L+='<source src="'+o.source[k].src+'" '+q+">"}if(o.tracks)for(var Z=function(P){var Q="",D=o.tracks[P];Object.keys(D||{}).forEach(function(T){Q+=T+'="'+D[T]+'" '}),L+="<track "+Q+">"},k=0;k<o.tracks.length;k++)Z(k);var N="",M=o.attributes||{};Object.keys(M||{}).forEach(function(P){N+=P+'="'+M[P]+'" '}),u='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+N+`>
216
+ `+L+`
217
+ Your browser does not support HTML5 video.
218
+ </video>`}return u},r.prototype.appendVideos=function(t,a){var l,o=this.getVideoHtml(a.src,a.addClass,a.index,a.html5Video);t.find(".lg-video-cont").append(o);var u=t.find(".lg-video-object").first();if(a.html5Video&&u.on("mousedown.lg.video",function(c){c.stopPropagation()}),this.settings.videojs&&(!((l=this.core.galleryItems[a.index].__slideVideoInfo)===null||l===void 0)&&l.html5))try{return videojs(u.get(),this.settings.videojsOptions)}catch{console.error("lightGallery:- Make sure you have included videojs")}},r.prototype.gotoNextSlideOnVideoEnd=function(t,a){var l=this,o=this.core.getSlideItem(a).find(".lg-video-object").first(),u=this.core.galleryItems[a].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(u.html5)o.on("ended",function(){l.core.goToNextSlide()});else if(u.vimeo)try{new Vimeo.Player(o.get()).on("ended",function(){l.core.goToNextSlide()})}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(u.wistia)try{window._wq=window._wq||[],window._wq.push({id:o.attr("id"),onReady:function(c){c.bind("end",function(){l.core.goToNextSlide()})}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.controlVideo=function(t,a){var l=this.core.getSlideItem(t).find(".lg-video-object").first(),o=this.core.galleryItems[t].__slideVideoInfo||{};if(l.get()){if(o.youtube)try{l.get().contentWindow.postMessage('{"event":"command","func":"'+a+'Video","args":""}',"*")}catch(u){console.error("lightGallery:- "+u)}else if(o.vimeo)try{new Vimeo.Player(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(o.html5)if(this.settings.videojs)try{videojs(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included videojs")}else l.get()[a]();else if(o.wistia)try{window._wq=window._wq||[],window._wq.push({id:l.attr("id"),onReady:function(u){u[a]()}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.loadVideoOnPosterClick=function(t,a){var l=this;if(t.hasClass("lg-video-loaded"))a&&this.playVideo(this.core.index);else if(t.hasClass("lg-has-video"))this.playVideo(this.core.index);else{t.addClass("lg-has-video");var o=void 0,u=this.core.galleryItems[this.core.index].src,c=this.core.galleryItems[this.core.index].video;c&&(o=typeof c=="string"?JSON.parse(c):c);var d=this.appendVideos(t,{src:u,addClass:"",index:this.core.index,html5Video:o});this.gotoNextSlideOnVideoEnd(u,this.core.index);var h=t.find(".lg-object").first().get();t.find(".lg-video-cont").first().append(h),t.addClass("lg-video-loading"),d&&d.ready(function(){d.on("loadedmetadata",function(){l.onVideoLoadAfterPosterClick(t,l.core.index)})}),t.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){l.onVideoLoadAfterPosterClick(t,l.core.index)},50)})}},r.prototype.onVideoLoadAfterPosterClick=function(t,a){t.addClass("lg-video-loaded"),this.playVideo(a)},r.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},r}();function VO(r){const{href:t,dataSrc:a,dataVideo:l,dataPoster:o,dataIframe:u,dataSubHTML:c,thumbnailURL:d,classNamePrefix:h,style:p,badge:g}=r;let y=l?`${h}__thumbnail-wrapper--video`:"";return d||(y+=` ${h}__thumbnail-wrapper--empty`),b.jsxs("a",{href:t,className:`lightgallery-item ${h}__thumbnail-wrapper ${y}`,"data-src":a,"data-video":l,"data-poster":o,"data-iframe":u||void 0,"data-sub-html":c,style:p,children:[" ",d?b.jsx("img",{src:d,className:`${h}__thumbnail`}):b.jsx(it,{className:"w-100 h-100 d-flex align-items-center justify-content-center",children:b.jsx("span",{className:"material-icons-outlined text-secondary",style:{fontSize:"5em"},children:"description"})}),g?b.jsx(Ii,{className:"light-gallery-item__badge",bg:"secondary",children:g}):null]})}function w1(r){const{hidden:t=!1}=r;return b.jsx(VO,{...r,classNamePrefix:"media-grid",style:{display:t?"none":"inherit"}})}function WO(r){const{items:t,title:a,noGallery:l=!1}=r,u=t.filter(p=>{var g;return(g=p.downloaded)==null?void 0:g.path}).reduce((p,g)=>{var Z,N,M,P;const y=!((Z=g.downloaded)!=null&&Z.mimeType)||g.downloaded.mimeType.startsWith("image/"),x=((M=(N=g.downloaded)==null?void 0:N.mimeType)==null?void 0:M.startsWith("video/"))??!1,E=`/media/${g.id}`,j=y?E:void 0,_=`${E}?t=1`,L=y?E:void 0,k=x?JSON.stringify({source:[{src:E,type:(P=g.downloaded)==null?void 0:P.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,G=x?_:void 0,q=a?`<h4>${a}</h4>`:void 0;return(L||k)&&p.push({id:g.id,href:j,dataSrc:L,dataVideo:k,dataPoster:G,dataSubHTML:q,thumbnailURL:_}),p},[]);if(u.length===0)return null;const c=Math.min(u.length,4),d=u.slice(0,c).map(p=>b.jsxs(Ne,{direction:"horizontal",className:"media-grid__item-wrapper justify-content-center overflow-hidden",children:[b.jsx("div",{className:"media-grid__thumbnail-backdrop",style:{background:`url(${p.thumbnailURL})`}}),b.jsx(w1,{...p})]},p.id)),h=b.jsxs("div",{className:`media-grid media-grid--${c}`,children:[d,u.length>4?u.slice(4).map(p=>b.jsx(w1,{...p,hidden:!0})):null,u.length>1?b.jsxs(Ii,{className:"media-grid__badge d-flex align-items-center",children:[b.jsx("span",{className:"material-icons me-2",children:"image"}),u.length]}):null]});return l?h:b.jsx(Lm,{speed:500,plugins:[zm,Pm,km],videojs:!0,selector:".lightgallery-item",children:h})}var sp,x1;function d4(){if(x1)return sp;x1=1;function r(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,u){for(var c="",d=0,h=-1,p=0,g,y=0;y<=o.length;++y){if(y<o.length)g=o.charCodeAt(y);else{if(g===47)break;g=47}if(g===47){if(!(h===y-1||p===1))if(h!==y-1&&p===2){if(c.length<2||d!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var x=c.lastIndexOf("/");if(x!==c.length-1){x===-1?(c="",d=0):(c=c.slice(0,x),d=c.length-1-c.lastIndexOf("/")),h=y,p=0;continue}}else if(c.length===2||c.length===1){c="",d=0,h=y,p=0;continue}}u&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(h+1,y):c=o.slice(h+1,y),d=y-h-1;h=y,p=0}else g===46&&p!==-1?++p:p=-1}return c}function a(o,u){var c=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+d:c+o+d:d}var l={resolve:function(){for(var u="",c=!1,d,h=arguments.length-1;h>=-1&&!c;h--){var p;h>=0?p=arguments[h]:(d===void 0&&(d=process.cwd()),p=d),r(p),p.length!==0&&(u=p+"/"+u,c=p.charCodeAt(0)===47)}return u=t(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(u){if(r(u),u.length===0)return".";var c=u.charCodeAt(0)===47,d=u.charCodeAt(u.length-1)===47;return u=t(u,!c),u.length===0&&!c&&(u="."),u.length>0&&d&&(u+="/"),c?"/"+u:u},isAbsolute:function(u){return r(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,c=0;c<arguments.length;++c){var d=arguments[c];r(d),d.length>0&&(u===void 0?u=d:u+="/"+d)}return u===void 0?".":l.normalize(u)},relative:function(u,c){if(r(u),r(c),u===c||(u=l.resolve(u),c=l.resolve(c),u===c))return"";for(var d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var h=u.length,p=h-d,g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var y=c.length,x=y-g,E=p<x?p:x,j=-1,_=0;_<=E;++_){if(_===E){if(x>E){if(c.charCodeAt(g+_)===47)return c.slice(g+_+1);if(_===0)return c.slice(g+_)}else p>E&&(u.charCodeAt(d+_)===47?j=_:_===0&&(j=0));break}var L=u.charCodeAt(d+_),k=c.charCodeAt(g+_);if(L!==k)break;L===47&&(j=_)}var G="";for(_=d+j+1;_<=h;++_)(_===h||u.charCodeAt(_)===47)&&(G.length===0?G+="..":G+="/..");return G.length>0?G+c.slice(g+j):(g+=j,c.charCodeAt(g)===47&&++g,c.slice(g))},_makeLong:function(u){return u},dirname:function(u){if(r(u),u.length===0)return".";for(var c=u.charCodeAt(0),d=c===47,h=-1,p=!0,g=u.length-1;g>=1;--g)if(c=u.charCodeAt(g),c===47){if(!p){h=g;break}}else p=!1;return h===-1?d?"/":".":d&&h===1?"//":u.slice(0,h)},basename:function(u,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');r(u);var d=0,h=-1,p=!0,g;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c.length===u.length&&c===u)return"";var y=c.length-1,x=-1;for(g=u.length-1;g>=0;--g){var E=u.charCodeAt(g);if(E===47){if(!p){d=g+1;break}}else x===-1&&(p=!1,x=g+1),y>=0&&(E===c.charCodeAt(y)?--y===-1&&(h=g):(y=-1,h=x))}return d===h?h=x:h===-1&&(h=u.length),u.slice(d,h)}else{for(g=u.length-1;g>=0;--g)if(u.charCodeAt(g)===47){if(!p){d=g+1;break}}else h===-1&&(p=!1,h=g+1);return h===-1?"":u.slice(d,h)}},extname:function(u){r(u);for(var c=-1,d=0,h=-1,p=!0,g=0,y=u.length-1;y>=0;--y){var x=u.charCodeAt(y);if(x===47){if(!p){d=y+1;break}continue}h===-1&&(p=!1,h=y+1),x===46?c===-1?c=y:g!==1&&(g=1):c!==-1&&(g=-1)}return c===-1||h===-1||g===0||g===1&&c===h-1&&c===d+1?"":u.slice(c,h)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return a("/",u)},parse:function(u){r(u);var c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;var d=u.charCodeAt(0),h=d===47,p;h?(c.root="/",p=1):p=0;for(var g=-1,y=0,x=-1,E=!0,j=u.length-1,_=0;j>=p;--j){if(d=u.charCodeAt(j),d===47){if(!E){y=j+1;break}continue}x===-1&&(E=!1,x=j+1),d===46?g===-1?g=j:_!==1&&(_=1):g!==-1&&(_=-1)}return g===-1||x===-1||_===0||_===1&&g===x-1&&g===y+1?x!==-1&&(y===0&&h?c.base=c.name=u.slice(1,x):c.base=c.name=u.slice(y,x)):(y===0&&h?(c.name=u.slice(1,g),c.base=u.slice(1,x)):(c.name=u.slice(y,g),c.base=u.slice(y,x)),c.ext=u.slice(g,x)),y>0?c.dir=u.slice(0,y-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};return l.posix=l,sp=l,sp}var h4=d4();const YO=Kn(h4),XO=({children:r,maxHeight:t=480})=>{const[a,l]=w.useState(!1),[o,u]=w.useState(!1),c=w.useRef(null);w.useEffect(()=>{if(c.current){const h=c.current.scrollHeight>t;u(h),h||l(!0)}},[r,t]);const d=w.useCallback(h=>{h.preventDefault(),l(!a)},[a]);return b.jsxs("div",{className:"fade-content",style:{"--fade-content-height":`${t}px`},children:[b.jsxs("div",{className:`fade-content__body ${a?"fade-content__body--expanded":""}`,ref:c,children:[r,!a&&b.jsx("div",{className:"fade-content__overlay"})]}),o&&b.jsx("div",{className:"d-flex w-100 justify-content-center",children:b.jsx("a",{href:"#",className:"fade-content__toggle",onClick:d,dangerouslySetInnerHTML:{__html:a?"&#9650; Show less":"&#9660; Show more"}})})]})};function FO(r){var k,G,q,Z;const{post:t,showCampaign:a=!1,useShowMore:l=!1,contextQS:o}=r,u=Jn(),c=[];t.video?c.push(t.video):t.embed?c.push(t.embed):t.videoPreview?c.push(t.videoPreview):t.images.length>0?c.push(...t.images):(G=(k=t.coverImage)==null?void 0:k.downloaded)!=null&&G.path?c.push(t.coverImage):(Z=(q=t.thumbnail)==null?void 0:q.downloaded)!=null&&Z.path&&c.push(t.thumbnail);const d=w.useMemo(()=>{const N=t.attachments.reduce((M,P)=>{var Q;if((Q=P.downloaded)!=null&&Q.path){const D=P.filename||YO.parse(P.downloaded.path).base;M.push({title:D,url:`/media/${P.id}`})}return M},[]);if(N.length>0)return b.jsxs("div",{children:[b.jsx("p",{children:"Attachments:"}),b.jsx("ul",{children:N.map(({title:M,url:P})=>b.jsx("li",{children:b.jsx("a",{href:P,children:M})}))})]})},[t]),h=w.useMemo(()=>{var M,P,Q,D,T;const N=(P=(M=t.audio)==null?void 0:M.downloaded)!=null&&P.path?t.audio:(D=(Q=t.audioPreview)==null?void 0:Q.downloaded)!=null&&D.path?t.audioPreview:null;return N?b.jsx("div",{className:"my-4",children:b.jsxs("audio",{controls:!0,className:"w-100 rounded",children:[b.jsx("source",{src:`/media/${N.id}`,type:((T=N.downloaded)==null?void 0:T.mimeType)||""}),"Your browser does not support the audio element."]})}):null},[t]),p=w.useMemo(()=>{const N=new URL(fo(t),window.location.href);return o&&(N.search=o),u.pathname===N.pathname?t.title:b.jsx(on,{to:N.toString(),children:t.title})},[t,u,o]),g=w.useMemo(()=>{var N,M;if(t.embed&&!((N=t.embed.downloaded)!=null&&N.path)&&t.embed.html&&((M=t.embed.provider)==null?void 0:M.toLowerCase())==="youtube"){const D=new DOMParser().parseFromString(t.embed.html,"text/html").querySelector("iframe"),T=D?D.getAttribute("width"):null,F=D?D.getAttribute("height"):null;let $="";T&&F&&($=`${T} / ${F}`);const I={width:"100%"};$&&(I.aspectRatio=$);const B=t.embed.provider?`(Embedded from ${t.embed.provider} - not stored locally)`:"(Embedded content - not stored locally)";return b.jsxs("div",{className:"post-card__external-embed-wrapper",children:[b.jsx("div",{className:"post-card__external-embed",style:I,dangerouslySetInnerHTML:{__html:t.embed.html}}),b.jsx("span",{className:"post-card__external-embed-caption",children:B})]})}return null},[t]),x=/class=".*?\s*?lightgallery-item.*?\s*?"/gm.test(t.content||""),E=c.length>0||x,j=t.tags&&t.tags.length>0&&t.campaign&&b.jsx(Ne,{direction:"horizontal",gap:2,className:"mb-3 flex-wrap",children:t.tags.map(N=>{const M=new URL(`${Ia(t.campaign)}/posts`,window.location.href);return M.searchParams.set("filter_tag_id",N.id),b.jsx(Ii,{bg:"secondary",children:b.jsx(on,{to:M.toString(),style:{color:"inherit"},children:N.value})},N.id)})});let _=b.jsxs(Ne,{children:[j,b.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[b.jsx(it.Title,{className:"m-0",children:p}),t.isViewable?null:b.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),b.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary",gap:4,children:[t.publishedAt?b.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.commentCount>0?b.jsxs(Ne,{direction:"horizontal",gap:2,children:[b.jsx("span",{className:"material-icons",style:{fontSize:"1.2em"},children:"comment"}),b.jsx("span",{children:t.commentCount})]}):null]}),h,b.jsx(it.Text,{className:"post-card__content",dangerouslySetInnerHTML:{__html:t.content||""}}),d]});l&&(_=b.jsx(XO,{children:_}));const L=b.jsxs(it,{className:"post-card",children:[a&&t.campaign&&t.campaign.name?b.jsx(it.Header,{children:b.jsxs(Ne,{direction:"horizontal",gap:3,children:[b.jsx(ca,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),b.jsx("span",{children:b.jsx(on,{to:Ia(t.campaign),className:"text-body",children:t.campaign.name})})]})}):null,b.jsx(WO,{items:c,title:t.title||"",noGallery:!0}),g,b.jsx(it.Body,{children:_})]});return E?b.jsx(Lm,{speed:500,plugins:[zm,Pm,km],videojs:!0,selector:".lightgallery-item",children:L}):L}function p4(r){const t=[];for(const[a,l]of r.entries())if(a.startsWith("filter_")){const o=a.substring(7);o&&t.push({searchParam:o,value:l})}return t}function m4(r){const t=[];for(const a of r.sections){const l=a.options.find(u=>u.isDefault),o=(l==null?void 0:l.value)||null;t.push({searchParam:a.searchParam,value:o})}if(r.external)for(const a of r.external)t.push({searchParam:a.searchParam,value:null});return t}function O1(r,t,a){var o;const l=(o=r.options.find(u=>u.searchParam===t.searchParam))==null?void 0:o.value;return l===void 0?!1:l===a.value}const T1=(r,t)=>{if(r&&t){const l=Er(r);for(const o of t){const u=l.options.find(c=>c.searchParam===o.searchParam);u?u.value=o.value:l.options.push({...o})}return Zn(r,l)?r:l}const a=r?{...r,options:t}:{options:t};return Zn(r,a)?r:a};function QO(r){const{options:t,onFilter:a,searchInputBox:l}=r,{settings:o}=Ar(),[u,c]=Co(),[d,h]=w.useReducer(T1,null),[p,g]=w.useReducer(T1,null),[y,x]=w.useState(!1),E=w.useRef(null);w.useEffect(()=>{if(!t)return;let M=[];M=m4(t),E.current=Er(M);const P=p4(u);for(const Q of P){const D=M.find(T=>T.searchParam===Q.searchParam);D?D.value=Q.value:M.push(Q)}h(M),g(M)},[t,u]),w.useEffect(()=>{if(!(l!=null&&l.current))return;const M=l.current;return M.onConfirm(P=>{g([{searchParam:"search",value:P||null}])}),()=>M.onConfirm(null)},[l]),w.useEffect(()=>{var P;const M=E.current;if(!(!p||!M)&&(c(Q=>{const D=new URLSearchParams(Q);for(const T of p.options){const F=`filter_${T.searchParam}`,$=T.value,I=M.find(B=>B.searchParam===T.searchParam);$&&(I===void 0||I.value!==$)?D.set(F,$):D.delete(F)}return D}),l!=null&&l.current)){const Q=((P=p.options.find(D=>D.searchParam==="search"))==null?void 0:P.value)||"";l.current.setInput(Q)}},[l,p]),w.useEffect(()=>{const M=E.current;p&&M&&a(Er(p))},[p,a]);const j=w.useCallback((M,P,Q=!1)=>{if(!d)return;const D=d.options.find(T=>T.searchParam===M.searchParam);if(D){const T=Q&&P.value===D.value?null:P.value;D.value!==T&&h([{searchParam:D.searchParam,value:T}])}},[d]),_=w.useCallback(M=>{if(!M.enableCondition||!d)return!1;const{searchParam:P,condition:Q,value:D}=M.enableCondition,T=d.options.find(F=>F.searchParam===P);if(T)switch(Q){case"is":return T.value===D;case"not":return T.value!==D}},[d]),L=w.useMemo(()=>!d||!t?null:t.sections.map(M=>{let P;switch(M.displayHint){case"list":{const F=M.options.map($=>b.jsx(Mt.Check,{type:"radio",id:`filter-select-${M.searchParam}:${$.value}`,name:M.searchParam,label:$.title,checked:O1(d,M,$),onClick:()=>j(M,$)},`${M.searchParam}:${$.value}`));P=b.jsxs(Ne,{gap:2,children:[...F]});break}case"pill":case"pill_small":{const F=o.theme.toLowerCase()==="vapor"?"outline-secondary":"outline-primary",$=M.displayHint==="pill_small"?"sm":void 0,I=M.options.map(B=>b.jsx("div",{children:b.jsx(LO,{type:"checkbox",size:$,id:`filter-select-${M.searchParam}:${B.value}`,checked:O1(d,M,B),value:B.value||"",variant:F,onChange:()=>j(M,B,!0),children:B.title},`${M.searchParam}:${B.value}`)}));P=b.jsxs(Ne,{direction:"horizontal",gap:2,className:"flex-wrap",children:[...I]});break}}const Q=M.title?b.jsx("h5",{style:{paddingBottom:"0.5em"},children:M.title}):null,D=M.title?"":"py-4 border-top border-bottom",T=_(M)?"filter-modal__section--hidden":"";return b.jsx("div",{className:`filter-modal__section ${T}`,children:b.jsxs(Ne,{className:D,children:[Q,P]})},`filter-modal-section-${M.searchParam}`)}),[d,t,j,_,o.theme]),k=w.useCallback(()=>{x(!0)},[]),G=w.useCallback(()=>{x(!1),p&&h(p.options)},[p]),q=w.useCallback(()=>{const M=E.current;if(!d||!M)return;const P=Er(d.options);for(const Q of d.options){const D=M.find(F=>F.searchParam===Q.searchParam),T=t.sections.find(F=>F.searchParam===Q.searchParam);if(T&&_(T)&&D){const F=P.find($=>$.searchParam===Q.searchParam);F&&(F.value=D.value)}}g(P),x(!1)},[d,c,t,_]),Z=w.useCallback(()=>{const M=E.current;M&&(c(P=>{const Q=new URLSearchParams(P);for(const D of M){const T=`filter_${D.searchParam}`;Q.delete(T)}return Q}),h(M),g(M)),x(!1)},[c]);if(!L)return null;const N=p&&E.current?!Zn(p.options,E.current):!1;return b.jsxs(Ne,{direction:"horizontal",gap:2,children:[b.jsx(Qt,{className:"filter-modal-button filter-modal-button--show",variant:N?"primary":"outline-primary",onClick:k,children:"Filters"}),N?b.jsx(Qt,{className:"filter-modal-button filter-modal-button--clear",variant:"secondary",onClick:Z,children:"Clear filters"}):null,b.jsxs(Pa,{show:y,onHide:G,centered:!0,scrollable:!0,children:[b.jsx(Pa.Header,{closeButton:!0}),b.jsx(Pa.Body,{children:b.jsxs(Ne,{children:[...L]})}),b.jsxs(Pa.Footer,{className:"justify-content-between",children:[b.jsx(Qt,{variant:"secondary",onClick:Z,children:"Clear all"}),b.jsx(Qt,{variant:"primary",onClick:q,children:"Apply"})]})]})]})}const up=160,cp=0,E1=8;function g4(r){const{fixed:t}=r;return b.jsx(VO,{...r,classNamePrefix:"media-gallery",style:{flexGrow:t?"0":void 0}})}function Wp(r){const{items:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const d=new ResizeObserver(h=>{const{width:p}=h[0].contentRect;o(p)});return a.current&&d.observe(a.current),()=>d.disconnect()},[]);const u=w.useMemo(()=>{var y,x;if(!l)return null;const d=[[]];let h=0,p=0;const g=[...t];for(;g.length>0;){const E=g.shift();if(!E)continue;let j=0;if((y=E.thumbnail)!=null&&y.width&&((x=E.thumbnail)!=null&&x.height)){const L=up/E.thumbnail.height*E.thumbnail.width;j=cp+L}else j=cp+up;let _=d[h].length>0?E1:0;d[h].length>0&&p+_+j>l&&(h++,p=0,_=0,d.push([])),d[h].push(E),p+=_+j}return d},[t,l]),c=w.useMemo(()=>u?u.reduce((d,h,p)=>(d.push(...h.reduce((g,y)=>{var Q,D,T,F,$,I,B;const x=`/media/${y.id}`;let E;if(y.thumbnail)E=`${x}?t=1`;else if(y.source.type==="post")(D=(Q=y.source.thumbnail)==null?void 0:Q.downloaded)!=null&&D.path?E=`/media/post:${y.source.id}:thumbnail`:(F=(T=y.source.coverImage)==null?void 0:T.downloaded)!=null&&F.path&&(E=`/media/post:${y.source.id}:cover`);else if(y.source.type==="product"){const U=y.source.previewMedia.find(z=>{var S,te;return z.type==="image"&&((te=(S=z.downloaded)==null?void 0:S.thumbnail)==null?void 0:te.path)})||y.source.contentMedia.find(z=>{var S,te;return z.type==="image"&&((te=(S=z.downloaded)==null?void 0:S.thumbnail)==null?void 0:te.path)});U&&(E=`/media/${U.id}`)}const j=!y.mimeType||y.mimeType.startsWith("image/"),_=(($=y.mimeType)==null?void 0:$.startsWith("video/"))??!1,L=((I=y.mimeType)==null?void 0:I.startsWith("audio/"))??!1,k=((B=y.mimeType)==null?void 0:B.toLowerCase())==="application/pdf",G=j||k?x:void 0,q=j?x:void 0,Z=_||L?JSON.stringify({source:[{src:x,type:y.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,N=_||L?E:void 0,M=y.source.type==="post"?y.source.title:y.source.name,P=M?`<h4><a class="media-gallery__source-link" href="${fo(y.source)}">${M}</a></h4>`:void 0;return(q||Z||k)&&g.push({id:y.id,href:G,dataSrc:q,dataVideo:Z,dataPoster:N,dataIframe:k,dataSubHTML:P,thumbnailURL:E,fixed:p===u.length-1,badge:k?"PDF":void 0}),g},[])),d),[]):null,[u]);return b.jsx(Lm,{speed:500,plugins:[zm,Pm,km],selector:".lightgallery-item",children:b.jsx("div",{ref:a,className:"w-100 media-gallery mb-4",style:{"--media-gallery-row-height":`${up}px`,"--media-gallery-gap":`${E1}px`,"--media-gallery-thumbnail-border":`${cp}px`},children:c?c.map(d=>b.jsx(g4,{...d},`media-gallery-item-${d.id}`)):null})})}const v4=["image","video","videoEmbed","audio"],ZO=r=>{var t,a,l;return((t=r.downloaded)==null?void 0:t.path)&&(v4.includes(r.type)||((l=(a=r.downloaded)==null?void 0:a.mimeType)==null?void 0:l.toLowerCase())==="application/pdf")};function C1(r){return r.filter(t=>ZO(t))}function R1(r){return r.filter(t=>!ZO(t))}function _1(r,t){return r.reduce((a,l)=>{var c,d,h,p;const o=l.type==="image"?"image":l.type==="audio"?"audio":["video","videoEmbed"].includes(l.type)?"video":((c=l.downloaded)==null?void 0:c.mimeType)==="application/pdf"?"pdf":null,u=(h=(d=l.downloaded)==null?void 0:d.thumbnail)!=null&&h.path?{path:l.downloaded.thumbnail.path,width:l.downloaded.thumbnail.width??null,height:l.downloaded.thumbnail.height??null}:null;return o&&a.push({id:l.id,mediaType:o,mimeType:((p=l.downloaded)==null?void 0:p.mimeType)||null,source:t,thumbnail:u}),a},[])}function KO(r){const{product:t,variant:a="full",showCampaign:l=!1}=r,o=Jn(),u=w.useMemo(()=>({content:C1(t.contentMedia),preview:C1(t.previewMedia)}),[t]),c=w.useMemo(()=>({content:R1(t.contentMedia),preview:R1(t.previewMedia)}),[t]),d=w.useMemo(()=>u.preview.find(_=>_.type==="image")||null,[u]),h=w.useMemo(()=>d?b.jsx(WO,{items:[d],title:t.name||""}):null,[d,t]),p=w.useCallback(_=>{const L=_.reduce((k,G)=>{var q;if((q=G.downloaded)!=null&&q.path){const Z=Gp.getProperty(G,"filename")||YO.parse(G.downloaded.path).base;k.push({title:Z,url:`/media/${G.id}`})}return k},[]);return L.length>0?b.jsxs("div",{children:[b.jsx("p",{children:"Files:"}),b.jsx("ul",{children:L.map(({title:k,url:G})=>b.jsx("li",{children:b.jsx("a",{href:G,children:k})}))})]}):null},[]),g=w.useMemo(()=>{if(a==="compact")return null;const _=d?u.preview.filter(G=>G.id!==d.id):[...u.preview],L=_.length>0?b.jsx(Wp,{items:_1(_,t)}):null,k=p(c.preview);return L||k?b.jsxs(Ne,{gap:3,children:[L,k]}):null},[t,a,u,d,c,p]),y=w.useMemo(()=>{if(a==="compact")return null;const _=u.content.length>0?b.jsx(Wp,{items:_1(u.content,t)}):null,L=p(c.content);return _||L?b.jsxs(Ne,{gap:3,children:[_,L]}):null},[t,a,u,c,p]),x=w.useMemo(()=>{let _=null;return g&&y?_=b.jsxs(ru.Container,{defaultActiveKey:"purchased",children:[b.jsx(vt,{className:"m-0 mb-4",children:b.jsx(lt,{className:"p-0",children:b.jsxs(Gl,{className:"product-card__media-nav",children:[b.jsx(Gl.Item,{children:b.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"purchased",children:"Purchased media"})}),b.jsx(Gl.Item,{children:b.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"preview",children:"Preview media"})})]})})}),b.jsx(vt,{children:b.jsxs(ru.Content,{className:"py-0 m-0 border-0",children:[b.jsx(ru.Pane,{eventKey:"purchased",children:y}),b.jsx(ru.Pane,{eventKey:"preview",children:g})]})})]}):_=y||g,_?b.jsx("div",{className:"mt-4",children:_}):null},[g,y]),E=w.useMemo(()=>!l||!t.campaign||!t.campaign.name?null:b.jsx(it.Header,{children:b.jsxs(Ne,{direction:"horizontal",gap:3,children:[b.jsx(ca,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),b.jsx("span",{children:b.jsx(on,{to:Ia(t.campaign),className:"text-body",children:t.campaign.name})})]})}),[t,l]),j=w.useMemo(()=>{const _=new URL(fo(t),window.location.href);return o.pathname===_.pathname?t.name:b.jsx(on,{to:_.toString(),children:t.name})},[t,o]);return b.jsxs(it,{className:`product-card product-card--${a}`,children:[E,h,b.jsxs(it.Body,{className:"d-flex flex-column",children:[b.jsx("div",{children:t.productType===Vp.Collection&&b.jsx(Ii,{bg:"secondary",children:"Collection"})}),b.jsxs(Ne,{children:[b.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[b.jsx(it.Title,{className:"m-0 product-card__title",children:j}),t.isAccessible?null:b.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),b.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary justify-content-between",gap:4,children:[t.publishedAt?b.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.price?b.jsx("span",{children:t.price}):null]}),b.jsx(it.Text,{className:"product-card__description",dangerouslySetInnerHTML:{__html:t.description||""}})]}),x]})]})}const j1=300,Fl=16;function y4(r){const{products:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:g}=p[0].contentRect;o(g)});return a.current&&h.observe(a.current),()=>h.disconnect()},[]);const u=w.useMemo(()=>{if(!l)return{cardWidth:j1,lastRowFirstItemIndex:0};const h=Math.floor((l+Fl)/(j1+Fl)),p=((l+Fl)/h-Fl).toFixed(2),g=Math.floor((t.length-1)/h)*h;return{cardWidth:p,lastRowFirstItemIndex:g}},[l]),{cardWidth:c,lastRowFirstItemIndex:d}=u;return b.jsx("div",{ref:a,className:"product-list mb-4",style:{"--card-width":`${c}px`,"--gap":`${Fl}px`},children:t.map((h,p)=>b.jsx("div",{className:`product-list__card-wrapper ${p>=d?"product-list__card-wrapper--fixed":""}`,children:b.jsx(KO,{product:h,variant:"compact"},`product-card-${h.id}`)}))})}const JO=w.forwardRef((r,t)=>{const[a,l]=w.useState(()=>r.onConfirm||null),[o,u]=w.useState(""),c=w.useCallback(p=>{u(p.target.value)},[]),d=w.useCallback(()=>{a&&a(o)},[o,a]),h=w.useCallback(p=>{p.key==="Enter"&&d()},[d]);return w.useImperativeHandle(t,()=>({onConfirm:p=>{l(()=>p)},setInput:p=>{u(p)}})),b.jsxs(Kx,{className:"me-2",children:[b.jsx(Mt.Control,{type:"search",placeholder:r.placeholder,value:o,onChange:c,onKeyDown:h}),b.jsx(Qt,{className:"d-flex align-items-center",variant:"primary",onClick:d,children:b.jsx("span",{className:"material-icons",children:"search"})})]})});function b4(r){return{filter:null,page:null,itemsPerPage:r.listItemsPerPage}}const S4=(r,t)=>{const a=Er(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Zn(a,r)?r:a};function fp(r){var S,te,R,v,C,W;const{type:t,collection:a}=r,[l,o]=w.useState(""),[u,c]=w.useState(a?null:Oo().campaign),{id:d}=a?To():{id:null},{api:h}=er(),{setTitle:p}=Po(),{settings:g}=Ar(),{scrollTo:y}=zo(),[x,E]=w.useReducer(S4,b4(g)),[j,_]=w.useState(null),[L,k]=w.useState(null),[G,q]=w.useState(null),[Z,N]=Co(),M=dw(),P=w.useRef(!0),Q=w.useRef(null);let D,T;switch(t){case"post":D={singular:"post",plural:"posts"},T="Search posts";break;case"product":default:D={singular:"product",plural:"products"},T="Search products";break}if(t==="post"&&a){const V=" in collection";D.singular+=V,D.plural+=V,T+=V}const F=[],$=(R=(te=(S=x.filter)==null?void 0:S.options.find(V=>V.searchParam==="search"))==null?void 0:te.value)==null?void 0:R.trim();$&&F.push(`with "${$}"`);const I=(W=(C=(v=x.filter)==null?void 0:v.options.find(V=>V.searchParam==="tag_id"))==null?void 0:C.value)==null?void 0:W.trim();if(I){let V=I;I.startsWith("user_defined;")&&(V=I.substring(13)),V&&F.push(`tagged "${V}"`)}if(F.length>0){const V=F.join(" and ");D.singular+=` ${V}`,D.plural+=` ${V}`}w.useEffect(()=>{if(!d){_(null);return}const V=new AbortController;return(async()=>{const{collection:H,campaignId:X}=await h.getCollection(d),J=await h.getCampaign({id:X});V.signal.aborted||(_(H),c(J))})(),()=>V.abort()},[h,d]),w.useEffect(()=>{if(!u){q(null);return}q(null);const V=new AbortController;return(async()=>{const H=await h.getContentFilterOptions(u.id,t);V.signal.aborted||q(H)})(),()=>V.abort()},[h,u,t]),w.useEffect(()=>{const V=[];a&&j&&(j.title&&V.push(j.title),u!=null&&u.name&&V.push(`Collection from ${u.name}`),j.numPosts!==null&&V.push(`${j.numPosts} posts`),p(V.join(" | ")))},[p,a,j,u]);const B=w.useCallback((V,H=!1)=>{N(()=>{const X=new URLSearchParams(window.location.search);return X.set("p",String(V)),X},{replace:H})},[]);w.useEffect(()=>{M===Xp.Pop&&(P.current=!0)},[M]),w.useEffect(()=>{const{filter:V,page:H}=x;if(!u||!V||H===null||a&&!j){k(null);return}const X=new AbortController;return(async()=>{const J=await h.getContentList({campaign:u,type:t,...x,collectionId:j==null?void 0:j.id,filter:V,page:H});X.signal.aborted||k(J)})(),()=>X.abort()},[h,u,t,a,j,x]),w.useEffect(()=>{const V=Number(Z.get("p"))||1;E({page:V}),y(0,0)},[Z,y]);const U=w.useCallback(V=>{P.current?(P.current=!1,E({filter:V})):E({filter:V,page:1})},[]);w.useEffect(()=>{E({itemsPerPage:g.listItemsPerPage})},[g.listItemsPerPage]),w.useEffect(()=>{L&&L.items.length===0&&L.total>0&&B(1,!0)},[L,B]),w.useEffect(()=>{if(x.page===null)return;const V=new URLSearchParams(window.location.search);(Number(V.get("p"))||1)!==x.page&&B(x.page,!0)},[x,B]),w.useEffect(()=>{if(a&&!j){o("");return}const V=x.filter,H=new URLSearchParams,X=a?j==null?void 0:j.id:void 0;if(X&&H.set("collection_id",X),V)for(const{searchParam:J,value:ie}of V.options)ie&&H.set(J,ie);o(H.toString())},[x.filter,a,j]);const z=w.useMemo(()=>!L||L.items.length===0?null:L.items.every(V=>V.type==="post")?b.jsx(Ne,{className:"mb-4",gap:4,children:L.items.map(V=>b.jsx(FO,{post:V,useShowMore:!0,contextQS:l},`post-card-${V.id}`))}):L.items.every(V=>V.type==="product")?b.jsx(y4,{products:L.items}):null,[L,l]);if(!(!u||!G))return b.jsxs("div",{className:`campaign-content campaign-content--${t} mw-${g.maxContentWidth.toLowerCase()}`,children:[b.jsxs(On,{fluid:!0,className:"p-0",children:[b.jsx(vt,{className:"mb-3 g-0 align-items-center",children:b.jsxs(lt,{className:"w-auto d-flex justify-content-end",children:[b.jsx(JO,{ref:Q,placeholder:T}),b.jsx(QO,{options:G,onFilter:U,searchInputBox:Q})]})}),b.jsx(vt,{className:"mb-2 g-0",children:L&&L.items.length>0&&x.page?b.jsx(Du,{total:L.total,page:x.page,itemsPerPage:x.itemsPerPage,subject:D}):null})]}),z,L&&L.items.length===0?b.jsx(it,{className:"my-4",style:{height:"10em"},children:b.jsxs(it.Body,{className:"d-flex justify-content-center align-items-center",children:["No ",t==="post"?"posts":"products"]})}):null,L?b.jsx(Lu,{totalItems:L.total,itemsPerPage:x.itemsPerPage,onChange:B}):null]})}function eT(r){var p,g;const{campaign:t}=r,a=(p=t.coverPhoto.downloaded)!=null&&p.path?t.coverPhoto.id:null,l=(g=t.avatarImage.downloaded)!=null&&g.path?t.avatarImage.id:null,o=w.useMemo(()=>{const y=[];return t.postCount>0&&y.push({title:"Posts",url:`${t.baseUrl}/posts`}),t.collectionCount>0&&y.push({title:"Collections",url:`${t.baseUrl}/collections`}),t.productCount>0&&y.push({title:"Shop",url:`${t.baseUrl}/shop`}),t.mediaCount>0&&y.push({title:"Media",url:`${t.baseUrl}/media`}),y.push({title:"About",url:`${t.baseUrl}/about`}),b.jsx(Ne,{direction:"horizontal",className:"campaign-header__nav justify-content-center mb-5",gap:4,children:y.map(({title:x,url:E})=>b.jsx(cu,{to:E,children:x}))})},[t]),u=w.useMemo(()=>a?b.jsx("div",{className:"w-100",children:b.jsx(ca,{className:"campaign-header__cover",mediaId:a})}):null,[a]),c=w.useMemo(()=>l?b.jsx("div",{className:"mb-2",children:b.jsx(ca,{className:"campaign-header__avatar rounded",mediaId:l})}):null,[l]),d=w.useMemo(()=>{const y=PO.getCampaignCreationName(t);return b.jsxs(Ne,{className:"w-100 px-3 align-items-center",children:[b.jsx("h3",{children:t.name}),y?b.jsx("div",{className:"text-body-secondary",children:y}):null]})},[t]),h=w.useMemo(()=>u&&c?b.jsxs(Ne,{className:"w-100 align-items-center",style:{marginBottom:"-2em"},children:[u,b.jsxs(Ne,{className:"align-items-center",style:{transform:"translateY(-4em)"},children:[c,d]})]}):u?b.jsxs(b.Fragment,{children:[u,b.jsx(Ne,{className:"align-items-center my-4",children:d})]}):c?b.jsxs(Ne,{className:"w-100 align-items-center my-4",children:[c,d]}):b.jsx(Ne,{className:"w-100 align-items-center my-4",children:d}),[u,c,d]);return b.jsxs(b.Fragment,{children:[h,o]})}function A1(){const{id:r,vanity:t}=To();if(!r&&!t)return null;const{api:a}=er(),{setTitle:l}=Po(),[o,u]=w.useState(null);if(w.useEffect(()=>{const d=new AbortController;return u(null),(async()=>{let h;r?h=await a.getCampaign({id:r,withCounts:!0}):h=await a.getCampaign({vanity:decodeURIComponent(t),withCounts:!0}),d.signal.aborted||u({...h,baseUrl:Ia(h)})})(),()=>d.abort()},[a,r,t]),w.useEffect(()=>{l((o==null?void 0:o.name)||null)},[l,o]),!o)return null;const c={campaign:o};return b.jsxs(On,{fluid:!0,className:"p-0",children:[b.jsx(vt,{className:"g-0",children:b.jsx(lt,{children:b.jsx(eT,{campaign:o})})}),b.jsx(vt,{className:"justify-content-center g-0",children:b.jsx(lt,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:b.jsx(Jp,{context:c})})})]})}function M1(r){var a,l;const{reward:t}=r;return b.jsx(it,{className:"reward-card mb-3",children:b.jsxs(it.Body,{className:"d-flex flex-column p-0",children:[(l=(a=t.image)==null?void 0:a.downloaded)!=null&&l.path?b.jsx(it.Img,{className:"reward-card__image",src:`/media/reward:${t.id}:image`}):null,b.jsxs(Ne,{className:"flex-fill px-3 py-2",children:[b.jsxs(Ne,{direction:"horizontal",className:"my-3 justify-content-between",children:[b.jsx("div",{className:"reward-card__title",children:t.title}),b.jsx("div",{children:t.amount||""})]}),b.jsx("div",{className:"reward-card__content w-100",dangerouslySetInnerHTML:{__html:t.description||""}})]})]})})}var dp={},hp={},Ql={},pp={},N1;function w4(){return N1||(N1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};r.default=t}(pp)),pp}var mp,D1;function x4(){if(D1)return mp;D1=1;var r="Expected a function",t=NaN,a="[object Symbol]",l=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,h=typeof xr=="object"&&xr&&xr.Object===Object&&xr,p=typeof self=="object"&&self&&self.Object===Object&&self,g=h||p||Function("return this")(),y=Object.prototype,x=y.toString,E=Math.max,j=Math.min,_=function(){return g.Date.now()};function L(N,M,P){var Q,D,T,F,$,I,B=0,U=!1,z=!1,S=!0;if(typeof N!="function")throw new TypeError(r);M=Z(M)||0,k(P)&&(U=!!P.leading,z="maxWait"in P,T=z?E(Z(P.maxWait)||0,M):T,S="trailing"in P?!!P.trailing:S);function te(ie){var ce=Q,me=D;return Q=D=void 0,B=ie,F=N.apply(me,ce),F}function R(ie){return B=ie,$=setTimeout(W,M),U?te(ie):F}function v(ie){var ce=ie-I,me=ie-B,pe=M-ce;return z?j(pe,T-me):pe}function C(ie){var ce=ie-I,me=ie-B;return I===void 0||ce>=M||ce<0||z&&me>=T}function W(){var ie=_();if(C(ie))return V(ie);$=setTimeout(W,v(ie))}function V(ie){return $=void 0,S&&Q?te(ie):(Q=D=void 0,F)}function H(){$!==void 0&&clearTimeout($),B=0,Q=I=D=$=void 0}function X(){return $===void 0?F:V(_())}function J(){var ie=_(),ce=C(ie);if(Q=arguments,D=this,I=ie,ce){if($===void 0)return R(I);if(z)return $=setTimeout(W,M),te(I)}return $===void 0&&($=setTimeout(W,M)),F}return J.cancel=H,J.flush=X,J}function k(N){var M=typeof N;return!!N&&(M=="object"||M=="function")}function G(N){return!!N&&typeof N=="object"}function q(N){return typeof N=="symbol"||G(N)&&x.call(N)==a}function Z(N){if(typeof N=="number")return N;if(q(N))return t;if(k(N)){var M=typeof N.valueOf=="function"?N.valueOf():N;N=k(M)?M+"":M}if(typeof N!="string")return N===0?N:+N;N=N.replace(l,"");var P=u.test(N);return P||c.test(N)?d(N.slice(2),P?2:8):o.test(N)?t:+N}return mp=L,mp}var we={},gp={},L1;function tT(){return L1||(L1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(Cn());function a(o){return o&&o.__esModule?o:{default:o}}var l={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(u){return t.default.createElement("ul",{style:{display:"block"}},u)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(u){return t.default.createElement("button",null,u+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};r.default=l}(gp)),gp}var z1;function Ho(){if(z1)return we;z1=1,Object.defineProperty(we,"__esModule",{value:!0}),we.checkSpecKeys=we.checkNavigable=we.changeSlide=we.canUseDOM=we.canGoNext=void 0,we.clamp=p,we.extractObject=void 0,we.filterSettings=te,we.validSettings=we.swipeStart=we.swipeMove=we.swipeEnd=we.slidesOnRight=we.slidesOnLeft=we.slideHandler=we.siblingDirection=we.safePreventDefault=we.lazyStartIndex=we.lazySlidesOnRight=we.lazySlidesOnLeft=we.lazyEndIndex=we.keyHandler=we.initializedState=we.getWidth=we.getTrackLeft=we.getTrackCSS=we.getTrackAnimateCSS=we.getTotalSlides=we.getSwipeDirection=we.getSlideCount=we.getRequiredLazySlides=we.getPreClones=we.getPostClones=we.getOnDemandLazySlides=we.getNavigableIndexes=we.getHeight=void 0;var r=a(Cn()),t=a(tT());function a(R){return R&&R.__esModule?R:{default:R}}function l(R){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},l(R)}function o(R,v){var C=Object.keys(R);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(R);v&&(W=W.filter(function(V){return Object.getOwnPropertyDescriptor(R,V).enumerable})),C.push.apply(C,W)}return C}function u(R){for(var v=1;v<arguments.length;v++){var C=arguments[v]!=null?arguments[v]:{};v%2?o(Object(C),!0).forEach(function(W){c(R,W,C[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(C)):o(Object(C)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(C,W))})}return R}function c(R,v,C){return v=d(v),v in R?Object.defineProperty(R,v,{value:C,enumerable:!0,configurable:!0,writable:!0}):R[v]=C,R}function d(R){var v=h(R,"string");return l(v)=="symbol"?v:String(v)}function h(R,v){if(l(R)!="object"||!R)return R;var C=R[Symbol.toPrimitive];if(C!==void 0){var W=C.call(R,v);if(l(W)!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(R)}function p(R,v,C){return Math.max(v,Math.min(R,C))}var g=we.safePreventDefault=function(v){var C=["onTouchStart","onTouchMove","onWheel"];C.includes(v._reactName)||v.preventDefault()},y=we.getOnDemandLazySlides=function(v){for(var C=[],W=x(v),V=E(v),H=W;H<V;H++)v.lazyLoadedList.indexOf(H)<0&&C.push(H);return C};we.getRequiredLazySlides=function(v){for(var C=[],W=x(v),V=E(v),H=W;H<V;H++)C.push(H);return C};var x=we.lazyStartIndex=function(v){return v.currentSlide-j(v)},E=we.lazyEndIndex=function(v){return v.currentSlide+_(v)},j=we.lazySlidesOnLeft=function(v){return v.centerMode?Math.floor(v.slidesToShow/2)+(parseInt(v.centerPadding)>0?1:0):0},_=we.lazySlidesOnRight=function(v){return v.centerMode?Math.floor((v.slidesToShow-1)/2)+1+(parseInt(v.centerPadding)>0?1:0):v.slidesToShow},L=we.getWidth=function(v){return v&&v.offsetWidth||0},k=we.getHeight=function(v){return v&&v.offsetHeight||0},G=we.getSwipeDirection=function(v){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W,V,H,X;return W=v.startX-v.curX,V=v.startY-v.curY,H=Math.atan2(V,W),X=Math.round(H*180/Math.PI),X<0&&(X=360-Math.abs(X)),X<=45&&X>=0||X<=360&&X>=315?"left":X>=135&&X<=225?"right":C===!0?X>=35&&X<=135?"up":"down":"vertical"},q=we.canGoNext=function(v){var C=!0;return v.infinite||(v.centerMode&&v.currentSlide>=v.slideCount-1||v.slideCount<=v.slidesToShow||v.currentSlide>=v.slideCount-v.slidesToShow)&&(C=!1),C};we.extractObject=function(v,C){var W={};return C.forEach(function(V){return W[V]=v[V]}),W},we.initializedState=function(v){var C=r.default.Children.count(v.children),W=v.listRef,V=Math.ceil(L(W)),H=v.trackRef&&v.trackRef.node,X=Math.ceil(L(H)),J;if(v.vertical)J=V;else{var ie=v.centerMode&&parseInt(v.centerPadding)*2;typeof v.centerPadding=="string"&&v.centerPadding.slice(-1)==="%"&&(ie*=V/100),J=Math.ceil((V-ie)/v.slidesToShow)}var ce=W&&k(W.querySelector('[data-index="0"]')),me=ce*v.slidesToShow,pe=v.currentSlide===void 0?v.initialSlide:v.currentSlide;v.rtl&&v.currentSlide===void 0&&(pe=C-1-v.initialSlide);var ve=v.lazyLoadedList||[],he=y(u(u({},v),{},{currentSlide:pe,lazyLoadedList:ve}));ve=ve.concat(he);var ge={slideCount:C,slideWidth:J,listWidth:V,trackWidth:X,currentSlide:pe,slideHeight:ce,listHeight:me,lazyLoadedList:ve};return v.autoplaying===null&&v.autoplay&&(ge.autoplaying="playing"),ge},we.slideHandler=function(v){var C=v.waitForAnimate,W=v.animating,V=v.fade,H=v.infinite,X=v.index,J=v.slideCount,ie=v.lazyLoad,ce=v.currentSlide,me=v.centerMode,pe=v.slidesToScroll,ve=v.slidesToShow,he=v.useCSS,ge=v.lazyLoadedList;if(C&&W)return{};var Se=X,ye,Re,be,Le={},Pe={},Ee=H?X:p(X,0,J-1);if(V){if(!H&&(X<0||X>=J))return{};X<0?Se=X+J:X>=J&&(Se=X-J),ie&&ge.indexOf(Se)<0&&(ge=ge.concat(Se)),Le={animating:!0,currentSlide:Se,lazyLoadedList:ge,targetSlide:Se},Pe={animating:!1,targetSlide:Se}}else ye=Se,Se<0?(ye=Se+J,H?J%pe!==0&&(ye=J-J%pe):ye=0):!q(v)&&Se>ce?Se=ye=ce:me&&Se>=J?(Se=H?J:J-1,ye=H?0:J-1):Se>=J&&(ye=Se-J,H?J%pe!==0&&(ye=0):ye=J-ve),!H&&Se+ve>=J&&(ye=J-ve),Re=T(u(u({},v),{},{slideIndex:Se})),be=T(u(u({},v),{},{slideIndex:ye})),H||(Re===be&&(Se=ye),Re=be),ie&&(ge=ge.concat(y(u(u({},v),{},{currentSlide:Se})))),he?(Le={animating:!0,currentSlide:ye,trackStyle:D(u(u({},v),{},{left:Re})),lazyLoadedList:ge,targetSlide:Ee},Pe={animating:!1,currentSlide:ye,trackStyle:Q(u(u({},v),{},{left:be})),swipeLeft:null,targetSlide:Ee}):Le={currentSlide:ye,trackStyle:Q(u(u({},v),{},{left:be})),lazyLoadedList:ge,targetSlide:Ee};return{state:Le,nextState:Pe}},we.changeSlide=function(v,C){var W,V,H,X,J,ie=v.slidesToScroll,ce=v.slidesToShow,me=v.slideCount,pe=v.currentSlide,ve=v.targetSlide,he=v.lazyLoad,ge=v.infinite;if(X=me%ie!==0,W=X?0:(me-pe)%ie,C.message==="previous")H=W===0?ie:ce-W,J=pe-H,he&&!ge&&(V=pe-H,J=V===-1?me-1:V),ge||(J=ve-ie);else if(C.message==="next")H=W===0?ie:W,J=pe+H,he&&!ge&&(J=(pe+ie)%me+W),ge||(J=ve+ie);else if(C.message==="dots")J=C.index*C.slidesToScroll;else if(C.message==="children"){if(J=C.index,ge){var Se=B(u(u({},v),{},{targetSlide:J}));J>C.currentSlide&&Se==="left"?J=J-me:J<C.currentSlide&&Se==="right"&&(J=J+me)}}else C.message==="index"&&(J=Number(C.index));return J},we.keyHandler=function(v,C,W){return v.target.tagName.match("TEXTAREA|INPUT|SELECT")||!C?"":v.keyCode===37?W?"next":"previous":v.keyCode===39?W?"previous":"next":""},we.swipeStart=function(v,C,W){return v.target.tagName==="IMG"&&g(v),!C||!W&&v.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:v.touches?v.touches[0].pageX:v.clientX,startY:v.touches?v.touches[0].pageY:v.clientY,curX:v.touches?v.touches[0].pageX:v.clientX,curY:v.touches?v.touches[0].pageY:v.clientY}}},we.swipeMove=function(v,C){var W=C.scrolling,V=C.animating,H=C.vertical,X=C.swipeToSlide,J=C.verticalSwiping,ie=C.rtl,ce=C.currentSlide,me=C.edgeFriction,pe=C.edgeDragged,ve=C.onEdge,he=C.swiped,ge=C.swiping,Se=C.slideCount,ye=C.slidesToScroll,Re=C.infinite,be=C.touchObject,Le=C.swipeEvent,Pe=C.listHeight,Ee=C.listWidth;if(!W){if(V)return g(v);H&&X&&J&&g(v);var ke,ot={},ft=T(C);be.curX=v.touches?v.touches[0].pageX:v.clientX,be.curY=v.touches?v.touches[0].pageY:v.clientY,be.swipeLength=Math.round(Math.sqrt(Math.pow(be.curX-be.startX,2)));var yt=Math.round(Math.sqrt(Math.pow(be.curY-be.startY,2)));if(!J&&!ge&&yt>10)return{scrolling:!0};J&&(be.swipeLength=yt);var Nt=(ie?-1:1)*(be.curX>be.startX?1:-1);J&&(Nt=be.curY>be.startY?1:-1);var Ae=Math.ceil(Se/ye),Be=G(C.touchObject,J),nt=be.swipeLength;return Re||(ce===0&&(Be==="right"||Be==="down")||ce+1>=Ae&&(Be==="left"||Be==="up")||!q(C)&&(Be==="left"||Be==="up"))&&(nt=be.swipeLength*me,pe===!1&&ve&&(ve(Be),ot.edgeDragged=!0)),!he&&Le&&(Le(Be),ot.swiped=!0),H?ke=ft+nt*(Pe/Ee)*Nt:ie?ke=ft-nt*Nt:ke=ft+nt*Nt,J&&(ke=ft+nt*Nt),ot=u(u({},ot),{},{touchObject:be,swipeLeft:ke,trackStyle:Q(u(u({},C),{},{left:ke}))}),Math.abs(be.curX-be.startX)<Math.abs(be.curY-be.startY)*.8||be.swipeLength>10&&(ot.swiping=!0,g(v)),ot}},we.swipeEnd=function(v,C){var W=C.dragging,V=C.swipe,H=C.touchObject,X=C.listWidth,J=C.touchThreshold,ie=C.verticalSwiping,ce=C.listHeight,me=C.swipeToSlide,pe=C.scrolling,ve=C.onSwipe,he=C.targetSlide,ge=C.currentSlide,Se=C.infinite;if(!W)return V&&g(v),{};var ye=ie?ce/J:X/J,Re=G(H,ie),be={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(pe||!H.swipeLength)return be;if(H.swipeLength>ye){g(v),ve&&ve(Re);var Le,Pe,Ee=Se?ge:he;switch(Re){case"left":case"up":Pe=Ee+M(C),Le=me?N(C,Pe):Pe,be.currentDirection=0;break;case"right":case"down":Pe=Ee-M(C),Le=me?N(C,Pe):Pe,be.currentDirection=1;break;default:Le=Ee}be.triggerSlideHandler=Le}else{var ke=T(C);be.trackStyle=D(u(u({},C),{},{left:ke}))}return be};var Z=we.getNavigableIndexes=function(v){for(var C=v.infinite?v.slideCount*2:v.slideCount,W=v.infinite?v.slidesToShow*-1:0,V=v.infinite?v.slidesToShow*-1:0,H=[];W<C;)H.push(W),W=V+v.slidesToScroll,V+=Math.min(v.slidesToScroll,v.slidesToShow);return H},N=we.checkNavigable=function(v,C){var W=Z(v),V=0;if(C>W[W.length-1])C=W[W.length-1];else for(var H in W){if(C<W[H]){C=V;break}V=W[H]}return C},M=we.getSlideCount=function(v){var C=v.centerMode?v.slideWidth*Math.floor(v.slidesToShow/2):0;if(v.swipeToSlide){var W,V=v.listRef,H=V.querySelectorAll&&V.querySelectorAll(".slick-slide")||[];if(Array.from(H).every(function(ie){if(v.vertical){if(ie.offsetTop+k(ie)/2>v.swipeLeft*-1)return W=ie,!1}else if(ie.offsetLeft-C+L(ie)/2>v.swipeLeft*-1)return W=ie,!1;return!0}),!W)return 0;var X=v.rtl===!0?v.slideCount-v.currentSlide:v.currentSlide,J=Math.abs(W.dataset.index-X)||1;return J}else return v.slidesToScroll},P=we.checkSpecKeys=function(v,C){return C.reduce(function(W,V){return W&&v.hasOwnProperty(V)},!0)?null:console.error("Keys Missing:",v)},Q=we.getTrackCSS=function(v){P(v,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var C,W,V=v.slideCount+2*v.slidesToShow;v.vertical?W=V*v.slideHeight:C=I(v)*v.slideWidth;var H={opacity:1,transition:"",WebkitTransition:""};if(v.useTransform){var X=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",J=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",ie=v.vertical?"translateY("+v.left+"px)":"translateX("+v.left+"px)";H=u(u({},H),{},{WebkitTransform:X,transform:J,msTransform:ie})}else v.vertical?H.top=v.left:H.left=v.left;return v.fade&&(H={opacity:1}),C&&(H.width=C),W&&(H.height=W),window&&!window.addEventListener&&window.attachEvent&&(v.vertical?H.marginTop=v.left+"px":H.marginLeft=v.left+"px"),H},D=we.getTrackAnimateCSS=function(v){P(v,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var C=Q(v);return v.useTransform?(C.WebkitTransition="-webkit-transform "+v.speed+"ms "+v.cssEase,C.transition="transform "+v.speed+"ms "+v.cssEase):v.vertical?C.transition="top "+v.speed+"ms "+v.cssEase:C.transition="left "+v.speed+"ms "+v.cssEase,C},T=we.getTrackLeft=function(v){if(v.unslick)return 0;P(v,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var C=v.slideIndex,W=v.trackRef,V=v.infinite,H=v.centerMode,X=v.slideCount,J=v.slidesToShow,ie=v.slidesToScroll,ce=v.slideWidth,me=v.listWidth,pe=v.variableWidth,ve=v.slideHeight,he=v.fade,ge=v.vertical,Se=0,ye,Re,be=0;if(he||v.slideCount===1)return 0;var Le=0;if(V?(Le=-F(v),X%ie!==0&&C+ie>X&&(Le=-(C>X?J-(C-X):X%ie)),H&&(Le+=parseInt(J/2))):(X%ie!==0&&C+ie>X&&(Le=J-X%ie),H&&(Le=parseInt(J/2))),Se=Le*ce,be=Le*ve,ge?ye=C*ve*-1+be:ye=C*ce*-1+Se,pe===!0){var Pe,Ee=W&&W.node;if(Pe=C+F(v),Re=Ee&&Ee.childNodes[Pe],ye=Re?Re.offsetLeft*-1:0,H===!0){Pe=V?C+F(v):C,Re=Ee&&Ee.children[Pe],ye=0;for(var ke=0;ke<Pe;ke++)ye-=Ee&&Ee.children[ke]&&Ee.children[ke].offsetWidth;ye-=parseInt(v.centerPadding),ye+=Re&&(me-Re.offsetWidth)/2}}return ye},F=we.getPreClones=function(v){return v.unslick||!v.infinite?0:v.variableWidth?v.slideCount:v.slidesToShow+(v.centerMode?1:0)},$=we.getPostClones=function(v){return v.unslick||!v.infinite?0:v.slideCount},I=we.getTotalSlides=function(v){return v.slideCount===1?1:F(v)+v.slideCount+$(v)},B=we.siblingDirection=function(v){return v.targetSlide>v.currentSlide?v.targetSlide>v.currentSlide+U(v)?"left":"right":v.targetSlide<v.currentSlide-z(v)?"right":"left"},U=we.slidesOnRight=function(v){var C=v.slidesToShow,W=v.centerMode,V=v.rtl,H=v.centerPadding;if(W){var X=(C-1)/2+1;return parseInt(H)>0&&(X+=1),V&&C%2===0&&(X+=1),X}return V?0:C-1},z=we.slidesOnLeft=function(v){var C=v.slidesToShow,W=v.centerMode,V=v.rtl,H=v.centerPadding;if(W){var X=(C-1)/2+1;return parseInt(H)>0&&(X+=1),!V&&C%2===0&&(X+=1),X}return V?C-1:0};we.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var S=we.validSettings=Object.keys(t.default);function te(R){return S.reduce(function(v,C){return R.hasOwnProperty(C)&&(v[C]=R[C]),v},{})}return we}var Zl={},P1;function O4(){if(P1)return Zl;P1=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.Track=void 0;var r=l(Cn()),t=l(jo()),a=Ho();function l(D){return D&&D.__esModule?D:{default:D}}function o(D){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},o(D)}function u(){return u=Object.assign?Object.assign.bind():function(D){for(var T=1;T<arguments.length;T++){var F=arguments[T];for(var $ in F)Object.prototype.hasOwnProperty.call(F,$)&&(D[$]=F[$])}return D},u.apply(this,arguments)}function c(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}function d(D,T){for(var F=0;F<T.length;F++){var $=T[F];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(D,q($.key),$)}}function h(D,T,F){return T&&d(D.prototype,T),Object.defineProperty(D,"prototype",{writable:!1}),D}function p(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),T&&g(D,T)}function g(D,T){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,I){return $.__proto__=I,$},g(D,T)}function y(D){var T=j();return function(){var $=_(D),I;if(T){var B=_(this).constructor;I=Reflect.construct($,arguments,B)}else I=$.apply(this,arguments);return x(this,I)}}function x(D,T){if(T&&(o(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(D)}function E(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function j(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j=function(){return!!D})()}function _(D){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},_(D)}function L(D,T){var F=Object.keys(D);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(D);T&&($=$.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),F.push.apply(F,$)}return F}function k(D){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?L(Object(F),!0).forEach(function($){G(D,$,F[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(F)):L(Object(F)).forEach(function($){Object.defineProperty(D,$,Object.getOwnPropertyDescriptor(F,$))})}return D}function G(D,T,F){return T=q(T),T in D?Object.defineProperty(D,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):D[T]=F,D}function q(D){var T=Z(D,"string");return o(T)=="symbol"?T:String(T)}function Z(D,T){if(o(D)!="object"||!D)return D;var F=D[Symbol.toPrimitive];if(F!==void 0){var $=F.call(D,T);if(o($)!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(D)}var N=function(T){var F,$,I,B,U;T.rtl?U=T.slideCount-1-T.index:U=T.index,I=U<0||U>=T.slideCount,T.centerMode?(B=Math.floor(T.slidesToShow/2),$=(U-T.currentSlide)%T.slideCount===0,U>T.currentSlide-B-1&&U<=T.currentSlide+B&&(F=!0)):F=T.currentSlide<=U&&U<T.currentSlide+T.slidesToShow;var z;T.targetSlide<0?z=T.targetSlide+T.slideCount:T.targetSlide>=T.slideCount?z=T.targetSlide-T.slideCount:z=T.targetSlide;var S=U===z;return{"slick-slide":!0,"slick-active":F,"slick-center":$,"slick-cloned":I,"slick-current":S}},M=function(T){var F={};return(T.variableWidth===void 0||T.variableWidth===!1)&&(F.width=T.slideWidth),T.fade&&(F.position="relative",T.vertical?F.top=-T.index*parseInt(T.slideHeight):F.left=-T.index*parseInt(T.slideWidth),F.opacity=T.currentSlide===T.index?1:0,F.zIndex=T.currentSlide===T.index?999:998,T.useCSS&&(F.transition="opacity "+T.speed+"ms "+T.cssEase+", visibility "+T.speed+"ms "+T.cssEase)),F},P=function(T,F){return T.key||F},Q=function(T){var F,$=[],I=[],B=[],U=r.default.Children.count(T.children),z=(0,a.lazyStartIndex)(T),S=(0,a.lazyEndIndex)(T);return r.default.Children.forEach(T.children,function(te,R){var v,C={message:"children",index:R,slidesToScroll:T.slidesToScroll,currentSlide:T.currentSlide};!T.lazyLoad||T.lazyLoad&&T.lazyLoadedList.indexOf(R)>=0?v=te:v=r.default.createElement("div",null);var W=M(k(k({},T),{},{index:R})),V=v.props.className||"",H=N(k(k({},T),{},{index:R}));if($.push(r.default.cloneElement(v,{key:"original"+P(v,R),"data-index":R,className:(0,t.default)(H,V),tabIndex:"-1","aria-hidden":!H["slick-active"],style:k(k({outline:"none"},v.props.style||{}),W),onClick:function(ie){v.props&&v.props.onClick&&v.props.onClick(ie),T.focusOnSelect&&T.focusOnSelect(C)}})),T.infinite&&T.fade===!1){var X=U-R;X<=(0,a.getPreClones)(T)&&(F=-X,F>=z&&(v=te),H=N(k(k({},T),{},{index:F})),I.push(r.default.cloneElement(v,{key:"precloned"+P(v,F),"data-index":F,tabIndex:"-1",className:(0,t.default)(H,V),"aria-hidden":!H["slick-active"],style:k(k({},v.props.style||{}),W),onClick:function(ie){v.props&&v.props.onClick&&v.props.onClick(ie),T.focusOnSelect&&T.focusOnSelect(C)}}))),F=U+R,F<S&&(v=te),H=N(k(k({},T),{},{index:F})),B.push(r.default.cloneElement(v,{key:"postcloned"+P(v,F),"data-index":F,tabIndex:"-1",className:(0,t.default)(H,V),"aria-hidden":!H["slick-active"],style:k(k({},v.props.style||{}),W),onClick:function(ie){v.props&&v.props.onClick&&v.props.onClick(ie),T.focusOnSelect&&T.focusOnSelect(C)}}))}}),T.rtl?I.concat($,B).reverse():I.concat($,B)};return Zl.Track=function(D){p(F,D);var T=y(F);function F(){var $;c(this,F);for(var I=arguments.length,B=new Array(I),U=0;U<I;U++)B[U]=arguments[U];return $=T.call.apply(T,[this].concat(B)),G(E($),"node",null),G(E($),"handleRef",function(z){$.node=z}),$}return h(F,[{key:"render",value:function(){var I=Q(this.props),B=this.props,U=B.onMouseEnter,z=B.onMouseOver,S=B.onMouseLeave,te={onMouseEnter:U,onMouseOver:z,onMouseLeave:S};return r.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},te),I)}}]),F}(r.default.PureComponent),Zl}var Kl={},H1;function T4(){if(H1)return Kl;H1=1;function r(N){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r(N)}Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.Dots=void 0;var t=o(Cn()),a=o(jo()),l=Ho();function o(N){return N&&N.__esModule?N:{default:N}}function u(N,M){var P=Object.keys(N);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(N);M&&(Q=Q.filter(function(D){return Object.getOwnPropertyDescriptor(N,D).enumerable})),P.push.apply(P,Q)}return P}function c(N){for(var M=1;M<arguments.length;M++){var P=arguments[M]!=null?arguments[M]:{};M%2?u(Object(P),!0).forEach(function(Q){d(N,Q,P[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(Q){Object.defineProperty(N,Q,Object.getOwnPropertyDescriptor(P,Q))})}return N}function d(N,M,P){return M=y(M),M in N?Object.defineProperty(N,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):N[M]=P,N}function h(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")}function p(N,M){for(var P=0;P<M.length;P++){var Q=M[P];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(N,y(Q.key),Q)}}function g(N,M,P){return M&&p(N.prototype,M),Object.defineProperty(N,"prototype",{writable:!1}),N}function y(N){var M=x(N,"string");return r(M)=="symbol"?M:String(M)}function x(N,M){if(r(N)!="object"||!N)return N;var P=N[Symbol.toPrimitive];if(P!==void 0){var Q=P.call(N,M);if(r(Q)!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function E(N,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(M&&M.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),M&&j(N,M)}function j(N,M){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,D){return Q.__proto__=D,Q},j(N,M)}function _(N){var M=G();return function(){var Q=q(N),D;if(M){var T=q(this).constructor;D=Reflect.construct(Q,arguments,T)}else D=Q.apply(this,arguments);return L(this,D)}}function L(N,M){if(M&&(r(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(N)}function k(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function G(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G=function(){return!!N})()}function q(N){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},q(N)}var Z=function(M){var P;return M.infinite?P=Math.ceil(M.slideCount/M.slidesToScroll):P=Math.ceil((M.slideCount-M.slidesToShow)/M.slidesToScroll)+1,P};return Kl.Dots=function(N){E(P,N);var M=_(P);function P(){return h(this,P),M.apply(this,arguments)}return g(P,[{key:"clickHandler",value:function(D,T){T.preventDefault(),this.props.clickHandler(D)}},{key:"render",value:function(){for(var D=this.props,T=D.onMouseEnter,F=D.onMouseOver,$=D.onMouseLeave,I=D.infinite,B=D.slidesToScroll,U=D.slidesToShow,z=D.slideCount,S=D.currentSlide,te=Z({slideCount:z,slidesToScroll:B,slidesToShow:U,infinite:I}),R={onMouseEnter:T,onMouseOver:F,onMouseLeave:$},v=[],C=0;C<te;C++){var W=(C+1)*B-1,V=I?W:(0,l.clamp)(W,0,z-1),H=V-(B-1),X=I?H:(0,l.clamp)(H,0,z-1),J=(0,a.default)({"slick-active":I?S>=X&&S<=V:S===X}),ie={message:"dots",index:C,slidesToScroll:B,currentSlide:S},ce=this.clickHandler.bind(this,ie);v=v.concat(t.default.createElement("li",{key:C,className:J},t.default.cloneElement(this.props.customPaging(C),{onClick:ce})))}return t.default.cloneElement(this.props.appendDots(v),c({className:this.props.dotsClass},R))}}]),P}(t.default.PureComponent),Kl}var Ma={},k1;function E4(){if(k1)return Ma;k1=1;function r(N){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r(N)}Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.PrevArrow=Ma.NextArrow=void 0;var t=o(Cn()),a=o(jo()),l=Ho();function o(N){return N&&N.__esModule?N:{default:N}}function u(){return u=Object.assign?Object.assign.bind():function(N){for(var M=1;M<arguments.length;M++){var P=arguments[M];for(var Q in P)Object.prototype.hasOwnProperty.call(P,Q)&&(N[Q]=P[Q])}return N},u.apply(this,arguments)}function c(N,M){var P=Object.keys(N);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(N);M&&(Q=Q.filter(function(D){return Object.getOwnPropertyDescriptor(N,D).enumerable})),P.push.apply(P,Q)}return P}function d(N){for(var M=1;M<arguments.length;M++){var P=arguments[M]!=null?arguments[M]:{};M%2?c(Object(P),!0).forEach(function(Q){h(N,Q,P[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(P)):c(Object(P)).forEach(function(Q){Object.defineProperty(N,Q,Object.getOwnPropertyDescriptor(P,Q))})}return N}function h(N,M,P){return M=x(M),M in N?Object.defineProperty(N,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):N[M]=P,N}function p(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")}function g(N,M){for(var P=0;P<M.length;P++){var Q=M[P];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(N,x(Q.key),Q)}}function y(N,M,P){return M&&g(N.prototype,M),Object.defineProperty(N,"prototype",{writable:!1}),N}function x(N){var M=E(N,"string");return r(M)=="symbol"?M:String(M)}function E(N,M){if(r(N)!="object"||!N)return N;var P=N[Symbol.toPrimitive];if(P!==void 0){var Q=P.call(N,M);if(r(Q)!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function j(N,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(M&&M.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),M&&_(N,M)}function _(N,M){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,D){return Q.__proto__=D,Q},_(N,M)}function L(N){var M=q();return function(){var Q=Z(N),D;if(M){var T=Z(this).constructor;D=Reflect.construct(Q,arguments,T)}else D=Q.apply(this,arguments);return k(this,D)}}function k(N,M){if(M&&(r(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(N)}function G(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function q(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q=function(){return!!N})()}function Z(N){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},Z(N)}return Ma.PrevArrow=function(N){j(P,N);var M=L(P);function P(){return p(this,P),M.apply(this,arguments)}return y(P,[{key:"clickHandler",value:function(D,T){T&&T.preventDefault(),this.props.clickHandler(D,T)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-prev":!0},T=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(D["slick-disabled"]=!0,T=null);var F={key:"0","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:T},$={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},I;return this.props.prevArrow?I=t.default.cloneElement(this.props.prevArrow,d(d({},F),$)):I=t.default.createElement("button",u({key:"0",type:"button"},F)," ","Previous"),I}}]),P}(t.default.PureComponent),Ma.NextArrow=function(N){j(P,N);var M=L(P);function P(){return p(this,P),M.apply(this,arguments)}return y(P,[{key:"clickHandler",value:function(D,T){T&&T.preventDefault(),this.props.clickHandler(D,T)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-next":!0},T=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(D["slick-disabled"]=!0,T=null);var F={key:"1","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:T},$={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},I;return this.props.nextArrow?I=t.default.cloneElement(this.props.nextArrow,d(d({},F),$)):I=t.default.createElement("button",u({key:"1",type:"button"},F)," ","Next"),I}}]),P}(t.default.PureComponent),Ma}var nT=function(){if(typeof Map<"u")return Map;function r(t,a){var l=-1;return t.some(function(o,u){return o[0]===a?(l=u,!0):!1}),l}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(a){var l=r(this.__entries__,a),o=this.__entries__[l];return o&&o[1]},t.prototype.set=function(a,l){var o=r(this.__entries__,a);~o?this.__entries__[o][1]=l:this.__entries__.push([a,l])},t.prototype.delete=function(a){var l=this.__entries__,o=r(l,a);~o&&l.splice(o,1)},t.prototype.has=function(a){return!!~r(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var o=0,u=this.__entries__;o<u.length;o++){var c=u[o];a.call(l,c[1],c[0])}},t}()}(),Yp=typeof window<"u"&&typeof document<"u"&&window.document===document,yu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),C4=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(yu):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),R4=2;function _4(r,t){var a=!1,l=!1,o=0;function u(){a&&(a=!1,r()),l&&d()}function c(){C4(u)}function d(){var h=Date.now();if(a){if(h-o<R4)return;l=!0}else a=!0,l=!1,setTimeout(c,t);o=h}return d}var j4=20,A4=["top","right","bottom","left","width","height","size","weight"],M4=typeof MutationObserver<"u",N4=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_4(this.refresh.bind(this),j4)}return r.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},r.prototype.removeObserver=function(t){var a=this.observers_,l=a.indexOf(t);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},r.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},r.prototype.connect_=function(){!Yp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),M4?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){!Yp||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(t){var a=t.propertyName,l=a===void 0?"":a,o=A4.some(function(u){return!!~l.indexOf(u)});o&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),rT=function(r,t){for(var a=0,l=Object.keys(t);a<l.length;a++){var o=l[a];Object.defineProperty(r,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return r},Ni=function(r){var t=r&&r.ownerDocument&&r.ownerDocument.defaultView;return t||yu},aT=zu(0,0,0,0);function bu(r){return parseFloat(r)||0}function B1(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(l,o){var u=r["border-"+o+"-width"];return l+bu(u)},0)}function D4(r){for(var t=["top","right","bottom","left"],a={},l=0,o=t;l<o.length;l++){var u=o[l],c=r["padding-"+u];a[u]=bu(c)}return a}function L4(r){var t=r.getBBox();return zu(0,0,t.width,t.height)}function z4(r){var t=r.clientWidth,a=r.clientHeight;if(!t&&!a)return aT;var l=Ni(r).getComputedStyle(r),o=D4(l),u=o.left+o.right,c=o.top+o.bottom,d=bu(l.width),h=bu(l.height);if(l.boxSizing==="border-box"&&(Math.round(d+u)!==t&&(d-=B1(l,"left","right")+u),Math.round(h+c)!==a&&(h-=B1(l,"top","bottom")+c)),!H4(r)){var p=Math.round(d+u)-t,g=Math.round(h+c)-a;Math.abs(p)!==1&&(d-=p),Math.abs(g)!==1&&(h-=g)}return zu(o.left,o.top,d,h)}var P4=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof Ni(r).SVGGraphicsElement}:function(r){return r instanceof Ni(r).SVGElement&&typeof r.getBBox=="function"}}();function H4(r){return r===Ni(r).document.documentElement}function k4(r){return Yp?P4(r)?L4(r):z4(r):aT}function B4(r){var t=r.x,a=r.y,l=r.width,o=r.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(u.prototype);return rT(c,{x:t,y:a,width:l,height:o,top:a,right:t+l,bottom:o+a,left:t}),c}function zu(r,t,a,l){return{x:r,y:t,width:a,height:l}}var $4=function(){function r(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=zu(0,0,0,0),this.target=t}return r.prototype.isActive=function(){var t=k4(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},r}(),I4=function(){function r(t,a){var l=B4(a);rT(this,{target:t,contentRect:l})}return r}(),q4=function(){function r(t,a,l){if(this.activeObservations_=[],this.observations_=new nT,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=l}return r.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new $4(t)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new I4(l.target,l.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),iT=typeof WeakMap<"u"?new WeakMap:new nT,lT=function(){function r(t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=N4.getInstance(),l=new q4(t,a,this);iT.set(this,l)}return r}();["observe","unobserve","disconnect"].forEach(function(r){lT.prototype[r]=function(){var t;return(t=iT.get(this))[r].apply(t,arguments)}});var U4=function(){return typeof yu.ResizeObserver<"u"?yu.ResizeObserver:lT}();const G4=Object.freeze(Object.defineProperty({__proto__:null,default:U4},Symbol.toStringTag,{value:"Module"})),V4=J1(G4);var $1;function W4(){if($1)return Ql;$1=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.InnerSlider=void 0;var r=p(Cn()),t=p(w4()),a=p(x4()),l=p(jo()),o=Ho(),u=O4(),c=T4(),d=E4(),h=p(V4);function p(I){return I&&I.__esModule?I:{default:I}}function g(I){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g(I)}function y(){return y=Object.assign?Object.assign.bind():function(I){for(var B=1;B<arguments.length;B++){var U=arguments[B];for(var z in U)Object.prototype.hasOwnProperty.call(U,z)&&(I[z]=U[z])}return I},y.apply(this,arguments)}function x(I,B){if(I==null)return{};var U=E(I,B),z,S;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(I);for(S=0;S<te.length;S++)z=te[S],!(B.indexOf(z)>=0)&&Object.prototype.propertyIsEnumerable.call(I,z)&&(U[z]=I[z])}return U}function E(I,B){if(I==null)return{};var U={},z=Object.keys(I),S,te;for(te=0;te<z.length;te++)S=z[te],!(B.indexOf(S)>=0)&&(U[S]=I[S]);return U}function j(I,B){var U=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);B&&(z=z.filter(function(S){return Object.getOwnPropertyDescriptor(I,S).enumerable})),U.push.apply(U,z)}return U}function _(I){for(var B=1;B<arguments.length;B++){var U=arguments[B]!=null?arguments[B]:{};B%2?j(Object(U),!0).forEach(function(z){T(I,z,U[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(U)):j(Object(U)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(U,z))})}return I}function L(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}function k(I,B){for(var U=0;U<B.length;U++){var z=B[U];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,F(z.key),z)}}function G(I,B,U){return B&&k(I.prototype,B),Object.defineProperty(I,"prototype",{writable:!1}),I}function q(I,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),B&&Z(I,B)}function Z(I,B){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,S){return z.__proto__=S,z},Z(I,B)}function N(I){var B=Q();return function(){var z=D(I),S;if(B){var te=D(this).constructor;S=Reflect.construct(z,arguments,te)}else S=z.apply(this,arguments);return M(this,S)}}function M(I,B){if(B&&(g(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(I)}function P(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Q(){try{var I=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q=function(){return!!I})()}function D(I){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},D(I)}function T(I,B,U){return B=F(B),B in I?Object.defineProperty(I,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):I[B]=U,I}function F(I){var B=$(I,"string");return g(B)=="symbol"?B:String(B)}function $(I,B){if(g(I)!="object"||!I)return I;var U=I[Symbol.toPrimitive];if(U!==void 0){var z=U.call(I,B);if(g(z)!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(I)}return Ql.InnerSlider=function(I){q(U,I);var B=N(U);function U(z){var S;L(this,U),S=B.call(this,z),T(P(S),"listRefHandler",function(R){return S.list=R}),T(P(S),"trackRefHandler",function(R){return S.track=R}),T(P(S),"adaptHeight",function(){if(S.props.adaptiveHeight&&S.list){var R=S.list.querySelector('[data-index="'.concat(S.state.currentSlide,'"]'));S.list.style.height=(0,o.getHeight)(R)+"px"}}),T(P(S),"componentDidMount",function(){if(S.props.onInit&&S.props.onInit(),S.props.lazyLoad){var R=(0,o.getOnDemandLazySlides)(_(_({},S.props),S.state));R.length>0&&(S.setState(function(C){return{lazyLoadedList:C.lazyLoadedList.concat(R)}}),S.props.onLazyLoad&&S.props.onLazyLoad(R))}var v=_({listRef:S.list,trackRef:S.track},S.props);S.updateState(v,!0,function(){S.adaptHeight(),S.props.autoplay&&S.autoPlay("update")}),S.props.lazyLoad==="progressive"&&(S.lazyLoadTimer=setInterval(S.progressiveLazyLoad,1e3)),S.ro=new h.default(function(){S.state.animating?(S.onWindowResized(!1),S.callbackTimers.push(setTimeout(function(){return S.onWindowResized()},S.props.speed))):S.onWindowResized()}),S.ro.observe(S.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(C){C.onfocus=S.props.pauseOnFocus?S.onSlideFocus:null,C.onblur=S.props.pauseOnFocus?S.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",S.onWindowResized):window.attachEvent("onresize",S.onWindowResized)}),T(P(S),"componentWillUnmount",function(){S.animationEndCallback&&clearTimeout(S.animationEndCallback),S.lazyLoadTimer&&clearInterval(S.lazyLoadTimer),S.callbackTimers.length&&(S.callbackTimers.forEach(function(R){return clearTimeout(R)}),S.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",S.onWindowResized):window.detachEvent("onresize",S.onWindowResized),S.autoplayTimer&&clearInterval(S.autoplayTimer),S.ro.disconnect()}),T(P(S),"componentDidUpdate",function(R){if(S.checkImagesLoad(),S.props.onReInit&&S.props.onReInit(),S.props.lazyLoad){var v=(0,o.getOnDemandLazySlides)(_(_({},S.props),S.state));v.length>0&&(S.setState(function(V){return{lazyLoadedList:V.lazyLoadedList.concat(v)}}),S.props.onLazyLoad&&S.props.onLazyLoad(v))}S.adaptHeight();var C=_(_({listRef:S.list,trackRef:S.track},S.props),S.state),W=S.didPropsChange(R);W&&S.updateState(C,W,function(){S.state.currentSlide>=r.default.Children.count(S.props.children)&&S.changeSlide({message:"index",index:r.default.Children.count(S.props.children)-S.props.slidesToShow,currentSlide:S.state.currentSlide}),S.props.autoplay?S.autoPlay("update"):S.pause("paused")})}),T(P(S),"onWindowResized",function(R){S.debouncedResize&&S.debouncedResize.cancel(),S.debouncedResize=(0,a.default)(function(){return S.resizeWindow(R)},50),S.debouncedResize()}),T(P(S),"resizeWindow",function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=!!(S.track&&S.track.node);if(v){var C=_(_({listRef:S.list,trackRef:S.track},S.props),S.state);S.updateState(C,R,function(){S.props.autoplay?S.autoPlay("update"):S.pause("paused")}),S.setState({animating:!1}),clearTimeout(S.animationEndCallback),delete S.animationEndCallback}}),T(P(S),"updateState",function(R,v,C){var W=(0,o.initializedState)(R);R=_(_(_({},R),W),{},{slideIndex:W.currentSlide});var V=(0,o.getTrackLeft)(R);R=_(_({},R),{},{left:V});var H=(0,o.getTrackCSS)(R);(v||r.default.Children.count(S.props.children)!==r.default.Children.count(R.children))&&(W.trackStyle=H),S.setState(W,C)}),T(P(S),"ssrInit",function(){if(S.props.variableWidth){var R=0,v=0,C=[],W=(0,o.getPreClones)(_(_(_({},S.props),S.state),{},{slideCount:S.props.children.length})),V=(0,o.getPostClones)(_(_(_({},S.props),S.state),{},{slideCount:S.props.children.length}));S.props.children.forEach(function(Re){C.push(Re.props.style.width),R+=Re.props.style.width});for(var H=0;H<W;H++)v+=C[C.length-1-H],R+=C[C.length-1-H];for(var X=0;X<V;X++)R+=C[X];for(var J=0;J<S.state.currentSlide;J++)v+=C[J];var ie={width:R+"px",left:-v+"px"};if(S.props.centerMode){var ce="".concat(C[S.state.currentSlide],"px");ie.left="calc(".concat(ie.left," + (100% - ").concat(ce,") / 2 ) ")}return{trackStyle:ie}}var me=r.default.Children.count(S.props.children),pe=_(_(_({},S.props),S.state),{},{slideCount:me}),ve=(0,o.getPreClones)(pe)+(0,o.getPostClones)(pe)+me,he=100/S.props.slidesToShow*ve,ge=100/ve,Se=-ge*((0,o.getPreClones)(pe)+S.state.currentSlide)*he/100;S.props.centerMode&&(Se+=(100-ge*he/100)/2);var ye={width:he+"%",left:Se+"%"};return{slideWidth:ge+"%",trackStyle:ye}}),T(P(S),"checkImagesLoad",function(){var R=S.list&&S.list.querySelectorAll&&S.list.querySelectorAll(".slick-slide img")||[],v=R.length,C=0;Array.prototype.forEach.call(R,function(W){var V=function(){return++C&&C>=v&&S.onWindowResized()};if(!W.onclick)W.onclick=function(){return W.parentNode.focus()};else{var H=W.onclick;W.onclick=function(X){H(X),W.parentNode.focus()}}W.onload||(S.props.lazyLoad?W.onload=function(){S.adaptHeight(),S.callbackTimers.push(setTimeout(S.onWindowResized,S.props.speed))}:(W.onload=V,W.onerror=function(){V(),S.props.onLazyLoadError&&S.props.onLazyLoadError()}))})}),T(P(S),"progressiveLazyLoad",function(){for(var R=[],v=_(_({},S.props),S.state),C=S.state.currentSlide;C<S.state.slideCount+(0,o.getPostClones)(v);C++)if(S.state.lazyLoadedList.indexOf(C)<0){R.push(C);break}for(var W=S.state.currentSlide-1;W>=-(0,o.getPreClones)(v);W--)if(S.state.lazyLoadedList.indexOf(W)<0){R.push(W);break}R.length>0?(S.setState(function(V){return{lazyLoadedList:V.lazyLoadedList.concat(R)}}),S.props.onLazyLoad&&S.props.onLazyLoad(R)):S.lazyLoadTimer&&(clearInterval(S.lazyLoadTimer),delete S.lazyLoadTimer)}),T(P(S),"slideHandler",function(R){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=S.props,W=C.asNavFor,V=C.beforeChange,H=C.onLazyLoad,X=C.speed,J=C.afterChange,ie=S.state.currentSlide,ce=(0,o.slideHandler)(_(_(_({index:R},S.props),S.state),{},{trackRef:S.track,useCSS:S.props.useCSS&&!v})),me=ce.state,pe=ce.nextState;if(me){V&&V(ie,me.currentSlide);var ve=me.lazyLoadedList.filter(function(he){return S.state.lazyLoadedList.indexOf(he)<0});H&&ve.length>0&&H(ve),!S.props.waitForAnimate&&S.animationEndCallback&&(clearTimeout(S.animationEndCallback),J&&J(ie),delete S.animationEndCallback),S.setState(me,function(){W&&S.asNavForIndex!==R&&(S.asNavForIndex=R,W.innerSlider.slideHandler(R)),pe&&(S.animationEndCallback=setTimeout(function(){var he=pe.animating,ge=x(pe,["animating"]);S.setState(ge,function(){S.callbackTimers.push(setTimeout(function(){return S.setState({animating:he})},10)),J&&J(me.currentSlide),delete S.animationEndCallback})},X))})}}),T(P(S),"changeSlide",function(R){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=_(_({},S.props),S.state),W=(0,o.changeSlide)(C,R);if(!(W!==0&&!W)&&(v===!0?S.slideHandler(W,v):S.slideHandler(W),S.props.autoplay&&S.autoPlay("update"),S.props.focusOnSelect)){var V=S.list.querySelectorAll(".slick-current");V[0]&&V[0].focus()}}),T(P(S),"clickHandler",function(R){S.clickable===!1&&(R.stopPropagation(),R.preventDefault()),S.clickable=!0}),T(P(S),"keyHandler",function(R){var v=(0,o.keyHandler)(R,S.props.accessibility,S.props.rtl);v!==""&&S.changeSlide({message:v})}),T(P(S),"selectHandler",function(R){S.changeSlide(R)}),T(P(S),"disableBodyScroll",function(){var R=function(C){C=C||window.event,C.preventDefault&&C.preventDefault(),C.returnValue=!1};window.ontouchmove=R}),T(P(S),"enableBodyScroll",function(){window.ontouchmove=null}),T(P(S),"swipeStart",function(R){S.props.verticalSwiping&&S.disableBodyScroll();var v=(0,o.swipeStart)(R,S.props.swipe,S.props.draggable);v!==""&&S.setState(v)}),T(P(S),"swipeMove",function(R){var v=(0,o.swipeMove)(R,_(_(_({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));v&&(v.swiping&&(S.clickable=!1),S.setState(v))}),T(P(S),"swipeEnd",function(R){var v=(0,o.swipeEnd)(R,_(_(_({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));if(v){var C=v.triggerSlideHandler;delete v.triggerSlideHandler,S.setState(v),C!==void 0&&(S.slideHandler(C),S.props.verticalSwiping&&S.enableBodyScroll())}}),T(P(S),"touchEnd",function(R){S.swipeEnd(R),S.clickable=!0}),T(P(S),"slickPrev",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"previous"})},0))}),T(P(S),"slickNext",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"next"})},0))}),T(P(S),"slickGoTo",function(R){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R=Number(R),isNaN(R))return"";S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"index",index:R,currentSlide:S.state.currentSlide},v)},0))}),T(P(S),"play",function(){var R;if(S.props.rtl)R=S.state.currentSlide-S.props.slidesToScroll;else if((0,o.canGoNext)(_(_({},S.props),S.state)))R=S.state.currentSlide+S.props.slidesToScroll;else return!1;S.slideHandler(R)}),T(P(S),"autoPlay",function(R){S.autoplayTimer&&clearInterval(S.autoplayTimer);var v=S.state.autoplaying;if(R==="update"){if(v==="hovered"||v==="focused"||v==="paused")return}else if(R==="leave"){if(v==="paused"||v==="focused")return}else if(R==="blur"&&(v==="paused"||v==="hovered"))return;S.autoplayTimer=setInterval(S.play,S.props.autoplaySpeed+50),S.setState({autoplaying:"playing"})}),T(P(S),"pause",function(R){S.autoplayTimer&&(clearInterval(S.autoplayTimer),S.autoplayTimer=null);var v=S.state.autoplaying;R==="paused"?S.setState({autoplaying:"paused"}):R==="focused"?(v==="hovered"||v==="playing")&&S.setState({autoplaying:"focused"}):v==="playing"&&S.setState({autoplaying:"hovered"})}),T(P(S),"onDotsOver",function(){return S.props.autoplay&&S.pause("hovered")}),T(P(S),"onDotsLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),T(P(S),"onTrackOver",function(){return S.props.autoplay&&S.pause("hovered")}),T(P(S),"onTrackLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),T(P(S),"onSlideFocus",function(){return S.props.autoplay&&S.pause("focused")}),T(P(S),"onSlideBlur",function(){return S.props.autoplay&&S.state.autoplaying==="focused"&&S.autoPlay("blur")}),T(P(S),"render",function(){var R=(0,l.default)("slick-slider",S.props.className,{"slick-vertical":S.props.vertical,"slick-initialized":!0}),v=_(_({},S.props),S.state),C=(0,o.extractObject)(v,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),W=S.props.pauseOnHover;C=_(_({},C),{},{onMouseEnter:W?S.onTrackOver:null,onMouseLeave:W?S.onTrackLeave:null,onMouseOver:W?S.onTrackOver:null,focusOnSelect:S.props.focusOnSelect&&S.clickable?S.selectHandler:null});var V;if(S.props.dots===!0&&S.state.slideCount>=S.props.slidesToShow){var H=(0,o.extractObject)(v,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),X=S.props.pauseOnDotsHover;H=_(_({},H),{},{clickHandler:S.changeSlide,onMouseEnter:X?S.onDotsLeave:null,onMouseOver:X?S.onDotsOver:null,onMouseLeave:X?S.onDotsLeave:null}),V=r.default.createElement(c.Dots,H)}var J,ie,ce=(0,o.extractObject)(v,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);ce.clickHandler=S.changeSlide,S.props.arrows&&(J=r.default.createElement(d.PrevArrow,ce),ie=r.default.createElement(d.NextArrow,ce));var me=null;S.props.vertical&&(me={height:S.state.listHeight});var pe=null;S.props.vertical===!1?S.props.centerMode===!0&&(pe={padding:"0px "+S.props.centerPadding}):S.props.centerMode===!0&&(pe={padding:S.props.centerPadding+" 0px"});var ve=_(_({},me),pe),he=S.props.touchMove,ge={className:"slick-list",style:ve,onClick:S.clickHandler,onMouseDown:he?S.swipeStart:null,onMouseMove:S.state.dragging&&he?S.swipeMove:null,onMouseUp:he?S.swipeEnd:null,onMouseLeave:S.state.dragging&&he?S.swipeEnd:null,onTouchStart:he?S.swipeStart:null,onTouchMove:S.state.dragging&&he?S.swipeMove:null,onTouchEnd:he?S.touchEnd:null,onTouchCancel:S.state.dragging&&he?S.swipeEnd:null,onKeyDown:S.props.accessibility?S.keyHandler:null},Se={className:R,dir:"ltr",style:S.props.style};return S.props.unslick&&(ge={className:"slick-list"},Se={className:R}),r.default.createElement("div",Se,S.props.unslick?"":J,r.default.createElement("div",y({ref:S.listRefHandler},ge),r.default.createElement(u.Track,y({ref:S.trackRefHandler},C),S.props.children)),S.props.unslick?"":ie,S.props.unslick?"":V)}),S.list=null,S.track=null,S.state=_(_({},t.default),{},{currentSlide:S.props.initialSlide,targetSlide:S.props.initialSlide?S.props.initialSlide:0,slideCount:r.default.Children.count(S.props.children)}),S.callbackTimers=[],S.clickable=!0,S.debouncedResize=null;var te=S.ssrInit();return S.state=_(_({},S.state),te),S}return G(U,[{key:"didPropsChange",value:function(S){for(var te=!1,R=0,v=Object.keys(this.props);R<v.length;R++){var C=v[R];if(!S.hasOwnProperty(C)){te=!0;break}if(!(g(S[C])==="object"||typeof S[C]=="function"||isNaN(S[C]))&&S[C]!==this.props[C]){te=!0;break}}return te||r.default.Children.count(this.props.children)!==r.default.Children.count(S.children)}}]),U}(r.default.Component),Ql}var vp,I1;function Y4(){if(I1)return vp;I1=1;var r=function(t){return t.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return vp=r,vp}var yp,q1;function X4(){if(q1)return yp;q1=1;var r=Y4(),t=function(o){var u=/[height|width]$/;return u.test(o)},a=function(o){var u="",c=Object.keys(o);return c.forEach(function(d,h){var p=o[d];d=r(d),t(d)&&typeof p=="number"&&(p=p+"px"),p===!0?u+=d:p===!1?u+="not "+d:u+="("+d+": "+p+")",h<c.length-1&&(u+=" and ")}),u},l=function(o){var u="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(c,d){u+=a(c),d<o.length-1&&(u+=", ")}),u):a(o)};return yp=l,yp}var bp,U1;function F4(){if(U1)return bp;U1=1;function r(t){this.options=t,!t.deferSetup&&this.setup()}return r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},bp=r,bp}var Sp,G1;function oT(){if(G1)return Sp;G1=1;function r(l,o){var u=0,c=l.length,d;for(u;u<c&&(d=o(l[u],u),d!==!1);u++);}function t(l){return Object.prototype.toString.apply(l)==="[object Array]"}function a(l){return typeof l=="function"}return Sp={isFunction:a,isArray:t,each:r},Sp}var wp,V1;function Q4(){if(V1)return wp;V1=1;var r=F4(),t=oT().each;function a(l,o){this.query=l,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(l);var u=this;this.listener=function(c){u.mql=c.currentTarget||c,u.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(l){var o=new r(l);this.handlers.push(o),this.matches()&&o.on()},removeHandler:function(l){var o=this.handlers;t(o,function(u,c){if(u.equals(l))return u.destroy(),!o.splice(c,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(l){l.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var l=this.matches()?"on":"off";t(this.handlers,function(o){o[l]()})}},wp=a,wp}var xp,W1;function Z4(){if(W1)return xp;W1=1;var r=Q4(),t=oT(),a=t.each,l=t.isFunction,o=t.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return u.prototype={constructor:u,register:function(c,d,h){var p=this.queries,g=h&&this.browserIsIncapable;return p[c]||(p[c]=new r(c,g)),l(d)&&(d={match:d}),o(d)||(d=[d]),a(d,function(y){l(y)&&(y={match:y}),p[c].addHandler(y)}),this},unregister:function(c,d){var h=this.queries[c];return h&&(d?h.removeHandler(d):(h.clear(),delete this.queries[c])),this}},xp=u,xp}var Op,Y1;function K4(){if(Y1)return Op;Y1=1;var r=Z4();return Op=new r,Op}var X1;function J4(){return X1||(X1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=c(Cn()),a=W4(),l=c(X4()),o=c(tT()),u=Ho();function c(D){return D&&D.__esModule?D:{default:D}}function d(D){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},d(D)}function h(){return h=Object.assign?Object.assign.bind():function(D){for(var T=1;T<arguments.length;T++){var F=arguments[T];for(var $ in F)Object.prototype.hasOwnProperty.call(F,$)&&(D[$]=F[$])}return D},h.apply(this,arguments)}function p(D,T){var F=Object.keys(D);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(D);T&&($=$.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),F.push.apply(F,$)}return F}function g(D){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?p(Object(F),!0).forEach(function($){N(D,$,F[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(F)):p(Object(F)).forEach(function($){Object.defineProperty(D,$,Object.getOwnPropertyDescriptor(F,$))})}return D}function y(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}function x(D,T){for(var F=0;F<T.length;F++){var $=T[F];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(D,M($.key),$)}}function E(D,T,F){return T&&x(D.prototype,T),Object.defineProperty(D,"prototype",{writable:!1}),D}function j(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),T&&_(D,T)}function _(D,T){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,I){return $.__proto__=I,$},_(D,T)}function L(D){var T=q();return function(){var $=Z(D),I;if(T){var B=Z(this).constructor;I=Reflect.construct($,arguments,B)}else I=$.apply(this,arguments);return k(this,I)}}function k(D,T){if(T&&(d(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(D)}function G(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function q(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q=function(){return!!D})()}function Z(D){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},Z(D)}function N(D,T,F){return T=M(T),T in D?Object.defineProperty(D,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):D[T]=F,D}function M(D){var T=P(D,"string");return d(T)=="symbol"?T:String(T)}function P(D,T){if(d(D)!="object"||!D)return D;var F=D[Symbol.toPrimitive];if(F!==void 0){var $=F.call(D,T);if(d($)!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(D)}var Q=(0,u.canUseDOM)()&&K4();r.default=function(D){j(F,D);var T=L(F);function F($){var I;return y(this,F),I=T.call(this,$),N(G(I),"innerSliderRefHandler",function(B){return I.innerSlider=B}),N(G(I),"slickPrev",function(){return I.innerSlider.slickPrev()}),N(G(I),"slickNext",function(){return I.innerSlider.slickNext()}),N(G(I),"slickGoTo",function(B){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return I.innerSlider.slickGoTo(B,U)}),N(G(I),"slickPause",function(){return I.innerSlider.pause("paused")}),N(G(I),"slickPlay",function(){return I.innerSlider.autoPlay("play")}),I.state={breakpoint:null},I._responsiveMediaHandlers=[],I}return E(F,[{key:"media",value:function(I,B){Q.register(I,B),this._responsiveMediaHandlers.push({query:I,handler:B})}},{key:"componentDidMount",value:function(){var I=this;if(this.props.responsive){var B=this.props.responsive.map(function(z){return z.breakpoint});B.sort(function(z,S){return z-S}),B.forEach(function(z,S){var te;S===0?te=(0,l.default)({minWidth:0,maxWidth:z}):te=(0,l.default)({minWidth:B[S-1]+1,maxWidth:z}),(0,u.canUseDOM)()&&I.media(te,function(){I.setState({breakpoint:z})})});var U=(0,l.default)({minWidth:B.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(U,function(){I.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(I){Q.unregister(I.query,I.handler)})}},{key:"render",value:function(){var I=this,B,U;this.state.breakpoint?(U=this.props.responsive.filter(function(X){return X.breakpoint===I.state.breakpoint}),B=U[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),U[0].settings)):B=g(g({},o.default),this.props),B.centerMode&&(B.slidesToScroll>1,B.slidesToScroll=1),B.fade&&(B.slidesToShow>1,B.slidesToScroll>1,B.slidesToShow=1,B.slidesToScroll=1);var z=t.default.Children.toArray(this.props.children);z=z.filter(function(X){return typeof X=="string"?!!X.trim():!!X}),B.variableWidth&&(B.rows>1||B.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),B.variableWidth=!1);for(var S=[],te=null,R=0;R<z.length;R+=B.rows*B.slidesPerRow){for(var v=[],C=R;C<R+B.rows*B.slidesPerRow;C+=B.slidesPerRow){for(var W=[],V=C;V<C+B.slidesPerRow&&(B.variableWidth&&z[V].props.style&&(te=z[V].props.style.width),!(V>=z.length));V+=1)W.push(t.default.cloneElement(z[V],{key:100*R+10*C+V,tabIndex:-1,style:{width:"".concat(100/B.slidesPerRow,"%"),display:"inline-block"}}));v.push(t.default.createElement("div",{key:10*R+C},W))}B.variableWidth?S.push(t.default.createElement("div",{key:R,style:{width:te}},v)):S.push(t.default.createElement("div",{key:R},v))}if(B==="unslick"){var H="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:H},z)}else S.length<=B.slidesToShow&&!B.infinite&&(B.unslick=!0);return t.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(B)),S)}}]),F}(t.default.Component)}(hp)),hp}var F1;function eN(){return F1||(F1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(J4());function a(l){return l&&l.__esModule?l:{default:l}}r.default=t.default}(dp)),dp}var tN=eN();const nN=Kn(tN);function Q1(r){const{type:t,className:a,style:l,onClick:o}=r,u=t==="prev"?"chevron_left":"chevron_right";return b.jsx(Qt,{className:`slider-arrow slider-arrow--${t} rounded-circle ${a||""}`,style:l,onClick:o,variant:"primary",children:b.jsx("span",{className:"slider-arrow__icon material-icons",children:u})})}const Z1=300;function rN(){const{campaign:r}=Oo(),t=w.useRef(null),[a,l]=w.useState(null);w.useEffect(()=>{const u=new ResizeObserver(c=>{const{width:d}=c[0].contentRect;l(d)});return t.current&&u.observe(t.current),()=>u.disconnect()},[]);const o=w.useMemo(()=>{if(!r||!a)return null;const u=Math.floor(a/Z1),c=r.rewards.reduce((d,h)=>{const p=h.id==="-1",g=h.amount&&h.amount.startsWith("0 ");return!p&&!g&&d.push(h),d},[]);return c.length===0?null:u>=c.length?b.jsxs(b.Fragment,{children:[b.jsx("h4",{className:"mb-3",children:"Tiers"}),b.jsx(Ne,{direction:"horizontal",className:"justify-content-center align-items-stretch mb-5",gap:3,children:c.map(d=>b.jsx("div",{style:{width:`${Z1}px`},children:b.jsx(M1,{reward:d})}))})]}):b.jsxs(b.Fragment,{children:[b.jsx("h4",{className:"mb-3",children:"Tiers"}),b.jsx(nN,{className:"slider--h100 mb-5",dots:!0,speed:500,slidesToShow:u,slidesToScroll:1,swipeToSlide:!0,dotsClass:"slick-dots slider__dots",prevArrow:b.jsx(Q1,{type:"prev"}),nextArrow:b.jsx(Q1,{type:"next"}),children:c.map(d=>b.jsx("div",{className:"px-1",children:b.jsx(M1,{reward:d})}))})]})},[r,a]);return b.jsxs(Ne,{ref:t,className:"w-100 about-campaign",children:[o,r?b.jsx("div",{className:"mb-4 about-campaign__summary",dangerouslySetInnerHTML:{__html:r.summary||""}}):null]})}function aN(){const r=Qp(),{campaign:t}=Oo(),[a,l]=w.useState(null);return w.useEffect(()=>{if(!t){l(null);return}let o="";t.postCount>0?o="posts":t.productCount>0?o="shop":t.mediaCount>0?o="media":o="about",l(`${t.baseUrl}/${o}`)},[t]),w.useEffect(()=>{a&&(async()=>await r(a,{replace:!0}))()},[a,r]),null}function iN(r){return Reflect.has(r,"replies")}function lN(r){var a;const{comment:t}=r;return b.jsxs(Ne,{children:[b.jsxs(Ne,{direction:"horizontal",className:"mb-2",gap:3,children:[b.jsxs("div",{children:[b.jsx("span",{className:"fw-bolder me-2",children:((a=t.commenter)==null?void 0:a.fullName)||""}),t.isByCreator?b.jsx(Ii,{bg:"secondary",children:"CREATOR"}):null]}),b.jsx("span",{className:"text-body-secondary",children:t.createdAt?new Date(t.createdAt).toLocaleString():""})]}),b.jsx("div",{children:t.body}),iN(t)&&t.replies.length>0?b.jsx("div",{className:"border-start border-secondary mt-2 mb-1 pt-3 pb-2",style:{paddingLeft:"1em"},children:b.jsx(sT,{comments:t.replies})}):null]})}function sT(r){const{comments:t}=r;if(t.length===0)return null;const a=t.map(l=>b.jsx(lN,{comment:l}));return b.jsx(Ne,{gap:4,children:a})}const oN=["post_types","is_viewable","tier_ids","collection_id","sort_by","date_published","search","tag_id"];function K1(){const r=new URL(window.location.href).searchParams,t=new URLSearchParams;for(const a of oN)r.has(a)&&t.set(a,r.get(a));return t.toString()}const sN=(r,t)=>r&&t&&r.id===t.id?r:t,Tp=w.forwardRef(({children:r,settings:t,...a},l)=>b.jsx(On,{fluid:!0,ref:l,...a,children:b.jsx(vt,{className:"justify-content-center",children:b.jsx(lt,{lg:8,md:10,sm:12,className:`p-0 post-content__column mw-${t.maxContentWidth.toLowerCase()}`,children:r})})}));function uN(){const{id:r}=To(),{api:t}=er(),{setTitle:a}=Po(),{settings:l}=Ar(),{scrollTo:o}=zo(),[u,c]=w.useReducer(sN,null),[d,h]=w.useState({previous:null,next:null}),p=w.useRef(null),g=w.useRef(null),y=w.useRef(null),[x,E]=w.useState(!1);w.useEffect(()=>{const L=r&&r.includes("-")?r.split("-").pop():r;if(!L)return;const k=new AbortController;return(async()=>{const{post:G,previous:q,next:Z}=await t.getPost(L,K1());k.signal.aborted||(c(G),h({previous:q,next:Z}))})(),()=>k.abort()},[t,r]),w.useEffect(()=>{a((u==null?void 0:u.title)||null)},[a,u]);const j=w.useCallback(()=>{if(!d.previous&&!d.next)return;let L=72;const k=window.innerHeight;if(p.current){const G=p.current.getBoundingClientRect();L+=G.bottom}g.current&&(L+=g.current.scrollHeight),E(L>k)},[d,r]);w.useEffect(()=>(j(),window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)),[j]);const _=w.useMemo(()=>{const{previous:L,next:k}=d,G=K1(),q=L?b.jsx(cu,{to:`${fo(L)}${G?"?"+G:""}`,className:`post-nav__previous ${k?"":"post-nav__previous--fill"}`,onClick:()=>{h({previous:null,next:null}),o(0,0),c(L)},children:b.jsx("div",{className:"post-nav__previous-label",children:L.title})}):null,Z=k?b.jsx(cu,{to:`${fo(k)}${G?"?"+G:""}`,className:`post-nav__next ${L?"":"post-nav__next--fill"}`,onClick:()=>{h({previous:null,next:null}),o(0,0),c(k)},children:b.jsx("div",{className:"post-nav__next-label",children:k.title})}):null;if(q||Z){const N=L&&k?"justify-content-between":k?"justify-content-end":"",M=x?"fixed":"";return b.jsx(Tp,{ref:y,settings:l,className:`post-nav__wrapper ${M}`,children:b.jsxs(Ne,{direction:"horizontal",className:`post-nav mt-2 mb-3 ${N}`,children:[q,Z]})})}return null},[d,o,x]);return u?b.jsxs(b.Fragment,{children:[b.jsx(Tp,{ref:p,settings:l,children:b.jsx("div",{className:!_||x?"py-4":"pt-4",children:b.jsx(FO,{post:u,showCampaign:!0})})}),!x&&_,u.comments&&b.jsxs(Tp,{ref:g,settings:l,className:"pt-2 pb-4 px-4",children:[b.jsxs("h5",{className:"mb-3",children:[u.commentCount," ",u.comments.length>1?"comments":"comment"]}),b.jsx(sT,{comments:u.comments})]}),x&&_]}):null}const cN=(r,t)=>r&&t&&JSON.stringify(r.sort())===JSON.stringify(t.sort())?r:t;function fN(){const{settings:r,options:t}=Ar(),[a,l]=w.useReducer(cN,null);return w.useEffect(()=>{var u;const o=((u=t.themes.find(c=>c.value===r.theme))==null?void 0:u.stylesheets)||null;l(o)},[r,t]),w.useEffect(()=>{if(!a||a.length===0)return;document.querySelectorAll('link[id^="theme-stylesheet-"]').forEach(u=>u.remove()),a.forEach((u,c)=>{const d=document.createElement("link");d.id=`theme-stylesheet-${c}`,d.rel="stylesheet",d.href=u,document.head.prepend(d)})},[a]),null}function dN(r){return{filter:null,page:null,itemsPerPage:r.galleryItemsPerPage}}const hN=(r,t)=>{const a=Er(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Zn(a,r)?r:a};function pN(){const r={singular:"media item",plural:"media items"},{api:t}=er(),{settings:a}=Ar(),{scrollTo:l}=zo(),[o,u]=w.useReducer(hN,dN(a)),{campaign:c}=Oo(),[d,h]=w.useState(null),[p,g]=w.useState(null),[y,x]=Co(),E=dw(),j=w.useRef(!0);w.useEffect(()=>{if(g(null),!c)return;const k=new AbortController;return(async()=>{const G=await t.getMediaFilterOptions(c.id);k.signal.aborted||g(G)})(),()=>k.abort()},[t,c]);const _=w.useCallback((k,G=!1)=>{x(()=>{const q=new URLSearchParams(window.location.search);return q.set("p",String(k)),q},{replace:G})},[]);w.useEffect(()=>{E===Xp.Pop&&(j.current=!0)},[E]),w.useEffect(()=>{const{filter:k,page:G}=o;if(!c||!k||G===null)return;const q=new AbortController;return(async()=>{const Z=await t.getMediaList({campaign:c,...o,filter:k,page:G});q.signal.aborted||h(Z)})(),()=>q.abort()},[t,c,o]),w.useEffect(()=>{const k=Number(y.get("p"))||1;u({page:k}),l(0,0)},[y,l]);const L=w.useCallback(k=>{j.current?(j.current=!1,u({filter:k})):u({filter:k,page:1})},[]);if(w.useEffect(()=>{u({itemsPerPage:a.galleryItemsPerPage})},[a.galleryItemsPerPage]),w.useEffect(()=>{d&&d.items.length===0&&d.total>0&&_(1,!0)},[d,_]),w.useEffect(()=>{if(o.page===null)return;const k=new URLSearchParams(window.location.search);(Number(k.get("p"))||1)!==o.page&&_(o.page,!0)},[o,_]),!(!c||!p))return b.jsxs("div",{className:"w-100",children:[b.jsx(On,{fluid:!0,className:"p-0",children:b.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[b.jsx(lt,{className:"w-auto flex-fill",children:d&&d.items.length>0&&o.page?b.jsx(Du,{total:d.total,page:o.page,itemsPerPage:o.itemsPerPage,subject:r}):null}),b.jsx(lt,{className:"w-auto d-flex justify-content-end",children:b.jsx(QO,{options:p,onFilter:L})})]})}),d&&d.items.length>0?b.jsx(Wp,{items:d.items}):null,d&&d.items.length===0?b.jsx(it,{className:"my-4",style:{height:"10em"},children:b.jsx(it.Body,{className:"d-flex justify-content-center align-items-center",children:"No media"})}):null,d?b.jsx(Lu,{totalItems:d.total,itemsPerPage:o.itemsPerPage,onChange:_}):null]})}function mN(){const{id:r}=To(),{api:t}=er(),{setTitle:a}=Po(),[l,o]=w.useState(null);return w.useEffect(()=>{const u=r&&r.includes("-")?r.split("-").pop():r;if(!u)return;const c=new AbortController;return(async()=>{const d=await t.getProduct(u);c.signal.aborted||o(d)})(),()=>c.abort()},[t,r]),w.useEffect(()=>{a((l==null?void 0:l.name)||null)},[a,l]),l?b.jsx(On,{fluid:!0,children:b.jsx(vt,{className:"justify-content-center",children:b.jsx(lt,{lg:8,md:10,sm:12,children:b.jsx("div",{className:"my-4",children:b.jsx(KO,{product:l,showCampaign:!0})})})})}):null}const gN={numPosts:"article"};function vN(r){var l,o;const{collection:t}=r,a=(o=(l=t.thumbnail)==null?void 0:l.downloaded)!=null&&o.path?t.thumbnail.id:null;return b.jsx(it,{className:"collection-card mb-3",children:b.jsxs(it.Body,{className:"d-flex p-0",children:[a&&b.jsx("div",{className:"collection-card__thumbnail",children:b.jsx(ca,{mediaId:a})}),b.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[b.jsx("h6",{className:"collection-card__title",children:b.jsx(on,{to:`/collections/${t.id}`,children:t.title})}),t.description?b.jsx("div",{className:"collection-card__description",children:t.description}):null,b.jsx(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:b.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[b.jsx("span",{className:"collection-card__count-icon material-icons-outlined",children:gN.numPosts}),b.jsx("span",{className:"collection-card__count-text",children:t.numPosts||0})]},`${t.id}:numPosts`)})]})]})})}function yN(r){return{search:"",sortBy:"last_updated",page:null,itemsPerPage:r.listItemsPerPage}}const bN=(r,t)=>{const a=Er(r);return t.search!==void 0&&(a.search=t.search),t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Zn(a,r)?r:a};function SN(){const{api:r}=er(),{settings:t}=Ar(),{scrollTo:a}=zo(),[l,o]=w.useReducer(bN,yN(t)),[u,c]=w.useState(null),[d,h]=Co(),{campaign:p}=Oo(),g=w.useCallback(E=>{o({search:E})},[]);w.useEffect(()=>{const{sortBy:E,page:j}=l;if(!p||E===null||j===null)return;const _=new AbortController;return(async()=>{const L=await r.getCollectionList({...l,campaign:p.id,sortBy:E,page:j});_.signal.aborted||c(L)})(),()=>_.abort()},[r,l]),w.useEffect(()=>{const E=Number(d.get("p"))||1;o({page:E}),a(0,0)},[d,a]),w.useEffect(()=>{o({itemsPerPage:t.listItemsPerPage})},[t.listItemsPerPage]);const y=(E,j=!1)=>{h(_=>{const L=new URLSearchParams(_);return L.set("p",String(E)),L},{replace:j})};if(w.useEffect(()=>{u&&u.collections.length===0&&u.total>0&&y(1,!0)},[u,y]),!u)return;const x={singular:"collection",plural:"collections"};if(l.search){const E=` with "${l.search}"`;x.singular+=E,x.plural+=E}return b.jsx(On,{fluid:!0,children:b.jsx(vt,{className:"g-0 justify-content-center",children:b.jsxs(lt,{md:10,sm:12,className:`collection-list mw-${t.maxContentWidth.toLowerCase()}`,children:[b.jsxs(On,{fluid:!0,className:"p-0",children:[b.jsx(vt,{className:"mb-3 g-0 justify-content-center align-items-center",children:b.jsx(lt,{className:"w-auto flex-fill",children:b.jsx(JO,{placeholder:"Search collections",onConfirm:g})})}),b.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[b.jsx(lt,{className:"w-auto flex-fill",children:l.page&&b.jsx(Du,{total:u.total,page:l.page,itemsPerPage:l.itemsPerPage,subject:x})}),b.jsx(lt,{className:"w-auto d-flex justify-content-end",children:b.jsxs(Mt.Select,{size:"sm",className:"w-auto",onChange:E=>o({sortBy:E.currentTarget.value}),children:[b.jsx("option",{value:"a-z",selected:l.sortBy==="a-z",children:"A-Z"}),b.jsx("option",{value:"z-a",selected:l.sortBy==="z-a",children:"Z-A"}),b.jsx("option",{value:"last_created",selected:l.sortBy==="last_created",children:"Last created"}),b.jsx("option",{value:"last_updated",selected:l.sortBy==="last_updated",children:"Last updated"})]})})]})]}),b.jsx("div",{className:"mb-4",children:u.collections.map(E=>b.jsx(vN,{collection:E}))}),b.jsx(Lu,{totalItems:u.total,itemsPerPage:l.itemsPerPage,onChange:y})]})})})}function wN({collection:r}){var o,u;const{settings:t}=Ar(),a=(u=(o=r.thumbnail)==null?void 0:o.downloaded)!=null&&u.path?r.thumbnail.id:null,l=!r.description;return b.jsx(it,{className:`collection-banner w-100 mb-3 mw-${t.maxContentWidth.toLowerCase()} ${l?"collection-banner--nodesc":""}`,children:b.jsx(XO,{maxHeight:130,children:b.jsxs(it.Body,{className:"d-flex p-0",children:[a&&b.jsx("div",{className:"collection-banner__thumbnail",children:b.jsx(ca,{mediaId:a})}),b.jsxs(Ne,{className:"flex-fill overflow-hidden px-3",children:[b.jsx("div",{className:"collection-banner__title d-flex",children:r.title}),r.description&&b.jsx("div",{className:"collection-banner__description",children:r.description})]})]})})})}function xN(){const{id:r}=To();if(!r)return null;const{api:t}=er(),[a,l]=w.useState(null),[o,u]=w.useState(null);return w.useEffect(()=>{const c=new AbortController;return(async()=>{const{campaignId:d,collection:h}=await t.getCollection(r),p=await t.getCampaign({id:d,withCounts:!0});c.signal.aborted||(l({...p,baseUrl:Ia(p)}),u(h))})(),()=>c.abort()},[t,r]),a?b.jsxs(On,{fluid:!0,className:"p-0",children:[b.jsx(vt,{className:"g-0",children:b.jsx(lt,{children:b.jsx(eT,{campaign:a})})}),b.jsx(vt,{className:"justify-content-center g-0",children:b.jsxs(lt,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:[o&&b.jsx(wN,{collection:o}),b.jsx(Jp,{})]})})]}):null}function ON(){const r=b.jsxs(b.Fragment,{children:[b.jsx($t,{index:!0,element:b.jsx(aN,{})}),b.jsx($t,{path:"posts",element:b.jsx(fp,{type:"post"})}),b.jsx($t,{path:"collections",element:b.jsx(SN,{})}),b.jsx($t,{path:"shop",element:b.jsx(fp,{type:"product"})}),b.jsx($t,{path:"media",element:b.jsx(pN,{})}),b.jsx($t,{path:"about",element:b.jsx(rN,{})})]});return b.jsx(iR,{children:b.jsxs(IM,{children:[b.jsx(fN,{}),b.jsx(YM,{children:b.jsx(qM,{children:b.jsx(T2,{children:b.jsxs($t,{path:"/",element:b.jsx(QM,{}),children:[b.jsx($t,{index:!0,element:b.jsx(b1,{})}),b.jsx($t,{path:"creators",element:b.jsx(b1,{})}),b.jsx($t,{path:"campaigns/:id",element:b.jsx(A1,{}),children:r}),b.jsx($t,{path:"posts/:id",element:b.jsx(uN,{})}),b.jsx($t,{path:"products/:id",element:b.jsx(mN,{})}),b.jsx($t,{path:"collections/:id",element:b.jsx(xN,{}),children:b.jsx($t,{index:!0,element:b.jsx(fp,{type:"post",collection:!0})})}),b.jsx($t,{path:":vanity",element:b.jsx(A1,{}),children:r})]})})})})]})})}CC.createRoot(document.getElementById("root")).render(b.jsx(F2,{children:b.jsx(ON,{})}));