vendor: 4,351 bytes, lines 1-9
1var yp=t=>{throw TypeError(t)};var Rc=(t,e,n)=>e.has(t)||yp("Cannot "+n);var C=(t,e,n)=>(Rc(t,e,"read from private field"),n?n.call(t):e.get(t)),ue=(t,e,n)=>e.has(t)?yp("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Z=(t,e,n,r)=>(Rc(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),qe=(t,e,n)=>(Rc(t,e,"access private method"),n);var pa=(t,e,n,r)=>({set _(s){Z(t,e,s,n)},get _(){return C(t,e,r)}});function Jb(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function cy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uy={exports:{}},Jl={},dy={exports:{}},ie={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Go=Symbol.for("react.element"),Gb=Symbol.for("react.portal"),Qb=Symbol.for("react.fragment"),Zb=Symbol.for("react.strict_mode"),Xb=Symbol.for("react.profiler"),e0=Symbol.for("react.provider"),t0=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),r0=Symbol.for("react.suspense"),s0=Symbol.for("react.memo"),i0=Symbol.for("react.lazy"),gp=Symbol.iterator;function o0(t){return t===null||typeof t!="object"?null:(t=gp&&t[gp]||t["@@iterator"],typeof t=="function"?t:null)}var hy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},py=Object.assign,fy={};function Ti(t,e,n){this.props=t,this.context=e,this.refs=fy,this.updater=n||hy}Ti.prototype.isReactComponent={};Ti.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ti.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function my(){}my.prototype=Ti.prototype;function Kd(t,e,n){this.props=t,this.context=e,this.refs=fy,this.updater=n||hy}var qd=Kd.prototype=new my;qd.constructor=Kd;py(qd,Ti.prototype);qd.isPureReactComponent=!0;var vp=Array.isArray,yy=Object.prototype.hasOwnProperty,Vd={current:null},gy={key:!0,ref:!0,__self:!0,__source:!0};function vy(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)yy.call(e,r)&&!gy.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Go,type:t,key:i,ref:o,props:s,_owner:Vd.current}}function a0(t,e){return{$$typeof:Go,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Yd(t){return typeof t=="object"&&t!==null&&t.$$typeof===Go}function l0(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var wp=/\/+/g;function Oc(t,e){return typeof t=="object"&&t!==null&&t.key!=null?l0(""+t.key):e.toString(36)}function za(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Go:case Gb:o=!0}}
vendor: 4,573 bytes, lines 9-17
9if(o)return o=t,s=s(o),t=r===""?"."+Oc(o,0):r,vp(s)?(n="",t!=null&&(n=t.replace(wp,"$&/")+"/"),za(s,e,n,"",function(u){return u})):s!=null&&(Yd(s)&&(s=a0(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(wp,"$&/")+"/")+t)),e.push(s)),1;if(o=0,r=r===""?".":r+":",vp(t))for(var a=0;a<t.length;a++){i=t[a];var l=r+Oc(i,a);o+=za(i,e,n,l,s)}else if(l=o0(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=r+Oc(i,a++),o+=za(i,e,n,l,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function fa(t,e,n){if(t==null)return t;var r=[],s=0;return za(t,r,"","",function(i){return e.call(n,i,s++)}),r}function c0(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var nt={current:null},Ka={transition:null},u0={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Ka,ReactCurrentOwner:Vd};function wy(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:fa,forEach:function(t,e,n){fa(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return fa(t,function(){e++}),e},toArray:function(t){return fa(t,function(e){return e})||[]},only:function(t){if(!Yd(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ie.Component=Ti;ie.Fragment=Qb;ie.Profiler=Xb;ie.PureComponent=Kd;ie.StrictMode=Zb;ie.Suspense=r0;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u0;ie.act=wy;ie.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=py({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=Vd.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)yy.call(e,l)&&!gy.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Go,type:t.type,key:s,ref:i,props:r,_owner:o}};ie.createContext=function(t){return t={$$typeof:t0,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:e0,_context:t},t.Consumer=t};ie.createElement=vy;ie.createFactory=function(t){var e=vy.bind(null,t);return e.type=t,e};ie.createRef=function(){return{current:null}};ie.forwardRef=function(t){return{$$typeof:n0,render:t}};ie.isValidElement=Yd;ie.lazy=function(t){return{$$typeof:i0,_payload:{_status:-1,_result:t},_init:c0}};ie.memo=function(t,e){return{$$typeof:s0,type:t,compare:e===void 0?null:e}};ie.startTransition=function(t){var e=Ka.transition;Ka.transition={};try{t()}finally{Ka.transition=e}};ie.unstable_act=wy;ie.useCallback=function(t,e){return nt.current.useCallback(t,e)};ie.useContext=function(t){return nt.current.useContext(t)};ie.useDebugValue=function(){};ie.useDeferredValue=function(t){return nt.current.useDeferredValue(t)};ie.useEffect=function(t,e){return nt.current.useEffect(t,e)};ie.useId=function(){return nt.current.useId()};ie.useImperativeHandle=function(t,e,n){return nt.current.useImperativeHandle(t,e,n)};ie.useInsertionEffect=function(t,e){return nt.current.useInsertionEffect(t,e)};ie.useLayoutEffect=function(t,e){return nt.current.useLayoutEffect(t,e)};ie.useMemo=function(t,e){return nt.current.useMemo(t,e)};ie.useReducer=function(t,e,n){return nt.current.useReducer(t,e,n)};ie.useRef=function(t){return nt.current.useRef(t)};ie.useState=function(t){return nt.current.useState(t)};ie.useSyncExternalStore=function(t,e,n){return nt.current.useSyncExternalStore(t,e,n)};ie.useTransition=function(){return nt.current.useTransition()};ie.version="18.3.1";dy.exports=ie;var x=dy.exports;const I=cy(x),by=Jb({__proto__:null,default:I},[x]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var d0=x,h0=Symbol.for("react.element"),p0=Symbol.for("react.fragment"),f0=Object.prototype.hasOwnProperty,m0=d0.__SECRET_INT
vendor: 11,442 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y0={key:!0,ref:!0,__self:!0,__source:!0};function xy(t,e,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)f0.call(e,r)&&!y0.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:h0,type:t,key:i,ref:o,props:s,_owner:m0.current}}Jl.Fragment=p0;Jl.jsx=xy;Jl.jsxs=xy;uy.exports=Jl;var c=uy.exports,ky={exports:{}},xt={},Sy={exports:{}},_y={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(t){function e(E,j){var D=E.length;E.push(j);e:for(;0<D;){var ee=D-1>>>1,K=E[ee];if(0<s(K,j))E[ee]=j,E[D]=K,D=ee;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var j=E[0],D=E.pop();if(D!==j){E[0]=D;e:for(var ee=0,K=E.length,se=K>>>1;ee<se;){var ae=2*(ee+1)-1,Ne=E[ae],Ke=ae+1,he=E[Ke];if(0>s(Ne,D))Ke<K&&0>s(he,Ne)?(E[ee]=he,E[Ke]=D,ee=Ke):(E[ee]=Ne,E[ae]=D,ee=ae);else if(Ke<K&&0>s(he,D))E[ee]=he,E[Ke]=D,ee=Ke;else break e}}return j}function s(E,j){var D=E.sortIndex-j.sortIndex;return D!==0?D:E.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,h=null,f=3,p=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(E){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=E)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=n(u)}}function k(E){if(v=!1,y(E),!w)if(n(l)!==null)w=!0,V(S);else{var j=n(u);j!==null&&X(k,j.startTime-E)}}function S(E,j){w=!1,v&&(v=!1,g(A),A=-1),p=!0;var D=f;try{for(y(j),h=n(l);h!==null&&(!(h.expirationTime>j)||E&&!q());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,f=h.priorityLevel;var K=ee(h.expirationTime<=j);j=t.unstable_now(),typeof K=="function"?h.callback=K:h===n(l)&&r(l),y(j)}else r(l);h=n(l)}if(h!==null)var se=!0;else{var ae=n(u);ae!==null&&X(k,ae.startTime-j),se=!1}return se}finally{h=null,f=D,p=!1}}var _=!1,T=null,A=-1,N=5,O=-1;function q(){return!(t.unstable_now()-O<N)}function H(){if(T!==null){var E=t.unstable_now();O=E;var j=!0;try{j=T(!0,E)}finally{j?G():(_=!1,T=null)}}else _=!1}var G;if(typeof m=="function")G=function(){m(H)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,oe=L.port2;L.port1.onmessage=H,G=function(){oe.postMessage(null)}}else G=function(){b(H,0)};function V(E){T=E,_||(_=!0,G())}function X(E,j){A=b(function(){E(t.unstable_now())},j)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(E){E.callback=null},t.unstable_continueExecution=function(){w||p||(w=!0,V(S))},t.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<E?Math.floor(1e3/E):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(E){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var D=f;f=j;try{return E()}finally{f=D}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(E,j){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var D=f;f=E;try{return j()}finally{f=D}},t.unstable_scheduleCallback=function(E,j,D){var ee=t.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?ee+D:ee):D=ee,E){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=D+K,E={id:d++,callback:j,priorityLevel:E,startTime:D,expirationTime:K,sortIndex:-1},D>ee?(E.sortIndex=D,e(u,E),n(l)===null&&E===n(u)&&(v?(g(A),A=-1):v=!0,X(k,D-ee))):(E.sortIndex=K,e(l,E),w||p||(w=!0,V(S))),E},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(E){var j=f;return function(){var D=f;f=j;try{return E.apply(this,arguments)}finally{f=D}}}})(_y);Sy.exports=_y;var g0=Sy.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var v0=x,wt=g0;function P(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ty=new Set,mo={};function ds(t,e){ui(t,e),ui(t+"Capture",e)}function ui(t,e){for(mo[t]=e,t=0;t<e.length;t++)Ty.add(e[t])}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=Object.prototype.hasOwnProperty,w0=/^[: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]*$/,bp={},xp={};function b0(t){return wu.call(xp,t)?!0:wu.call(bp,t)?!1:w0.test(t)?xp[t]=!0:(bp[t]=!0,!1)}function x0(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k0(t,e,n,r){if(e===null||typeof e>"u"||x0(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function rt(t,e,n,r,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ze[t]=new rt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ze[e]=new rt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ze[t]=new rt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ze[t]=new rt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ze[t]=new rt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ze[t]=new rt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ze[t]=new rt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ze[t]=new rt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ze[t]=new rt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Jd=/[\-:]([a-z])/g;function Gd(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Jd,Gd);ze[e]=new rt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Jd,Gd);ze[e]=new rt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Jd,Gd);ze[e]=new rt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ze[t]=new rt(t,1,!1,t.toLowerCase(),null,!1,!1)});ze.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ze[t]=new rt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Qd(t,e,n,r){var s=ze.hasOwnProperty(e)?ze[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(k0(e,n,s,r)&&(n=null),r||s===null?b0(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Fn=v0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ma=Symbol.for("react.element"),Os=Symbol.for("react.portal"),Is=Symbol.for("react.fragment"),Zd=Symbol.for("react.strict_mode"),bu=Symbol.for("react.profiler"),Cy=Symbol.for("react.provider"),Ey=Symbol.for("react.context"),Xd=Symbol.for("react.forward_ref"),xu=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),eh=Symbol.for("react.memo"),Xn=Symbol.for("react.lazy"),Ay=Symbol.for("react.offscreen"),kp=Symbol.iterator;function Hi(t){return t===null||typeof t!="object"?null:(t=kp&&t[kp]||t["@@iterator"],typeof t=="function"?t:null)}var Te=Object.assign,Ic;function Vi(t){if(Ic===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ic=e&&e[1]||""}return` 34`+Ic+t}var Lc=!1;function Hc(t,e){if(!t||Lc)return"";Lc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}
vendor: 16,752 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),i=r.stack.split(` 36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 37`+s[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Lc=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Vi(t):""}function S0(t){switch(t.tag){case 5:return Vi(t.type);case 16:return Vi("Lazy");case 13:return Vi("Suspense");case 19:return Vi("SuspenseList");case 0:case 2:case 15:return t=Hc(t.type,!1),t;case 11:return t=Hc(t.type.render,!1),t;case 1:return t=Hc(t.type,!0),t;default:return""}}function Su(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Is:return"Fragment";case Os:return"Portal";case bu:return"Profiler";case Zd:return"StrictMode";case xu:return"Suspense";case ku:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Ey:return(t.displayName||"Context")+".Consumer";case Cy:return(t._context.displayName||"Context")+".Provider";case Xd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case eh:return e=t.displayName||null,e!==null?e:Su(t.type)||"Memo";case Xn:e=t._payload,t=t._init;try{return Su(t(e))}catch{}}return null}function _0(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Su(e);case 8:return e===Zd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Cr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function jy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function T0(t){var e=jy(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ya(t){t._valueTracker||(t._valueTracker=T0(t))}function Py(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=jy(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ol(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _u(t,e){var n=e.checked;return Te({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Sp(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Cr(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Ny(t,e){e=e.checked,e!=null&&Qd(t,"checked",e,!1)}function Tu(t,e){Ny(t,e);var n=Cr(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Cu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Cu(t,e.type,Cr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function _p(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Cu(t,e,n){(e!=="number"||ol(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Yi=Array.isArray;function Vs(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Cr(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Eu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(P(91));return Te({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Tp(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(P(92));if(Yi(n)){if(1<n.length)throw Error(P(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Cr(n)}}function Ry(t,e){var n=Cr(e.value),r=Cr(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Cp(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Oy(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Au(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Oy(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ga,Iy=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(ga=ga||document.createElement("div"),ga.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ga.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function yo(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var eo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C0=["Webkit","ms","Moz","O"];Object.keys(eo).forEach(function(t){C0.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),eo[e]=eo[t]})});function Ly(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||eo.hasOwnProperty(t)&&eo[t]?(""+e).trim():e+"px"}function Hy(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ly(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var E0=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ju(t,e){if(e){if(E0[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(P(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(P(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(P(61))}if(e.style!=null&&typeof e.style!="object")throw Error(P(62))}}function Pu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Nu=null;function th(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ru=null,Ys=null,Js=null;function Ep(t){if(t=Xo(t)){if(typeof Ru!="function")throw Error(P(280));var e=t.stateNode;e&&(e=ec(e),Ru(t.stateNode,t.type,e))}}function My(t){Ys?Js?Js.push(t):Js=[t]:Ys=t}function Dy(){if(Ys){var t=Ys,e=Js;if(Js=Ys=null,Ep(t),e)for(t=0;t<e.length;t++)Ep(e[t])}}function Fy(t,e){return t(e)}function $y(){}var Mc=!1;function Wy(t,e,n){if(Mc)return t(e,n);Mc=!0;try{return Fy(t,e,n)}finally{Mc=!1,(Ys!==null||Js!==null)&&($y(),Dy())}}function go(t,e){var n=t.stateNode;if(n===null)return null;var r=ec(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(P(231,e,typeof n));return n}var Ou=!1;if(Nn)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){Ou=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{Ou=!1}function A0(t,e,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var to=!1,al=null,ll=!1,Iu=null,j0={onError:function(t){to=!0,al=t}};function P0(t,e,n,r,s,i,o,a,l){to=!1,al=null,A0.apply(j0,arguments)}function N0(t,e,n,r,s,i,o,a,l){if(P0.apply(this,arguments),to){if(to){var u=al;to=!1,al=null}else throw Error(P(198));ll||(ll=!0,Iu=u)}}function hs(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function By(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Ap(t){if(hs(t)!==t)throw Error(P(188))}function R0(t){var e=t.alternate;if(!e){if(e=hs(t),e===null)throw Error(P(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Ap(s),t;if(i===r)return Ap(s),e;i=i.sibling}throw Error(P(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?t:e}function Uy(t){return t=R0(t),t!==null?zy(t):null}function zy(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=zy(t);if(e!==null)return e;t=t.sibling}return null}var Ky=wt.unstable_scheduleCallback,jp=wt.unstable_cancelCallback,O0=wt.unstable_shouldYield,I0=wt.unstable_requestPaint,Pe=wt.unstable_now,L0=wt.unstable_getCurrentPriorityLevel,nh=wt.unstable_ImmediatePriority,qy=wt.unstable_UserBlockingPriority,cl=wt.unstable_NormalPriority,H0=wt.unstable_LowPriority,Vy=wt.unstable_IdlePriority,Gl=null,pn=null;function M0(t){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Gl,t,void 0,(t.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:$0,D0=Math.log,F0=Math.LN2;function $0(t){return t>>>=0,t===0?32:31-(D0(t)/F0|0)|0}var va=64,wa=4194304;function Ji(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ul(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ji(a):(i&=o,i!==0&&(r=Ji(i)))}else o=n&~s,o!==0?r=Ji(o):i!==0&&(r=Ji(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Jt(e),s=1<<n,r|=t[n],e&=~s;return r}function W0(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function B0(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-Jt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=W0(a,e)):l<=e&&(t.expiredLanes|=a),i&=~a}}function Lu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Yy(){var t=va;return va<<=1,!(va&4194240)&&(va=64),t}function Dc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Qo(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Jt(e),t[e]=n}function U0(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-Jt(n),i=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~i}}function rh(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Jt(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var pe=0;function Jy(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Gy,sh,Qy,Zy,Xy,Hu=!1,ba=[],yr=null,gr=null,vr=null,vo=new Map,wo=new Map,nr=[],z0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pp(t,e){switch(t){case"focusin":case"focusout":yr=null;break;case"dragenter":case"dragleave":gr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":vo.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(e.pointerId)}}function Di(t,e,n,r,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},e!==null&&(e=Xo(e),e!==null&&sh(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function K0(t,e,n,r,s){switch(e){case"focusin":return yr=Di(yr,t,e,n,r,s),!0;case"dragenter":return gr=Di(gr,t,e,n,r,s),!0;case"mouseover":return vr=Di(vr,t,e,n,r,s),!0;case"pointerover":var i=s.pointerId;return vo.set(i,Di(vo.get(i)||null,t,e,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,wo.set(i,Di(wo.get(i)||null,t,e,n,r,s)),!0}return!1}function eg(t){var e=qr(t.target);if(e!==null){var n=hs(e);if(n!==null){if(e=n.tag,e===13){if(e=By(n),e!==null){t.blockedOn=e,Xy(t.priority,function(){Qy(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qa(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Mu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);Nu=r,n.target.dispatchEvent(r),Nu=null}else return e=Xo(n),e!==null&&sh(e),t.blockedOn=n,!1;e.shift()}return!0}function Np(t,e,n){qa(t)&&n.delete(e)}function q0(){Hu=!1,yr!==null&&qa(yr)&&(yr=null),gr!==null&&qa(gr)&&(gr=null),vr!==null&&qa(vr)&&(vr=null),vo.forEach(Np),wo.forEac
vendor: 11,826 bytes, line 37
37h(Np)}function Fi(t,e){t.blockedOn===e&&(t.blockedOn=null,Hu||(Hu=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,q0)))}function bo(t){function e(s){return Fi(s,t)}if(0<ba.length){Fi(ba[0],t);for(var n=1;n<ba.length;n++){var r=ba[n];r.blockedOn===t&&(r.blockedOn=null)}}for(yr!==null&&Fi(yr,t),gr!==null&&Fi(gr,t),vr!==null&&Fi(vr,t),vo.forEach(e),wo.forEach(e),n=0;n<nr.length;n++)r=nr[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<nr.length&&(n=nr[0],n.blockedOn===null);)eg(n),n.blockedOn===null&&nr.shift()}var Gs=Fn.ReactCurrentBatchConfig,dl=!0;function V0(t,e,n,r){var s=pe,i=Gs.transition;Gs.transition=null;try{pe=1,ih(t,e,n,r)}finally{pe=s,Gs.transition=i}}function Y0(t,e,n,r){var s=pe,i=Gs.transition;Gs.transition=null;try{pe=4,ih(t,e,n,r)}finally{pe=s,Gs.transition=i}}function ih(t,e,n,r){if(dl){var s=Mu(t,e,n,r);if(s===null)Yc(t,e,r,hl,n),Pp(t,r);else if(K0(s,t,e,n,r))r.stopPropagation();else if(Pp(t,r),e&4&&-1<z0.indexOf(t)){for(;s!==null;){var i=Xo(s);if(i!==null&&Gy(i),i=Mu(t,e,n,r),i===null&&Yc(t,e,r,hl,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Yc(t,e,r,null,n)}}var hl=null;function Mu(t,e,n,r){if(hl=null,t=th(r),t=qr(t),t!==null)if(e=hs(t),e===null)t=null;else if(n=e.tag,n===13){if(t=By(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return hl=t,null}function tg(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(L0()){case nh:return 1;case qy:return 4;case cl:case H0:return 16;case Vy:return 536870912;default:return 16}default:return 16}}var dr=null,oh=null,Va=null;function ng(){if(Va)return Va;var t,e=oh,n=e.length,r,s="value"in dr?dr.value:dr.textContent,i=s.length;for(t=0;t<n&&e[t]===s[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===s[i-r];r++);return Va=s.slice(t,1<r?1-r:void 0)}function Ya(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function xa(){return!0}function Rp(){return!1}function kt(t){function e(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xa:Rp,this.isPropagationStopped=Rp,this}return Te(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xa)},persist:function(){},isPersistent:xa}),e}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ah=kt(Ci),Zo=Te({},Ci,{view:0,detail:0}),J0=kt(Zo),Fc,$c,$i,Ql=Te({},Zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$i&&($i&&t.type==="mousemove"?(Fc=t.screenX-$i.screenX,$c=t.screenY-$i.screenY):$c=Fc=0,$i=t),Fc)},movementY:function(t){return"movementY"in t?t.movementY:$c}}),Op=kt(Ql),G0=Te({},Ql,{dataTransfer:0}),Q0=kt(G0),Z0=Te({},Zo,{relatedTarget:0}),Wc=kt(Z0),X0=Te({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),ex=kt(X0),tx=Te({},Ci,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),nx=kt(tx),rx=Te({},Ci,{data:0}),Ip=kt(rx),sx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ix={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"},ox={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ax(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ox[t])?!!e[t]:!1}function lh(){return ax}var lx=Te({},Zo,{key:function(t){if(t.key){var e=sx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ya(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ix[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lh,charCode:function(t){return t.type==="keypress"?Ya(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ya(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cx=kt(lx),ux=Te({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lp=kt(ux),dx=Te({},Zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lh}),hx=kt(dx),px=Te({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),fx=kt(px),mx=Te({},Ql,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),yx=kt(mx),gx=[9,13,27,32],ch=Nn&&"CompositionEvent"in window,no=null;Nn&&"documentMode"in document&&(no=document.documentMode);var vx=Nn&&"TextEvent"in window&&!no,rg=Nn&&(!ch||no&&8<no&&11>=no),Hp=" ",Mp=!1;function sg(t,e){switch(t){case"keyup":return gx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ls=!1;function wx(t,e){switch(t){case"compositionend":return ig(e);case"keypress":return e.which!==32?null:(Mp=!0,Hp);case"textInput":return t=e.data,t===Hp&&Mp?null:t;default:return null}}function bx(t,e){if(Ls)return t==="compositionend"||!ch&&sg(t,e)?(t=ng(),Va=oh=dr=null,Ls=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return rg&&e.locale!=="ko"?null:e.data;default:return null}}var xx={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 Dp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xx[t.type]:e==="textarea"}function og(t,e,n,r){My(r),e=pl(e,"onChange"),0<e.length&&(n=new ah("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var ro=null,xo=null;function kx(t){gg(t,0)}function Zl(t){var e=Ds(t);if(Py(e))return t}function Sx(t,e){if(t==="change")return e}var ag=!1;if(Nn){var Bc;if(Nn){var Uc="oninput"in document;if(!Uc){var Fp=document.createElement("div");Fp.setAttribute("oninput","return;"),Uc=typeof Fp.oninput=="function"}Bc=Uc}else Bc=!1;ag=Bc&&(!document.documentMode||9<document.documentMode)}function $p(){ro&&(ro.detachEvent("onpropertychange",lg),xo=ro=null)}function lg(t){if(t.propertyName==="value"&&Zl(xo)){var e=[];og(e,xo,t,th(t)),Wy(kx,e)}}function _x(t,e,n){t==="focusin"?($p(),ro=e,xo=n,ro.attachEvent("onpropertychange",lg)):t==="focusout"&&$p()}function Tx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Zl(xo)}function Cx(t,e){if(t==="click")return Zl(e)}function Ex(t,e){if(t==="input"||t==="change")return Zl(e)}function Ax(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Qt=typeof Object.is=="function"?Object.is:Ax;function ko(t,e){if(Qt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!wu.call(e,s)||!Qt(t[s],e[s]))return!1}return!0}function Wp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bp(t,e){var n=Wp(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wp(n)}}function cg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ug(){for(var t=window,e=ol();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ol(t.document)}return e}function uh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function jx(t){var e=ug(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&cg(n.ownerDocument.documentElement,n)){if(r!==null&&uh(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=Bp(n,i);var o=Bp(n,r);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Px=Nn&&"documentMode"in document&&11>=document.documentMode,Hs=null,Du=null,so=null,Fu=!1;function Up(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||Hs==null||Hs!==ol(r)||(r=Hs,"selectionStart"in r&&uh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),so&&ko(so,r)||(so=r,r=pl(Du,"onSelect"),0<r.length&&(e=new ah("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Hs)))}function ka(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ms={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionend:ka("Transition","TransitionEnd")},zc={},dg={};Nn&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete Ms.animationend.animation,delete Ms.animationiteration.animation,delete Ms.animationstart.animation),"TransitionEvent"in window||delete Ms.transitionend.transition);function Xl(t){if(zc[t])return zc[t];if(!Ms[t])return t;var e=Ms[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in dg)return zc[t]=e[n];return t}var hg=Xl("animationend"),pg=Xl("animationiteration"),fg=Xl("animationstart"),mg=Xl("transitionend"),yg=new Map,zp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(t,e){yg.set(t,e),ds(e,[t])}for(var Kc=0;Kc<zp.length;Kc++){var qc=zp[Kc],Nx=qc.toLowerCase(),Rx=qc[0].toUpperCase()+qc.slice(1);Ir(Nx,"on"+Rx)}Ir(hg,"onAnimationEnd");Ir(pg,"onAnimationIteration");Ir(fg,"onAnimationStart");Ir("dblclick","onDoubleClick");Ir("focusin","onFocus");Ir("focusout","onBlur");Ir(mg,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="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(" "),Ox=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gi));function Kp(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,N0(r,e,void 0,t),t.currentTarget=null}function gg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Kp(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Kp(s,a,u),i=l}}}if(ll)throw t=Iu,ll=!1,Iu=null,t}function ve(t,e){var n=e[zu];n===void 0&&(n=e[zu]=new Set);var r=t+"__bubble";n.has(r)||(vg(e,t,2,!1),n.add(r))}function Vc(t,e,n){var r=0;e&&(r|=4),vg(n,t,r,e)}var Sa="_reactListening"+Math.random().toString(36).slice(2);function So(t){if(!t[Sa]){t[Sa]=!0,Ty.forEach(function(n){n!=="selectionchange"&&(Ox.has(n)||Vc(n,!1,t),Vc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Sa]||(e[Sa]=!0,Vc("selectionchange",!1,e))}}function vg(t,e,n,r){switch(tg(e)){case 1:var s=V0;break;case 4:s=Y0;break;default:s=ih}n=s.bind(null,e,n,t),s=void 0,!Ou||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Yc(t,e,n,r,s){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 5,316 bytes, lines 37-38
37if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=qr(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Wy(function(){var u=i,d=th(n),h=[];e:{var f=yg.get(t);if(f!==void 0){var p=ah,w=t;switch(t){case"keypress":if(Ya(n)===0)break e;case"keydown":case"keyup":p=cx;break;case"focusin":w="focus",p=Wc;break;case"focusout":w="blur",p=Wc;break;case"beforeblur":case"afterblur":p=Wc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Op;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Q0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=hx;break;case hg:case pg:case fg:p=ex;break;case mg:p=fx;break;case"scroll":p=J0;break;case"wheel":p=yx;break;case"copy":case"cut":case"paste":p=nx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Lp}var v=(e&4)!==0,b=!v&&t==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var m=u,y;m!==null;){y=m;var k=y.stateNode;if(y.tag===5&&k!==null&&(y=k,g!==null&&(k=go(m,g),k!=null&&v.push(_o(m,k,y)))),b)break;m=m.return}0<v.length&&(f=new p(f,w,null,n,d),h.push({event:f,listeners:v}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",f&&n!==Nu&&(w=n.relatedTarget||n.fromElement)&&(qr(w)||w[Rn]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=u,w=w?qr(w):null,w!==null&&(b=hs(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=u),p!==w)){if(v=Op,k="onMouseLeave",g="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(v=Lp,k="onPointerLeave",g="onPointerEnter",m="pointer"),b=p==null?f:Ds(p),y=w==null?f:Ds(w),f=new v(k,m+"leave",p,n,d),f.target=b,f.relatedTarget=y,k=null,qr(d)===u&&(v=new v(g,m+"enter",w,n,d),v.target=y,v.relatedTarget=b,k=v),b=k,p&&w)t:{for(v=p,g=w,m=0,y=v;y;y=bs(y))m++;for(y=0,k=g;k;k=bs(k))y++;for(;0<m-y;)v=bs(v),m--;for(;0<y-m;)g=bs(g),y--;for(;m--;){if(v===g||g!==null&&v===g.alternate)break t;v=bs(v),g=bs(g)}v=null}else v=null;p!==null&&qp(h,f,p,v,!1),w!==null&&b!==null&&qp(h,b,w,v,!0)}}e:{if(f=u?Ds(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var S=Sx;else if(Dp(f))if(ag)S=Ex;else{S=Tx;var _=_x}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=Cx);if(S&&(S=S(t,u))){og(h,S,n,d);break e}_&&_(t,f,u),t==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&Cu(f,"number",f.value)}switch(_=u?Ds(u):window,t){case"focusin":(Dp(_)||_.contentEditable==="true")&&(Hs=_,Du=u,so=null);break;case"focusout":so=Du=Hs=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,Up(h,n,d);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":Up(h,n,d)}var T;if(ch)e:{switch(t){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Ls?sg(t,n)&&(A="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(rg&&n.locale!=="ko"&&(Ls||A!=="onCompositionStart"?A==="onCompositionEnd"&&Ls&&(T=ng()):(dr=d,oh="value"in dr?dr.value:dr.textContent,Ls=!0)),_=pl(u,A),0<_.length&&(A=new Ip(A,t,null,n,d),h.push({event:A,listeners:_}),T?A.data=T:(T=ig(n),T!==null&&(A.data=T)))),(T=vx?wx(t,n):bx(t,n))&&(u=pl(u,"onBeforeInput"),0<u.length&&(d=new Ip("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=T))}gg(h,e)})}function _o(t,e,n){return{instance:t,listener:e,currentTarget:n}}function pl(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=go(t,n),i!=null&&r.unshift(_o(t,i,s)),i=go(t,e),i!=null&&r.push(_o(t,i,s))),t=t.return}return r}function bs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function qp(t,e,n,r,s){for(var i=e._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=go(n,i),l!=null&&o.unshift(_o(n,l,a))):s||(l=go(n,i),l!=null&&o.push(_o(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Ix=/\r\n?/g,Lx=/\u0000|\uFFFD/g;function Vp(t){return(typeof t=="string"?t:""+t).replace(Ix,` 38`).replace(Lx,"")}function _a(t,e,n){if(e=Vp(e),Vp(t)!==e&&n)throw Error(P(425))}function fl(){}var $u=null,Wu=null;function Bu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Uu=typeof setTimeout=="function"?setTimeout:void 0,Hx=typeof clearTimeout=="function"?clearTimeout:void 0,Yp=typeof Promise=="function"?Promise:void 0,Mx=typeof queueMicrotask=="function"?queueMicrotask:typeof Yp<"u"?function(t){return Yp.resolve(null).then(t).cat
vendor: 4,824 bytes, line 38
38ch(Dx)}:Uu;function Dx(t){setTimeout(function(){throw t})}function Jc(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),bo(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);bo(e)}function wr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Jp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Ei=Math.random().toString(36).slice(2),dn="__reactFiber$"+Ei,To="__reactProps$"+Ei,Rn="__reactContainer$"+Ei,zu="__reactEvents$"+Ei,Fx="__reactListeners$"+Ei,$x="__reactHandles$"+Ei;function qr(t){var e=t[dn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Rn]||n[dn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Jp(t);t!==null;){if(n=t[dn])return n;t=Jp(t)}return e}t=n,n=t.parentNode}return null}function Xo(t){return t=t[dn]||t[Rn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ds(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(P(33))}function ec(t){return t[To]||null}var Ku=[],Fs=-1;function Lr(t){return{current:t}}function we(t){0>Fs||(t.current=Ku[Fs],Ku[Fs]=null,Fs--)}function ye(t,e){Fs++,Ku[Fs]=t.current,t.current=e}var Er={},Qe=Lr(Er),lt=Lr(!1),ss=Er;function di(t,e){var n=t.type.contextTypes;if(!n)return Er;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function ct(t){return t=t.childContextTypes,t!=null}function ml(){we(lt),we(Qe)}function Gp(t,e,n){if(Qe.current!==Er)throw Error(P(168));ye(Qe,e),ye(lt,n)}function wg(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(P(108,_0(t)||"Unknown",s));return Te({},n,r)}function yl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Er,ss=Qe.current,ye(Qe,t),ye(lt,lt.current),!0}function Qp(t,e,n){var r=t.stateNode;if(!r)throw Error(P(169));n?(t=wg(t,e,ss),r.__reactInternalMemoizedMergedChildContext=t,we(lt),we(Qe),ye(Qe,t)):we(lt),ye(lt,n)}var Cn=null,tc=!1,Gc=!1;function bg(t){Cn===null?Cn=[t]:Cn.push(t)}function Wx(t){tc=!0,bg(t)}function Hr(){if(!Gc&&Cn!==null){Gc=!0;var t=0,e=pe;try{var n=Cn;for(pe=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Cn=null,tc=!1}catch(s){throw Cn!==null&&(Cn=Cn.slice(t+1)),Ky(nh,Hr),s}finally{pe=e,Gc=!1}}return null}var $s=[],Ws=0,gl=null,vl=0,Ct=[],Et=0,is=null,An=1,jn="";function Br(t,e){$s[Ws++]=vl,$s[Ws++]=gl,gl=t,vl=e}function xg(t,e,n){Ct[Et++]=An,Ct[Et++]=jn,Ct[Et++]=is,is=t;var r=An;t=jn;var s=32-Jt(r)-1;r&=~(1<<s),n+=1;var i=32-Jt(e)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,An=1<<32-Jt(e)+s|n<<s|r,jn=i+t}else An=1<<i|n<<s|r,jn=t}function dh(t){t.return!==null&&(Br(t,1),xg(t,1,0))}function hh(t){for(;t===gl;)gl=$s[--Ws],$s[Ws]=null,vl=$s[--Ws],$s[Ws]=null;for(;t===is;)is=Ct[--Et],Ct[Et]=null,jn=Ct[--Et],Ct[Et]=null,An=Ct[--Et],Ct[Et]=null}var gt=null,yt=null,xe=!1,Kt=null;function kg(t,e){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Zp(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,gt=t,yt=wr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,gt=t,yt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=is!==null?{id:An,overflow:jn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,gt=t,yt=null,!0):!1;default:return!1}}function qu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Vu(t){if(xe){var e=yt;if(e){var n=e;if(!Zp(t,e)){if(qu(t))throw Error(P(418));e=wr(n.nextSibling);var r=gt;e&&Zp(t,e)?kg(r,n):(t.flags=t.flags&-4097|2,xe=!1,gt=t)}}else{if(qu(t))throw Error(P(418));t.flags=t.flags&-4097|2,xe=!1,gt=t}}}function Xp(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;gt=t}function Ta(t){if(t!==gt)return!1;if(!xe)return Xp(t),xe=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Bu(t.type,t.memoizedProps)),e&&(e=yt)){if(qu(t))throw Sg(),Error(P(418));for(;e;)kg(t,e),e=wr(e.nextSibling)}if(Xp(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(P(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 23,218 bytes, lines 38-40
38){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){yt=wr(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}yt=null}}else yt=gt?wr(t.stateNode.nextSibling):null;return!0}function Sg(){for(var t=yt;t;)t=wr(t.nextSibling)}function hi(){yt=gt=null,xe=!1}function ph(t){Kt===null?Kt=[t]:Kt.push(t)}var Bx=Fn.ReactCurrentBatchConfig;function Wi(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,t));var s=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,t))}return t}function Ca(t,e){throw t=Object.prototype.toString.call(e),Error(P(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function ef(t){var e=t._init;return e(t._payload)}function _g(t){function e(g,m){if(t){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!t)return null;for(;m!==null;)e(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=Sr(g,m),g.index=0,g.sibling=null,g}function i(g,m,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return t&&g.alternate===null&&(g.flags|=2),g}function a(g,m,y,k){return m===null||m.tag!==6?(m=ru(y,g.mode,k),m.return=g,m):(m=s(m,y),m.return=g,m)}function l(g,m,y,k){var S=y.type;return S===Is?d(g,m,y.props.children,k,y.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Xn&&ef(S)===m.type)?(k=s(m,y.props),k.ref=Wi(g,m,y),k.return=g,k):(k=tl(y.type,y.key,y.props,null,g.mode,k),k.ref=Wi(g,m,y),k.return=g,k)}function u(g,m,y,k){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=su(y,g.mode,k),m.return=g,m):(m=s(m,y.children||[]),m.return=g,m)}function d(g,m,y,k,S){return m===null||m.tag!==7?(m=rs(y,g.mode,k,S),m.return=g,m):(m=s(m,y),m.return=g,m)}function h(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ru(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ma:return y=tl(m.type,m.key,m.props,null,g.mode,y),y.ref=Wi(g,null,m),y.return=g,y;case Os:return m=su(m,g.mode,y),m.return=g,m;case Xn:var k=m._init;return h(g,k(m._payload),y)}if(Yi(m)||Hi(m))return m=rs(m,g.mode,y,null),m.return=g,m;Ca(g,m)}return null}function f(g,m,y,k){var S=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(g,m,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ma:return y.key===S?l(g,m,y,k):null;case Os:return y.key===S?u(g,m,y,k):null;case Xn:return S=y._init,f(g,m,S(y._payload),k)}if(Yi(y)||Hi(y))return S!==null?null:d(g,m,y,k,null);Ca(g,y)}return null}function p(g,m,y,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return g=g.get(y)||null,a(m,g,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ma:return g=g.get(k.key===null?y:k.key)||null,l(m,g,k,S);case Os:return g=g.get(k.key===null?y:k.key)||null,u(m,g,k,S);case Xn:var _=k._init;return p(g,m,y,_(k._payload),S)}if(Yi(k)||Hi(k))return g=g.get(y)||null,d(m,g,k,S,null);Ca(m,k)}return null}function w(g,m,y,k){for(var S=null,_=null,T=m,A=m=0,N=null;T!==null&&A<y.length;A++){T.index>A?(N=T,T=null):N=T.sibling;var O=f(g,T,y[A],k);if(O===null){T===null&&(T=N);break}t&&T&&O.alternate===null&&e(g,T),m=i(O,m,A),_===null?S=O:_.sibling=O,_=O,T=N}if(A===y.length)return n(g,T),xe&&Br(g,A),S;if(T===null){for(;A<y.length;A++)T=h(g,y[A],k),T!==null&&(m=i(T,m,A),_===null?S=T:_.sibling=T,_=T);return xe&&Br(g,A),S}for(T=r(g,T);A<y.length;A++)N=p(T,g,A,y[A],k),N!==null&&(t&&N.alternate!==null&&T.delete(N.key===null?A:N.key),m=i(N,m,A),_===null?S=N:_.sibling=N,_=N);return t&&T.forEach(function(q){return e(g,q)}),xe&&Br(g,A),S}function v(g,m,y,k){var S=Hi(y);if(typeof S!="function")throw Error(P(150));if(y=S.call(y),y==null)throw Error(P(151));for(var _=S=null,T=m,A=m=0,N=null,O=y.next();T!==null&&!O.done;A++,O=y.next()){T.index>A?(N=T,T=null):N=T.sibling;var q=f(g,T,O.value,k);if(q===null){T===null&&(T=N);break}t&&T&&q.alternate===null&&e(g,T),m=i(q,m,A),_===null?S=q:_.sibling=q,_=q,T=N}if(O.done)return n(g,T),xe&&Br(g,A),S;if(T===null){for(;!O.done;A++,O=y.next())O=h(g,O.value,k),O!==null&&(m=i(O,m,A),_===null?S=O:_.sibling=O,_=O);return xe&&Br(g,A),S}for(T=r(g,T);!O.done;A++,O=y.next())O=p(T,g,A,O.value,k),O!==null&&(t&&O.alternate!==null&&T.delete(O.key===null?A:O.key),m=i(O,m,A),_===null?S=O:_.sibling=O,_=O);return t&&T.forEach(function(H){return e(g,H)}),xe&&Br(g,A),S}function b(g,m,y,k){if(typeof y=="object"&&y!==null&&y.type===Is&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ma:e:{for(var S=y.key,_=m;_!==null;){if(_.key===S){if(S=y.type,S===Is){if(_.tag===7){n(g,_.sibling),m=s(_,y.props.children),m.return=g,g=m;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Xn&&ef(S)===_.type){n(g,_.sibling),m=s(_,y.props),m.ref=Wi(g,_,y),m.return=g,g=m;break e}n(g,_);break}else e(g,_);_=_.sibling}y.type===Is?(m=rs(y.props.children,g.mode,k,y.key),m.return=g,g=m):(k=tl(y.type,y.key,y.props,null,g.mode,k),k.ref=Wi(g,m,y),k.return=g,g=k)}return o(g);case Os:e:{for(_=y.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else e(g,m);m=m.sibling}m=su(y,g.mode,k),m.return=g,g=m}return o(g);case Xn:return _=y._init,b(g,m,_(y._payload),k)}if(Yi(y))return w(g,m,y,k);if(Hi(y))return v(g,m,y,k);Ca(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=ru(y,g.mode,k),m.return=g,g=m),o(g)):n(g,m)}return b}var pi=_g(!0),Tg=_g(!1),wl=Lr(null),bl=null,Bs=null,fh=null;function mh(){fh=Bs=bl=null}function yh(t){var e=wl.current;we(wl),t._currentValue=e}function Yu(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Qs(t,e){bl=t,fh=Bs=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(at=!0),t.firstContext=null)}function Pt(t){var e=t._currentValue;if(fh!==t)if(t={context:t,memoizedValue:e,next:null},Bs===null){if(bl===null)throw Error(P(308));Bs=t,bl.dependencies={lanes:0,firstContext:t}}else Bs=Bs.next=t;return e}var Vr=null;function gh(t){Vr===null?Vr=[t]:Vr.push(t)}function Cg(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,gh(e)):(n.next=s.next,s.next=n),e.interleaved=n,On(t,r)}function On(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var er=!1;function vh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Eg(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Pn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function br(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,On(t,n)}return s=r.interleaved,s===null?(e.next=e,gh(r)):(e.next=s.next,s.next=e),r.interleaved=e,On(t,n)}function Ja(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,rh(t,n)}}function tf(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function xl(t,e,n,r){var s=t.updateQueue;er=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var h=s.baseState;o=0,d=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=t,v=a;switch(f=e,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){h=w.call(p,h,f);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,f=typeof w=="function"?w.call(p,h,f):w,f==null)break e;h=Te({},h,f);break e;case 2:er=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=h):d=d.next=p,o|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);as|=o,t.lanes=o,t.memoizedState=h}}function nf(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(P(191,s));s.call(r)}}}var ea={},fn=Lr(ea),Co=Lr(ea),Eo=Lr(ea);function Yr(t){if(t===ea)throw Error(P(174));return t}function wh(t,e){switch(ye(Eo,e),ye(Co,t),ye(fn,ea),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Au(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Au(e,t)}we(fn),ye(fn,e)}function fi(){we(fn),we(Co),we(Eo)}function Ag(t){Yr(Eo.current);var e=Yr(fn.current),n=Au(e,t.type);e!==n&&(ye(Co,t),ye(fn,n))}function bh(t){Co.current===t&&(we(fn),we(Co))}var ke=Lr(0);function kl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Qc=[];function xh(){for(var t=0;t<Qc.length;t++)Qc[t]._workInProgressVersionPrimary=null;Qc.length=0}var Ga=Fn.ReactCurrentDispatcher,Zc=Fn.ReactCurrentBatchConfig,os=0,Se=null,Le=null,De=null,Sl=!1,io=!1,Ao=0,Ux=0;function Ve(){throw Error(P(321))}function kh(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Qt(t[n],e[n]))return!1;return!0}function Sh(t,e,n,r,s,i){if(os=i,Se=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ga.current=t===null||t.memoizedState===null?Vx:Yx,t=n(r,s),io){i=0;do{if(io=!1,Ao=0,25<=i)throw Error(P(301));i+=1,De=Le=null,e.updateQueue=null,Ga.current=Jx,t=n(r,s)}while(io)}if(Ga.current=_l,e=Le!==null&&Le.next!==null,os=0,De=Le=Se=null,Sl=!1,e)throw Error(P(300));return t}function _h(){var t=Ao!==0;return Ao=0,t}function sn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Se.memoizedState=De=t:De=De.next=t,De}function Nt(){if(Le===null){var t=Se.alternate;t=t!==null?t.memoizedState:null}else t=Le.next;var e=De===null?Se.memoizedState:De.next;if(e!==null)De=e,Le=t;else{if(t===null)throw Error(P(310));Le=t,t={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},De===null?Se.memoizedState=De=t:De=De.next=t}return De}function jo(t,e){return typeof e=="function"?e(t):e}function Xc(t){var e=Nt(),n=e.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=t;var r=Le,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((os&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,o=r):l=l.next=h,Se.lanes|=d,as|=d}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Qt(r,e.memoizedState)||(at=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do i=s.lane,Se.lanes|=i,as|=i,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function eu(t){var e=Nt(),n=e.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,i=e.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);Qt(i,e.memoizedState)||(at=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function jg(){}function Pg(t,e){var n=Se,r=Nt(),s=e(),i=!Qt(r.memoizedState,s);if(i&&(r.memoizedState=s,at=!0),r=r.queue,Th(Og.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,Po(9,Rg.bind(null,n,r,s,e),void 0,null),Fe===null)throw Error(P(349));os&30||Ng(n,e,s)}return s}function Ng(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Se.updateQueue,e===null?(e={lastEffect:null,stores:null},Se.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Rg(t,e,n,r){e.value=n,e.getSnapshot=r,Ig(e)&&Lg(t)}function Og(t,e,n){return n(function(){Ig(e)&&Lg(t)})}function Ig(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Qt(t,n)}catch{return!0}}function Lg(t){var e=On(t,1);e!==null&&Gt(e,t,1,-1)}function rf(t){var e=sn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:t},e.queue=t,t=t.dispatch=qx.bind(null,Se,t),[e.memoizedState,t]}function Po(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Se.updateQueue,e===null?(e={lastEffect:null,stores:null},Se.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Hg(){return Nt().memoizedState}function Qa(t,e,n,r){var s=sn();Se.flags|=t,s.memoizedState=Po(1|e,n,void 0,r===void 0?null:r)}function nc(t,e,n,r){var s=Nt();r=r===void 0?null:r;var i=void 0;if(Le!==null){var o=Le.memoizedState;if(i=o.destroy,r!==null&&kh(r,o.deps)){s.memoizedState=Po(e,n,i,r);return}}Se.flags|=t,s.memoizedState=Po(1|e,n,i,r)}function sf(t,e){return Qa(8390656,8,t,e)}function Th(t,e){return nc(2048,8,t,e)}function Mg(t,e){return nc(4,2,t,e)}function Dg(t,e){return nc(4,4,t,e)}function Fg(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $g(t,e,n){return n=n!=null?n.concat([t]):null,nc(4,4,Fg.bind(null,e,t),n)}function Ch(){}function Wg(t,e){var n=Nt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&kh(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Bg(t,e){var n=Nt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&kh(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Ug(t,e,n){return os&21?(Qt(n,e)||(n=Yy(),Se.lanes|=n,as|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,at=!0),t.memoizedState=n)}function zx(t,e){var n=pe;pe=n!==0&&4>n?n:4,t(!0);var r=Zc.transition;Zc.transition={};try{t(!1),e()}finally{pe=n,Zc.transition=r}}function zg(){return Nt().memoizedState}function Kx(t,e,n){var r=kr(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Kg(t))qg(e,n);else if(n=Cg(t,e,n,r),n!==null){var s=tt();Gt(n,t,r,s),Vg(n,e,r)}}function qx(t,e,n){var r=kr(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kg(t))qg(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Qt(a,o)){var l=e.interleaved;l===null?(s.next=s,gh(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=Cg(t,e,s,r),n!==null&&(s=tt(),Gt(n,t,r,s),Vg(n,e,r))}}function Kg(t){var e=t.alternate;return t===Se||e!==null&&e===Se}function qg(t,e){io=Sl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vg(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,rh(t,n)}}var _l={readContext:Pt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},Vx={readContext:Pt,useCallback:function(t,e){return sn().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:sf,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Qa(4194308,4,Fg.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Qa(4194308,4,t,e)},useInsertionEffect:function(t,e){return Qa(4,2,t,e)},useMemo:function(t,e){var n=sn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=sn();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Kx.bind(null,Se,t),[r.memoizedState,t]},useRef:function(t){var e=sn();return t={current:t},e.memoizedState=t},useState:rf,useDebugValue:Ch,useDeferredValue:function(t){return sn().memoizedState=t},useTransition:function(){var t=rf(!1),e=t[0];return t=zx.bind(null,t[1]),sn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Se,s=sn();if(xe){if(n===void 0)throw Error(P(407));n=n()}else{if(n=e(),Fe===null)throw Error(P(349));os&30||Ng(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,sf(Og.bind(null,r,i,t),[t]),r.flags|=2048,Po(9,Rg.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=sn(),e=Fe.identifierPrefix;if(xe){var n=jn,r=An;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ao++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=Ux++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Yx={readContext:Pt,useCallback:Wg,useContext:Pt,useEffect:Th,useImperativeHandle:$g,useInsertionEffect:Mg,useLayoutEffect:Dg,useMemo:Bg,useReducer:Xc,useRef:Hg,useState:function(){return Xc(jo)},useDebugValue:Ch,useDeferredValue:function(t){var e=Nt();return Ug(e,Le.memoizedState,t)},useTransition:function(){var t=Xc(jo)[0],e=Nt().memoizedState;return[t,e]},useMutableSource:jg,useSyncExternalStore:Pg,useId:zg,unstable_isNewReconciler:!1},Jx={readContext:Pt,useCallback:Wg,useContext:Pt,useEffect:Th,useImperativeHandle:$g,useInsertionEffect:Mg,useLayoutEffect:Dg,useMemo:Bg,useReducer:eu,useRef:Hg,useState:function(){return eu(jo)},useDebugValue:Ch,useDeferredValue:function(t){var e=Nt();return Le===null?e.memoizedState=t:Ug(e,Le.memoizedState,t)},useTransition:function(){var t=eu(jo)[0],e=Nt().memoizedState;return[t,e]},useMutableSource:jg,useSyncExternalStore:Pg,useId:zg,unstable_isNewReconciler:!1};function Ft(t,e){if(t&&t.defaultProps){e=Te({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Ju(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Te({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var rc={isMounted:function(t){return(t=t._reactInternals)?hs(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=tt(),s=kr(t),i=Pn(r,s);i.payload=e,n!=null&&(i.callback=n),e=br(t,i,s),e!==null&&(Gt(e,t,s,r),Ja(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=tt(),s=kr(t),i=Pn(r,s);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=br(t,i,s),e!==null&&(Gt(e,t,s,r),Ja(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=tt(),r=kr(t),s=Pn(n,r);s.tag=2,e!=null&&(s.callback=e),e=br(t,s,r),e!==null&&(Gt(e,t,r,n),Ja(e,t,r))}};function of(t,e,n,r,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!ko(n,r)||!ko(s,i):!0}function Yg(t,e,n){var r=!1,s=Er,i=e.contextType;return typeof i=="object"&&i!==null?i=Pt(i):(s=ct(e)?ss:Qe.current,r=e.contextTypes,i=(r=r!=null)?di(t,s):Er),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=rc,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function af(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&rc.enqueueReplaceState(e,e.state,null)}function Gu(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},vh(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=Pt(i):(i=ct(e)?ss:Qe.current,s.context=di(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Ju(t,e,i,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&rc.enqueueReplaceState(s,s.state,null),xl(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function mi(t,e){try{var n="",r=e;do n+=S0(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function tu(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Qu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Gx=typeof WeakMap=="function"?WeakMap:Map;function Jg(t,e,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Cl||(Cl=!0,ad=r),Qu(t,e)},n}function Gg(t,e,n){n=Pn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){Qu(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Qu(t,e),t
vendor: 10,399 bytes, line 40
40ypeof r!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function lf(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Gx;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=u1.bind(null,t,e,n),e.then(t,t))}function cf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function uf(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Pn(-1,1),e.tag=2,br(n,e,1))),n.lanes|=1),t)}var Qx=Fn.ReactCurrentOwner,at=!1;function Xe(t,e,n,r){e.child=t===null?Tg(e,null,n,r):pi(e,t.child,n,r)}function df(t,e,n,r,s){n=n.render;var i=e.ref;return Qs(e,s),r=Sh(t,e,n,r,i,s),n=_h(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,In(t,e,s)):(xe&&n&&dh(e),e.flags|=1,Xe(t,e,r,s),e.child)}function hf(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!Ih(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,Qg(t,e,i,r,s)):(t=tl(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ko,n(o,r)&&t.ref===e.ref)return In(t,e,s)}return e.flags|=1,t=Sr(i,r),t.ref=e.ref,t.return=e,e.child=t}function Qg(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(ko(i,r)&&t.ref===e.ref)if(at=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(at=!0);else return e.lanes=t.lanes,In(t,e,s)}return Zu(t,e,n,r,s)}function Zg(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(zs,pt),pt|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ye(zs,pt),pt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ye(zs,pt),pt|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,ye(zs,pt),pt|=r;return Xe(t,e,s,n),e.child}function Xg(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Zu(t,e,n,r,s){var i=ct(n)?ss:Qe.current;return i=di(e,i),Qs(e,s),n=Sh(t,e,n,r,i,s),r=_h(),t!==null&&!at?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,In(t,e,s)):(xe&&r&&dh(e),e.flags|=1,Xe(t,e,n,s),e.child)}function pf(t,e,n,r,s){if(ct(n)){var i=!0;yl(e)}else i=!1;if(Qs(e,s),e.stateNode===null)Za(t,e),Yg(e,n,r),Gu(e,n,r,s),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Pt(u):(u=ct(n)?ss:Qe.current,u=di(e,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&af(e,o,r,u),er=!1;var f=e.memoizedState;o.state=f,xl(e,r,o,s),l=e.memoizedState,a!==r||f!==l||lt.current||er?(typeof d=="function"&&(Ju(e,n,d,r),l=e.memoizedState),(a=er||of(e,n,a,r,f,l,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Eg(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Ft(e.type,a),o.props=u,h=e.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Pt(l):(l=ct(n)?ss:Qe.current,l=di(e,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||f!==l)&&af(e,o,r,l),er=!1,f=e.memoizedState,o.state=f,xl(e,r,o,s);var w=e.memoizedState;a!==h||f!==w||lt.current||er?(typeof p=="function"&&(Ju(e,n,p,r),w=e.memoizedState),(u=er||of(e,n,u,r,f,w,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),o.props=r,o.state=w,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return Xu(t,e,n,r,i,s)}function Xu(t,e,n,r,s,i){Xg(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return s&&Qp(e,n,!1),In(t,e,i);r=e.stateNode,Qx.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=pi(e,t.child,null,i),e.child=pi(e,null,a,i)):Xe(t,e,a,i),e.memoizedState=r.state,s&&Qp(e,n,!0),e.child}function ev(t){var e=t.stateNode;e.pendingContext?Gp(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Gp(t,e.context,!1),wh(t,e.containerInfo)}function ff(t,e,n,r,s){return hi(),ph(s),e.flags|=256,Xe(t,e,n,r),e.child}var ed={dehydrated:null,treeContext:null,retryLane:0};function td(t){return{baseLanes:t,cachePool:null,transitions:null}}function tv(t,e,n){var r=e.pendingProps,s=ke.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),ye(ke,s&1),t===null)return Vu(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,i?(r=e.mode,i=e.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=oc(o,r,0,null),t=rs(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=td(n),e.memoizedState=ed,t):Eh(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Zx(t,e,o,r,a,s,n);if(i){i=r.fallback,o=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Sr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Sr(a,i):(i=rs(i,o,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,o=t.child.memoizedState,o=o===null?td(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=ed,r}return i=t.child,t=i.sibling,r=Sr(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Eh(t,e){return e=oc({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Ea(t,e,n,r){return r!==null&&ph(r),pi(e,t.child,null,n),t=Eh(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Zx(t,e,n,r,s,i,o){if(n)return e.flags&256?(e.flags&=-257,r=tu(Error(P(422))),Ea(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,s=e.mode,r=oc({mode:"visible",children:r.children},s,0,null),i=rs(i,s,o,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&pi(e,t.child,null,o),e.child.memoizedState=td(o),e.memoizedState=ed,i);if(!(e.mode&1))return Ea(t,e,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(P(419)),r=tu(i,r,void 0),Ea(t,e,o,r)}if(a=(o&t.childLanes)!==0,at||a){if(r=Fe,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,On(t,s),Gt(r,t,s,-1))}return Oh(),r=tu(Error(P(421))),Ea(t,e,o,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=d1.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,yt=wr(s.nextSibling),gt=e,xe=!0,Kt=null,t!==null&&(Ct[Et++]=An,Ct[Et++]=jn,Ct[Et++]=is,An=t.id,jn=t.overflow,is=e),e=Eh(e,r.children),e.flags|=4096,e)}function mf(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Yu(t.return,e,n)}function nu(t,e,n,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function nv(t,e,n){var r=e.pendingProps,s=r.revealOrder,i=r.tail;if(Xe(t,e,r.children,n),r=ke.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&mf(t,n,e);else if(t.tag===19)mf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ye(ke,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&kl(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),nu(e,!1,s,n,i);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&kl(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}nu(e,!0,n,null,i);break;case"together":nu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Za(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 4,903 bytes, line 40
40function In(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),as|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(P(153));if(e.child!==null){for(t=e.child,n=Sr(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Sr(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Xx(t,e,n){switch(e.tag){case 3:ev(e),hi();break;case 5:Ag(e);break;case 1:ct(e.type)&&yl(e);break;case 4:wh(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;ye(wl,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(ye(ke,ke.current&1),e.flags|=128,null):n&e.child.childLanes?tv(t,e,n):(ye(ke,ke.current&1),t=In(t,e,n),t!==null?t.sibling:null);ye(ke,ke.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return nv(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ye(ke,ke.current),r)break;return null;case 22:case 23:return e.lanes=0,Zg(t,e,n)}return In(t,e,n)}var rv,nd,sv,iv;rv=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}};nd=function(){};sv=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,Yr(fn.current);var i=null;switch(n){case"input":s=_u(t,s),r=_u(t,r),i=[];break;case"select":s=Te({},s,{value:void 0}),r=Te({},r,{value:void 0}),i=[];break;case"textarea":s=Eu(t,s),r=Eu(t,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=fl)}ju(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(mo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(mo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ve("scroll",t),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};iv=function(t,e,n,r){n!==r&&(e.flags|=4)};function Bi(t,e){if(!xe)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ye(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function e1(t,e,n){var r=e.pendingProps;switch(hh(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(e),null;case 1:return ct(e.type)&&ml(),Ye(e),null;case 3:return r=e.stateNode,fi(),we(lt),we(Qe),xh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Ta(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Kt!==null&&(ud(Kt),Kt=null))),nd(t,e),Ye(e),null;case 5:bh(e);var s=Yr(Eo.current);if(n=e.type,t!==null&&e.stateNode!=null)sv(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(P(166));return Ye(e),null}if(t=Yr(fn.current),Ta(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[dn]=e,r[To]=i,t=(e.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(s=0;s<Gi.length;s++)ve(Gi[s],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":Sp(r,i),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ve("invalid",r);break;case"textarea":Tp(r,i),ve("invalid",r)}ju(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 29,681 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&_a(r.textContent,a,t),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&_a(r.textContent,a,t),s=["children",""+a]):mo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ve("scroll",r)}switch(n){case"input":ya(r),_p(r,i,!0);break;case"textarea":ya(r),Cp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=fl)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Oy(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[dn]=e,t[To]=r,rv(t,e,!1,!1),e.stateNode=t;e:{switch(o=Pu(n,r),n){case"dialog":ve("cancel",t),ve("close",t),s=r;break;case"iframe":case"object":case"embed":ve("load",t),s=r;break;case"video":case"audio":for(s=0;s<Gi.length;s++)ve(Gi[s],t);s=r;break;case"source":ve("error",t),s=r;break;case"img":case"image":case"link":ve("error",t),ve("load",t),s=r;break;case"details":ve("toggle",t),s=r;break;case"input":Sp(t,r),s=_u(t,r),ve("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=Te({},r,{value:void 0}),ve("invalid",t);break;case"textarea":Tp(t,r),s=Eu(t,r),ve("invalid",t);break;default:s=r}ju(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Hy(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Iy(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&yo(t,l):typeof l=="number"&&yo(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(mo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ve("scroll",t):l!=null&&Qd(t,i,l,o))}switch(n){case"input":ya(t),_p(t,r,!1);break;case"textarea":ya(t),Cp(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Cr(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?Vs(t,!!r.multiple,i,!1):r.defaultValue!=null&&Vs(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=fl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Ye(e),null;case 6:if(t&&e.stateNode!=null)iv(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(P(166));if(n=Yr(Eo.current),Yr(fn.current),Ta(e)){if(r=e.stateNode,n=e.memoizedProps,r[dn]=e,(i=r.nodeValue!==n)&&(t=gt,t!==null))switch(t.tag){case 3:_a(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&_a(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dn]=e,e.stateNode=r}return Ye(e),null;case 13:if(we(ke),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(xe&&yt!==null&&e.mode&1&&!(e.flags&128))Sg(),hi(),e.flags|=98560,i=!1;else if(i=Ta(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(P(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(P(317));i[dn]=e}else hi(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Ye(e),i=!1}else Kt!==null&&(ud(Kt),Kt=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||ke.current&1?Me===0&&(Me=3):Oh())),e.updateQueue!==null&&(e.flags|=4),Ye(e),null);case 4:return fi(),nd(t,e),t===null&&So(e.stateNode.containerInfo),Ye(e),null;case 10:return yh(e.type._context),Ye(e),null;case 17:return ct(e.type)&&ml(),Ye(e),null;case 19:if(we(ke),i=e.memoizedState,i===null)return Ye(e),null;if(r=(e.flags&128)!==0,o=i.rendering,o===null)if(r)Bi(i,!1);else{if(Me!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=kl(t),o!==null){for(e.flags|=128,Bi(i,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ye(ke,ke.current&1|2),e.child}t=t.sibling}i.tail!==null&&Pe()>yi&&(e.flags|=128,r=!0,Bi(i,!1),e.lanes=4194304)}else{if(!r)if(t=kl(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Bi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!xe)return Ye(e),null}else 2*Pe()-i.renderingStartTime>yi&&n!==1073741824&&(e.flags|=128,r=!0,Bi(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Pe(),e.sibling=null,n=ke.current,ye(ke,r?n&1|2:n&1),e):(Ye(e),null);case 22:case 23:return Rh(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?pt&1073741824&&(Ye(e),e.subtreeFlags&6&&(e.flags|=8192)):Ye(e),null;case 24:return null;case 25:return null}throw Error(P(156,e.tag))}function t1(t,e){switch(hh(e),e.tag){case 1:return ct(e.type)&&ml(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return fi(),we(lt),we(Qe),xh(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return bh(e),null;case 13:if(we(ke),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(P(340));hi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return we(ke),null;case 4:return fi(),null;case 10:return yh(e.type._context),null;case 22:case 23:return Rh(),null;case 24:return null;default:return null}}var Aa=!1,Ge=!1,n1=typeof WeakSet=="function"?WeakSet:Set,F=null;function Us(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(t,e,r)}else n.current=null}function rd(t,e,n){try{n()}catch(r){je(t,e,r)}}var yf=!1;function r1(t,e){if($u=dl,t=ug(),uh(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,h=t,f=null;t:for(;;){for(var p;h!==n||s!==0&&h.nodeType!==3||(a=o+s),h!==i||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===t)break t;if(f===n&&++u===s&&(a=o),f===i&&++d===r&&(l=o),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wu={focusedElem:t,selectionRange:n},dl=!1,F=e;F!==null;)if(e=F,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,F=t;else for(;F!==null;){e=F;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,b=w.memoizedState,g=e.stateNode,m=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:Ft(e.type,v),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(k){je(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,F=t;break}F=e.return}return w=yf,yf=!1,w}function oo(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&rd(e,n,i)}s=s.next}while(s!==r)}}function sc(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function sd(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function ov(t){var e=t.alternate;e!==null&&(t.alternate=null,ov(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[dn],delete e[To],delete e[zu],delete e[Fx],delete e[$x])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function av(t){return t.tag===5||t.tag===3||t.tag===4}function gf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||av(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function id(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=fl));else if(r!==4&&(t=t.child,t!==null))for(id(t,e,n),t=t.sibling;t!==null;)id(t,e,n),t=t.sibling}function od(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(od(t,e,n),t=t.sibling;t!==null;)od(t,e,n),t=t.sibling}var Be=null,zt=!1;function Jn(t,e,n){for(n=n.child;n!==null;)lv(t,e,n),n=n.sibling}function lv(t,e,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:Ge||Us(n,e);case 6:var r=Be,s=zt;Be=null,Jn(t,e,n),Be=r,zt=s,Be!==null&&(zt?(t=Be,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(zt?(t=Be,n=n.stateNode,t.nodeType===8?Jc(t.parentNode,n):t.nodeType===1&&Jc(t,n),bo(t)):Jc(Be,n.stateNode));break;case 4:r=Be,s=zt,Be=n.stateNode.containerInfo,zt=!0,Jn(t,e,n),Be=r,zt=s;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&rd(n,e,o),s=s.next}while(s!==r)}Jn(t,e,n);break;case 1:if(!Ge&&(Us(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,e,a)}Jn(t,e,n);break;case 21:Jn(t,e,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Jn(t,e,n),Ge=r):Jn(t,e,n);break;default:Jn(t,e,n)}}function vf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new n1),e.forEach(function(r){var s=h1.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ht(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:Be=a.stateNode,zt=!1;break e;case 3:Be=a.stateNode.containerInfo,zt=!0;break e;case 4:Be=a.stateNode.containerInfo,zt=!0;break e}a=a.return}if(Be===null)throw Error(P(160));lv(i,o,s),Be=null,zt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){je(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)cv(e,t),e=e.sibling}function cv(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ht(e,t),nn(t),r&4){try{oo(3,t,t.return),sc(3,t)}catch(v){je(t,t.return,v)}try{oo(5,t,t.return)}catch(v){je(t,t.return,v)}}break;case 1:Ht(e,t),nn(t),r&512&&n!==null&&Us(n,n.return);break;case 5:if(Ht(e,t),nn(t),r&512&&n!==null&&Us(n,n.return),t.flags&32){var s=t.stateNode;try{yo(s,"")}catch(v){je(t,t.return,v)}}if(r&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Ny(s,i),Pu(a,o);var u=Pu(a,i);for(o=0;o<l.length;o+=2){var d=l[o],h=l[o+1];d==="style"?Hy(s,h):d==="dangerouslySetInnerHTML"?Iy(s,h):d==="children"?yo(s,h):Qd(s,d,h,u)}switch(a){case"input":Tu(s,i);break;case"textarea":Ry(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Vs(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Vs(s,!!i.multiple,i.defaultValue,!0):Vs(s,!!i.multiple,i.multiple?[]:"",!1))}s[To]=i}catch(v){je(t,t.return,v)}}break;case 6:if(Ht(e,t),nn(t),r&4){if(t.stateNode===null)throw Error(P(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(v){je(t,t.return,v)}}break;case 3:if(Ht(e,t),nn(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{bo(e.containerInfo)}catch(v){je(t,t.return,v)}break;case 4:Ht(e,t),nn(t);break;case 13:Ht(e,t),nn(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Ph=Pe())),r&4&&vf(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(Ge=(u=Ge)||d,Ht(e,t),Ge=u):Ht(e,t),nn(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(F=t,d=t.child;d!==null;){for(h=F=d;F!==null;){switch(f=F,p=f.child,f.tag){case 0:case 11:case 14:case 15:oo(4,f,f.return);break;case 1:Us(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(v){je(r,n,v)}}break;case 5:Us(f,f.return);break;case 22:if(f.memoizedState!==null){bf(h);continue}}p!==null?(p.return=f,F=p):bf(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ly("display",o))}catch(v){je(t,t.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(v){je(t,t.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ht(e,t),nn(t),r&4&&vf(t);break;case 21:break;default:Ht(e,t),nn(t)}}function nn(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(av(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(yo(s,""),r.flags&=-33);var i=gf(t);od(t,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=gf(t);id(t,a,o);break;default:throw Error(P(161))}}catch(l){je(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function s1(t,e,n){F=t,uv(t)}function uv(t,e,n){for(var r=(t.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Aa;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ge;a=Aa;var u=Ge;if(Aa=o,(Ge=l)&&!u)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?xf(s):l!==null?(l.return=o,F=l):xf(s);for(;i!==null;)F=i,uv(i),i=i.sibling;F=s,Aa=a,Ge=u}wf(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):wf(t)}}function wf(t){for(;F!==null;){var e=F;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Ge||sc(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:Ft(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&nf(e,i,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}nf(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&bo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Ge||e.flags&512&&sd(e)}catch(f){je(e,e.return,f)}}if(e===t){F=null;break}if(n=e.sibling,n!==null){n.return=e.return,F=n;break}F=e.return}}function bf(t){for(;F!==null;){var e=F;if(e===t){F=null;break}var n=e.sibling;if(n!==null){n.return=e.return,F=n;break}F=e.return}}function xf(t){for(;F!==null;){var e=F;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{sc(4,e)}catch(l){je(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(l){je(e,s,l)}}var i=e.return;try{sd(e)}catch(l){je(e,i,l)}break;case 5:var o=e.return;try{sd(e)}catch(l){je(e,o,l)}}}catch(l){je(e,e.return,l)}if(e===t){F=null;break}var a=e.sibling;if(a!==null){a.return=e.return,F=a;break}F=e.return}}var i1=Math.ceil,Tl=Fn.ReactCurrentDispatcher,Ah=Fn.ReactCurrentOwner,jt=Fn.ReactCurrentBatchConfig,le=0,Fe=null,Oe=null,Ue=0,pt=0,zs=Lr(0),Me=0,No=null,as=0,ic=0,jh=0,ao=null,ot=null,Ph=0,yi=1/0,Sn=null,Cl=!1,ad=null,xr=null,ja=!1,hr=null,El=0,lo=0,ld=null,Xa=-1,el=0;function tt(){return le&6?Pe():Xa!==-1?Xa:Xa=Pe()}function kr(t){return t.mode&1?le&2&&Ue!==0?Ue&-Ue:Bx.transition!==null?(el===0&&(el=Yy()),el):(t=pe,t!==0||(t=window.event,t=t===void 0?16:tg(t.type)),t):1}function Gt(t,e,n,r){if(50<lo)throw lo=0,ld=null,Error(P(185));Qo(t,n,r),(!(le&2)||t!==Fe)&&(t===Fe&&(!(le&2)&&(ic|=n),Me===4&&rr(t,Ue)),ut(t,r),n===1&&le===0&&!(e.mode&1)&&(yi=Pe()+500,tc&&Hr()))}function ut(t,e){var n=t.callbackNode;B0(t,e);var r=ul(t,t===Fe?Ue:0);if(r===0)n!==null&&jp(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&jp(n),e===1)t.tag===0?Wx(kf.bind(null,t)):bg(kf.bind(null,t)),Mx(function(){!(le&6)&&Hr()}),n=null;else{switch(Jy(r)){case 1:n=nh;break;case 4:n=qy;break;case 16:n=cl;break;case 536870912:n=Vy;break;default:n=cl}n=vv(n,dv.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function dv(t,e){if(Xa=-1,el=0,le&6)throw Error(P(327));var n=t.callbackNode;if(Zs()&&t.callbackNode!==n)return null;var r=ul(t,t===Fe?Ue:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Al(t,r);else{e=r;var s=le;le|=2;var i=pv();(Fe!==t||Ue!==e)&&(Sn=null,yi=Pe()+500,ns(t,e));do try{l1();break}catch(a){hv(t,a)}while(!0);mh(),Tl.current=i,le=s,Oe!==null?e=0:(Fe=null,Ue=0,e=Me)}if(e!==0){if(e===2&&(s=Lu(t),s!==0&&(r=s,e=cd(t,s))),e===1)throw n=No,ns(t,0),rr(t,r),ut(t,Pe()),n;if(e===6)rr(t,r);else{if(s=t.current.alternate,!(r&30)&&!o1(s)&&(e=Al(t,r),e===2&&(i=Lu(t),i!==0&&(r=i,e=cd(t,i))),e===1))throw n=No,ns(t,0),rr(t,r),ut(t,Pe()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(P(345));case 2:Ur(t,ot,Sn);break;case 3:if(rr(t,r),(r&130023424)===r&&(e=Ph+500-Pe(),10<e)){if(ul(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){tt(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Uu(Ur.bind(null,t,ot,Sn),e);break}Ur(t,ot,Sn);break;case 4:if(rr(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var o=31-Jt(r);i=1<<o,o=e[o],o>s&&(s=o),r&=~i}if(r=s,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*i1(r/1960))-r,10<r){t.timeoutHandle=Uu(Ur.bind(null,t,ot,Sn),r);break}Ur(t,ot,Sn);break;case 5:Ur(t,ot,Sn);break;default:throw Error(P(329))}}}return ut(t,Pe()),t.callbackNode===n?dv.bind(null,t):null}function cd(t,e){var n=ao;return t.current.memoizedState.isDehydrated&&(ns(t,e).flags|=256),t=Al(t,e),t!==2&&(e=ot,ot=n,e!==null&&ud(e)),t}function ud(t){ot===null?ot=t:ot.push.apply(ot,t)}function o1(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Qt(i(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function rr(t,e){for(e&=~jh,e&=~ic,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Jt(e),r=1<<n;t[n]=-1,e&=~r}}function kf(t){if(le&6)throw Error(P(327));Zs();var e=ul(t,0);if(!(e&1))return ut(t,Pe()),null;var n=Al(t,e);if(t.tag!==0&&n===2){var r=Lu(t);r!==0&&(e=r,n=cd(t,r))}if(n===1)throw n=No,ns(t,0),rr(t,e),ut(t,Pe()),n;if(n===6)throw Error(P(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ur(t,ot,Sn),ut(t,Pe()),null}function Nh(t,e){var n=le;le|=1;try{return t(e)}finally{le=n,le===0&&(yi=Pe()+500,tc&&Hr())}}function ls(t){hr!==null&&hr.tag===0&&!(le&6)&&Zs();var e=le;le|=1;var n=jt.transition,r=pe;try{if(jt.transition=null,pe=1,t)return t()}finally{pe=r,jt.transition=n,le=e,!(le&6)&&Hr()}}function Rh(){pt=zs.current,we(zs)}function ns(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Hx(n)),Oe!==null)for(n=Oe.return;n!==null;){var r=n;switch(hh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ml();break;case 3:fi(),we(lt),we(Qe),xh();break;case 5:bh(r);break;case 4:fi();break;case 13:we(ke);break;case 19:we(ke);break;case 10:yh(r.type._context);break;case 22:case 23:Rh()}n=n.return}if(Fe=t,Oe=t=Sr(t.current,null),Ue=pt=e,Me=0,No=null,jh=ic=as=0,ot=ao=null,Vr!==null){for(e=0;e<Vr.length;e++)if(n=Vr[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Vr=null}return t}function hv(t,e){do{var n=Oe;try{if(mh(),Ga.current=_l,Sl){for(var r=Se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Sl=!1}if(os=0,De=Le=Se=null,io=!1,Ao=0,Ah.current=null,n===null||n.return===null){Me=1,No=e,Oe=null;break}e:{var i=t,o=n.return,a=n,l=e;if(e=Ue,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=cf(o);if(p!==null){p.flags&=-257,uf(p,o,a,i,e),p.mode&1&&lf(i,u,e),e=p,l=u;var w=e.updateQueue;if(w===null){var v=new Set;v.add(l),e.updateQueue=v}else w.add(l);break e}else{if(!(e&1)){lf(i,u,e),Oh();break e}l=Error(P(426))}}else if(xe&&a.mode&1){var b=cf(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),uf(b,o,a,i,e),ph(mi(l,a));break e}}i=l=mi(l,a),Me!==4&&(Me=2),ao===null?ao=[i]:ao.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=Jg(i,l,e);tf(i,g);break e;case 1:a=l;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(xr===null||!xr.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var k=Gg(i,a,e);tf(i,k);break e}}i=i.return}while(i!==null)}mv(n)}catch(S){e=S,Oe===n&&n!==null&&(Oe=n=n.return);continue}break}while(!0)}function pv(){var t=Tl.current;return Tl.current=_l,t===null?_l:t}function Oh(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||!(as&268435455)&&!(ic&268435455)||rr(Fe,Ue)}function Al(t,e){var n=le;le|=2;var r=pv();(Fe!==t||Ue!==e)&&(Sn=null,ns(t,e));do try{a1();break}catch(s){hv(t,s)}while(!0);if(mh(),le=n,Tl.current=r,Oe!==null)throw Error(P(261));return Fe=null,Ue=0,Me}function a1(){for(;Oe!==null;)fv(Oe)}function l1(){for(;Oe!==null&&!O0();)fv(Oe)}function fv(t){var e=gv(t.alternate,t,pt);t.memoizedProps=t.pendingProps,e===null?mv(t):Oe=e,Ah.current=null}function mv(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=t1(n,e),n!==null){n.flags&=32767,Oe=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Me=6,Oe=null;return}}else if(n=e1(n,e,pt),n!==null){Oe=n;return}if(e=e.sibling,e!==null){Oe=e;return}Oe=e=t}while(e!==null);Me===0&&(Me=5)}function Ur(t,e,n){var r=pe,s=jt.transition;try{jt.transition=null,pe=1,c1(t,e,n,r)}finally{jt.transition=s,pe=r}return null}function c1(t,e,n,r){do Zs();while(hr!==null);if(le&6)throw Error(P(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(P(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(U0(t,i),t===Fe&&(Oe=Fe=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ja||(ja=!0,vv(cl,function(){return Zs(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jt.transition,jt.transition=null;var o=pe;pe=1;var a=le;le|=4,Ah.current=null,r1(t,n),cv(n,t),jx(Wu),dl=!!$u,Wu=$u=null,t.current=n,s1(n),I0(),le=a,pe=o,jt.transition=i}else t.current=n;if(ja&&(ja=!1,hr=t,El=s),i=t.pendingLanes,i===0&&(xr=null),M0(n.stateNode),ut(t,Pe()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Cl)throw Cl=!1,t=ad,ad=null,t;return El&1&&t.tag!==0&&Zs(),i=t.pendingLanes,i&1?t===ld?lo++:(lo=0,ld=t):lo=0,Hr(),null}function Zs(){if(hr!==null){var t=Jy(El),e=jt.transition,n=pe;try{if(jt.transition=null,pe=16>t?16:t,hr===null)var r=!1;else{if(t=hr,hr=null,El=0,le&6)throw Error(P(331));var s=le;for(le|=4,F=t.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:oo(8,d,i)}var h=d.child;if(h!==null)h.return=d,F=h;else for(;F!==null;){d=F;var f=d.sibling,p=d.return;if(ov(d),d===u){F=null;break}if(f!==null){f.return=p,F=f;break}F=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}F=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,F=o;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:oo(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,F=g;break e}F=i.return}}var m=t.current;for(F=m;F!==null;){o=F;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,F=y;else e:for(o=m;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:sc(9,a)}}catch(S){je(a,a.return,S)}if(a===o){F=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,F=k;break e}F=a.return}}if(le=s,Hr(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Gl,t)}catch{}r=!0}return r}finally{pe=n,jt.transition=e}}return!1}function Sf(t,e,n){e=mi(n,e),e=Jg(t,e,1),t=br(t,e,1),e=tt(),t!==null&&(Qo(t,1,e),ut(t,e))}function je(t,e,n){if(t.tag===3)Sf(t,t,n);else for(;e!==null;){if(e.tag===3){Sf(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xr===null||!xr.has(r))){t=mi(n,t),t=Gg(e,t,1),e=br(e,t,1),t=tt(),e!==null&&(Qo(e,1,t),ut(e,t));break}}e=e.return}}function u1(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=tt(),t.pingedLanes|=t.suspendedLanes&n,Fe===t&&(Ue&n)===n&&(Me===4||Me===3&&(Ue&130023424)===Ue&&500>Pe()-Ph?ns(t,0):jh|=n),ut(t,e)}function yv(t,e){e===0&&(t.mode&1?(e=wa,wa<<=1,!(wa&130023424)&&(wa=4194304)):e=1);var n=tt();t=On(t,e),t!==null&&(Qo(t,e,n),ut(t,n))}function d1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),yv(t,n)}function h1(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(e),yv(t,n)}var gv;gv=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||lt.current)at=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return at=!1,Xx(t,e,n);at=!!(t.flags&131072)}else at=!1,xe&&e.flags&1048576&&xg(e,vl,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Za(t,e),t=e.pendingProps;var s=di(e,Qe.current);Qs(e,n),s=Sh(null,e,r,t,s,n);var i=_h();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ct(r)?(i=!0,yl(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,vh(e),s.updater=rc,e.stateNode=s,s._reactInternals=e,Gu(e,r,t,n),e=Xu(null,e,r,!0,i,n)):(e.tag=0,xe&&i&&dh(e),Xe(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Za(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=f1(r),t=Ft(r,t),s){case 0:e=Zu(null,e,r,t,n);break e;case 1:e=pf(null,e,r,t,n);break e;case 11:e=df(null,e,r,t,n);break e;case 14:e=hf(null,e,r,Ft(r.type,t),n);break e}throw Error(P(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Ft(r,s),Zu(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Ft(r,s),pf(t,e,r,s,n);case 3:e:{if(ev(e),t===null)throw Error(P(387));r=e.pendingProps,i=e.memoizedState,s=i.element,Eg(t,e),xl(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=mi(Error(P(423)),e),e=ff(t,e,r,n,s);break e}else if(r!==s){s=mi(Error(P(424)),e),e=ff(t,e,r,n,s);break e}else for(yt=wr(e.stateNode.containerInfo.firstChild),gt=e,xe=!0,Kt=null,n=Tg(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hi(),r===s){e=In(t,e,n);break e}Xe(t,e,r,n)}e=e.child}return e;case 5:return Ag(e),t===null&&Vu(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,Bu(r,s)?o=null:i!==null&&Bu(r,i)&&(e.flags|=32),Xg(t,e),
vendor: 11,696 bytes, line 40
40Xe(t,e,o,n),e.child;case 6:return t===null&&Vu(e),null;case 13:return tv(t,e,n);case 4:return wh(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=pi(e,null,r,n):Xe(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Ft(r,s),df(t,e,r,s,n);case 7:return Xe(t,e,e.pendingProps,n),e.child;case 8:return Xe(t,e,e.pendingProps.children,n),e.child;case 12:return Xe(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,ye(wl,r._currentValue),r._currentValue=o,i!==null)if(Qt(i.value,o)){if(i.children===s.children&&!lt.current){e=In(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Pn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Yu(i.return,n,e),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Yu(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Xe(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,Qs(e,n),s=Pt(s),r=r(s),e.flags|=1,Xe(t,e,r,n),e.child;case 14:return r=e.type,s=Ft(r,e.pendingProps),s=Ft(r.type,s),hf(t,e,r,s,n);case 15:return Qg(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Ft(r,s),Za(t,e),e.tag=1,ct(r)?(t=!0,yl(e)):t=!1,Qs(e,n),Yg(e,r,s),Gu(e,r,s,n),Xu(null,e,r,!0,t,n);case 19:return nv(t,e,n);case 22:return Zg(t,e,n)}throw Error(P(156,e.tag))};function vv(t,e){return Ky(t,e)}function p1(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(t,e,n,r){return new p1(t,e,n,r)}function Ih(t){return t=t.prototype,!(!t||!t.isReactComponent)}function f1(t){if(typeof t=="function")return Ih(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Xd)return 11;if(t===eh)return 14}return 2}function Sr(t,e){var n=t.alternate;return n===null?(n=At(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function tl(t,e,n,r,s,i){var o=2;if(r=t,typeof t=="function")Ih(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Is:return rs(n.children,s,i,e);case Zd:o=8,s|=8;break;case bu:return t=At(12,n,e,s|2),t.elementType=bu,t.lanes=i,t;case xu:return t=At(13,n,e,s),t.elementType=xu,t.lanes=i,t;case ku:return t=At(19,n,e,s),t.elementType=ku,t.lanes=i,t;case Ay:return oc(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Cy:o=10;break e;case Ey:o=9;break e;case Xd:o=11;break e;case eh:o=14;break e;case Xn:o=16,r=null;break e}throw Error(P(130,t==null?t:typeof t,""))}return e=At(o,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function rs(t,e,n,r){return t=At(7,t,r,e),t.lanes=n,t}function oc(t,e,n,r){return t=At(22,t,r,e),t.elementType=Ay,t.lanes=n,t.stateNode={isHidden:!1},t}function ru(t,e,n){return t=At(6,t,null,e),t.lanes=n,t}function su(t,e,n){return e=At(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function m1(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Lh(t,e,n,r,s,i,o,a,l){return t=new m1(t,e,n,a,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=At(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vh(i),t}function y1(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Os,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function wv(t){if(!t)return Er;t=t._reactInternals;e:{if(hs(t)!==t||t.tag!==1)throw Error(P(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(ct(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(P(171))}if(t.tag===1){var n=t.type;if(ct(n))return wg(t,n,e)}return e}function bv(t,e,n,r,s,i,o,a,l){return t=Lh(n,r,!0,t,s,i,o,a,l),t.context=wv(null),n=t.current,r=tt(),s=kr(n),i=Pn(r,s),i.callback=e??null,br(n,i,s),t.current.lanes=s,Qo(t,s,r),ut(t,r),t}function ac(t,e,n,r){var s=e.current,i=tt(),o=kr(s);return n=wv(n),e.context===null?e.context=n:e.pendingContext=n,e=Pn(i,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=br(s,e,o),t!==null&&(Gt(t,s,o,i),Ja(t,s,o)),o}function jl(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function _f(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Hh(t,e){_f(t,e),(t=t.alternate)&&_f(t,e)}function g1(){return null}var xv=typeof reportError=="function"?reportError:function(t){console.error(t)};function Mh(t){this._internalRoot=t}lc.prototype.render=Mh.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(P(409));ac(t,e,null,null)};lc.prototype.unmount=Mh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;ls(function(){ac(null,t,null,null)}),e[Rn]=null}};function lc(t){this._internalRoot=t}lc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Zy();t={blockedOn:null,target:t,priority:e};for(var n=0;n<nr.length&&e!==0&&e<nr[n].priority;n++);nr.splice(n,0,t),n===0&&eg(t)}};function Dh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function cc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Tf(){}function v1(t,e,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=jl(o);i.call(u)}}var o=bv(e,r,t,0,null,!1,!1,"",Tf);return t._reactRootContainer=o,t[Rn]=o.current,So(t.nodeType===8?t.parentNode:t),ls(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=jl(l);a.call(u)}}var l=Lh(t,0,!1,null,null,!1,!1,"",Tf);return t._reactRootContainer=l,t[Rn]=l.current,So(t.nodeType===8?t.parentNode:t),ls(function(){ac(e,l,n,r)}),l}function uc(t,e,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=jl(o);a.call(l)}}ac(e,o,t,s)}else o=v1(n,e,t,s,r);return jl(o)}Gy=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Ji(e.pendingLanes);n!==0&&(rh(e,n|1),ut(e,Pe()),!(le&6)&&(yi=Pe()+500,Hr()))}break;case 13:ls(function(){var r=On(t,1);if(r!==null){var s=tt();Gt(r,t,1,s)}}),Hh(t,1)}};sh=function(t){if(t.tag===13){var e=On(t,134217728);if(e!==null){var n=tt();Gt(e,t,134217728,n)}Hh(t,134217728)}};Qy=function(t){if(t.tag===13){var e=kr(t),n=On(t,e);if(n!==null){var r=tt();Gt(n,t,e,r)}Hh(t,e)}};Zy=function(){return pe};Xy=function(t,e){var n=pe;try{return pe=t,e()}finally{pe=n}};Ru=function(t,e,n){switch(e){case"input":if(Tu(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=ec(r);if(!s)throw Error(P(90));Py(r),Tu(r,s)}}}break;case"textarea":Ry(t,n);break;case"select":e=n.value,e!=null&&Vs(t,!!n.multiple,e,!1)}};Fy=Nh;$y=ls;var w1={usingClientEntryPoint:!1,Events:[Xo,Ds,ec,My,Dy,Nh]},Ui={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},b1={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Uy(t),t===null?null:t.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||g1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pa.isDisabled&&Pa.supportsFiber)try{Gl=Pa.inject(b1),pn=Pa}catch{}}xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w1;xt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dh(e))throw Error(P(200));return y1(t,e,null,n)};xt.createRoot=function(t,e){if(!Dh(t))throw Error(P(299));var n=!1,r="",s=xv;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Lh(t,1,!1,null,null,n,!1,r,s),t[Rn]=e.current,So(t.nodeType===8?t.parentNode:t),new Mh(e)};xt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(P(188)):(t=Object.keys(t).join(","),Error(P(268,t)));return t=Uy(e),t=t===null?null:t.stateNode,t};xt.flushSync=function(t){return ls(t)};xt.hydrate=function(t,e,n){if(!cc(e))throw Error(P(200));return uc(null,t,e,!0,n)};xt.hydrateRoot=function(t,e,n){if(!Dh(t))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=xv;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=bv(e,null,t,1,n??null,s,!1,i,o),t[Rn]=e.current,So(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new lc(e)};xt.render=function(t,e,n){if(!cc(e))throw Error(P(200));return uc(null,t,e,!1,n)};xt.unmountComponentAtNode=function(t){if(!cc(t))throw Error(P(40));return t._reactRootContainer?(ls(function(){uc(null,null,t,!1,function(){t._reactRootContainer=null,t[Rn]=null})}),!0):!1};xt.unstable_batchedUpdates=Nh;xt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!cc(n))throw Error(P(200));if(t==null||t._reactInternals===void 0)throw Error(P(38));return uc(t,e,n,!1,r)};xt.version="18.3.1-next-f1338f8080-20240426";
vendor: 24,045 bytes, line 40
40function kv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kv)}catch(t){console.error(t)}}kv(),ky.exports=xt;var ta=ky.exports;const Sv=cy(ta);var _v,Cf=ta;_v=Cf.createRoot,Cf.hydrateRoot;var dc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hc=typeof window>"u"||"Deno"in globalThis;function $t(){}function x1(t,e){return typeof t=="function"?t(e):t}function k1(t){return typeof t=="number"&&t>=0&&t!==1/0}function S1(t,e){return Math.max(t+(e||0)-Date.now(),0)}function dd(t,e){return typeof t=="function"?t(e):t}function _1(t,e){return typeof t=="function"?t(e):t}function Ef(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==Fh(o,e.options))return!1}else if(!Oo(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function Af(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(Ro(e.options.mutationKey)!==Ro(i))return!1}else if(!Oo(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Fh(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ro)(t)}function Ro(t){return JSON.stringify(t,(e,n)=>hd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Oo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Oo(t[n],e[n])):!1}function Tv(t,e){if(t===e)return t;const n=jf(t)&&jf(e);if(n||hd(t)&&hd(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<o;d++){const h=n?d:i[d];(!n&&l.has(h)||n)&&t[h]===void 0&&e[h]===void 0?(a[h]=void 0,u++):(a[h]=Tv(t[h],e[h]),a[h]===t[h]&&t[h]!==void 0&&u++)}return s===o&&u===s?t:a}return e}function jf(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function hd(t){if(!Pf(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Pf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Pf(t){return Object.prototype.toString.call(t)==="[object Object]"}function T1(t){return new Promise(e=>{setTimeout(e,t)})}function C1(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Tv(t,e):e}function E1(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function A1(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var $h=Symbol();function Cv(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===$h?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Gr,or,ni,ty,j1=(ty=class extends dc{constructor(){super();ue(this,Gr);ue(this,or);ue(this,ni);Z(this,ni,e=>{if(!hc&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,or)||this.setEventListener(C(this,ni))}onUnsubscribe(){var e;this.hasListeners()||((e=C(this,or))==null||e.call(this),Z(this,or,void 0))}setEventListener(e){var n;Z(this,ni,e),(n=C(this,or))==null||n.call(this),Z(this,or,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){C(this,Gr)!==e&&(Z(this,Gr,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof C(this,Gr)=="boolean"?C(this,Gr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Gr=new WeakMap,or=new WeakMap,ni=new WeakMap,ty),Ev=new j1,ri,ar,si,ny,P1=(ny=class extends dc{constructor(){super();ue(this,ri,!0);ue(this,ar);ue(this,si);Z(this,si,e=>{if(!hc&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,ar)||this.setEventListener(C(this,si))}onUnsubscribe(){var e;this.hasListeners()||((e=C(this,ar))==null||e.call(this),Z(this,ar,void 0))}setEventListener(e){var n;Z(this,si,e),(n=C(this,ar))==null||n.call(this),Z(this,ar,e(this.setOnline.bind(this)))}setOnline(e){C(this,ri)!==e&&(Z(this,ri,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return C(this,ri)}},ri=new WeakMap,ar=new WeakMap,si=new WeakMap,ny),Pl=new P1;function N1(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function R1(t){return Math.min(1e3*2**t,3e4)}function Av(t){return(t??"online")==="online"?Pl.isOnline():!0}var jv=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function iu(t){return t instanceof jv}function Pv(t){let e=!1,n=0,r=!1,s;const i=N1(),o=v=>{var b;r||(f(new jv(v)),(b=t.abort)==null||b.call(t))},a=()=>{e=!0},l=()=>{e=!1},u=()=>Ev.isFocused()&&(t.networkMode==="always"||Pl.isOnline())&&t.canRun(),d=()=>Av(t.networkMode)&&t.canRun(),h=v=>{var b;r||(r=!0,(b=t.onSuccess)==null||b.call(t,v),s==null||s(),i.resolve(v))},f=v=>{var b;r||(r=!0,(b=t.onError)==null||b.call(t,v),s==null||s(),i.reject(v))},p=()=>new Promise(v=>{var b;s=g=>{(r||u())&&v(g)},(b=t.onPause)==null||b.call(t)}).then(()=>{var v;s=void 0,r||(v=t.onContinue)==null||v.call(t)}),w=()=>{if(r)return;let v;const b=n===0?t.initialPromise:void 0;try{v=b??t.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(h).catch(g=>{var _;if(r)return;const m=t.retry??(hc?0:3),y=t.retryDelay??R1,k=typeof y=="function"?y(n,g):y,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(e||!S){f(g);return}n++,(_=t.onFail)==null||_.call(t,n,g),T1(k).then(()=>u()?void 0:p()).then(()=>{e?f(g):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():p().then(w),i)}}var O1=t=>setTimeout(t,0);function I1(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=O1;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var et=I1(),Qr,ry,Nv=(ry=class{constructor(){ue(this,Qr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),k1(this.gcTime)&&Z(this,Qr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(hc?1/0:5*60*1e3))}clearGcTimeout(){C(this,Qr)&&(clearTimeout(C(this,Qr)),Z(this,Qr,void 0))}},Qr=new WeakMap,ry),ii,Zr,Tt,Xr,Je,Yo,es,Bt,kn,sy,L1=(sy=class extends Nv{constructor(e){super();ue(this,Bt);ue(this,ii);ue(this,Zr);ue(this,Tt);ue(this,Xr);ue(this,Je);ue(this,Yo);ue(this,es);Z(this,es,!1),Z(this,Yo,e.defaultOptions),this.setOptions(e.options),this.observers=[],Z(this,Xr,e.client),Z(this,Tt,C(this,Xr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Z(this,ii,M1(this.options)),this.state=e.state??C(this,ii),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=C(this,Je))==null?void 0:e.promise}setOptions(e){this.options={...C(this,Yo),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Tt).remove(this)}setData(e,n){const r=C1(this.state.data,e,this.options);return qe(this,Bt,kn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){qe(this,Bt,kn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=C(this,Je))==null?void 0:r.promise;return(s=C(this,Je))==null||s.cancel(e),n?n.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,ii))}isActive(){return this.observers.some(e=>_1(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$h||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>dd(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!S1(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=C(this,Je))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=C(this,Je))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),C(this,Tt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(C(this,Je)&&(C(this,es)?C(this,Je).cancel({revert:!0}):C(this,Je).cancelRetry()),this.scheduleGc()),C(this,Tt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||qe(this,Bt,kn).call(this,{type:"invalidate"})}fetch(e,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Je))return C(this,Je).continueRetry(),C(this,Je).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Z(this,es,!0),r.signal)})},i=()=>{const f=Cv(this.options,n),w=(()=>{const v={client:C(this,Xr),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return Z(this,es,!1),this.options.persister?this.options.persister(f,w,this):f(w)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,Xr),state:this.state,fetchFn:i};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),Z(this,Zr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&qe(this,Bt,kn).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=f=>{var p,w,v,b;iu(f)&&f.silent||qe(this,Bt,kn).call(this,{type:"error",error:f}),iu(f)||((w=(p=C(this,Tt).config).onError)==null||w.call(p,f,this),(b=(v=C(this,Tt).config).onSettled)==null||b.call(v,this.state.data,f,this)),this.scheduleGc()};return Z(this,Je,Pv({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,w,v,b;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){l(g);return}(w=(p=C(this,Tt).config).onSuccess)==null||w.call(p,f,this),(b=(v=C(this,Tt).config).onSettled)==null||b.call(v,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{qe(this,Bt,kn).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{qe(this,Bt,kn).call(this,{type:"pause"})},onContinue:()=>{qe(this,Bt,kn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,Je).start()}},ii=new WeakMap,Zr=new WeakMap,Tt=new WeakMap,Xr=new WeakMap,Je=new WeakMap,Yo=new WeakMap,es=new WeakMap,Bt=new WeakSet,kn=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...H1(r.data,this.options),fetchMeta:e.meta??null};case"success":return Z(this,Zr,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return iu(s)&&s.revert&&C(this,Zr)?{...C(this,Zr),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Tt).notify({query:this,type:"updated",action:e})})},sy);function H1(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Av(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function M1(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var an,iy,D1=(iy=class extends dc{constructor(e={}){super();ue(this,an);this.config=e,Z(this,an,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??Fh(s,n);let o=this.get(i);return o||(o=new L1({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){C(this,an).has(e.queryHash)||(C(this,an).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=C(this,an).get(e.queryHash);n&&(e.destroy(),n===e&&C(this,an).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){et.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return C(this,an).get(e)}getAll(){return[...C(this,an).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Ef(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Ef(e,r)):n}notify(e){et.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){et.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){et.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},an=new WeakMap,iy),ln,Ze,ts,cn,Zn,oy,F1=(oy=class extends Nv{constructor(e){super();ue(this,cn);ue(this,ln);ue(this,Ze);ue(this,ts);this.mutationId=e.mutationId,Z(this,Ze,e.mutationCache),Z(this,ln,[]),this.state=e.state||$1(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){C(this,ln).includes(e)||(C(this,ln).push(e),this.clearGcTimeout(),C(this,Ze).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Z(this,ln,C(this,ln).filter(n=>n!==e)),this.scheduleGc(),C(this,Ze).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){C(this,ln).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ze).remove(this))}continue(){var e;return((e=C(this,ts))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,u,d,h,f,p,w,v,b,g,m,y,k,S,_,T,A;const n=()=>{qe(this,cn,Zn).call(this,{type:"continue"})};Z(this,ts,Pv({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(N,O)=>{qe(this,cn,Zn).call(this,{type:"failed",failureCount:N,error:O})},onPause:()=>{qe(this,cn,Zn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ze).canRun(this)}));const r=this.state.status==="pending",s=!C(this,ts).canStart();try{if(r)n();else{qe(this,cn,Zn).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=C(this,Ze).config).onMutate)==null?void 0:o.call(i,e,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));O!==this.state.context&&qe(this,cn,Zn).call(this,{type:"pending",context:O,variables:e,isPaused:s})}const N=await C(this,ts).start();return await((d=(u=C(this,Ze).config).onSuccess)==null?void 0:d.call(u,N,e,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,N,e,this.state.context)),await((w=(p=C(this,Ze).config).onSettled)==null?void 0:w.call(p,N,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,N,null,e,this.state.context)),qe(this,cn,Zn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((m=(g=C(this,Ze).config).onError)==null?void 0:m.call(g,N,e,this.state.context,this)),await((k=(y=this.options).onError)==null?void 0:k.call(y,N,e,this.state.context)),await((_=(S=C(this,Ze).config).onSettled)==null?void 0:_.call(S,void 0,N,this.state.variables,this.state.context,this)),await((A=(T=this.options).onSettled)==null?void 0:A.call(T,void 0,N,e,this.state.context)),N}finally{qe(this,cn,Zn).call(this,{type:"error",error:N})}}finally{C(this,Ze).runNext(this)}}},ln=new WeakMap,Ze=new WeakMap,ts=new WeakMap,cn=new WeakSet,Zn=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),et.batch(()=>{C(this,ln).forEach(r=>{r.onMutationUpdate(e)}),C(this,Ze).notify({mutation:this,type:"updated",action:e})})},oy);function $1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var En,Ut,Jo,ay,W1=(ay=class extends dc{constructor(e={}){super();ue(this,En);ue(this,Ut);ue(this,Jo);this.config=e,Z(this,En,new Set),Z(this,Ut,new Map),Z(this,Jo,0)}build(e,n,r){const s=new F1({mutationCache:this,mutationId:++pa(this,Jo)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){C(this,En).add(e);const n=Na(e);if(typeof n=="string"){const r=C(this,Ut).get(n);r?r.push(e):C(this,Ut).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(C(this,En).delete(e)){const n=Na(e);if(typeof n=="string"){const r=C(this,Ut).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&C(this,Ut).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Na(e);if(typeof n=="string"){const r=C(this,Ut).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=Na(e);if(typeof n=="string"){const s=(r=C(this,Ut).get(n))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){et.batch(()=>{C(this,En).forEach(e=>{this.notify({type:"removed",mutation:e})}),C(this,En).clear(),C(this,Ut).clear()})}getAll(){return Array.from(C(this,En))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Af(n,r))}findAll(e={}){return this.getAll().filter(n=>Af(e,n))}notify(e){et.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return et.batch(()=>Promise.all(e.map(n=>n.continue().catch($t))))}},En=new WeakMap,Ut=new WeakMap,Jo=new WeakMap,ay);function Na(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Nf(t){return{onFetch:(e,n)=>{var d,h,f,p,w;const r=e.options,s=(f=(h=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((p=e.state.data)==null?void 0:p.pages)||[],o=((w=e.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const b=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?v=!0:e.signal.addEventListener("abort",()=>{v=!0}),e.signal)})},g=Cv(e.options,e.fetchOptions),m=async(y,k,S)=>{if(v)return Promise.reject();if(k==null&&y.pages.length)return Promise.resolve(y);const T=(()=>{const q={client:e.client,queryKey:e.queryKey,pageParam:k,direction:S?"backward":"forward",meta:e.options.meta};return b(q),q})(),A=await g(T),{maxPages:N}=e.options,O=S?A1:E1;return{pages:O(y.pages,A,N),pageParams:O(y.pageParams,k,N)}};if(s&&i.length){const y=s==="backward",k=y?B1:Rf,S={pages:i,pageParams:o},_=k(r,S);a=await m(S,_,y)}else{const y=t??i.length;do{const k=l===0?o[0]??r.initialPageParam:Rf(r,a);if(l>0&&k==null)break;a=await m(a,k),l++}while(l<y)}return a};e.options.persister?e.fetchFn=()=>{var v,b;return(b=(v=e.options).persister)==null?void 0:b.call(v,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function Rf(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function B1(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Ce,lr,cr,oi,ai,ur,li,ci,ly,U1=(ly=class{constructor(t={}){ue(this,Ce);ue(this,lr);ue(this,cr);ue(this,oi);ue(this,ai);ue(this,ur);ue(this,li);ue(this,ci);Z(this,Ce,t.queryCache||new D1),Z(this,lr,t.mutationCache||new W1),Z(this,cr,t.defaultOptions||{}),Z(this,oi,new Map),Z(this,ai,new Map),Z(this,ur,0)}mount(){pa(this,ur)._++,C(this,ur)===1&&(Z(this,li,Ev.subscribe(async t=>{t&&(await this.resumePausedMutations(),C(this,Ce).onFocus())})),Z(this,ci,Pl.subscribe(async t=>{t&&(await this.resumePausedMutations(),C(this,Ce).onOnline())})))}unmount(){var t,e;pa(this,ur)._--,C(this,ur)===0&&((t=C(this,li))==null||t.call(this),Z(this,li,void 0),(e=C(this,ci))==null||e.call(this),Z(this,ci,void 0))}isFetching(t){return C(this,Ce).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return C(this,lr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=C(this,Ce).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=C(this,Ce).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(dd(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return C(this,Ce).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=C(this,Ce).get(r.queryHash),i=s==null?void 0:s.state.data,o=x1(e,i);if(o!==void 0)return C(this,Ce).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return et.batch(()=>C(this,Ce).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=C(this,Ce).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=C(this,Ce);et.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=C(this,Ce);return et.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=et.batch(()=>C(this,Ce).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then($t).catch($t)}invalidateQueries(t,e={}){return et.batch(()=>(C(this,Ce).findAll(t).forEach(n=>
40{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=et.batch(()=>C(this,Ce).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch($t)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($t)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=C(this,Ce).build(this,e);return n.isStaleByTime(dd(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then($t).catch($t)}fetchInfiniteQuery(t){return t.behavior=Nf(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then($t).catch($t)}ensureInfiniteQueryData(t){return t.behavior=Nf(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Pl.isOnline()?C(this,lr).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ce)}getMutationCache(){return C(this,lr)}getDefaultOptions(){return C(this,cr)}setDefaultOptions(t){Z(this,cr,t)}setQueryDefaults(t,e){C(this,oi).set(Ro(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...C(this,oi).values()],n={};return e.forEach(r=>{Oo(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){C(this,ai).set(Ro(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...C(this,ai).values()],n={};return e.forEach(r=>{Oo(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...C(this,cr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Fh(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===$h&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...C(this,cr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){C(this,Ce).clear(),C(this,lr).clear()}},Ce=new WeakMap,lr=new WeakMap,cr=new WeakMap,oi=new WeakMap,ai=new WeakMap,ur=new WeakMap,li=new WeakMap,ci=new WeakMap,ly),z1=x.createContext(void 0),K1=({client:t,children:e})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(z1.Provider,{value:t,children:e}));/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function Io(){return Io=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Io.apply(this,arguments)}var pr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(pr||(pr={}));const Of="popstate";function q1(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:o,hash:a}=r.location;return pd("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Nl(s)}return Y1(e,n,null,t)}function _e(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Rv(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function V1(){return Math.random().toString(36).substr(2,8)}function If(t,e){return{usr:t.state,key:t.key,idx:e}}function pd(t,e,n,r){return n===void 0&&(n=null),Io({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ai(e):e,{state:n,key:e&&e.key||r||V1()})}function Nl(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ai(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Y1(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=pr.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(Io({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){a=pr.Pop;let b=d(),g=b==null?null:b-u;u=b,l&&l({action:a,location:v.location,delta:g})}function f(b,g){a=pr.Push;let m=pd(v.location,b,g);u=d()+1;let y=If(m,u),k=v.createHref(m);try{o.pushState(y,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(k)}i&&l&&l({action:a,location:v.location,delta:1})}function p(b,g){a=pr.Replace;let m=pd(v.location,b,g);u=d();let y=If(m,u),k=v.createHref(m);o.replaceState(y,"",k),i&&l&&l({action:a,location:v.location,delta:0})}function w(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof b=="string"?b:Nl(b);
vendor: 2,909 bytes, line 49
49return m=m.replace(/ $/,"%20"),_e(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return t(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Of,h),l=b,()=>{s.removeEventListener(Of,h),l=null}},createHref(b){return e(s,b)},createURL:w,encodeLocation(b){let g=w(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(b){return o.go(b)}};return v}var Lf;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Lf||(Lf={}));function J1(t,e,n){return n===void 0&&(n="/"),G1(t,e,n,!1)}function G1(t,e,n,r){let s=typeof e=="string"?Ai(e):e,i=gi(s.pathname||"/",n);if(i==null)return null;let o=Ov(t);Q1(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=l2(i);a=o2(o[l],u,r)}return a}function Ov(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(_e(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=_r([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(_e(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ov(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:s2(u,i.index),routesMeta:d})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Iv(i.path))s(i,o,l)}),e}function Iv(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Iv(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Q1(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:i2(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Z1=/^:[\w-]+$/,X1=3,e2=2,t2=1,n2=10,r2=-2,Hf=t=>t==="*";function s2(t,e){let n=t.split("/"),r=n.length;return n.some(Hf)&&(r+=r2),e&&(r+=e2),n.filter(s=>!Hf(s)).reduce((s,i)=>s+(Z1.test(i)?X1:i===""?t2:n2),r)}function i2(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function o2(t,e,n){let{routesMeta:r}=t,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=i==="/"?e:e.slice(i.length)||"/",h=Rl({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),f=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Rl({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 7,044 bytes, lines 49-58
49Object.assign(s,h.params),o.push({params:s,pathname:_r([i,h.pathname]),pathnameBase:h2(_r([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=_r([i,h.pathnameBase]))}return o}function Rl(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=a2(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let v=a[h]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[h];return p&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:t}}function a2(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Rv(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function l2(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Rv(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function gi(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function c2(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?Ai(t):t;return{pathname:n?n.startsWith("/")?n:u2(n,e):e,search:p2(r),hash:f2(s)}}function u2(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function ou(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function d2(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Wh(t,e){let n=d2(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Bh(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=Ai(t):(s=Io({},t),_e(!s.pathname||!s.pathname.includes("?"),ou("?","pathname","search",s)),_e(!s.pathname||!s.pathname.includes("#"),ou("#","pathname","hash",s)),_e(!s.search||!s.search.includes("#"),ou("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let h=e.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}a=h>=0?e[h]:"/"}let l=c2(s,a),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const _r=t=>t.join("/").replace(/\/\/+/g,"/"),h2=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),p2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,f2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function m2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Lv=["post","put","patch","delete"];new Set(Lv);const y2=["get",...Lv];new Set(y2);/** 50 * React Router v6.30.1 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 */function Lo(){return Lo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lo.apply(this,arguments)}const pc=x.createContext(null),Hv=x.createContext(null),$n=x.createContext(null),fc=x.createContext(null),wn=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Mv=x.createContext(null);function g2(t,e){let{relative:n}=e===void 0?{}:e;ji()||_e(!1);let{basename:r,navigator:s}=x.useContext($n),{hash:i,pathname:o,search:a}=mc(t,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:_r([r,o])),s.createHref({pathname:l,search:a,hash:i})}function ji(){return x.useContext(fc)!=null}function Wn(){return ji()||_e(!1),x.useContext(fc).location}function Dv(t){x.useContext($n).static||x.useLayoutEffect(t)}function Fv(){let{isDataRoute:t}=x.useContext(wn);return t?R2():v2()}function v2(){ji()||_e(!1);let t=x.useContext(pc),{basename:e,future:n,navigator:r}=x.useContext($n),{matches:s}=x.useContext(wn),{pathname:i}=Wn(),o=JSON.stringify(Wh(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return Dv(()=>{a.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let h=Bh(u,JSON.parse(o),i,d.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:_r([e,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[e,r,o,i,t])}const w2=x.createContext(null);function b2(t){let e=x.useContext(wn).outlet;return e&&x.createElement(w2.Provider,{value:t},e)}function na(){let{matches:t}=x.useContext(wn),e=t[t.length-1];return e?e.params:{}}function mc(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=x.useContext($n),{matches:s}=x.useContext(wn),{pathname:i}=Wn(),o=JSON.stringify(Wh(s,r.v7_relativeSplatPath));return x.useMemo(()=>Bh(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function x2(t,e){return k2(t,e)}function k2(t,e,n,r){ji()||_e(!1);let{navigator:s}=x.useContext($n),{matches:i}=x.useContext(wn),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Wn(),d;if(e){var h;let b=typeof e=="string"?Ai(e):e;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||_e(!1),d=b}else d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=J1(t,{pathname:p}),v=E2(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:_r([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:_r([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return e&&v?x.createElement(fc.Provider,{value:{location:Lo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:pr.Pop}},v):v}function S2(){let t=N2(),e=m2(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application
58Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),n?x.createElement("pre",{style:s},n):null,null)}const _2=x.createElement(S2,null);class T2 extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?x.createElement(wn.Provider,{value:this.props.routeContext},x.createElement(Mv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C2(t){let{routeContext:e,match:n,children:r}=t,s=x.useContext(pc);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(wn.Provider,{value:e},r)}function E2(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||_e(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:p}=n,w=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||w){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let p,w=!1,v=null,b=null;n&&(p=a&&h.route.id?a[h.route.id]:void 0,v=h.route.errorElement||_2,l&&(u<0&&f===0?(w=!0,b=null):u===f&&(w=!0,b=h.route.hydrateFallbackElement||null)));let g=e.concat(o.slice(0,f+1)),m=()=>{let y;return p?y=v:w?y=b:h.route.Component?y=x.createElement(h.route.Component,null):h.route.element?y=h.route.element:y=d,x.createElement(C2,{match:h,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?x.createElement(T2,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var $v=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}($v||{}),Ol=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ol||{});function A2(t){let e=x.useContext(pc);return e||_e(!1),e}function j2(t){let e=x.useContext(Hv);return e||_e(!1),e}function P2(t){let e=x.useContext(wn);return e||_e(!1),e}function Wv(t){let e=P2(),n=e.matches[e.matches.length-1];return n.route.id||_e(!1),n.route.id}function N2(){var t;let e=x.useContext(Mv),n=j2(Ol.UseRouteError),r=Wv(Ol.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function R2(){let{router:t}
58=A2($v.UseNavigateStable),e=Wv(Ol.UseNavigateStable),n=x.useRef(!1);return Dv(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,Lo({fromRouteId:e},i)))},[t,e])}function O2(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function gn(t){let{to:e,replace:n,state:r,relative:s}=t;ji()||_e(!1);let{future:i,static:o}=x.useContext($n),{matches:a}=x.useContext(wn),{pathname:l}=Wn(),u=Fv(),d=Bh(e,Wh(a,i.v7_relativeSplatPath),l,s==="path"),h=JSON.stringify(d);return x.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:s}),[u,h,s,n,r]),null}function I2(t){return b2(t.context)}function Ie(t){_e(!1)}function L2(t){let{basename:e="/",children:n=null,location:r,navigationType:s=pr.Pop,navigator:i,static:o=!1,future:a}=t;ji()&&_e(!1);let l=e.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:i,static:o,future:Lo({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Ai(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:w="default"}=r,v=x.useMemo(()=>{let b=gi(d,l);return b==null?null:{location:{pathname:b,search:h,hash:f,state:p,key:w},navigationType:s}},[l,d,h,f,p,w,s]);return v==null?null:x.createElement($n.Provider,{value:u},x.createElement(fc.Provider,{children:n,value:v}))}function H2(t){let{children:e,location:n}=t;return x2(fd(e),n)}new Promise(()=>{});function fd(t,e){e===void 0&&(e=[]);let n=[];return x.Children.forEach(t,(r,s)=>{if(!x.isValidElement(r))return;let i=[...e,s];if(r.type===x.Fragment){n.push.apply(n,fd(r.props.children,i));return}r.type!==Ie&&_e(!1),!r.props.index||!r.props.children||_e(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=fd(r.props.children,i)),n.push(o)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Il(){return Il=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Il.apply(this,arguments)}function Bv(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function M2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function D2(t,e){return t.button===0&&(!e||e==="_self")&&!M2(t)}const F2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$2=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],W2="6";try{window.__reactRouterVersion=W2}catch{}const B2=x.createContext({isTransitioning:!1}),U2="startTransition",Mf=by[U2];function z2(t){let{basename:e,children:n,future:r,window:s}=t,i=x.useRef();i.current==null&&(i.current=q1({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=x.useCallback(h=>{u&&Mf?Mf(()=>l(h)):l(h)},[l,u]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>O2(r),[r]),x.createElement(L2,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const K2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ne=x.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:h}=e,f=Bv(e,F2),{basename:p}=x.useContext($n),w,v=!1;if(typeof u=="string"&&q2.test(u)&&(w=u,K2))try{let y=new URL(window.location.href),k=u.startsWith("//")?new URL(y.protocol+u):new URL(u),S=gi(k.pathname,p);k.origin===y.origin&&S!=null?u=S+k.search+k.hash:v=!0}catch{}let b=g2(u,{relative:s}),g=J2(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function m(y){r&&r(y),y.defaultPrevented||g(y)}return x.createElement("a",Il({},f,{href:w||b,onClick:v||i?r:m,ref:n,target:l}))}),V2=x.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:a,to:l,viewTransition:u,children:d}=e,h=Bv(e,$2),f=mc(l,{relative:h.relative}),p=Wn(),w=x.useContext(Hv),{navigator:v,basename:b}=x.useContext($n),g=w!=null&&G2(f)&&u===!0,m=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,y=p.pathname,k=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(y=y.toLowerCase(),k=k?k.toLowerCase():null,m=m.toLowerCase()),k&&b&&(k=gi(k,b)||k);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let _=y===m||!o&&y.startsWith(m)&&y.charAt(S)==="/",T=k!=null&&(k===m||!o&&k.startsWith(m)&&k.charAt(m.length)==="/"),A={isActive:_,isPending:T,isTransitioning:g},N=_?r:void 0,O;typeof i=="function"?O=i(A):O=[i,_?"active":null,T?"pending":null,g?"transitioning":null].filter(
67Boolean).join(" ");let q=typeof a=="function"?a(A):a;return x.createElement(ne,Il({},h,{"aria-current":N,className:O,ref:n,style:q,to:l,viewTransition:u}),typeof d=="function"?d(A):d)});var md;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(md||(md={}));var Df;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Df||(Df={}));function Y2(t){let e=x.useContext(pc);return e||_e(!1),e}function J2(t,e){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=e===void 0?{}:e,l=Fv(),u=Wn(),d=mc(t,{relative:o});return x.useCallback(h=>{if(D2(h,n)){h.preventDefault();let f=r!==void 0?r:Nl(u)===Nl(d);l(t,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,d,r,s,n,t,i,o,a])}function G2(t,e){e===void 0&&(e={});let n=x.useContext(B2);n==null&&_e(!1);let{basename:r}=Y2(md.useViewTransitionState),s=mc(t,{relative:e.relative});if(!n.isTransitioning)return!1;let i=gi(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=gi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Rl(s.pathname,o)!=null||Rl(s.pathname,i)!=null}var Ff=["light","dark"],Q2="(prefers-color-scheme: dark)",Z2=x.createContext(void 0),X2={setTheme:t=>{},themes:[]},ek=()=>{var t;return(t=x.useContext(Z2))!=null?t:X2};x.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?Ff.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(w,v=!1,b=!0)=>{let g=o?o[w]:w,m=v?w+"|| ''":`'${g}'`,y="";return s&&b&&!v&&Ff.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),n==="class"?v||g?y+=`c.add(${m})`:y+="null":g&&(y+=`d[s](n,${m})`),y},p=t?`!function(){${d}${f(t)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${Q2}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var tk=t=>{switch(t){case"success":return sk;case"info":return ok;case"warning":return ik;case"error":return ak;default:return null}},nk=Array(12).fill(0),rk=({visible:t,className:e})=>I.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},I.createElement("div",{className:"sonner-spinner"},nk.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),sk=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ik=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ok=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ak=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),lk=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ck=()=>{let[t,e]=I.useState(document.hidden);return I.useEffect(()=>{let n=()=>{e(document.hidden)};
67return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},yd=1,uk=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:yd++,i=this.toasts.find(a=>a.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:n}),{...a,...t,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],I.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(hk(l)&&!l.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:n,type:"error",message:u,description:d})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(l):e.success,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(i=["reject",l],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(l):e.error,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||yd++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},it=new uk,dk=(t,e)=>{let n=(e==null?void 0:e.id)||yd++;return it.addToast({title:t,...e,id:n}),n},hk=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",pk=dk,fk=()=>it.toasts,mk=()=>it.getActiveToasts(),fr=Object.assign(pk,{success:it.success,info:it.info,warning:it.warning,error:it.error,custom:it.custom,message:it.message,promise:it.promise,dismiss:it.dismiss,loading:it.loading},{getHistory:fk,getToasts:mk});function yk(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}yk(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
67left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
67:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
67--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 68`);function Ra(t){return t.label!==void 0}var gk=3,vk="32px",wk="16px",$f=4e3,bk=356,xk=14,kk=20,Sk=200;function Mt(...t){return t.filter(Boolean).join(" ")}function _k(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var Tk=t=>{var e,n,r,s,i,o,a,l,u,d,h;let{invert:f,toast:p,unstyled:w,interacting:v,setHeights:b,visibleToasts:g,heights:m,index:y,toasts:k,expanded:S,removeToast:_,defaultRichColors:T,closeButton:A,style:N,cancelButtonStyle:O,actionButtonStyle:q,className:H="",descriptionClassName:G="",duration:L,position:oe,gap:V,loadingIcon:X,expandByDefault:E,classNames:j,icons:D,closeButtonAriaLabel:ee="Close toast",pauseWhenPageIsHidden:K}
vendor: 4,477 bytes, line 68
68=t,[se,ae]=I.useState(null),[Ne,Ke]=I.useState(null),[he,fs]=I.useState(!1),[Un,Mr]=I.useState(!1),[zn,ms]=I.useState(!1),[Kn,ua]=I.useState(!1),[Ac,da]=I.useState(!1),[jc,Ii]=I.useState(0),[ys,up]=I.useState(0),Li=I.useRef(p.duration||L||$f),dp=I.useRef(null),Dr=I.useRef(null),$b=y===0,Wb=y+1<=g,_t=p.type,gs=p.dismissible!==!1,Bb=p.className||"",Ub=p.descriptionClassName||"",ha=I.useMemo(()=>m.findIndex(Q=>Q.toastId===p.id)||0,[m,p.id]),zb=I.useMemo(()=>{var Q;return(Q=p.closeButton)!=null?Q:A},[p.closeButton,A]),hp=I.useMemo(()=>p.duration||L||$f,[p.duration,L]),Pc=I.useRef(0),vs=I.useRef(0),pp=I.useRef(0),ws=I.useRef(null),[Kb,qb]=oe.split("-"),fp=I.useMemo(()=>m.reduce((Q,fe,be)=>be>=ha?Q:Q+fe.height,0),[m,ha]),mp=ck(),Vb=p.invert||f,Nc=_t==="loading";vs.current=I.useMemo(()=>ha*V+fp,[ha,fp]),I.useEffect(()=>{Li.current=hp},[hp]),I.useEffect(()=>{fs(!0)},[]),I.useEffect(()=>{let Q=Dr.current;if(Q){let fe=Q.getBoundingClientRect().height;return up(fe),b(be=>[{toastId:p.id,height:fe,position:p.position},...be]),()=>b(be=>be.filter(Ot=>Ot.toastId!==p.id))}},[b,p.id]),I.useLayoutEffect(()=>{if(!he)return;let Q=Dr.current,fe=Q.style.height;Q.style.height="auto";let be=Q.getBoundingClientRect().height;Q.style.height=fe,up(be),b(Ot=>Ot.find(It=>It.toastId===p.id)?Ot.map(It=>It.toastId===p.id?{...It,height:be}:It):[{toastId:p.id,height:be,position:p.position},...Ot])},[he,p.title,p.description,b,p.id]);let qn=I.useCallback(()=>{Mr(!0),Ii(vs.current),b(Q=>Q.filter(fe=>fe.toastId!==p.id)),setTimeout(()=>{_(p)},Sk)},[p,_,b,vs]);I.useEffect(()=>{if(p.promise&&_t==="loading"||p.duration===1/0||p.type==="loading")return;let Q;return S||v||K&&mp?(()=>{if(pp.current<Pc.current){let fe=new Date().getTime()-Pc.current;Li.current=Li.current-fe}pp.current=new Date().getTime()})():Li.current!==1/0&&(Pc.current=new Date().getTime(),Q=setTimeout(()=>{var fe;(fe=p.onAutoClose)==null||fe.call(p,p),qn()},Li.current)),()=>clearTimeout(Q)},[S,v,p,_t,K,mp,qn]),I.useEffect(()=>{p.delete&&qn()},[qn,p.delete]);function Yb(){var Q,fe,be;return D!=null&&D.loading?I.createElement("div",{className:Mt(j==null?void 0:j.loader,(Q=p==null?void 0:p.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":_t==="loading"},D.loading):X?I.createElement("div",{className:Mt(j==null?void 0:j.loader,(fe=p==null?void 0:p.classNames)==null?void 0:fe.loader,"sonner-loader"),"data-visible":_t==="loading"},X):I.createElement(rk,{className:Mt(j==null?void 0:j.loader,(be=p==null?void 0:p.classNames)==null?void 0:be.loader),visible:_t==="loading"})}return I.createElement("li",{tabIndex:0,ref:Dr,className:Mt(H,Bb,j==null?void 0:j.toast,(e=p==null?void 0:p.classNames)==null?void 0:e.toast,j==null?void 0:j.default,j==null?void 0:j[_t],(n=p==null?void 0:p.classNames)==null?void 0:n[_t]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:T,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":he,"data-promise":!!p.promise,"data-swiped":Ac,"data-removed":Un,"data-visible":Wb,"data-y-position":Kb,"data-x-position":qb,"data-index":y,"data-front":$b,"data-swiping":zn,"data-dismissible":gs,"data-type":_t,"data-invert":Vb,"data-swipe-out":Kn,"data-swipe-direction":Ne,"data-expanded":!!(S||E&&he),style:{"--index":y,"--toasts-before":y,"--z-index":k.length-y,"--offset":`${Un?jc:vs.current}px`,"--initial-height":E?"auto":`${ys}px`,...N,...p.style},onDragEnd:()=>{ms(!1),ae(null),ws.current=null},onPointerDown:Q=>{Nc||!gs||(dp.current=new Date,Ii(vs.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(ms(!0),ws.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,fe,be,Ot;if(Kn||!gs)return;ws.current=null;let It=Number(((Q=Dr.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Vn=Number(((fe=Dr.current)==null?void 0:fe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Fr=new Date().getTime()-((be=dp.current)==null?void 0:be.getTime()),Lt=se==="x"?It:Vn,Yn=Math.abs(Lt)/Fr;if(Math.abs(Lt)>=kk||Yn>.11){Ii(vs.current),(Ot=p.onDismiss)==null||Ot.call(p,p),Ke(se==="x"?It>0?"right":"left":Vn>0?"down":"up"),qn(),ua(!0),da(!1);return}ms(!1),ae(null)},onPointerMove:Q=>{var fe,be,Ot,It;if(!ws.current||!gs||((fe=window.getSelection())==null?void 0:fe.toString().length)>0)return;let Vn=Q.clientY-ws.current.y,Fr=Q.clientX-ws.current.x,Lt=(be=t.swipeDirections)!=null?be:_k(oe);!se&&(Math.abs(Fr)>1||Math.abs(Vn)>1)&&ae(Math.abs(Fr)>Math.abs(Vn)?"x":"y");let Yn={x:0,y:0};
68se==="y"?(Lt.includes("top")||Lt.includes("bottom"))&&(Lt.includes("top")&&Vn<0||Lt.includes("bottom")&&Vn>0)&&(Yn.y=Vn):se==="x"&&(Lt.includes("left")||Lt.includes("right"))&&(Lt.includes("left")&&Fr<0||Lt.includes("right")&&Fr>0)&&(Yn.x=Fr),(Math.abs(Yn.x)>0||Math.abs(Yn.y)>0)&&da(!0),(Ot=Dr.current)==null||Ot.style.setProperty("--swipe-amount-x",`${Yn.x}px`),(It=Dr.current)==null||It.style.setProperty("--swipe-amount-y",`${Yn.y}px`)}},zb&&!p.jsx?I.createElement("button",{"aria-label":ee,"data-disabled":Nc,"data-close-button":!0,onClick:Nc||!gs?()=>{}:()=>{var Q;qn(),(Q=p.onDismiss)==null||Q.call(p,p)},className:Mt(j==null?void 0:j.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:lk):null,p.jsx||x.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:I.createElement(I.Fragment,null,_t||p.icon||p.promise?I.createElement("div",{"data-icon":"",className:Mt(j==null?void 0:j.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Yb():null,p.type!=="loading"?p.icon||(D==null?void 0:D[_t])||tk(_t):null):null,I.createElement("div",{"data-content":"",className:Mt(j==null?void 0:j.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},I.createElement("div",{"data-title":"",className:Mt(j==null?void 0:j.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?I.createElement("div",{"data-description":"",className:Mt(G,Ub,j==null?void 0:j.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),x.isValidElement(p.cancel)?p.cancel:p.cancel&&Ra(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||O,onClick:Q=>{var fe,be;Ra(p.cancel)&&gs&&((be=(fe=p.cancel).onClick)==null||be.call(fe,Q),qn())},className:Mt(j==null?void 0:j.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,x.isValidElement(p.action)?p.action:p.action&&Ra(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||q,onClick:Q=>{var fe,be;Ra(p.action)&&((be=(fe=p.action).onClick)==null||be.call(fe,Q),!Q.defaultPrevented&&qn())},className:Mt(j==null?void 0:j.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function Wf(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function Ck(t,e){let n={};return[t,e].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?wk:vk;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Ek=x.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:w=gk,toastOptions:v,dir:b=Wf(),gap:g=xk,loadingIcon:m,icons:y,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=t,[_,T]=I.useState([]),A=I.useMemo(()=>Array.from(new Set([r].concat(_.filter(K=>K.position).map(K=>K.position)))),[_,r]),[N,O]=I.useState([]),[q,H]=I.useState(!1),[G,L]=I.useState(!1),[oe,V]=I.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=I.useRef(null),E=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=I.useRef(null),D=I.useRef(!1),ee=I.useCallback(K=>{T(se=>{var ae;return(ae=se.find(Ne=>Ne.id===K.id))!=null&&ae.delete||it.dismiss(K.id),se.filter(({id:Ne})=>Ne!==K.id)})},[]);return I.useEffect(()=>it.subscribe(K=>{if(K.dismiss){T(se=>se.map(ae=>ae.id===K.id?{...ae,delete:!0}:ae));return}setTimeout(()=>{Sv.flushSync(()=>{T(se=>{let ae=se.findIndex(Ne=>Ne.id===K.id);return ae!==-1?[...se.slice(0,ae),{...se[ae],...K},...se.slice(ae+1)]:[K,...se]})})})}),[]),I.useEffect(()=>{if(d!=="system"){V(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:se})=>{V(se?"dark":"light")})}catch{K.addListener(({matches:ae})=>{try{V(ae?"dark":"light")}catch(Ne){console.error(Ne)}})}},[d]),I.useEffect(()=>{_.length<=1&&H(!1)},[_]),I.useEffect(()=>{let K=se=>{var ae,Ne;s.every(Ke=>se[Ke]||se.code===Ke)&&(H(!0),(ae=X.current)==null||ae.focus()),se.code==="Escape"&&(document.activeElement===X.current||(Ne=X.current)!=null&&Ne.contains(document.activeElement))&&H(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[s]),I.useEffect(()=>{if(X.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,D.current=!1)}},[X.current]),I.createElement("section",{ref:e,"aria-label":`${k} ${E}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((K,se)=>{var ae;let[Ne,Ke]=K.split("-");return _.length?I.createElement("ol",{key:K,dir:b==="auto"?Wf():b,tabIndex:-1,ref:X,className:a,"data-sonner-toaster":!0,"data-theme":oe,"data-y-position":Ne,"data-lifted":q&&_.length>1&&!i,"data-x-position":Ke,style:{"--front-toast-height":`${((ae=N[0])==null?void 0:ae.height)||0}px`,"--width":`${bk}px`,"--gap":`${g}px`,...p,...Ck(l,u)},onBlur:he=>{D.current&&!he.currentTarget.contains(he.relatedTarget)&&(D.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||D.current||(D.current=!0,j.current=he.relatedTarget)},onMouseEnter:()=>H(!0),onMouseMove:()=>H(!0),onMouseLeave:()=>{G||H(!1)},onDragEnd:()=>H(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},_.filter(he=>!he.position&&se===0||he.position===K).map((he,fs)=>{var Un,Mr;return I.createElement(Tk,{key:he.id,icons:y,index:fs,toast:he,defaultRichColors:h,duration:(Un=v==null?void 0:v.duration)!=null?Un:f,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Mr=v==null?void 0:v.closeButton)!=null?Mr:o,interacting:G,position:K,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:ee,toasts:_.filter(zn=>zn.position==he.position),heights:N.filter(zn=>zn.position==he.position),setHeights:O,expandByDefault:i,gap:g,loadingIcon:m,expanded:q,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const Ak=({...t})=>{const{theme:e="system"}=ek();return c.jsx(Ek,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})},jk=1,Pk=1e6;let au=0;function Nk(){return au=(au+1)%Number.MAX_SAFE_INTEGER,au.toString()}const lu=new Map,Bf=t=>{if(lu.has(t))return;const e=setTimeout(()=>{lu.delete(t),co({type:"REMOVE_TOAST",toastId:t})},Pk);lu.set(t,e)},Rk=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,jk)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;
68return n?Bf(n):t.toasts.forEach(r=>{Bf(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},nl=[];let rl={toasts:[]};function co(t){rl=Rk(rl,t),nl.forEach(e=>{e(rl)})}function Ok({...t}){const e=Nk(),n=s=>co({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>co({type:"DISMISS_TOAST",toastId:e});return co({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function Ik(){const[t,e]=x.useState(rl);return x.useEffect(()=>(nl.push(e),()=>{const n=nl.indexOf(e);n>-1&&nl.splice(n,1)}),[t]),{...t,toast:Ok,dismiss:n=>co({type:"DISMISS_TOAST",toastId:n})}}function He(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function Uf(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Uv(...t){return e=>{let n=!1;const r=t.map(s=>{const i=Uf(s,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Uf(t[s],null)}}}}function Zt(...t){return x.useCallback(Uv(...t),t)}function yc(t,e=[]){let n=[];function r(i,o){const a=x.createContext(o),l=n.length;n=[...n,o];const u=h=>{var g;const{scope:f,children:p,...w}=h,v=((g=f==null?void 0:f[t])==null?void 0:g[l])||a,b=x.useMemo(()=>w,Object.values(w));return c.jsx(v.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(h,f){var v;const p=((v=f==null?void 0:f[t])==null?void 0:v[l])||a,w=x.useContext(p);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||i;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[r,Lk(s,...e)]}function Lk(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(i)[`__scope${u}`];return{...a,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function gd(t){const e=Hk(t),n=x.forwardRef((r,s)=>{const{children:i,...o}=r,a=x.Children.toArray(i),l=a.find(Dk);if(l){const u=l.props.children,d=a.map(h=>h===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:h);return c.jsx(e,{...o,ref:s,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return c.jsx(e,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}function Hk(t){const e=x.forwardRef((n,r)=>{const{children:s,...i}=n;if(x.isValidElement(s)){const o=$k(s),a=Fk(i,s.props);return s.type!==x.Fragment&&(a.ref=r?Uv(r,o):o),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var zv=Symbol("radix.slottable");function Mk(t){const e=({children:n})=>c.jsx(c.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=zv,e}function Dk(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===zv}function Fk(t,e){const n={...e};for(const r in e){const s=t[r],i=e[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function $k(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function Wk(t){const e=t+"CollectionProvider",[n,r]=yc(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:b,children:g}=v,m=I.useRef(null),y=I.useRef(new Map).current;return c.jsx(s,{scope:b,itemMap:y,collectionRef:m,children:g})};o.displayName=e;
vendor: 7,309 bytes, line 68
68const a=t+"CollectionSlot",l=gd(a),u=I.forwardRef((v,b)=>{const{scope:g,children:m}=v,y=i(a,g),k=Zt(b,y.collectionRef);return c.jsx(l,{ref:k,children:m})});u.displayName=a;const d=t+"CollectionItemSlot",h="data-radix-collection-item",f=gd(d),p=I.forwardRef((v,b)=>{const{scope:g,children:m,...y}=v,k=I.useRef(null),S=Zt(b,k),_=i(d,g);return I.useEffect(()=>(_.itemMap.set(k,{ref:k,...y}),()=>void _.itemMap.delete(k))),c.jsx(f,{[h]:"",ref:S,children:m})});p.displayName=d;function w(v){const b=i(t+"CollectionConsumer",v);return I.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((_,T)=>y.indexOf(_.ref.current)-y.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},w,r]}var Bk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dt=Bk.reduce((t,e)=>{const n=gd(`Primitive.${e}`),r=x.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Kv(t,e){t&&ta.flushSync(()=>t.dispatchEvent(e))}function Ar(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Uk(t,e=globalThis==null?void 0:globalThis.document){const n=Ar(t);x.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var zk="DismissableLayer",vd="dismissableLayer.update",Kk="dismissableLayer.pointerDownOutside",qk="dismissableLayer.focusOutside",zf,qv=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uh=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=t,u=x.useContext(qv),[d,h]=x.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),w=Zt(e,T=>h(T)),v=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(b),m=d?v.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,k=m>=g,S=Yk(T=>{const A=T.target,N=[...u.branches].some(O=>O.contains(A));!k||N||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},f),_=Jk(T=>{const A=T.target;[...u.branches].some(O=>O.contains(A))||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},f);return Uk(T=>{m===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Kf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=zf)}},[d,f,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Kf())},[d,u]),x.useEffect(()=>{const T=()=>p({});return document.addEventListener(vd,T),()=>document.removeEventListener(vd,T)},[]),c.jsx(dt.div,{...l,ref:w,style:{pointerEvents:y?k?"auto":"none":void 0,...t.style},onFocusCapture:He(t.onFocusCapture,_.onFocusCapture),onBlurCapture:He(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:He(t.onPointerDownCapture,S.onPointerDownCapture)})});Uh.displayName=zk;var Vk="DismissableLayerBranch",Vv=x.forwardRef((t,e)=>{const n=x.useContext(qv),r=x.useRef(null),s=Zt(e,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(dt.div,{...t,ref:s})});Vv.displayName=Vk;function Yk(t,e=globalThis==null?void 0:globalThis.document){const n=Ar(t),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Yv(Kk,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function Jk(t,e=globalThis==null?void 0:globalThis.document){const n=Ar(t),r=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!r.current&&Yv(qk,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kf(){const t=new CustomEvent(vd);document.dispatchEvent(t)}function Yv(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?Kv(s,i):s.dispatchEvent(i)}var Gk=Uh,Qk=Vv,jr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Zk="Portal",Jv=x.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[s,i]=x.useState(!1);jr(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Sv.createPortal(c.jsx(dt.div,{...r,ref:e}),o):null});Jv.displayName=Zk;function Xk(t,e){return x.useReducer((n,r)=>e[n][r]??n,t)}var zh=t=>{const{present:e,children:n}=t,r=eS(e),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Zt(r.ref,tS(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:i}):null};zh.displayName="Presence";function eS(t){const[e,n]=x.useState(),r=x.useRef(null),s=x.useRef(t),i=x.useRef("none"),o=t?"mounted":"unmounted",[a,l]=Xk(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Oa(r.current);i.current=a==="mounted"?u:"none"},[a]),jr(()=>{const u=r.current,d=s.current;if(d!==t){const f=i.current,p=Oa(u);t?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),jr(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,h=p=>{const v=Oa(r.current).includes(p.animationName);if(p.target===e&&v&&(l("ANIMATION_END"),!s.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=p=>{p.target===e&&(i.current=Oa(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Oa(t){return(t==null?void 0:t.animationName)||"none"}function tS(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.
68isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var nS=by[" useInsertionEffect ".trim().toString()]||jr;function rS({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,o]=sS({defaultProp:e,onChange:n}),a=t!==void 0,l=a?t:s;{const d=x.useRef(t!==void 0);x.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=x.useCallback(d=>{var h;if(a){const f=iS(d)?d(t):d;f!==t&&((h=o.current)==null||h.call(o,f))}else i(d)},[a,t,i,o]);return[l,u]}function sS({defaultProp:t,onChange:e}){const[n,r]=x.useState(t),s=x.useRef(n),i=x.useRef(e);return nS(()=>{i.current=e},[e]),x.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function iS(t){return typeof t=="function"}var oS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),aS="VisuallyHidden",gc=x.forwardRef((t,e)=>c.jsx(dt.span,{...t,ref:e,style:{...oS,...t.style}}));gc.displayName=aS;var lS=gc,Kh="ToastProvider",[qh,cS,uS]=Wk("Toast"),[Gv,WA]=yc("Toast",[uS]),[dS,vc]=Gv(Kh),Qv=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,l]=x.useState(null),[u,d]=x.useState(0),h=x.useRef(!1),f=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Kh}\`. Expected non-empty \`string\`.`),c.jsx(qh.Provider,{scope:e,children:c.jsx(dS,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>d(p=>p+1),[]),onToastRemove:x.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};Qv.displayName=Kh;var Zv="ToastViewport",hS=["F8"],wd="toast.viewportPause",bd="toast.viewportResume",Xv=x.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=hS,label:s="Notifications ({hotkey})",...i}=t,o=vc(Zv,n),a=cS(n),l=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=x.useRef(null),f=Zt(e,h,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;x.useEffect(()=>{const b=g=>{var y;r.length!==0&&r.every(k=>g[k]||g.code===k)&&((y=h.current)==null||y.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),x.useEffect(()=>{const b=l.current,g=h.current;if(w&&b&&g){const m=()=>{if(!o.isClosePausedRef.current){const _=new CustomEvent(wd);g.dispatchEvent(_),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const _=new CustomEvent(bd);g.dispatchEvent(_),o.isClosePausedRef.current=!1}},k=_=>{!b.contains(_.relatedTarget)&&y()},S=()=>{b.contains(document.activeElement)||y()};return b.addEventListener("focusin",m),b.addEventListener("focusout",k),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[w,o.isClosePausedRef]);const v=x.useCallback(({tabbingDirection:b})=>{const m=a().map(y=>{const k=y.ref.current,S=[k,...TS(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?m.reverse():m).flat()},[a]);return x.useEffect(()=>{const b=h.current;if(b){const g=m=>{var S,_,T;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const A=document.activeElement,N=m.shiftKey;if(m.target===b&&N){(S=u.current)==null||S.focus();return}const H=v({tabbingDirection:N?"backwards":"forwards"}),G=H.findIndex(L=>L===A);cu(H.slice(G+1))?m.preventDefault():N?(_=u.current)==null||_.focus():(T=d.current)==null||T.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[a,v]),c.jsxs(Qk,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&c.jsx(xd,{ref:u,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});cu(b)}}),c.jsx(qh.Slot,{scope:n,children:c.jsx(dt.ol,{tabIndex:-1,...i,ref:f})}),w&&c.jsx(xd,{ref:d,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});cu(b)}})]})});Xv.displayName=Zv;var ew="ToastFocusProxy",xd=x.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=vc(ew,n);return c.jsx(gc,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});xd.displayName=ew;var ra="Toast",pS="toast.swipeStart",fS="toast.swipeMove",mS="toast.swipeCancel",
vendor: 5,680 bytes, line 68
68yS="toast.swipeEnd",tw=x.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=t,[a,l]=rS({prop:r,defaultProp:s??!0,onChange:i,caller:ra});return c.jsx(zh,{present:n||a,children:c.jsx(wS,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:Ar(t.onPause),onResume:Ar(t.onResume),onSwipeStart:He(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:He(t.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:He(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:He(t.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});tw.displayName=ra;var[gS,vS]=Gv(ra,{onClose(){}}),wS=x.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...w}=t,v=vc(ra,n),[b,g]=x.useState(null),m=Zt(e,L=>g(L)),y=x.useRef(null),k=x.useRef(null),S=s||v.duration,_=x.useRef(0),T=x.useRef(S),A=x.useRef(0),{onToastAdd:N,onToastRemove:O}=v,q=Ar(()=>{var oe;(b==null?void 0:b.contains(document.activeElement))&&((oe=v.viewport)==null||oe.focus()),o()}),H=x.useCallback(L=>{!L||L===1/0||(window.clearTimeout(A.current),_.current=new Date().getTime(),A.current=window.setTimeout(q,L))},[q]);x.useEffect(()=>{const L=v.viewport;if(L){const oe=()=>{H(T.current),u==null||u()},V=()=>{const X=new Date().getTime()-_.current;T.current=T.current-X,window.clearTimeout(A.current),l==null||l()};return L.addEventListener(wd,V),L.addEventListener(bd,oe),()=>{L.removeEventListener(wd,V),L.removeEventListener(bd,oe)}}},[v.viewport,S,l,u,H]),x.useEffect(()=>{i&&!v.isClosePausedRef.current&&H(S)},[i,S,v.isClosePausedRef,H]),x.useEffect(()=>(N(),()=>O()),[N,O]);const G=x.useMemo(()=>b?lw(b):null,[b]);return v.viewport?c.jsxs(c.Fragment,{children:[G&&c.jsx(bS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),c.jsx(gS,{scope:n,onClose:q,children:ta.createPortal(c.jsx(qh.ItemSlot,{scope:n,children:c.jsx(Gk,{asChild:!0,onEscapeKeyDown:He(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||q(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(dt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:m,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:He(t.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,q()))}),onPointerDown:He(t.onPointerDown,L=>{L.button===0&&(y.current={x:L.clientX,y:L.clientY})}),onPointerMove:He(t.onPointerMove,L=>{if(!y.current)return;const oe=L.clientX-y.current.x,V=L.clientY-y.current.y,X=!!k.current,E=["left","right"].includes(v.swipeDirection),j=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=E?j(0,oe):0,ee=E?0:j(0,V),K=L.pointerType==="touch"?10:2,se={x:D,y:ee},ae={originalEvent:L,delta:se};X?(k.current=se,Ia(fS,h,ae,{discrete:!1})):qf(se,v.swipeDirection,K)?(k.current=se,Ia(pS,d,ae,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(oe)>K||Math.abs(V)>K)&&(y.current=null)}),onPointerUp:He(t.onPointerUp,L=>{const oe=k.current,V=L.target;if(V.hasPointerCapture(L.pointerId)&&V.releasePointerCapture(L.pointerId),k.current=null,y.current=null,oe){const X=L.currentTarget,E={originalEvent:L,delta:oe};qf(oe,v.swipeDirection,v.swipeThreshold)?Ia(yS,p,E,{discrete:!0}):Ia(mS,f,E,{discrete:!0}),X.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),bS=t=>{const{__scopeToast:e,children:n,...r}=t,s=vc(ra,e),[i,o]=x.useState(!1),[a,l]=x.useState(!1);return SS(()=>o(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Jv,{asChild:!0,children:c.jsx(gc,{...r,children:i&&c.jsxs(c.Fragment,{children:[s.label," ",n]})})})},xS="ToastTitle",nw=x.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return c.jsx(dt.div,{...r,ref:e})});nw.displayName=xS;var kS="ToastDescription",rw=x.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return c.jsx(dt.div,{...r,ref:e})});rw.displayName=kS;var sw="ToastAction",iw=x.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?c.jsx(aw,{altText:n,asChild:!0,children:c.jsx(Vh,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${sw}\`. Expected non-empty \`string\`.`),null)});iw.displayName=sw;var ow="ToastClose",Vh=x.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=vS(ow,n);return c.jsx(aw,{asChild:!0,children:c.jsx(dt.button,{type:"button",...r,ref:e,onClick:He(t.onClick,s.onClose)})})});Vh.displayName=ow;var aw=x.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return c.jsx(dt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function lw(t){const e=[];
vendor: 7,927 bytes, lines 68-148
68return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),_S(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...lw(r))}}),e}function Ia(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?Kv(s,i):s.dispatchEvent(i)}var qf=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};function SS(t=()=>{}){const e=Ar(t);jr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function _S(t){return t.nodeType===t.ELEMENT_NODE}function TS(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function cu(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var CS=Qv,cw=Xv,uw=tw,dw=nw,hw=rw,pw=iw,fw=Vh;function mw(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=mw(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function yw(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=mw(t))&&(r&&(r+=" "),r+=e);return r}const Vf=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Yf=yw,ES=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return Yf(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=i==null?void 0:i[u];if(d===null)return null;const f=Vf(d)||Vf(h);return s[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...p}=d;return Object.entries(p).every(w=>{let[v,b]=w;return Array.isArray(b)?b.includes({...i,...a}[v]):{...i,...a}[v]===b})?[...u,h,f]:u},[]);return Yf(t,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const AS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gw=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var jS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const PS=x.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...jS,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:gw("lucide",s),...a},[...o.map(([u,d])=>x.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const St=(t,e)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(PS,{ref:i,iconNode:e,className:gw(`lucide-${AS(t)}`,r),...s}));return n.displayName=`${t}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Jf=St("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const Gf=St("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const vw=St("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const ww=St("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const bw=St("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const Yh=St("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const uo=St("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const NS=St("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const RS=St("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const xw=St("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const Ll=St("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const kw=St("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,809 bytes, lines 148-153
148],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const Sw=St("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Jh="-",OS=t=>{const e=LS(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(Jh);return a[0]===""&&a.length!==1&&a.shift(),_w(a,e)||IS(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},_w=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?_w(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(Jh);return(o=e.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Qf=/^\[(.+)\]$/,IS=t=>{if(Qf.test(t)){const e=Qf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},LS=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return MS(Object.entries(t.classGroups),n).forEach(([i,o])=>{kd(o,r,i,e)}),r},kd=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:Zf(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(HS(s)){kd(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{kd(o,Zf(e,i),n,r)})})},Zf=(t,e)=>{let n=t;return e.split(Jh).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},HS=t=>t.isThemeGetter,MS=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[n,s]}):t,DS=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Tw="!",FS=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,o=a=>{const l=[];let u=0,d=0,h;for(let b=0;b<a.length;b++){let g=a[b];if(u===0){if(g===s&&(r||a.slice(b,b+i)===e)){l.push(a.slice(d,b)),d=b+i;continue}if(g==="/"){h=b;continue}}g==="["?u++:g==="]"&&u--}const f=l.length===0?a:a.substring(d),p=f.startsWith(Tw),w=p?f.substring(1):f,v=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:o}):o},$S=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},WS=t=>({cache:DS(t.cacheSize),parseClassName:FS(t),...OS(t)}),BS=/\s+/,US=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(BS);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let w=!!p,v=r(w?f.substring(0,p):f);if(!v){if(!w){a=u+(a.length>0?" "+a:a);continue}if(v=r(f),!v){a=u+(a.length>0?" "+a:a);continue}w=!1}const b=$S(d).join(":"),g=h?b+Tw:b,m=g+v;if(i.includes(m))continue;i.push(m);const y=s(v,w);for(let k=0;k<y.length;++k){const S=y[k];i.push(g+S)}a=u+(a.length>0?" "+a:a)}return a};function zS(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Cw(e))&&(r&&(r+=" "),r+=n);return r}const Cw=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Cw(t[r]))&&(n&&(n+=" "),n+=e);return n};function KS(t,...e){let n,r,s,i=o;function o(l){const u=e.reduce((d,h)=>h(d),t());return n=WS(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=US(l,n);return s(l,d),d}return function(){return i(zS.apply(null,arguments))}}const ge=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Ew=/^\[(?:([a-z-]+):)?(.+)\]$/i,qS=/^\d+\/\d+$/,VS=new Set(["px","full","screen"]),YS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,GS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,QS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xn=t=>Xs(t)||VS.has(t)||qS.test(t),Gn=t=>Pi(t,"length",o8),Xs=t=>!!t&&!Number.isNaN(Number(t)),uu=t=>Pi(t,"number",Xs),zi=t=>!!t&&Number.isInteger(Number(t)),XS=t=>t.endsWith("%")&&Xs(t.slice(0,-1)),te=t=>Ew.test(t),Qn=t=>YS.test(t),e8=new Set(["length","size","percentage"]),t8=t=>Pi(t,e8,Aw),n8=t=>Pi(t,"position",Aw),r8=new Set(["image","url"]),s8=t=>Pi(t,r8,l8),i8=t=>Pi(t,"",a8),Ki=()=>!0,Pi=(t,e,n)=>{const r=Ew.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},o8=t=>JS.test(t)&&!GS.test(t),Aw=()=>!1,a8=t=>QS.test(t),l8=t=>ZS.test(t),c8=()=>{const t=ge("colors"),e=ge("spacing"),n=ge("blur"),r=ge("brightness"),s=ge("borderColor"),i=ge("borderRadius"),o=ge("borderSpacing"),a=ge("borderWidth"),l=ge("contrast"),u=ge("grayscale"),d=ge("hueRotate"),h=ge("invert"),f=ge("gap"),p=ge("gradientColorStops"),w=ge("gradientColorStopPositions"),v=ge("inset"),b=ge("margin"),g=ge("opacity"),m=ge("padding"),y=ge("saturate"),k=ge("scale"),S=ge("sepia"),_=ge("skew"),T=ge("space"),A=ge("translate"),N=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",te,e],H=()=>[te,e],G=()=>["",xn,Gn],L=()=>["auto",Xs,te],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],
vendor: 12,083 bytes, line 153
153V=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",te],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[Xs,te];return{cacheSize:500,separator:":",theme:{colors:[Ki],spacing:[xn,Gn],blur:["none","",Qn,te],brightness:ee(),borderColor:[t],borderRadius:["none","","full",Qn,te],borderSpacing:H(),borderWidth:G(),contrast:ee(),grayscale:j(),hueRotate:ee(),invert:j(),gap:H(),gradientColorStops:[t],gradientColorStopPositions:[XS,Gn],inset:q(),margin:q(),opacity:ee(),padding:H(),saturate:ee(),scale:ee(),sepia:j(),skew:ee(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Qn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),te]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zi,te]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",zi,te]}],"grid-cols":[{"grid-cols":[Ki]}],"col-start-end":[{col:["auto",{span:["full",zi,te]},te]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Ki]}],"row-start-end":[{row:["auto",{span:[zi,te]},te]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,e]}],"min-w":[{"min-w":[te,e,"min","max","fit"]}],"max-w":[{"max-w":[te,e,"none","full","min","max","fit","prose",{screen:[Qn]},Qn]}],h:[{h:[te,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Qn,Gn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",uu]}],"font-family":[{font:[Ki]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Xs,uu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xn,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xn,Gn]}],"underline-offset":[{"underline-offset":["auto",xn,te]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),n8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",t8]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},s8]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:V()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[xn,te]}],"outline-w":[{outline:[xn,Gn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[xn,Gn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Qn,i8]}],"shadow-color":[{shadow:[Ki]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Qn,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[zi,te]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 153
153],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[xn,Gn,uu]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},u8=KS(c8);function ps(...t){return u8(yw(t))}const d8=CS,jw=x.forwardRef(({className:t,...e},n)=>c.jsx(cw,{ref:n,className:ps("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));jw.displayName=cw.displayName;const h8=ES("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Pw=x.forwardRef(({className:t,variant:e,...n},r)=>c.jsx(uw,{ref:r,className:ps(h8({variant:e}),t),...n}));Pw.displayName=uw.displayName;const p8=x.forwardRef(({className:t,...e},n)=>c.jsx(pw,{ref:n,className:ps("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));p8.displayName=pw.displayName;const Nw=x.forwardRef(({className:t,...e},n)=>c.jsx(fw,{ref:n,className:ps("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 13,731 bytes, line 153
153/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:c.jsx(kw,{className:"h-4 w-4"})}));Nw.displayName=fw.displayName;const Rw=x.forwardRef(({className:t,...e},n)=>c.jsx(dw,{ref:n,className:ps("text-sm font-semibold",t),...e}));Rw.displayName=dw.displayName;const Ow=x.forwardRef(({className:t,...e},n)=>c.jsx(hw,{ref:n,className:ps("text-sm opacity-90",t),...e}));Ow.displayName=hw.displayName;function f8(){const{toasts:t}=Ik();return c.jsxs(d8,{children:[t.map(function({id:e,title:n,description:r,action:s,...i}){return c.jsxs(Pw,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Rw,{children:n}),r&&c.jsx(Ow,{children:r})]}),s,c.jsx(Nw,{})]},e)}),c.jsx(jw,{})]})}const m8=["top","right","bottom","left"],Pr=Math.min,ft=Math.max,Hl=Math.round,La=Math.floor,mn=t=>({x:t,y:t}),y8={left:"right",right:"left",bottom:"top",top:"bottom"},g8={start:"end",end:"start"};function Sd(t,e,n){return ft(t,Pr(e,n))}function Ln(t,e){return typeof t=="function"?t(e):t}function Hn(t){return t.split("-")[0]}function Ni(t){return t.split("-")[1]}function Gh(t){return t==="x"?"y":"x"}function Qh(t){return t==="y"?"height":"width"}const v8=new Set(["top","bottom"]);function hn(t){return v8.has(Hn(t))?"y":"x"}function Zh(t){return Gh(hn(t))}function w8(t,e,n){n===void 0&&(n=!1);const r=Ni(t),s=Zh(t),i=Qh(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ml(o)),[o,Ml(o)]}function b8(t){const e=Ml(t);return[_d(t),e,_d(e)]}function _d(t){return t.replace(/start|end/g,e=>g8[e])}const Xf=["left","right"],em=["right","left"],x8=["top","bottom"],k8=["bottom","top"];function S8(t,e,n){switch(t){case"top":case"bottom":return n?e?em:Xf:e?Xf:em;case"left":case"right":return e?x8:k8;default:return[]}}function _8(t,e,n,r){const s=Ni(t);let i=S8(Hn(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(_d)))),i}function Ml(t){return t.replace(/left|right|bottom|top/g,e=>y8[e])}function T8(t){return{top:0,right:0,bottom:0,left:0,...t}}function Iw(t){return typeof t!="number"?T8(t):{top:t,right:t,bottom:t,left:t}}function Dl(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function tm(t,e,n){let{reference:r,floating:s}=t;const i=hn(e),o=Zh(e),a=Qh(o),l=Hn(e),u=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-s.width,y:h};break;default:p={x:r.x,y:r.y}}switch(Ni(e)){case"start":p[o]-=f*(n&&u?-1:1);break;case"end":p[o]+=f*(n&&u?-1:1);break}return p}const C8=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:h}=tm(u,r,l),f=r,p={},w=0;for(let v=0;v<a.length;v++){const{name:b,fn:g}=a[v],{x:m,y,data:k,reset:S}=await g({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:t,floating:e}});d=m??d,h=y??h,p={...p,[b]:{...p[b],...k}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:d,y:h}=tm(u,f,l)),v=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:p}};async function Ho(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=Ln(e,t),w=Iw(p),b=a[f?h==="floating"?"reference":"floating":h],g=Dl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),m=h==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),k=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Dl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:y,strategy:l}):m);return{top:(g.top-S.top+w.top)/k.y,bottom:(S.bottom-g.bottom+w.bottom)/k.y,left:(g.left-S.left+w.left)/k.x,right:(S.right-g.right+w.right)/k.x}}const E8=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:d=0}=Ln(t,e)||{};if(u==null)return{};const h=Iw(d),f={x:n,y:r},p=Zh(s),w=Qh(p),v=await o.getDimensions(u),b=p==="y",g=b?"top":"left",m=b?"bottom":"right",y=b?"clientHeight":"clientWidth",k=i.reference[w]+i.reference[p]-f[p]-i.floating[w],S=f[p]-i.reference[p],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=_?_[y]:0;(!T||!await(o.isElement==null?void 0:o.isElement(_)))&&(T=a.floating[y]||i.floating[w]);const A=k/2-S/2,N=T/2-v[w]/2-1,O=Pr(h[g],N),q=Pr(h[m],N),H=O,G=T-v[w]-q,L=T/2-v[w]/2+A,oe=Sd(H,L,G),V=!l.arrow&&Ni(s)!=null&&L!==oe&&i.reference[w]/2-(L<H?O:q)-v[w]/2<0,X=V?L<H?L-H:L-G:0;return{[p]:f[p]+X,data:{[p]:oe,centerOffset:L-oe-X,...V&&{alignmentOffset:X}},reset:V}}}),A8=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...b}=Ln(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Hn(s),m=hn(a),y=Hn(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(y||!v?[Ml(a)]:b8(a)),_=w!=="none";!f&&_&&S.push(..._8(a,v,w,k));const T=[a,...S],A=await Ho(e,b),N=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&N.push(A[g]),h){const L=w8(s,o,k);N.push(A[L[0]],A[L[1]])}if(O=[...O,{placement:s,overflows:N}],!N.every(L=>L<=0)){var q,H;const L=(((q=i.flip)==null?void 0:q.index)||0)+1,oe=T[L];if(oe&&(!(h==="alignment"?m!==hn(oe):!1)||O.every(E=>E.overflows[0]>0&&hn(E.placement)===m)))return{data:{index:L,overflows:O},reset:{placement:oe}};let V=(H=O.filter(X=>X.overflows[0]<=0).sort((X,E)=>X.overflows[1]-E.overflows[1])[0])==null?void 0:H.placement;if(!V)switch(p){case"bestFit":{var G;const X=(G=O.filter(E=>{if(_){const j=hn(E.placement);return j===m||j==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(j=>j>0).reduce((j,D)=>j+D,0)]).sort((E,j)=>E[1]-j[1])[0])==null?void 0:G[0];X&&(V=X);break}case"initialPlacement":V=a;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function nm(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function rm(t){return m8.some(e=>t[e]>=0)}const j8=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=Ln(t,e);switch(r){case"referenceHidden":{const i=await Ho(e,{...s,elementContext:"reference"}),o=nm(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:rm(o)}}}case"escaped":{const i=await Ho(e,{...s,altBoundary:!0}),o=nm(i,n.floating);return{data:{escapedOffsets:o,escaped:rm(o)}}}default:return{}}}}},Lw=new Set(["left","top"]);async function P8(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Hn(n),a=Ni(n),l=hn(n)==="y",u=Lw.has(o)?-1:1,d=i&&l?-1:1,h=Ln(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(p=a==="end"?w*-1:w),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const N8=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await P8(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},R8=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:g,y:m}=b;return{x:g,y:m}}},...l}=Ln(t,e),u={x:n,y:r},d=await Ho(e,l),h=hn(Hn(s)),f=Gh(h);let p=u[f],w=u[h];if(i){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=p+d[b],y=p-d[g];p=Sd(m,p,y)}if(o){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=w+d[b],y=w-d[g];w=Sd(m,w,y)}const v=a.fn({...e,[f]:p,[h]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[h]:o}}}}}},O8=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ln(t,e),d={x:n,y:r},h=hn(s),f=Gh(h);let p=d[f],w=d[h];const v=Ln(a,e),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=f==="y"?"height":"width",k=i.reference[f]-i.floating[y]+b.mainAxis,S=i.reference[f]+i.reference[y]-b.mainAxis;p<k?p=k:p>S&&(p=S)}if(u){var g,m;const y=f==="y"?"width":"height",k=Lw.has(Hn(s)),S=i.reference[h]-i.floating[y]+(k&&((g=o.offset)==null?void 0:g[h])||0)+(k?0:b.crossAxis),_=i.reference[h]+i.reference[y]+(k?0:((m=o.offset)==null?void 0:m[h])||0)-(k?b.crossAxis:0);w<S?w=S:w>_&&(w=_)}return{[f]:p,[h]:w}}}},I8=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...u}=Ln(t,e),d=await Ho(e,u),h=Hn(s),f=Ni(s),p=hn(s)==="y",{width:w,height:v}=i.floating;let b,g;h==="top"||h==="bottom"?(b=h,g=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=h,b=f==="end"?"top":"bottom");const m=v-d.top-d.bottom,y=w-d.left-d.right,k=Pr(v-d[b],m),S=Pr(w-d[g],y),_=!e.middlewareData.shift;let T=k,A=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(T=m),_&&!f){const O=ft(d.left,0),q=ft(d.right,0),H=ft(d.top,0),G=ft(d.bottom,0);p?A=w-2*(O!==0||q!==0?O+q:ft(d.left,d.right)):T=v-2*(H!==0||G!==0?H+G:ft(d.top,d.bottom))}await l({...e,availableWidth:A,availableHeight:T});const N=await o.getDimensions(a.floating);return w!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function wc(){return typeof window<"u"}function Ri(t){return Hw(t)?(t.nodeName||"").toLowerCase():"#document"}function vt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bn(t){var e;return(e=(Hw(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hw(t){return wc()?t instanceof Node||t instanceof vt(t).Node:!1}function Xt(t){return wc()?t instanceof Element||t instanceof vt(t).Element:!1}function vn(t){return wc()?t instanceof HTMLElement||t instanceof vt(t).HTMLElement:!1}function sm(t){return!wc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof vt(t).ShadowRoot}const L8=new Set(["inline","contents"]);function sa(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=en(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!L8.has(s)}const H8=new Set(["table","td","th"]);function M8(t){return H8.has(Ri(t))}const D8=[":popover-open",":modal"];function bc(t){return D8.some(e=>{try{return t.matches(e)}catch{return!1}})}const F8=["transform","translate","scale","rotate","perspective"],$8=["transform","translate","scale","rotate","perspective","filter"],W8=["paint","layout","strict","content"];function Xh(t){const e=ep(),n=Xt(t)?en(t):t;return F8.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||$8.some(r=>(n.willChange||"").includes(r))||W8.some(r=>(n.contain||"").includes(r))}function B8(t){let e=Nr(t);for(;vn(e)&&!vi(e);){if(Xh(e))return e;if(bc(e))return null;e=Nr(e)}return null}function ep(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const U8=new Set(["html","body","#document"]);function vi(t){return U8.has(Ri(t))}function en(t){return vt(t).getComputedStyle(t)}function xc(t){return Xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nr(t){if(Ri(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sm(t)&&t.host||bn(t);return sm(e)?e.host:e}function Mw(t){const e=Nr(t);return vi(e)?t.ownerDocument?t.ownerDocument.body:t.body:vn(e)&&sa(e)?e:Mw(e)}function Mo(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Mw(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=vt(s);if(i){const a=Td(o);return e.concat(o,o.visualViewport||[],sa(s)?s:[],a&&n?Mo(a):[])}return e.concat(s,Mo(s,[],n))}function Td(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dw(t){const e=en(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=vn(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=Hl(n)!==i||Hl(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function tp(t){return Xt(t)?t:t.contextElement}function ei(t){const e=tp(t);if(!vn(e))return mn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=Dw(e);let o=(i?Hl(n.width):n.width)/r,a=(i?Hl(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const z8=mn(0);function Fw(t){const e=vt(t);
vendor: 6,402 bytes, line 153
153return!ep()||!e.visualViewport?z8:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function K8(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==vt(t)?!1:e}function cs(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=tp(t);let o=mn(1);e&&(r?Xt(r)&&(o=ei(r)):o=ei(t));const a=K8(i,n,r)?Fw(i):mn(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,h=s.height/o.y;if(i){const f=vt(i),p=r&&Xt(r)?vt(r):r;let w=f,v=Td(w);for(;v&&r&&p!==w;){const b=ei(v),g=v.getBoundingClientRect(),m=en(v),y=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*b.x,k=g.top+(v.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,h*=b.y,l+=y,u+=k,w=vt(v),v=Td(w)}}return Dl({width:d,height:h,x:l,y:u})}function np(t,e){const n=xc(t).scrollLeft;return e?e.left+n:cs(bn(t)).left+n}function $w(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:np(t,r)),i=r.top+e.scrollTop;return{x:s,y:i}}function q8(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=bn(r),a=e?bc(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=mn(1);const d=mn(0),h=vn(r);if((h||!h&&!i)&&((Ri(r)!=="body"||sa(o))&&(l=xc(r)),vn(r))){const p=cs(r);u=ei(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=o&&!h&&!i?$w(o,l,!0):mn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function V8(t){return Array.from(t.getClientRects())}function Y8(t){const e=bn(t),n=xc(t),r=t.ownerDocument.body,s=ft(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ft(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+np(t);const a=-n.scrollTop;return en(r).direction==="rtl"&&(o+=ft(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function J8(t,e){const n=vt(t),r=bn(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=ep();(!u||u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const G8=new Set(["absolute","fixed"]);function Q8(t,e){const n=cs(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=vn(t)?ei(t):mn(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function im(t,e,n){let r;if(e==="viewport")r=J8(t,n);else if(e==="document")r=Y8(bn(t));else if(Xt(e))r=Q8(e,n);else{const s=Fw(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Dl(r)}function Ww(t,e){const n=Nr(t);return n===e||!Xt(n)||vi(n)?!1:en(n).position==="fixed"||Ww(n,e)}function Z8(t,e){const n=e.get(t);if(n)return n;let r=Mo(t,[],!1).filter(a=>Xt(a)&&Ri(a)!=="body"),s=null;const i=en(t).position==="fixed";let o=i?Nr(t):t;for(;Xt(o)&&!vi(o);){const a=en(o),l=Xh(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&G8.has(s.position)||sa(o)&&!l&&Ww(t,o))?r=r.filter(d=>d!==o):s=a,o=Nr(o)}return e.set(t,r),r}function X8(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?bc(e)?[]:Z8(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const h=im(e,d,s);return u.top=ft(h.top,u.top),u.right=Pr(h.right,u.right),u.bottom=Pr(h.bottom,u.bottom),u.left=ft(h.left,u.left),u},im(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function e_(t){const{width:e,height:n}=Dw(t);return{width:e,height:n}}function t_(t,e,n){const r=vn(e),s=bn(e),i=n==="fixed",o=cs(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=mn(0);function u(){l.x=np(s)}if(r||!r&&!i)if((Ri(e)!=="body"||sa(s))&&(a=xc(e)),r){const p=cs(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?$w(s,a):mn(0),h=o.left+a.scrollLeft-l.x-d.x,f=o.top+a.scrollTop-l.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function du(t){return en(t).position==="static"}function om(t,e){if(!vn(t)||en(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return bn(t)===n&&(n=n.ownerDocument.body),n}function Bw(t,e){const n=vt(t);if(bc(t))return n;if(!vn(t)){let s=Nr(t);for(;s&&!vi(s);){if(Xt(s)&&!du(s))return s;s=Nr(s)}return n}let r=om(t,e);for(;r&&M8(r)&&du(r);)r=om(r,e);return r&&vi(r)&&du(r)&&!Xh(r)?n:r||B8(t)||n}const n_=async function(t){const e=this.getOffsetParent||Bw,n=this.getDimensions,r=await n(t.floating);return{reference:t_(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r_(t){return en(t).direction==="rtl"}const s_={convertOffsetParentRelativeRectToViewportRelativeRect:q8,getDocumentElement:bn,getClippingRect:X8,getOffsetParent:Bw,getElementRects:n_,getClientRects:V8,getDimensions:e_,getScale:ei,isElement:Xt,isRTL:r_};function Uw(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function i_(t,e){let n=null,r;const s=bn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=u;if(a||e(),!f||!p)return;const w=La(h),v=La(s.clientWidth-(d+f)),b=La(s.clientHeight-(h+p)),g=La(d),y={rootMargin:-w+"px "+-v+"px "+-b+"px "+-g+"px",threshold:ft(0,Pr(1,l))||1};let k=!0;function S(_){const T=_[0].intersectionRatio;if(T!==l){if(!k)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!Uw(u,t.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(t)}return o(!0),i}function o_(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=tp(t),d=s||i?[...u?Mo(u):[],...Mo(e)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const h=u&&a?i_(u,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(e)})),n()}),u&&!l&&p.observe(u),p.observe(e));let w,v=l?cs(t):null;l&&b();function b(){const g=cs(t);v&&!Uw(v,g)&&n(),v=g,w=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),h==null||h(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(w)}}
vendor: 4,396 bytes, line 153
153const a_=N8,l_=R8,c_=A8,u_=I8,d_=j8,am=E8,h_=O8,p_=(t,e,n)=>{const r=new Map,s={platform:s_,...n},i={...s.platform,_c:r};return C8(t,e,{...s,platform:i})};var f_=typeof document<"u",m_=function(){},sl=f_?x.useLayoutEffect:m_;function Fl(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Fl(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Fl(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function zw(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function lm(t,e){const n=zw(t);return Math.round(e*n)/n}function hu(t){const e=x.useRef(t);return sl(()=>{e.current=t}),e}function y_(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[d,h]=x.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(r);Fl(f,r)||p(r);const[w,v]=x.useState(null),[b,g]=x.useState(null),m=x.useCallback(E=>{E!==_.current&&(_.current=E,v(E))},[]),y=x.useCallback(E=>{E!==T.current&&(T.current=E,g(E))},[]),k=i||w,S=o||b,_=x.useRef(null),T=x.useRef(null),A=x.useRef(d),N=l!=null,O=hu(l),q=hu(s),H=hu(u),G=x.useCallback(()=>{if(!_.current||!T.current)return;const E={placement:e,strategy:n,middleware:f};q.current&&(E.platform=q.current),p_(_.current,T.current,E).then(j=>{const D={...j,isPositioned:H.current!==!1};L.current&&!Fl(A.current,D)&&(A.current=D,ta.flushSync(()=>{h(D)}))})},[f,e,n,q,H]);sl(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,h(E=>({...E,isPositioned:!1})))},[u]);const L=x.useRef(!1);sl(()=>(L.current=!0,()=>{L.current=!1}),[]),sl(()=>{if(k&&(_.current=k),S&&(T.current=S),k&&S){if(O.current)return O.current(k,S,G);G()}},[k,S,G,O,N]);const oe=x.useMemo(()=>({reference:_,floating:T,setReference:m,setFloating:y}),[m,y]),V=x.useMemo(()=>({reference:k,floating:S}),[k,S]),X=x.useMemo(()=>{const E={position:n,left:0,top:0};if(!V.floating)return E;const j=lm(V.floating,d.x),D=lm(V.floating,d.y);return a?{...E,transform:"translate("+j+"px, "+D+"px)",...zw(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:D}},[n,a,V.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:G,refs:oe,elements:V,floatingStyles:X}),[d,G,oe,V,X])}const g_=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?am({element:r.current,padding:s}).fn(n):{}:r?am({element:r,padding:s}).fn(n):{}}}},v_=(t,e)=>({...a_(t),options:[t,e]}),w_=(t,e)=>({...l_(t),options:[t,e]}),b_=(t,e)=>({...h_(t),options:[t,e]}),x_=(t,e)=>({...c_(t),options:[t,e]}),k_=(t,e)=>({...u_(t),options:[t,e]}),S_=(t,e)=>({...d_(t),options:[t,e]}),__=(t,e)=>({...g_(t),options:[t,e]});var T_="Arrow",Kw=x.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return c.jsx(dt.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Kw.displayName=T_;var C_=Kw;function E_(t){const[e,n]=x.useState(void 0);return jr(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var qw="Popper",[Vw,Yw]=yc(qw),[BA,Jw]=Vw(qw),Gw="PopperAnchor",Qw=x.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=Jw(Gw,n),o=x.useRef(null),a=Zt(e,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:c.jsx(dt.div,{...s,ref:a})});Qw.displayName=Gw;var rp="PopperContent",[A_,j_]=Vw(rp),Zw=x.forwardRef((t,e)=>{var he,fs,Un,Mr,zn,ms;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l
vendor: 4,424 bytes, line 153
153=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:w,...v}=t,b=Jw(rp,n),[g,m]=x.useState(null),y=Zt(e,Kn=>m(Kn)),[k,S]=x.useState(null),_=E_(k),T=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,N=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},q=Array.isArray(u)?u:[u],H=q.length>0,G={padding:O,boundary:q.filter(N_),altBoundary:H},{refs:L,floatingStyles:oe,placement:V,isPositioned:X,middlewareData:E}=y_({strategy:"fixed",placement:N,whileElementsMounted:(...Kn)=>o_(...Kn,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[v_({mainAxis:s+A,alignmentAxis:o}),l&&w_({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?b_():void 0,...G}),l&&x_({...G}),k_({...G,apply:({elements:Kn,rects:ua,availableWidth:Ac,availableHeight:da})=>{const{width:jc,height:Ii}=ua.reference,ys=Kn.floating.style;ys.setProperty("--radix-popper-available-width",`${Ac}px`),ys.setProperty("--radix-popper-available-height",`${da}px`),ys.setProperty("--radix-popper-anchor-width",`${jc}px`),ys.setProperty("--radix-popper-anchor-height",`${Ii}px`)}}),k&&__({element:k,padding:a}),R_({arrowWidth:T,arrowHeight:A}),f&&S_({strategy:"referenceHidden",...G})]}),[j,D]=tb(V),ee=Ar(w);jr(()=>{X&&(ee==null||ee())},[X,ee]);const K=(he=E.arrow)==null?void 0:he.x,se=(fs=E.arrow)==null?void 0:fs.y,ae=((Un=E.arrow)==null?void 0:Un.centerOffset)!==0,[Ne,Ke]=x.useState();return jr(()=>{g&&Ke(window.getComputedStyle(g).zIndex)},[g]),c.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:X?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(Mr=E.transformOrigin)==null?void 0:Mr.x,(zn=E.transformOrigin)==null?void 0:zn.y].join(" "),...((ms=E.hide)==null?void 0:ms.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(A_,{scope:n,placedSide:j,onArrowChange:S,arrowX:K,arrowY:se,shouldHideArrow:ae,children:c.jsx(dt.div,{"data-side":j,"data-align":D,...v,ref:y,style:{...v.style,animation:X?void 0:"none"}})})})});Zw.displayName=rp;var Xw="PopperArrow",P_={top:"bottom",right:"left",bottom:"top",left:"right"},eb=x.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=j_(Xw,r),o=P_[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(C_,{...s,ref:n,style:{...s.style,display:"block"}})})});eb.displayName=Xw;function N_(t){return t!==null}var R_=t=>({name:"transformOrigin",options:t,fn(e){var b,g,m;const{placement:n,rects:r,middlewareData:s}=e,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[u,d]=tb(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let w="",v="";return u==="bottom"?(w=o?h:`${f}px`,v=`${-l}px`):u==="top"?(w=o?h:`${f}px`,v=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,v=o?h:`${p}px`):u==="left"&&(w=`${r.floating.width+l}px`,v=o?h:`${p}px`),{data:{x:w,y:v}}}});function tb(t){const[e,n="center"]=t.split("-");return[e,n]}var O_=Qw,I_=Zw,L_=eb,[kc,UA]=yc("Tooltip",[Yw]),sp=Yw(),nb="TooltipProvider",H_=700,cm="tooltip.open",[M_,rb]=kc(nb),sb=t=>{const{__scopeTooltip:e,delayDuration:n=H_,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(M_,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};sb.displayName=nb;var ib="Tooltip",[zA,Sc]=kc(ib),Cd="TooltipTrigger",D_=x.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Sc(Cd,n),i=rb(Cd,n),o=sp(n),a=x.useRef(null),l=Zt(e,a,s.onTriggerChange),u=
vendor: 5,050 bytes, line 153
153x.useRef(!1),d=x.useRef(!1),h=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(O_,{asChild:!0,...o,children:c.jsx(dt.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:He(t.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:He(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:He(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:He(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:He(t.onBlur,s.onClose),onClick:He(t.onClick,s.onClose)})})});D_.displayName=Cd;var F_="TooltipPortal",[KA,$_]=kc(F_,{forceMount:void 0}),wi="TooltipContent",ob=x.forwardRef((t,e)=>{const n=$_(wi,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,o=Sc(wi,t.__scopeTooltip);return c.jsx(zh,{present:r||o.open,children:o.disableHoverableContent?c.jsx(ab,{side:s,...i,ref:e}):c.jsx(W_,{side:s,...i,ref:e})})}),W_=x.forwardRef((t,e)=>{const n=Sc(wi,t.__scopeTooltip),r=rb(wi,t.__scopeTooltip),s=x.useRef(null),i=Zt(e,s),[o,a]=x.useState(null),{trigger:l,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=x.useCallback(()=>{a(null),h(!1)},[h]),p=x.useCallback((w,v)=>{const b=w.currentTarget,g={x:w.clientX,y:w.clientY},m=q_(g,b.getBoundingClientRect()),y=V_(g,m),k=Y_(v.getBoundingClientRect()),S=G_([...y,...k]);a(S),h(!0)},[h]);return x.useEffect(()=>()=>f(),[f]),x.useEffect(()=>{if(l&&d){const w=b=>p(b,d),v=b=>p(b,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",v)}}},[l,d,p,f]),x.useEffect(()=>{if(o){const w=v=>{const b=v.target,g={x:v.clientX,y:v.clientY},m=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),y=!J_(g,o);m?f():y&&(f(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,o,u,f]),c.jsx(ab,{...t,ref:i})}),[B_,U_]=kc(ib,{isInside:!1}),z_=Mk("TooltipContent"),ab=x.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,l=Sc(wi,n),u=sp(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(cm,d),()=>document.removeEventListener(cm,d)),[d]),x.useEffect(()=>{if(l.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(Uh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(I_,{"data-state":l.stateAttribute,...u,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(z_,{children:r}),c.jsx(B_,{scope:n,isInside:!0,children:c.jsx(lS,{id:l.contentId,role:"tooltip",children:s||r})})]})})});ob.displayName=wi;var lb="TooltipArrow",K_=x.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=sp(n);return U_(lb,n).isInside?null:c.jsx(L_,{...s,...r,ref:e})});K_.displayName=lb;function q_(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function V_(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function Y_(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function J_(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],u=a.x,d=a.y,h=l.x,f=l.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(s=!s)}return s}function G_(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Q_(e)}function Q_(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var Z_=sb,cb=ob;
153const X_=Z_,eT=x.forwardRef(({className:t,sideOffset:e=4,...n},r)=>c.jsx(cb,{ref:r,sideOffset:e,className:ps("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));eT.displayName=cb.displayName;const um=[{label:"Holistic Hypnotherapy",to:"/holistic-hypnotherapy",sub:[{label:"Overview",to:"/holistic-hypnotherapy"},{label:"What Hypnotherapy Can Address",to:"/holistic-hypnotherapy/what-it-addresses"},{label:"Anxiety & Depression",to:"/holistic-hypnotherapy/anxiety"},{label:"Inner Child Healing",to:"/holistic-hypnotherapy/inner-child"},{label:"Fears & Phobias",to:"/holistic-hypnotherapy/fears-phobias"},{label:"Insomnia & Sleep",to:"/holistic-hypnotherapy/insomnia"},{label:"Weight Loss",to:"/holistic-hypnotherapy/weight-loss"},{label:"Smoking Cessation",to:"/holistic-hypnotherapy/smoking-cessation"},{label:"Trauma & Abuse",to:"/holistic-hypnotherapy/trauma"}]},{label:"Alternative Healing",to:"/alternative-healing",sub:[{label:"All Modalities",to:"/alternative-healing"},{label:"Hypnotherapy",to:"/alternative-healing/hypnotherapy"},{label:"NLP Coaching",to:"/alternative-healing/nlp-coaching"},{label:"Fast Track Technique",to:"/alternative-healing/fast-track-technique"},{label:"Akashic Reading",to:"/alternative-healing/akashic-reading"},{label:"Pain Relief & Trauma Release",to:"/alternative-healing/pain-relief-trauma-release"},{label:"Psychic & Spiritual Readings",to:"/alternative-healing/psychic-spiritual-readings"},{label:"Tarot Readings",to:"/alternative-healing/tarot-readings"},{label:"Family Systemic Constellations",to:"/alternative-healing/family-systemic-constellations"},{label:"Bazi Readings",to:"/alternative-healing/bazi-readings"},{label:"Chakra Healing",to:"/alternative-healing/chakra-healing"},{label:"Transpersonal Coaching",to:"/alternative-healing/transpersonal-coaching"},{label:"Somatic Counselling",to:"/alternative-healing/somatic-counselling"},{label:"Sacred Doorways",to:"/alternative-healing/sacred-doorways"}]},{label:"Practitioner Trainings",to:"/practitioner-trainings",sub:[{label:"Overview",to:"/practitioner-trainings"},{label:"Hypnotherapy · Level 1",to:"/practitioner-trainings/hypnotherapy-level-1"},{label:"Hypnotherapy · Level 2",to:"/practitioner-trainings/hypnotherapy-level-2"},{label:"Hypnotherapy · Level 3",to:"/practitioner-trainings/hypnotherapy-level-3"},{label:"Hypnotherapy · Level 4",to:"/practitioner-trainings/hypnotherapy-level-4"},{label:"Hypnotherapy · Level 5",to:"/practitioner-trainings/hypnotherapy-level-5"},{label:"NLP Practitioner",to:"/practitioner-trainings/nlp-practitioner"},{label:"Fast Track Technique",to:"/practitioner-trainings/fast-track-technique"}]},{label:"Workshops",to:"/workshops",sub:[{label:"All Workshops",to:"/workshops"},{label:"Be Your Own Master · Level 1",to:"/workshops/be-your-own-master-1"},{label:"Be Your Own Master · Level 2",to:"/workshops/be-your-own-master-2"},{label:"Be Your Own Master · Level 3",to:"/workshops/be-your-own-master-3"},{label:"Inner Child Healing",to:"/workshops/inner-child-healing"},{label:"Manifestation Workshop",to:"/workshops/manifestation"},{label:"Mind-Body Connection",to:"/workshops/mind-body-connection"},{label:"Connect with the Tarot",to:"/workshops/connect-with-tarot"}]},{label:"About Us",to:"/about",sub:[{label:"About All About You",to:"/about"},{label:"Meet the Team",to:"/about/team"},{label:"Press & Awards",to:"/about/press"},{label:"FAQs",to:"/about/faqs"},{label:"Free Meditations",to:"/about/free-meditations"},{label:"Corporate Wellness",to:"/about/corporate-wellness"}]},{label:"Blog",to:"/blog"},{label:"Contact",to:"/contact"}];function tT(){const[t,e]=x.useState(!1),[n,r]=x.useState(!1),[s,i]=x.useState(null),[o,a]=x.useState(null),l=Wn();return x.useEffect(()=>{const u=()=>r(window.scrollY>12);return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),x.useEffect(()=>{e(!1),i(null),a(null)},[l.pathname]),c.jsxs("header",{className:"sticky top-0 z-50",children:[c.jsx("div",{className:"bg-primary text-primary-foreground text-[11px] tracking-[0.18em] uppercase",children:c.jsxs("div",{className:"container-editorial flex items-center justify-between py-2.5",children:[c.jsxs("div",{className:"hidden md:flex items-center gap-6",children:[c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 opacity-90 hover:opacity-100 transition-opacity",children:[c.jsx(uo,{className:"h-3 w-3"})," [email protected]"]}),c.jsxs("a",{href:"tel:+85261335976",className:"flex items-center gap-2 opacity-90 hover:opacity-100 transition-opacity",children:[c.jsx(Ll,{className:"h-3 w-3"})," +852 6133 5976"]})]}),c.jsxs("div",{className:"flex md:hidden items-center gap-2 opacity-90",children:[c.jsx(uo,{className:"h-3 w-3"})," [email protected]"]}),c.jsx(ne,{to:"/contact",className:"hidden md:inline-flex items-center gap-2 border border-primary-foreground
153/40 px-4 py-1 hover:bg-primary-foreground hover:text-primary transition-colors",children:"Free Consultation Call"})]})}),c.jsx("div",{className:`bg-background/95 backdrop-blur transition-all duration-300 ${n?"border-b border-border shadow-[0_1px_0_hsl(var(--gold)/0.4)]":"border-b border-transparent"}`,children:c.jsxs("div",{className:"container-editorial flex items-center justify-between py-5",children:[c.jsxs(ne,{to:"/",className:"flex flex-col leading-none",children:[c.jsx("span",{className:"font-display text-3xl md:text-4xl text-primary tracking-tight",children:"All About You"}),c.jsx("span",{className:"text-[10px] tracking-[0.32em] uppercase text-muted-foreground mt-1",children:"Wellness · Hypnotherapy · Hong Kong"})]}),c.jsx("nav",{className:"hidden lg:flex items-center gap-7",children:um.map(u=>{const d=o===u.label;return c.jsxs("div",{className:"relative",onMouseEnter:()=>u.sub&&a(u.label),onMouseLeave:()=>u.sub&&a(null),children:[c.jsxs(V2,{to:u.to,end:u.to==="/",className:({isActive:h})=>`flex items-center gap-1 text-[12px] uppercase tracking-[0.18em] transition-colors py-2 ${h?"text-accent":"text-foreground/80 hover:text-primary"}`,children:[u.label,u.sub&&c.jsx(Gf,{className:`h-3 w-3 transition-opacity ${d?"opacity-100":"opacity-60"}`})]}),u.sub&&d&&c.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full pt-3 z-50",children:c.jsx("div",{className:"bg-background border border-border shadow-[0_18px_40px_-20px_hsl(var(--primary)/0.35)] min-w-[280px] py-3",children:u.sub.map(h=>c.jsx(ne,{to:h.to,onClick:()=>a(null),className:"block px-5 py-2.5 text-[12.5px] tracking-wide text-foreground/80 hover:text-accent hover:bg-secondary/40 transition-colors",children:h.label},h.to))})})]},u.label)})}),c.jsx("button",{className:"lg:hidden p-2 text-primary",onClick:()=>e(!0),"aria-label":"Open menu",children:c.jsx(RS,{className:"h-6 w-6"})})]})}),t&&c.jsxs("div",{className:"fixed inset-0 z-[60] lg:hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-foreground
153/40",onClick:()=>e(!1)}),c.jsxs("div",{className:"absolute right-0 top-0 h-full w-[88%] max-w-sm bg-background shadow-2xl flex flex-col",children:[c.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[c.jsx(ne,{to:"/",onClick:()=>e(!1),className:"font-display text-2xl text-primary",children:"All About You"}),c.jsx("button",{onClick:()=>e(!1),"aria-label":"Close menu",children:c.jsx(kw,{className:"h-6 w-6 text-primary"})})]}),c.jsxs("nav",{className:"flex-1 overflow-y-auto px-6 py-6 flex flex-col gap-1",children:[um.map(u=>{const d=s===u.label;return c.jsxs("div",{className:"border-b border-border/60 last:border-b-0",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(ne,{to:u.to,className:"flex-1 py-4 text-left text-sm uppercase tracking-[0.18em] text-foreground hover:text-accent",children:u.label}),u.sub&&c.jsx("button",{onClick:()=>i(d?null:u.label),"aria-label":`Toggle ${u.label} submenu`,className:"p-3 text-primary",children:c.jsx(Gf,{className:`h-4 w-4 transition-transform ${d?"rotate-180":""}`})})]}),u.sub&&d&&c.jsx("div",{className:"pb-4 pl-3 flex flex-col gap-1",children:u.sub.map(h=>c.jsx(ne,{to:h.to,className:"py-2 text-[12.5px] tracking-wide text-foreground/75 hover:text-accent",children:h.label},h.to))})]},u.label)}),c.jsx("div",{className:"rule-gold my-5"}),c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 text-xs text-muted-foreground py-1",children:[c.jsx(uo,{className:"h-3 w-3"})," [email protected]"]}),c.jsxs("a",{href:"tel:+85261335976",className:"flex items-center gap-2 text-xs text-muted-foreground py-1",children:[c.jsx(Ll,{className:"h-3 w-3"})," +852 6133 5976"]}),c.jsx(ne,{to:"/contact",className:"btn-accent mt-4",children:"Free Consultation Call"})]})]})]})]})}function nT(){return c.jsx("div",{className:"bg-accent/10 border-b border-accent/20",children:c.jsxs("div",{className:"container-editorial py-2.5 text-center text-[12px] md:text-[13px] tracking-wide text-foreground/85",children:[c.jsx("span",{className:"text-accent font-medium",children:"â¦"})," ",c.jsxs(ne,{to:"/workshops",className:"hover:text-accent transition-colors",children:["Click here to join Sonia's Signature"," ",c.jsx("span",{className:"font-display italic text-base",children:"Be Your Own Master"})," Workshop · Level 3 · 12â14 June 2026 · 10:00AMâ6:00PM HKT"]})," ",c.jsx("span",{className:"text-accent font-medium",children:"â¦"})]})})}function rT(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(d){try{u(r.next(d))}catch(h){o(h)}}function l(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}const sT=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class ip extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class iT extends ip{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class dm extends ip{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class hm extends ip{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Ed;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Ed||(Ed={}));class oT{constructor(e,{headers:n={},customFetch:r,region:s=Ed.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=sT(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return rT(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:u,signal:d,timeout:h}=r;let f={},{region:p}=r;p||(p=this.region);const w=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,w.searchParams.set("forceFunctionRegion",p));let v;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",v=u):typeof u=="string"?(f["Content-Type"]="text/plain",v=u):typeof FormData<"u"&&u instanceof FormData?v=u:(f["Content-Type"]="application/json",v=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?v=JSON.stringify(u):v=u;let b=d;h&&(o=new AbortController,i=setTimeout(()=>
153o.abort(),h),d?(b=o.signal,d.addEventListener("abort",()=>o.abort())):b=o.signal);const g=yield this.fetch(w.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:v,signal:b}).catch(S=>{throw new iT(S)}),m=g.headers.get("x-relay-error");if(m&&m==="true")throw new dm(g);if(!g.ok)throw new hm(g);let y=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),k;return y==="application/json"?k=yield g.json():y==="application/octet-stream"||y==="application/pdf"?k=yield g.blob():y==="text/event-stream"?k=g:y==="multipart/form-data"?k=yield g.formData():k=yield g.text(),{data:k,error:null,response:g}}catch(a){return{data:null,error:a,response:a instanceof hm||a instanceof dm?a.context:void 0}}finally{i&&clearTimeout(i)}})}}const ub=3,pm=t=>Math.min(1e3*2**t,3e4),aT=[520,503],db=["GET","HEAD","OPTIONS"];var lT=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function fm(t,e){return new Promise(n=>{if(e!=null&&e.aborted){n();return}const r=setTimeout(()=>{e==null||e.removeEventListener("abort",s),n()},t);function s(){clearTimeout(r),n()}e==null||e.addEventListener("abort",s)})}function cT(t,e,n,r){return!(!r||n>=ub||!db.includes(t)||!aT.includes(e))}var uT=class{constructor(t){var e,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=t.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=t.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=t.retry)!==null&&i!==void 0?i:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const u=new Headers(n.headers);o>0&&u.set("X-Retry-Count",String(o));let d;try{d=await r(n.url.toString(),{method:n.method,headers:u,body:JSON.stringify(n.body,(h,f)=>typeof f=="bigint"?f.toString():f),signal:n.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!db.includes(n.method))throw h;if(n.retryEnabled&&o<ub){const f=pm(o);o++,await fm(f,n.signal);continue}throw h}if(cT(n.method,d.status,o,n.retryEnabled)){var a,l;const h=(a=(l=d.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&a!==void 0?a:null,f=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:pm(o);await d.text(),o++,await fm(f,n.signal);continue}return await n.processResponse(d)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var a;let l="",u="",d="";const h=o==null?void 0:o.cause;if(h){var f,p,w,v;const m=(f=h==null?void 0:h.message)!==null&&f!==void 0?f:"",y=(p=h==null?void 0:h.code)!==null&&p!==void 0?p:"";l=`${(w=o==null?void 0:o.name)!==null&&w!==void 0?w:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 154 155Caused by: ${(v=h==null?void 0:h.name)!==null&&v!==void 0?v:"Error"}: ${m}`,y&&(l+=` (${y})`),h!=null&&h.stack&&(l+=` 156${h.stack}`)}else{var b;l=(b=o==null?void 0:o.stack)!==null&&b!==void 0?b:""}const g=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(d="",u="Request was aborted (timeout or manual cancellation)",g>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${g} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(d="",u="HTTP headers exceeded server limits (typically 16KB)",g>this.urlLengthLimit&&(u+=`. Your request URL is ${g} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:u,code:d},data:null,count:null,status:0,statusText:""}}
156)),i.then(t,e)}async processResponse(t){var e=this;let n=null,r=null,s=null,i=t.status,o=t.statusText;if(t.ok){var a,l;if(e.method!=="HEAD"){var u;const f=await t.text();f===""||(e.headers.get("Accept")==="text/csv"||e.headers.get("Accept")&&(!((u=e.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text"))?r=f:r=JSON.parse(f))}const d=(a=e.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),h=(l=t.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");d&&h&&h.length>1&&(s=parseInt(h[1])),e.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const d=await t.text();try{n=JSON.parse(d),Array.isArray(n)&&t.status===404&&(r=[],n=null,i=200,o="OK")}catch{t.status===404&&d===""?(i=204,o="No Content"):n={message:d}}if(n&&e.shouldThrowOnError)throw new lT(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},dT=class extends uT{select(t){let e=!1;const n=(t??"*").split("").map(r=>/\s/.test(r)&&!e?"":(r==='"'&&(e=!e),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[t?"analyze":null,e?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const mm=new RegExp("[,()]");var As=class extends dT{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&mm.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&mm.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${s}fts${i}.${e}`),this}match(t){return Object.entries(t).filter(([e,n])=>
156n!==void 0).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},hT=class{constructor(t,{headers:e={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:r}=e??{},s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new As({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(e&&o.append("Prefer",`count=${e}`),n||o.append("Prefer","missing=default"),Array.isArray(t)){const a=t.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
1560){const l=[...new Set(a)].map(u=>`"${u}"`);i.searchParams.set("columns",l.join(","))}}return new As({method:s,url:i,headers:o,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&a.searchParams.set("on_conflict",e),r&&l.append("Prefer",`count=${r}`),s||l.append("Prefer","missing=default"),Array.isArray(t)){const u=t.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);a.searchParams.set("columns",d.join(","))}}return new As({method:o,url:a,headers:l,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new As({method:r,url:s,headers:i,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new As({method:n,url:r,headers:s,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Do(t){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Do(t)}function pT(t,e){if(Do(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Do(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fT(t){var e=pT(t,"string");return Do(e)=="symbol"?e:e+""}function mT(t,e,n){return(e=fT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ym(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ha(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ym(Object(n),!0).forEach(function(r){mT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var yT=class hb{constructor(e,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:a}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const l=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(u,d)=>{const h=new AbortController,f=setTimeout(()=>h.abort(),i),p=d==null?void 0:d.signal;if(p){if(p.aborted)return clearTimeout(f),l(u,d);const w=()=>{clearTimeout(f),h.abort()};return p.addEventListener("abort",w,{once:!0}),l(u,Ha(Ha({},d),{},{signal:h.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",w)})}return l(u,Ha(Ha({},d),{},{signal:h.signal})).finally(()=>clearTimeout(f))}:this.fetch=l,this.retry=a}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new hT(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new hb(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${e}`);let u;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),h=r&&Object.values(n).some(d);h?(a="POST",u=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([p,w])=>w!==void 0).map(([p,w])=>[p,Array.isArray(w)?`{${w.join(",")}}`:`${w}
156`]).forEach(([p,w])=>{l.searchParams.append(p,w)})):(a="POST",u=n);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new As({method:a,url:l,headers:f,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class gT{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 157import ws from "ws" 158new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 159 160Suggested solution: ${e.workaround}`),new Error(n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const vT="2.103.3",wT=`realtime-js/${vT}`,bT="1.0.0",pb="2.0.0",xT=pb,kT=1e4,ST=100,sr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},fb={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Ad={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class _T{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,n,r){var s,i;const o=e.topic,a=(s=e.ref)!==null&&s!==void 0?s:"",l=(i=e.join_ref)!==null&&i!==void 0?i:"",u=e.payload.event,d=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+h.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let w=new DataView(p),v=0;w.setUint8(v++,this.KINDS.userBroadcastPush),w.setUint8(v++,l.length),w.setUint8(v++,a.length),w.setUint8(v++,o.length),w.setUint8(v++,u.length),w.setUint8(v++,h.length),w.setUint8(v++,n),Array.from(l,g=>w.setUint8(v++,g.charCodeAt(0))),Array.from(a,g=>w.setUint8(v++,g.charCodeAt(0))),Array.from(o,g=>w.setUint8(v++,g.charCodeAt(0))),Array.from(u,g=>w.setUint8(v++,g.charCodeAt(0))),Array.from(h,g=>w.setUint8(v++,g.charCodeAt(0)));var b=new Uint8Array(p.byteLength+r.byteLength);return b.set(new Uint8Array(p),0),b.set(new Uint8Array(r),p.byteLength),b.buffer}decode(e,n){if(this._isArrayBuffer(e)){let r=this._binaryDecode(e);return n(r)}if(typeof e=="string"){const r=JSON.parse(e),[s,i,o,a,l]=r;
160return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(e){const n=new DataView(e),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,n,s)}}_decodeUserBroadcast(e,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(e.slice(l,l+s));l=l+s;const d=r.decode(e.slice(l,l+i));l=l+i;const h=r.decode(e.slice(l,l+o));l=l+o;const f=e.slice(l,e.byteLength),p=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,w={type:this.BROADCAST_EVENT,event:d,payload:p};return o>0&&(w.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([r])=>n.includes(r)))}}var me;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(me||(me={}));const gm=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((i,o)=>(i[o]=TT(o,t,e,s),i),{}):{}},TT=(t,e,n,r)=>{const s=e.find(a=>a.name===t),i=s==null?void 0:s.type,o=n[t];return i&&!r.includes(i)?mb(i,o):jd(o)},mb=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return jT(e,n)}switch(t){case me.bool:return CT(e);case me.float4:case me.float8:case me.int2:case me.int4:case me.int8:case me.numeric:case me.oid:return ET(e);case me.json:case me.jsonb:return AT(e);case me.timestamp:return PT(e);case me.abstime:case me.date:case me.daterange:case me.int4range:case me.int8range:case me.money:case me.reltime:case me.text:case me.time:case me.timestamptz:case me.timetz:case me.tsrange:case me.tstzrange:return jd(e);default:return jd(e)}},jd=t=>t,CT=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},ET=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},AT=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},jT=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let i;const o=t.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>mb(e,a))}return t},PT=t=>typeof t=="string"?t.replace(" ","T"):t,yb=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var ho=t=>typeof t=="function"?t:function(){return t},NT=typeof self<"u"?self:null,js=typeof window<"u"?window:null,on=NT||js||globalThis,RT="2.0.0",OT=1e4,IT=1e3,un={connecting:0,open:1,closing:2,closed:3},st={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},_n={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Pd={longpoll:"longpoll",websocket:"websocket"},LT={complete:4},Nd="base64url.bearer.phx.",Ma=class{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}
vendor: 20,330 bytes, lines 160-161
160matchReceive({status:t,response:e,_ref:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},gb=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},HT=class{constructor(t,e,n){this.state=st.closed,this.topic=t,this.params=ho(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ma(this,_n.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new gb(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=st.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=st.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=st.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=st.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Ma(this,_n.leave,ho({}),this.timeout).send(),this.state=st.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(_n.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=st.closed,this.bindings=[]}onClose(t){this.on(_n.close,t)}onError(t){return this.on(_n.error,e=>t(e))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter(n=>!(n.event===t&&(typeof e>"u"||e===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Ma(this,t,function(){return e},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=st.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(_n.close,"leave")},n=new Ma(this,_n.leave,ho({}),t);return n.receive("ok",()=>e()).receive("timeout",()=>e()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}filterBindings(t,e,n){return!0}isMember(t,e,n,r){return this.topic!==t?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=st.joining,this.joinPush.resend(t))}trigger(t,e,n,r){let s=this.onMessage(t,e,n,r);if(e&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===t&&this.filterBindings(o,e,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===st.closed}isErrored(){return this.state===st.errored}isJoined(){return this.state===st.joined}isJoining(){return this.state===st.joining}isLeaving(){return this.state===st.leaving}},$l=class{static request(t,e,n,r,s,i,o){if(on.XDomainRequest){let a=new on.XDomainRequest;return this.xdomainRequest(a,t,e,r,s,i,o)}else if(on.XMLHttpRequest){let a=new on.XMLHttpRequest;return this.xhrRequest(a,t,e,n,r,s,i,o)}else{if(on.fetch&&on.AbortController)return this.fetchRequest(t,e,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,n,r,s,i,o){let a={method:t,headers:n,body:r},l=null;return s&&(l=new AbortController,setTimeout(()=>l.abort(),s),a.signal=l.signal),on.fetch(e,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&i?i():o&&o(null)}),l}static xdomainRequest(t,e,n,r,s,i,o){return t.timeout=s,t.open(e,n),t.onload=()=>{let a=this.parseJSON(t.responseText);o&&o(a)},i&&(t.ontimeout=i),t.onprogress=()=>{},t.send(r),t}static xhrRequest(t,e,n,r,s,i,o,a){t.open(e,n,!0),t.timeout=i;for(let[l,u]of Object.entries(r))t.setRequestHeader(l,u);return t.onerror=()=>a&&a(null),t.onreadystatechange=()=>{if(t.readyState===LT.complete&&a){let l=this.parseJSON(t.responseText);a(l)}},o&&(t.ontimeout=o),t.send(s),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let s=e?`${e}[${r}]`:r,i=t[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},MT=t=>{let e="",n=new Uint8Array(t),r=n.byteLength;for(let s=0;s<r;s++)e+=String.fromCharCode(n[s]);return btoa(e)},xs=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(Nd)&&(this.authToken=atob(e[1].slice(Nd.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=un.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Pd.websocket),"$1/"+Pd.longpoll)}endpointURL(){return $l.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=un.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===un.open||this.readyState===un.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:n,token:r,messages:s}=e;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=un.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(t){typeof t!="string"&&(t=MT(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(` 161`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,n){for(let s of this.reqs)s.abort();this.readyState=un.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(t,e,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=$l.request(t,this.endpointURL(),e,n,this.timeout,o,a=>{this.reqs.delete(i),this.isActive()&&s(a)}),this.reqs.add(i)}},DT=class Qi{constructor(e,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Qi.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Qi.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Qi.syncDiff(this.state,s,i,o),a())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Qi.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,n,r,s){let i=this.clone(e),o={},a={};return this.map(i,(l,u)=>{n[l]||(a[l]=u)}),this.map(n,(l,u)=>{let d=i[l];if(d){let h=u.metas.map(v=>v.phx_ref),f=d.metas.map(v=>v.phx_ref),p=u.metas.filter(v=>f.indexOf(v.phx_ref)<0),w=d.metas.filter(v=>h.indexOf(v.phx_ref)<0);p.length>0&&(o[l]=u,o[l].metas=p),w.length>0&&(a[l]=this.clone(d),a[l].metas=w)}else o[l]=u}),this.syncDiff(i,{joins:o,leaves:a},r,s)}static syncDiff(e,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(a,l)=>{let u=e[a];if(e[a]=this.clone(l),u){let d=e[a].metas.map(f=>f.phx_ref),h=u.metas.filter(f=>d.indexOf(f.phx_ref)<0);e[a].metas.unshift(...h)}r(a,u,l)}),this.map(o,(a,l)=>{let u=e[a];if(!u)return;let d=l.metas.map(h=>h.phx_ref);u.metas=u.metas.filter(h=>d.indexOf(h.phx_ref)<0),s(a,u,l),u.metas.length===0&&delete e[a]}),e}static list(e,n){return n||(n=function(r,s){return s}),this.map(e,(r,s)=>n(r,s))}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static clone(e){return JSON.parse(JSON.stringify(e))}},Da={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,s,i,o]=JSON.parse(t);return e({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:s,payload:i}=t,o=this.META_LENGTH+e.length+n.length+s.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(a),u=0;l.setUint8(u++,this.KINDS.push),l.setUint8(u++,e.length),l.setUint8(u++,n.length),l.setUint8(u++,s.length),l.setUint8(u++,r.length),Array.from(e,h=>l.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>l.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>l.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>l.setUint8(u++,h.charCodeAt(0)));var d=new Uint8Array(a.byteLength+i.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(i),a.byteLength),d.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),s=e.getUint8(2),i=e.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(t.slice(o,o+r));o=o+r;let l=n.decode(t.slice(o,o+s));o=o+s;let u=n.decode(t.slice(o,o+i));o=o+i;let d=t.slice(o,t.byteLength);return{join_ref:a,ref:null,topic:l,event:u,payload:d}},decodeReply(t,e,n){let r=e.getUint8(1),s=e.getUint8(2),i=e.getUint8(3),o=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(t.slice(a,a+r));a=a+r;let u=n.decode(t.slice(a,a+s));a=a+s;let d=n.decode(t.slice(a,a+i));a=a+i;let h=n.decode(t.slice(a,a+o));a=a+o;let f=t.slice(a,t.byteLength),p={status:h,response:f};return{join_ref:l,ref:u,topic:d,event:_n.reply,payload:p}},decodeBroadcast(t,e,n){let r=e.getUint8(1),s=e.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(t.slice(i,i+r));i=i+r;let a=n.decode(t.slice(i,i+s));i=i+s;let l=t.slice(i,t.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},FT=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||OT,this.transport=e.transport||on.WebSocket||xs,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=e.sessionStorage||on&&on.sessionStorage,this.establishedConnections=0,this.defaultEncoder=Da.encode.bind(Da),this.defaultDecoder=Da.decode.bind(Da),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==xs?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;js&&js.addEventListener&&(js.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),js.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),js.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>e.rejoinAfterMs?e.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>e.reconnectAfterMs?e.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(r,s,i)=>{console.log(`${r}: ${s}`,i)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=ho(e.params||{}),this.endPoint=`${t}/${Pd.websocket}`,this.vsn=e.vsn||RT,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new gb(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return xs}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=$l.appendParams($l.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ho(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==xs?this.connectWithFallback(xs,this.longPollFallbackMs):this.transportConnect())}log(t,e,n){this.logger&&this.logger(t,e,n)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage(s=>{s.ref===e&&(this.off([r]),t(Date.now()-n))});return!0}transportName(t){switch(t){case xs:return"LongPoll";default:return t.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${Nd}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(t),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([s,i]),r=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,e),i=this.onError(l=>{this.log("transport","error",l),r&&!n&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let l=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,e),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),IT,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();const r=this.conn;this.waitForBufferDone(r,()=>{e?r.close(e,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){}
161,this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,n=1){if(n===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,n+1)},150*n)}waitForSocketClosed(t,e,n=1){if(n===5||t.readyState===un.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,n+1)},150*n)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport",t);let e=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",t,e,n),(e===this.transport||n>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(_n.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case un.connecting:return"connecting";case un.open:return"open";case un.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([n])=>t.indexOf(n)===-1)}channel(t,e={}){let n=new HT(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:s,join_ref:i}=t;this.log("push",`${e} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=e;if(i&&i===this.pendingHeartbeatRef){const a=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",a)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let a=0;a<this.channels.length;a++){const l=this.channels[a];l.isMember(n,r,s,o)&&l.trigger(r,s,i,o)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([n,r])=>{try{r(...e)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}leaveOpenTopic(t){let e=this.channels.find(n=>n.topic===t&&(n.isJoined()||n.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class po{constructor(e,n){const r=WT(n);this.presence=new DT(e.getChannel(),r),this.presence.onJoin((s,i,o)=>{const a=po.onJoinPayload(s,i,o);e.getChannel().trigger("presence",a)}),this.presence.onLeave((s,i,o)=>{const a=po.onLeavePayload(s,i,o);e.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return po.transformState(this.presence.state)}static transformState(e){return e=$T(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return n[r]=il(s),n},{})}static onJoinPayload(e,n,r){const s=vm(n),i=il(r);return{event:"join",key:e,currentPresences:s,newPresences:i}}static onLeavePayload(e,n,r){const s=vm(n),i=il(r);return{event:"leave",key:e,currentPresences:s,leftPresences:i}}}function il(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function $T(t){return JSON.parse(JSON.stringify(t))}function WT(t){return(t==null?void 0:t.events)&&{events:t.events}}function vm(t){return t!=null&&t.metas?il(t):[]}var wm;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(wm||(wm={}));class BT{get state(){return this.presenceAdapter.state}constructor(e,n){this.channel=e,this.presenceAdapter=new po(this.channel.channelAdapter,n)}}class UT{constructor(e,n,r){const s=zT(r);this.channel=e.getSocket().channel(n,s),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,n){return this.channel.on(e,n)}off(e,n){this.channel.off(e,n)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,n,r){let s;try{s=this.channel.push(e,n,r)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>ST){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(e){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),e)}canPush(){return this.socket.isConnected()&&this.state===sr.joined}isJoined(){return this.state===sr.joined}isJoining(){return this.state===sr.joining}isClosed(){return this.state===sr.closed}isLeaving(){return this.state===sr.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function zT(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var bm;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELET
161E="DELETE"})(bm||(bm={}));var Ks;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Ks||(Ks={}));var Tn;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Tn||(Tn={}));class fo{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,n={config:{}},r){var s,i;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new UT(this.socket.socketAdapter,e,this.params),this.presence=new BT(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=yb(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Ks.PRESENCE]&&this.bindings[Ks.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>{e==null||e(Tn.CHANNEL_ERROR,p)}),this._onClose(()=>e==null?void 0:e(Tn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){e==null||e(Tn.SUBSCRIBED);return}this._updatePostgresBindings(p,e)}).receive("error",p=>{this.state=sr.errored,e==null||e(Tn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Tn.TIMED_OUT)})}return this}_updatePostgresBindings(e,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let a=0;a<i;a++){const l=s[a],{filter:{event:u,schema:d,table:h,filter:f}}=l,p=e&&e[a];if(p&&p.event===u&&fo.isFilterValueEqual(p.schema,d)&&fo.isFilterValueEqual(p.table,h)&&fo.isFilterValueEqual(p.filter,f))o.push(Object.assign(Object.assign({},l),{id:p.id}));else{this.unsubscribe(),this.state=sr.errored,n==null||n(Tn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=sr.errored&&n&&n(Tn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=e===Ks.PRESENCE||e===Ks.PO
161STGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,n,r)}async httpSend(e,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(e,n={}){var r,s;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
161in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this.channelAdapter.push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(e,n,r){const s=e.toLocaleLowerCase(),i=this.channelAdapter.on(e,r),o={type:s,filter:n,callback:r,ref:i};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,n,r)=>{var s,i,o,a,l,u,d;const h=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,r))return!1;const f=(s=this.bindings[h])===null||s===void 0?void 0:s.find(p=>p.ref===e.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in f){const p=f.id,w=(i=f.filter)===null||i===void 0?void 0:i.event;return p&&((o=n.ids)===null||o===void 0?void 0:o.includes(p))&&(w==="*"||(w==null?void 0:w.toLocaleLowerCase())===((a=n.data)===null||a===void 0?void 0:a.type.toLocaleLowerCase()))}else{const p=(u=(l=f==null?void 0:f.filter)===null||l===void 0?void 0:l.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return p==="*"||p===((d=n==null?void 0:n.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===h})}_notThisChannelEvent(e,n){const{close:r,error:s,leave:i,join:o}=fb;return n&&[r,s,i,o].includes(e)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:a,type:l,errors:u}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:a,eventType:l,new:{},old:{},errors:u}),this._getPayloadRecords(s))}return n})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in e.bindings)for(const r of e.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=gm(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=gm(e.columns,e.old_record)),n}}class KT{constructor(e,n){this.socket=new FT(e,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{e(),i("ok")},n,r)})}push(e){this.socket.push(e)}log(e,n,r){this.socket.log(e,n,r)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Ad.connecting}isDisconnecting(){return this.socket.connectionState()==Ad.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const qT={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},VT=[1e3,2e3,5e3,1e4],YT=1e4,JT=` 162 addEventListener("message", (e) => { 163 if (e.data.event === "start") { 164 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 165 } 166 });`;class GT{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
166,this.ref=0,this.serializer=new _T,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new KT(e,s),this.httpEndpoint=yb(e),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const n=e.message;throw n.includes("Node.js")?new Error(`${n} 167 168To use Realtime in Node.js, you need to provide a WebSocket implementation: 169 170Option 1: Use Node.js 22+ which has native WebSocket support 171Option 2: Install and provide the "ws" package: 172 173 npm install ws 174 175 import ws from "ws" 176 const client = new RealtimeClient(url, { 177 ...options, 178 transport: ws 179 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,n){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,n)}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&e.teardown(),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(e);return this.disconnect(),n}log(e,n,r){this.socketAdapter.log(e,n,r)}connectionState(){return this.socketAdapter.connectionState()||Ad.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new fo(`realtime:${e}`,n,this);return this.channels.push(i),i}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}async _performAuth(e=null){let n,r=!1;if(e)n=e,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:wT};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(fb.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(n,r)=>{n=="sent"&&this._setAuthSafely(),e&&e(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([JT],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(e){var n,r,s,i,o,a,l,u,d;this.worker=(n=e==null?void 0:e.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=e==null?void 0:e.accessToken)!==null&&r!==void 0?r:null;const h={};
179h.timeout=(s=e==null?void 0:e.timeout)!==null&&s!==void 0?s:kT,h.heartbeatIntervalMs=(i=e==null?void 0:e.heartbeatIntervalMs)!==null&&i!==void 0?i:qT.HEARTBEAT_INTERVAL,h.transport=(o=e==null?void 0:e.transport)!==null&&o!==void 0?o:gT.getWebSocketConstructor(),h.params=e==null?void 0:e.params,h.logger=e==null?void 0:e.logger,h.heartbeatCallback=this._wrapHeartbeatCallback(e==null?void 0:e.heartbeatCallback),h.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:v=>VT[v-1]||YT;let f,p;const w=(l=e==null?void 0:e.vsn)!==null&&l!==void 0?l:xT;switch(w){case bT:f=(v,b)=>b(JSON.stringify(v)),p=(v,b)=>b(JSON.parse(v));break;case pb:f=this.serializer.encode.bind(this.serializer),p=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${h.vsn}`)}if(h.vsn=w,h.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:f,h.decode=(d=e==null?void 0:e.decode)!==null&&d!==void 0?d:p,h.beforeReconnect=this._reconnectAuth.bind(this),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,h.params=Object.assign(Object.assign({},h.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl,h.autoSendHeartbeat=!this.worker}return h}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var Fo=class extends Error{constructor(t,e){var n;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((n=e.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function QT(t,e,n){const r=new URL(e,t);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function ZT(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function XT(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=QT(t.baseUrl,r,s),l=await ZT(t.auth),u=await e(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const p=h?f:void 0,w=p==null?void 0:p.error;throw new Fo((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:p})}return{status:u.status,headers:u.headers,data:f}}}}function Fa(t){return t.join("�")}var e3=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Fa(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Fa(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fa(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Fa(t.namespace)}`}),!0}catch(e){if(e instanceof Fo&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof Fo&&n.status===409)return;throw n}}};function ks(t){return t.join("�")}var t3=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ks(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ks(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ks(t.namespace)}
179/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ks(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ks(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ks(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof Fo&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof Fo&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},n3=class{constructor(t){var r;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=XT({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(r=t.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new e3(this.client,e),this.tableOps=new t3(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function $o(t){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(t)}function r3(t,e){if($o(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if($o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function s3(t){var e=r3(t,"string");return $o(e)=="symbol"?e:e+""}function i3(t,e,n){return(e=s3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xm(Object(n),!0).forEach(function(r){i3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _c=class extends Error{constructor(t,e="storage",n,r){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Tc(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Rd=class extends _c{constructor(t,e,n,r="storage"){super(t,r,e,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return z({},super.toJSON())}},vb=class extends _c{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};const o3=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),a3=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
179return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Od=t=>{if(Array.isArray(t))return t.map(n=>Od(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=Od(r)}),e},l3=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),km=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},c3=async(t,e,n,r)=>{if(t!==null&&typeof t=="object"&&typeof t.json=="function"){const s=t;let i=parseInt(s.status,10);Number.isFinite(i)||(i=500),s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";e(new Rd(km(o),i,a,r))}).catch(()=>{const o=i+"";e(new Rd(s.statusText||`HTTP ${i} error`,i,o,r))})}else e(new vb(km(t),t,r))},u3=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};if(t==="GET"||t==="HEAD"||!r)return z(z({},s),n);if(a3(r)){var i;const o=(e==null?void 0:e.headers)||{};let a;for(const[l,u]of Object.entries(o))l.toLowerCase()==="content-type"&&(a=u);s.headers=d3(o,"Content-Type",(i=a)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return e!=null&&e.duplex&&(s.duplex=e.duplex),z(z({},s),n)};function d3(t,e,n){const r=z({},t);for(const s of Object.keys(r))s.toLowerCase()===e.toLowerCase()&&delete r[s];return r[e]=n,r}async function qi(t,e,n,r,s,i,o){return new Promise((a,l)=>{t(n,u3(e,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>c3(u,l,r,o))})}function wb(t="storage"){return{get:async(e,n,r,s)=>qi(e,"GET",n,r,s,void 0,t),post:async(e,n,r,s,i)=>qi(e,"POST",n,s,i,r,t),put:async(e,n,r,s,i)=>qi(e,"PUT",n,s,i,r,t),head:async(e,n,r,s)=>qi(e,"HEAD",n,z(z({},r),{},{noResolveJson:!0}),s,void 0,t),remove:async(e,n,r,s,i)=>qi(e,"DELETE",n,s,i,r,t)}}const h3=wb("storage"),{get:Wo,post:Wt,put:Id,head:p3,remove:op}=h3,mt=wb("vectors");var Oi=class{constructor(t,e={},n,r="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=Object.fromEntries(Object.entries(e).map(([s,i])=>[s.toLowerCase(),i])),this.fetch=o3(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=z(z({},this.headers),{},{[t.toLowerCase()]:e}),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Tc(n))return{data:null,error:n};throw n}}},f3=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Tc(e))return{data:null,error:e};throw e}}};let bb;bb=Symbol.toStringTag;var m3=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[bb]="BlobDownloadBuilder",this.promise=null}asStream(){return new f3(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Tc(e))return{data:null,error:e};throw e}}};const y3={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Sm={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var g3=class extends Oi{constructor(t,e={},n,r){super(t,e,r,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=z(z({},Sm),r);let a=z(z({},s.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=z(z({},a),r.headers));const u=s._removeEmptyFolders(e),d=s._getFinalPath(u),h=await(t=="PUT"?Id:Wt)(s.fetch,`${s.url}/object/${d}`,i,z({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,r){var s=this;const i=s._removeEmptyFolders(t),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",e),s.handleOperation(async()=>{let l;const u=z(z({},Sm),r),d=z(z({},s.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{path:i,fullPath:(await Id(s.fetch,a.toString(),l,{headers:d})).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(t);const s=z({},n.headers);e!=null&&e.upsert&&(s["x-upsert"]="true");const i=await Wt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new _c("No token returned by API");return{signedUrl:o.toString(),path:t,token:a}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var r=this;return r.handleOperation(async()=>await Wt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(t,e,n){var r=this;return r.handleOperation(async()=>({path:(await Wt(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(t,e,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(t);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await Wt(r.fetch,`${r.url}/object/sign/${s}
179`,z({expiresIn:e},i?{transform:n.transform}:{}),{headers:r.headers});const a=new URLSearchParams;n!=null&&n.download&&a.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&a.set("cacheNonce",String(n.cacheNonce));const l=a.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(t,e,n){var r=this;return r.handleOperation(async()=>{const s=await Wt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:e,paths:t},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(a=>z(z({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${o?`&${o}`:""}`):null}))})}download(t,e,n){const r=typeof(e==null?void 0:e.transform)=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;e!=null&&e.transform&&this.applyTransformOptsToQuery(s,e.transform),(e==null?void 0:e.cacheNonce)!=null&&s.set("cacheNonce",String(e.cacheNonce));const i=s.toString(),o=this._getFinalPath(t),a=()=>Wo(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new m3(a,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>Od(await Wo(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await p3(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(s){if(e.shouldThrowOnError)throw s;if(Tc(s)){var r;const i=s instanceof Rd?s.status:s instanceof vb?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(t,e){const n=this._getFinalPath(t),r=new URLSearchParams;e!=null&&e.download&&r.set("download",e.download===!0?"":e.download),e!=null&&e.transform&&this.applyTransformOptsToQuery(r,e.transform),(e==null?void 0:e.cacheNonce)!=null&&r.set("cacheNonce",String(e.cacheNonce));const s=r.toString(),i=typeof(e==null?void 0:e.transform)=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await op(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var r=this;return r.handleOperation(async()=>{const s=z(z(z({},y3),e),{},{prefix:t||""});return await Wt(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const r=z({},t);return await Wt(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const v3="2.103.3",ia={"X-Client-Info":`storage-js/${v3}`};var w3=class extends Oi{constructor(t,e={},n,r){const s=new URL(t);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=z(z({},ia),e);super(i,o,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await Wo(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Wo(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await Wt(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await Id(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await Wt(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await op(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},b3=class extends Oi{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=z(z({},ia),e);super(r,s,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Wt(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&n.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&n.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&n.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&n.set("sortOrder",t.sortOrder),t!=null&&t.search&&n.set("search",t.search);const r=n.toString(),s=r?`${e.url}/bucket?${r}`:`${e.url}/bucket`;return await Wo(e.fetch,s,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await op(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;
179if(!l3(t))throw new _c("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new n3({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},x3=class extends Oi{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=z(z({},ia),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await mt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await mt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},k3=class extends Oi{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=z(z({},ia),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},S3=class extends Oi{constructor(t,e={},n){const r=t.replace(/\/$/,""),s=z(z({},ia),{},{"Content-Type":"application/json"},e);super(r,s,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await mt.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},_3=class extends S3{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new T3(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},T3=class extends x3{constructor(t,e,n,r){super(t,e,r),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new C3(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},C3=class extends k3{constructor(t,e,n,r,s){super(t,e,s),this.vectorBucketName=n,this.indexName=r}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,z(z({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},E3=class extends w3{constructor(t,e={},n,r){super(t,e,n,r)}from(t){return new g3(this.url,this.headers,t,this.fetch)}get vectors(){return new _3(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new b3(this.url+"/iceberg",this.headers,this.fetch)}};function Cc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}const xb="2.103.3",Ps=30*1e3,Ld=3,pu=Ld*Ps,A3="http://localhost:9999",j3="supabase.auth.token",P3={"X-Client-Info":`gotrue-js/${xb}`},Hd="X-Supabase-Api-Version",kb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},N3=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,R3=10*60*1e3;
179class Bo extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function $(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class O3 extends Bo{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function I3(t){return $(t)&&t.name==="AuthApiError"}class Kr extends Bo{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Bn extends Bo{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class ht extends Bn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function $a(t){return $(t)&&t.name==="AuthSessionMissingError"}class Ss extends Bn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Wa extends Bn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Ba extends Bn{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function L3(t){return $(t)&&t.name==="AuthImplicitGrantRedirectError"}class _m extends Bn{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class H3 extends Bn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Md extends Bn{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function fu(t){return $(t)&&t.name==="AuthRetryableFetchError"}class Tm extends Bn{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Dd extends Bn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Wl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Cm=` 180\r=`.split(""),M3=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Cm.length;e+=1)t[Cm[e].charCodeAt(0)]=-2;for(let e=0;e<Wl.length;e+=1)t[Wl[e].charCodeAt(0)]=e;return t})();function Em(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Wl[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Wl[r]),e.queuedBits-=6}}function Sb(t,e,n){const r=M3[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Am(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{$3(o,r,n)};for(let o=0;o<t.length;o+=1)Sb(t.charCodeAt(o),s,i);return e.join("")}function D3(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function F3(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}D3(r,e)}}function $3(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function ti(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)Sb(t.charCodeAt(s),n,r);return new Uint8Array(e)}function W3(t){const e=[];return F3(t,n=>e.push(n)),new Uint8Array(e)}function Jr(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>Em(s,n,r)),Em(null,n,r),e.join("")}function B3(t){return Math.round(Date.now()/1e3)+t}function U3(){return Symbol("auth-callback")}const We=()=>typeof window<"u"&&typeof document<"u",$r={tested:!1,writable:!1},_b=()=>{if(!We())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if($r.tested)return $r.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),$r.tested=!0,$r.writable=!0}catch{$r.tested=!0,$r.writable=!1}return $r.writable};function z3(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
180h((s,i)=>{e[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const Tb=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),K3=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ns=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},Wr=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},$e=async(t,e)=>{await t.removeItem(e)};class Ec{constructor(){this.promise=new Ec.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Ec.promiseConstructor=Promise;function Ua(t){const e=t.split(".");if(e.length!==3)throw new Dd("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!N3.test(e[r]))throw new Dd("JWT not in base64url format");return{header:JSON.parse(Am(e[0])),payload:JSON.parse(Am(e[1])),signature:ti(e[2]),raw:{header:e[0],payload:e[1]}}}async function q3(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function V3(t,e){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){r(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function Y3(t){return("0"+t.toString(16)).substr(-2)}function J3(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,Y3).join("")}async function G3(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function Q3(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await G3(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _s(t,e,n=!1){const r=J3();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Ns(t,`${e}-code-verifier`,s);const i=await Q3(r);return[i,r===i?"plain":"s256"]}const Z3=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function X3(t){const e=t.headers.get(Hd);if(!e||!e.match(Z3))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function eC(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function tC(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const nC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ts(t){if(!nC.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function mu(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function rC(t,e){return new Proxy(t,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!e.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(n,r,s)}})}function jm(t){return JSON.parse(JSON.stringify(t))}const zr=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),sC=[502,503,504,520,521,522,523,524,530];async function Pm(t){var e;
180if(!K3(t))throw new Md(zr(t),0);if(sC.includes(t.status))throw new Md(zr(t),t.status);let n;try{n=await t.json()}catch(i){throw new Kr(zr(i),i)}let r;const s=X3(t);if(s&&s.getTime()>=kb["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Tm(zr(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new ht}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Tm(zr(n),t.status,n.weak_password.reasons);throw new O3(zr(n),t.status||500,r)}const iC=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function U(t,e,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Hd]||(i[Hd]=kb["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await oC(t,e,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function oC(t,e,n,r,s,i){const o=iC(e,r,s,i);let a;try{a=await t(n,Object.assign({},o))}catch(l){throw console.error(l),new Md(zr(l),0)}if(a.ok||await Pm(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Pm(l)}}function Dt(t){var e;let n=null;cC(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=B3(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Nm(t){const e=Dt(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function ir(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function aC(t){return{data:t,error:null}}function lC(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=t,o=Cc(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Rm(t){return t}function cC(t){return t.access_token&&t.refresh_token&&t.expires_in}const yu=["global","local","others"];class uC{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=Tb(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(e,n=yu[0]){if(yu.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${yu.join(", ")}`);try{return await U(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if($(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await U(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ir})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=Cc(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await U(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:lC,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if($(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await U(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:ir})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await U(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Rm});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>
1800&&(p.forEach(w=>{const v=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=v}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if($(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Ts(e);try{return await U(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:ir})}catch(n){if($(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Ts(e);try{return await U(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:ir})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Ts(e);try{return await U(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:ir})}catch(r){if($(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Ts(e.userId);try{const{data:n,error:r}=await U(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if($(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Ts(e.userId),Ts(e.id);try{return{data:await U(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await U(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Rm});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(w=>{const v=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);u[`${b}Page`]=v}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if($(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(e){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await U(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if($(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await U(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _listCustomProviders(e){try{const n={};return e!=null&&e.type&&(n.type=e.type),await U(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if($(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(e){try{return await U(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _getCustomProvider(e){try{return await U(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if($(n))return{data:null,error:n};throw n}}async _updateCustomProvider(e,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if($(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(e){try{return await U(this.fetch,"DELET
180E",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if($(n))return{data:null,error:n};throw n}}}function Om(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const rn={debug:!!(globalThis&&_b()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Cb extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class Im extends Cb{}async function dC(t,e,n){rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;let s;e>0&&(s=setTimeout(()=>{r.abort(),rn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e)),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){clearTimeout(s),rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,i.name);try{return await n()}finally{rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,i.name)}}else{if(e===0)throw rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new Im(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(rn.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(s),await n()}})}catch(i){if(e>0&&clearTimeout(s),(i==null?void 0:i.name)==="AbortError"&&e>0){if(r.signal.aborted)return rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",t),console.warn(`@supabase/gotrue-js: Lock "${t}" was not released within ${e}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,{mode:"exclusive",steal:!0},async o=>{if(o){rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",t,o.name);try{return await n()}finally{rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",t,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw rn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",t),new Im(`Lock "${t}" was released because another request stole it`)}throw i}}function hC(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function Eb(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function pC(t){return parseInt(t,16)}function fC(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function mC(t){var e;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:d,uri:h,version:f}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 181`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const p=Eb(t.address),w=d?`${d}://${r}`:r,v=t.statement?`${t.statement} 182`:"",b=`${w} wants you to sign in with your Ethereum account: 183${p} 184 185${v}`;let g=`URI: ${h} 186Version: ${f} 187Chain ID: ${n}${o?` 188Nonce: ${o}`:""} 189Issued At: ${i.toISOString()}`;if(s&&(g+=` 190Expiration Time: ${s.toISOString()}`),a&&(g+=` 191Not Before: ${a.toISOString()}`),l&&(g+=` 192Request ID: ${l}`),u){let m=` 193Resources:`;
193for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);m+=` 194- ${y}`}g+=m}return`${b} 195${g}`}class Re extends Error{constructor({message:e,code:n,cause:r,name:s}){var i;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Bl extends Re{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function yC({error:t,options:e}){var n,r,s;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Re({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Re({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Re({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Re({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Re({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Re({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Re({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Re({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(Ab(o)){if(i.rp.id!==o)return new Re({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Re({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Re({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Re({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Re({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function gC({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Re({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Re({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(Ab(r)){if(n.rpId!==r)return new Re({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Re({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Re({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
195ROR",cause:t})}return new Re({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class vC{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const wC=new vC;function bC(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:r}=t,s=Cc(t,["challenge","user","excludeCredentials"]),i=ti(e).buffer,o=Object.assign(Object.assign({},n),{id:ti(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:ti(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function xC(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,r=Cc(t,["challenge","allowCredentials"]),s=ti(e).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:ti(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function kC(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:Jr(new Uint8Array(t.response.attestationObject)),clientDataJSON:Jr(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function SC(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Jr(new Uint8Array(s.authenticatorData)),clientDataJSON:Jr(new Uint8Array(s.clientDataJSON)),signature:Jr(new Uint8Array(s.signature)),userHandle:s.userHandle?Jr(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Ab(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Lm(){var t,e;return!!(We()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function _C(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Bl("Browser returned unexpected credential type",e)}:{data:null,error:new Bl("Empty credential response",e)}}catch(e){return{data:null,error:yC({error:e,options:t})}}}async function TC(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Bl("Browser returned unexpected credential type",e)}:{data:null,error:new Bl("Empty credential response",e)}}catch(e){return{data:null,error:gC({error:e,options:t})}}}const CC={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},EC={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Ul(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of t)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(e(o)){const a=r[i];e(a)?r[i]=Ul(a,o):r[i]=Ul(o)}else r[i]=o}return r}function AC(t,e){return Ul(CC,t,e||{})}function jC(t,e){return Ul(EC,t,e||{})}class PC{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!a)return{data:null,error:l};const u=s??wC.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:d}=a.webauthn.credential_options.publicKey;if(!d.name){const h=r;if(h)d.name=`${d.id}:${h}`;else{const p=(await this.client.getUser()).data.user,w=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";d.name=`${d.id}:${w}`}}d.displayName||(d.displayName=d.name)}switch(a.webauthn.type){case"create":{const d=AC(a.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await _C({publicKey:d,signal:u});return h?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const d=jC(a.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await TC(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(a){return $(a)?{data:null,error:a}:{data:null,error:new Kr("Unexpected error in challenge",a)}}}async _verify({challengeId:e,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:r})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Bo("rpId is required for WebAuthn authentication")};try{if(!Lm())return{data:null,error:new Kr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return $(o)?{data:null,error:o}:{data:null,error:new Kr("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Bo("rpId is required for WebAuthn registration")};try{if(!Lm())return{data:null,error:new Kr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;
195return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===e&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return $(o)?{data:null,error:o}:{data:null,error:new Kr("Unexpected error in register",o)}}}}hC();const NC={url:A3,storageKey:j3,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:P3,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Hm(t,e,n){return await n()}const Cs={};class Uo{get jwks(){var e,n;return(n=(e=Cs[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){Cs[this.storageKey]=Object.assign(Object.assign({},Cs[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=Cs[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Cs[this.storageKey]=Object.assign(Object.assign({},Cs[this.storageKey]),{cachedAt:e})}constructor(e){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},NC),e);if(this.storageKey=i.storageKey,this.instanceID=(n=Uo.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Uo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&We()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new uC({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=Tb(i.fetch),this.lock=i.lock||Hm,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&We()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=dC:this.lock=Hm,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new PC(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:_b()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Om(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Om(this.memoryStorage)),We()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${xb}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let n={},r="none";if(We()&&(n=z3(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),We()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),L3(i)){const l=(e=i.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return $(n)?this._returnResult({error:n}):this._returnResult({error:new Kr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const i=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Dt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if($(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var n,r,s;try{let i;if("email"in e){const{email:d,password:h,options:f}=e;let p=null,w=null;this.flowType==="pkce"&&([p,w]=await _s(this.storage,this.storageKey)),i=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:w},xform:Dt})}else if("phone"in e){const{phone:d,password:h,options:f}=e;i=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Dt})}else throw new Wa("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await $e(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let n;if("email"in e){const{email:i,password:o,options:a}=e;n=await U(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Nm})}else if("phone"in e){const{phone:i,password:o,options:a}=e;n=await U(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Nm})}else throw new Wa("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Ss;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,r,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,s,i,o,a,l,u,d,h,f;let p,w;if("message"in e)p=e.message,w=e.signature;else{const{chain:v,wallet:b,statement:g,options:m}=e;let y;if(We())if(typeof b=="object")y=b;else{const N=window;if("ethereum"in N&&typeof N.ethereum=="object"&&"request"in N.ethereum&&typeof N.ethereum.request=="function")y=N.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=b}const k=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href),S=await y.request({method:"eth_requestAccounts"}).then(N=>N).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=Eb(S[0]);let T=(r=m==null?void 0:m.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const N=await y.request({method:"eth_chainId"});T=pC(N)}const A={domain:k.host,address:_,statement:g,uri:k.href,version:"1",chainId:T,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=m==null?void 0:m.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=mC(A),w=await y.request({method:"personal_sign",params:[fC(p),_]})}try{const{data:v,error:b}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:w}
195,!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Dt});if(b)throw b;if(!v||!v.session||!v.user){const g=new Ss;return this._returnResult({data:{user:null,session:null},error:g})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:b})}catch(v){if($(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(e){var n,r,s,i,o,a,l,u,d,h,f,p;let w,v;if("message"in e)w=e.message,v=e.signature;else{const{chain:b,wallet:g,statement:m,options:y}=e;let k;if(We())if(typeof g=="object")k=g;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))k=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=g}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href);
195if("signIn"in k&&k.signIn){const _=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let T;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")T=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)T=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)w=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),v=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=y==null?void 0:y.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y==null?void 0:y.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((h=(d=y==null?void 0:y.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...y.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` 196`);const _=await k.signMessage(new TextEncoder().encode(w),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=_}}try{const{data:b,error:g}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:Jr(v)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=e.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Dt});if(g)throw g;if(!b||!b.session||!b.user){const m=new Ss;return this._returnResult({data:{user:null,session:null},error:m})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:g})}catch(b){if($(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(e){const n=await Wr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new H3;const{data:i,error:o}=await U(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Dt});if(await $e(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Ss;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=e,a=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Dt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const d=new Ss;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,r,s,i,o;try{if("email"in e){const{email:a,options:l}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await _s(this.storage,this.storageKey));const{error:h}=await U(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in e){const{phone:a,options:l}=e,{data:u,error:d}=await U(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new Wa("You must provide either an email or phone number.")}catch(a){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(e){var n,r;try{let s,i;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,i=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await U(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Dt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if($(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await _s(this.storage,this.storageKey));const u=await U(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:aC});return!((i=u.data)===null||i===void 0)&&i.url&&We()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new ht;const{error:s}=await U(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if($(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:i}=e,{error:o}=await U(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in e){const{phone:r,type:s,options:i}=e,{data:o,error:a}=await U(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new Wa("You must provide either an email or phone number and a type")}catch(n){if($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await Wr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
196id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<pu:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await Wr(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=mu()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=rC(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:ir}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ht}:await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:ir})})}catch(n){if($(n))return $a(n)&&(await this._removeSession(),await $e(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new ht;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await _s(this.storage,this.storageKey));const{data:u,error:d}=await U(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:ir});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new ht;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ua(e.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});i={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if($(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:a}=n;if(a)throw a;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new ht;const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if($(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){try{if(!We())throw new Ba("No browser detected.");
196if(e.error||e.error_description||e.error_code)throw new Ba(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new _m("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ba("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new _m("No code detected.");const{data:m,error:y}=await this._exchangeCodeForSession(e.code);if(y)throw y;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=e;if(!i||!a||!o||!u)throw new Ba("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let f=d+h;l&&(f=parseInt(l));const p=f-d;p*1e3<=Ps&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${h}s`);const w=f-h;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,f,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,f,d);const{data:v,error:b}=await this._getUser(i);if(b)throw b;const g={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:f,refresh_token:o,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:e.type},error:null})}catch(r){if($(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await Wr(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!$a(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(I3(a)&&(a.status===404||a.status===401||a.status===403)||$a(a)))return this._returnResult({error:a})}return e!=="others"&&(await this._removeSession(),await $e(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=U3(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),$a(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await _s(this.storage,this.storageKey,!0));try{return await U(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,d;const{data:h,error:f}=i;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await U(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return We()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:e.provider,url:r==null?void 0:r.url},error:null})}catch(r){if($(r))return this._returnResult({data:{provider:e.provider,url:null},error:r});throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
196if(s)throw s;const{options:o,provider:a,token:l,access_token:u,nonce:d}=e,h=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Dt}),{data:f,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Ss}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await $e(this.storage,`${this.storageKey}-code-verifier`),$(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await U(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await V3(async s=>(s>0&&await q3(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await U(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Dt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&fu(i)&&Date.now()+o-r<Ps})}catch(r){if(this._debug(n,"error",r),$(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),We()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Wr(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Wr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Ns(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:mu()}else if(s&&!s.user&&!s.user){const o=await Wr(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await $e(this.storage,this.storageKey+"-user"),await Ns(this.storage,this.storageKey,s)):s.user=mu()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<pu;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${pu}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),fu(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new ht;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Ec;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new ht;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),$(i)){const o={data:null,error:i};return fu(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await $e(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Ns(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=jm(s);await Ns(this.storage,this.storageKey,i)}else{const s=jm(n);await Ns(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await $e(this.storage,this.storageKey),await $e(this.storage,this.storageKey+"-code-verifier"),await $e(this.storage,this.storageKey+"-user"),this.userStorage&&await $e(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&We()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
196catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Ps);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-e)/Ps);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Ps}ms, refresh threshold is ${Ld} ticks`),s<=Ld&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof Cb)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!We()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await _s(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await U(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:l,error:u}=await U(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(e.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?kC(e.webauthn.credential_response):SC(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:l}=await U(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await U(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:bC(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:xC(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=n==null?void 0:n.factors)!==null&&e!==void 0?e:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,r,s,i;if(e)try{const{payload:p}=Ua(e);let w=null;p.aal&&(w=p.aal);let v=w;const{data:{user:b},error:g}=await this.getUser(e);if(g)return this._returnResult({data:null,error:g});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter(k=>k.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(v="aal2");const y=p.amr||[];return{data:{currentLevel:w,nextLevel:v,currentAuthenticationMethods:y},error:null}}catch(p){if($(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:a}
196=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Ua(o.access_token);let u=null;l.aal&&(u=l.aal);let d=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(p=>p.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(d="aal2");const f=l.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await U(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new ht})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new ht});const o=await U(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&We()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new ht});const o=await U(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&We()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;return r?this._returnResult({data:null,error:r}):n?await U(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new ht})})}catch(e){if($(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await U(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ht})})}catch(n){if($(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+R3>s)return r;const{data:i,error:o}=await U(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:p,error:w}
196=await this.getSession();if(w||!p.session)return this._returnResult({data:null,error:w});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ua(r);n!=null&&n.allowExpired||eC(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const d=tC(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,W3(`${a}.${l}`)))throw new Dd("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if($(r))return this._returnResult({data:null,error:r});throw r}}}Uo.nextInstanceID={};const RC=Uo,OC="2.103.3";let Zi="";typeof Deno<"u"?Zi="deno":typeof document<"u"?Zi="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Zi="react-native":Zi="node";const IC={"X-Client-Info":`supabase-js-${Zi}/${OC}`},LC={headers:IC},HC={schema:"public"},MC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},DC={};function zo(t){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zo(t)}function FC(t,e){if(zo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(zo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $C(t){var e=FC(t,"string");return zo(e)=="symbol"?e:e+""}function WC(t,e,n){return(e=$C(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mm(Object(n),!0).forEach(function(r){WC(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const BC=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),UC=()=>Headers,zC=(t,e,n)=>{const r=BC(n),s=UC();return async(i,o)=>{var a;const l=(a=await e())!==null&&a!==void 0?a:t;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Ee(Ee({},o),{},{headers:u}))}};function KC(t){return t.endsWith("/")?t:t+"/"}function qC(t,e){var n,r;const{db:s,auth:i,realtime:o,global:a}=t,{db:l,auth:u,realtime:d,global:h}=e,f={db:Ee(Ee({},l),s),auth:Ee(Ee({},u),i),realtime:Ee(Ee({},d),o),storage:{},global:Ee(Ee(Ee({},h),a),{},{headers:Ee(Ee({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function VC(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(KC(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var YC=class extends RC{constructor(t){super(t)}},JC=class{constructor(t,e,n){var r,s;this.supabaseUrl=t,this.supabaseKey=e;const i=VC(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:HC,realtime:DC,auth:Ee(Ee({},MC),{},{storageKey:o}),global:LC},l=qC(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=zC(e,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ee({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new yT(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new E3(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new oT(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:r}=await t.auth.getSession();
196return(e=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:u},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new YC({url:this.authUrl.href,headers:Ee(Ee({},f),d),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new GT(this.realtimeUrl.href,Ee(Ee({},t),{},{params:Ee(Ee({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const GC=(t,e,n)=>new JC(t,e,n);function QC(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}QC()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function ZC(){var b,g;if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(m=>t===m||t.endsWith("."+m)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((b=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((g=t.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:g[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(m,y,k)=>new Promise(S=>{const _=f();let T=!1,A;const N=H=>{T||(T=!0,clearTimeout(A),window.removeEventListener("message",O),S(H))},O=H=>{if(u.indexOf(H.origin)<0)return;const G=H.data;G&&G.type===d&&G.requestId===_&&N(G)};window.addEventListener("message",O);const q={type:m,requestId:_,projectId:s,key:y};k!==void 0&&(q.value=k);for(const H of u)window.parent.postMessage(q,H);A=setTimeout(()=>N(null),h)});let w=!0;const v=250;return{getItem:async m=>{let y=await p("lovable-preview-auth:get",m);return!y&&w&&(await new Promise(k=>setTimeout(k,v)),y=await p("lovable-preview-auth:get",m)),w=!1,y&&y.ok&&typeof y.value=="string"?y.value===""?(localStorage.removeItem(m),null):y.value:localStorage.getItem(m)},setItem:(m,y)=>(localStorage.setItem(m,y),p("lovable-preview-auth:set",m,y).then(()=>{})),removeItem:m=>(localStorage.removeItem(m),p("lovable-preview-auth:remove",m).then(()=>{}))}}const XC="https://xjqfumunhxrnzqhpjycx.supabase.co",eE="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhqcWZ1bXVuaHhybnpxaHBqeWN4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzY1MTI0NjIsImV4cCI6MjA5MjA4ODQ2Mn0.VqcrSGgZ4rpGp3V_s3i76ol9ZE1eyr45YfrhmbIiU-0",ap=GC(XC,eE,{auth:{storage:ZC(),persistSession:!0,autoRefreshToken:!0}}),tE=[{name:"IACT",img:"/images/IACT-Logo.png"},{name:"IMDHA",img:"/images/IMDHA-Logo.png"},{name:"NGH",img:"/images/NGH_Logo.png"}
196],nE=[{label:"Hypnotherapy",to:"/holistic-hypnotherapy"},{label:"Alternative Healing",to:"/alternative-healing"},{label:"Workshops",to:"/workshops"},{label:"Trainings",to:"/practitioner-trainings"},{label:"About",to:"/about"},{label:"Blog",to:"/blog"}];function rE(){const[t,e]=x.useState(""),[n,r]=x.useState(!1),s=async i=>{i.preventDefault();const o=t.trim();if(!o||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)){fr.error("Please enter a valid email address.");return}r(!0);const{error:a}=await ap.from("newsletter_subscribers").insert({email:o});if(r(!1),a){if(a.code==="23505"){fr.success("You're already subscribed â thank you!"),e("");return}fr.error("Sorry, something went wrong. Please try again.");return}fr.success("Thank you for subscribing."),e("")};return c.jsx("footer",{id:"contact",className:"bg-surface-deep text-primary-foreground",children:c.jsxs("div",{className:"container-editorial py-16 md:py-20",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-12",children:[c.jsxs("div",{className:"md:col-span-4",children:[c.jsx(ne,{to:"/",className:"font-display text-3xl md:text-4xl block mb-2",children:"All About You"}),c.jsx("p",{className:"text-[10px] uppercase tracking-[0.32em] text-primary-foreground/60 mb-6",children:"Wellness · Hypnotherapy · Hong Kong"}),c.jsx("p",{className:"text-primary-foreground/75 text-[14.5px] leading-relaxed mb-6 max-w-sm",children:"Hong Kong's award-winning holistic Hypnotherapy and Wellness Centre, founded by Sonia Samtani."}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-3 text-sm text-primary-foreground/80 hover:text-accent transition-colors",children:[c.jsx(uo,{className:"h-4 w-4"})," [email protected]"]}),c.jsxs("a",{href:"tel:+85261335976",className:"flex items-center gap-3 text-sm text-primary-foreground/80 hover:text-accent transition-colors",children:[c.jsx(Ll,{className:"h-4 w-4"})," +852 6133 5976"]})]})]}),c.jsxs("div",{className:"md:col-span-2",children:[c.jsx("h4",{className:"text-[11px] uppercase tracking-[0.22em] text-primary-foreground/60 mb-5",children:"Explore"}),c.jsx("ul",{className:"space-y-3 text-sm",children:nE.map(i=>c.jsx("li",{children:c.jsx(ne,{to:i.to,className:"text-primary-foreground/85 hover:text-accent transition-colors",children:i.label})},i.label))})]}),c.jsxs("div",{className:"md:col-span-2",children:[c.jsx("h4",{className:"text-[11px] uppercase tracking-[0.22em] text-primary-foreground/60 mb-5",children:"Connect"}),c.jsxs("ul",{className:"space-y-3 text-sm",children:[c.jsx("li",{children:c.jsxs("a",{href:"https://www.instagram.com/allaboutyouwellnesscentre/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-foreground/85 hover:text-accent transition-colors",children:[c.jsx(ww,{className:"h-4 w-4"})," Instagram"]})}),c.jsx("li",{children:c.jsxs("a",{href:"https://www.facebook.com/AllAboutYouHK/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-foreground/85 hover:text-accent transition-colors",children:[c.jsx(vw,{className:"h-4 w-4"})," Facebook"]})}),c.jsx("li",{children:c.jsxs("a",{href:"https://hk.linkedin.com/company/all-about-you-wellness-centre",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-foreground/85 hover:text-accent transition-colors",children:[c.jsx(bw,{className:"h-4 w-4"})," LinkedIn"]})}),c.jsx("li",{children:c.jsxs("a",{href:"https://www.youtube.com/@allaboutyouwellnesscentre8713",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-foreground/85 hover:text-accent transition-colors",children:[c.jsx(Sw,{className:"h-4 w-4"})," YouTube"]})}),c.jsx("li",{children:c.jsxs("a",{href:"https://wa.me/85261335976",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-foreground/85 hover:text-accent transition-colors",children:[c.jsx(xw,{className:"h-4 w-4"})," WhatsApp"]})})]})]}),c.jsxs("div",{className:"md:col-span-4",children:[c.jsx("h4",{className:"text-[11px] uppercase tracking-[0.22em] text-primary-foreground
196/60 mb-5",children:"Sign up to our newsletter"}),c.jsx("p",{className:"text-primary-foreground/75 text-sm mb-4",children:"Reflections, workshops & subtle invitations to come back to yourself."}),c.jsxs("form",{onSubmit:s,className:"flex border border-primary-foreground/30 focus-within:border-accent transition-colors",children:[c.jsx("input",{type:"email",value:t,onChange:i=>e(i.target.value),placeholder:"[email protected]",required:!0,maxLength:320,className:"flex-1 bg-transparent px-4 py-3 text-sm text-primary-foreground placeholder:text-primary-foreground/40 focus:outline-none"}),c.jsx("button",{type:"submit",disabled:n,className:"px-4 bg-accent text-accent-foreground hover:opacity-90 transition-opacity disabled:opacity-60","aria-label":"Subscribe",children:n?c.jsx(Yh,{className:"h-4 w-4 animate-spin"}):c.jsx(Jf,{className:"h-4 w-4"})})]}),c.jsxs("a",{href:"https://g.page/r/CZlyZkbFIasYEAI/review",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 mt-6 text-[12px] uppercase tracking-[0.22em] text-primary-foreground/80 hover:text-accent transition-colors",children:["Leave a Review ",c.jsx(Jf,{className:"h-3 w-3"})]})]})]}),c.jsxs("div",{className:"mt-16 pt-10 border-t border-primary-foreground/15",children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-primary-foreground/60 mb-6 text-center",children:"Accredited Organizations · IACT · IMDHA · NGH"}),c.jsx("div",{className:"flex flex-wrap items-center justify-center gap-10",children:tE.map(i=>c.jsx("img",{src:i.img,alt:`${i.name} logo`,className:"h-14 md:h-16 w-auto object-contain opacity-70 hover:opacity-100 transition-opacity",loading:"lazy"},i.name))})]}),c.jsxs("div",{className:"mt-12 pt-8 border-t border-primary-foreground/15 flex flex-col md:flex-row items-center justify-between gap-4 text-xs text-primary-foreground/55",children:[c.jsxs("p",{children:["© ",new Date().getFullYear()," All About You Centre. All rights reserved."]}),c.jsxs("div",{className:"flex gap-6",children:[c.jsx(ne,{to:"/privacy",className:"hover:text-accent transition-colors",children:"Privacy"}),c.jsx(ne,{to:"/terms",className:"hover:text-accent transition-colors",children:"Terms"}),c.jsx(ne,{to:"/cookies",className:"hover:text-accent transition-colors",children:"Cookies"})]})]})]})})}function sE(){const{pathname:t}=Wn();return x.useEffect(()=>{window.scrollTo({top:0,behavior:"instant"})},[t]),c.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[c.jsx(nT,{}),c.jsx(tT,{}),c.jsx("main",{className:"flex-1",children:c.jsx(I2,{})}),c.jsx(rE,{})]})}const iE="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&strip=1&webp=1";function oE(){return c.jsx("section",{className:"relative overflow-hidden bg-background",children:c.jsx("div",{className:"container-editorial pt-12 pb-16 md:pt-16 md:pb-24",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-14 items-center",children:[c.jsxs("div",{className:"lg:col-span-6 fade-in",children:[c.jsx("p",{className:"eyebrow mb-7",children:"Award-Winning Wellness Centre · Hong Kong"}),c.jsxs("h1",{className:"font-display text-foreground leading-[0.95] text-balance",children:[c.jsx("span",{className:"block text-[15vw] md:text-[5.5rem] lg:text-[6.5rem] italic font-light text-primary",children:"you are"}),c.jsxs("span",{className:"block text-[12vw] md:text-[4.5rem] lg:text-[5.25rem] tracking-tight text-foreground",children:["Loved.",c.jsx("span",{className:"text-accent",children:"·"}),"Enough."]}),c.jsxs("span",{className:"block text-[12vw] md:text-[4.5rem] lg:text-[5.25rem] tracking-tight text-foreground",children:["Safe.",c.jsx("span",{className:"text-accent",children:"·"}),"You Belong."]})]}),c.jsxs("p",{className:"mt-8 max-w-xl text-base md:text-lg text-foreground/75 leading-relaxed text-pretty",children:["Join thousands who have ",c.jsx("em",{className:"font-display text-accent not-italic",children:"transformed their lives"})," through the power of ",c.jsx("strong",{className:"font-medium",children:"Hypnotherapy"})," and alternative healing with"," ",c.jsx("em",{className:"font-display text-primary not-italic",children:"Sonia Samtani"})," and her team."]}),c.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row gap-4",children:[c.jsx(ne,{to:"/contact",className:"btn-primary",children:"Start Your Journey"}),c.jsx(ne,{to:"/contact",className:"btn-outline",children:"Free Consultation Call"})]}),c.jsxs("div",{className:"mt-12 flex items-center gap-6 text-[11px] uppercase tracking-[0.22em] text-muted-foreground",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-display italic text-2xl text-accent normal-case tracking-normal",children:"20+"}),c.jsx("span",{children:"Years"})]}),c.jsx("div",{className:"h-6 w-px bg-border"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-display italic text-2xl text-accent normal-case tracking-normal",children:"40,000+"}),c.jsx("span",{children:"Lives Touched"})]}),c.jsx("div",{className:"hidden sm:block h-6 w-px bg-border"}),c.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[c.jsx("span",{className:"font-display italic text-2xl text-accent normal-case tracking-normal",children:"#1"}),c.jsx("span",{children:"Healing Centre HK"})]})]})]}),c.jsx("div",{className:"lg:col-span-6 relative fade-in",style:{animationDelay:"0.15s"},children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute -inset-4 md:-inset-6 border border-gold/60","aria-hidden":!0}),c.jsx("div",{className:"absolute -bottom-6 -right-6 hidden md:block w-32 h-32 bg-accent/15","aria-hidden":!0}
196),c.jsx("img",{src:iE,alt:"Sonia Samtani and the All About You Centre team in their Hong Kong wellness studio",className:"relative w-full h-[460px] md:h-[560px] lg:h-[640px] object-cover",loading:"eager"}),c.jsxs("div",{className:"absolute bottom-6 left-6 right-6 md:left-8 md:right-auto bg-background/95 backdrop-blur-sm px-5 py-4 border-l-2 border-accent max-w-[280px]",children:[c.jsx("p",{className:"text-[10px] uppercase tracking-[0.28em] text-muted-foreground mb-1",children:"Founder & Team"}),c.jsxs("p",{className:"font-display text-lg text-primary leading-tight",children:["Sonia Samtani ",c.jsx("span",{className:"italic text-muted-foreground text-sm",children:"& the All About You team"})]})]})]})})]})})})}const aE="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&strip=1&webp=1";function lE(){return c.jsx("section",{className:"bg-secondary/40 py-20 md:py-28",children:c.jsx("div",{className:"container-editorial",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 lg:gap-16 items-center",children:[c.jsxs("div",{className:"lg:col-span-6 order-2 lg:order-1",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Our Philosophy"}),c.jsxs("h2",{className:"font-display text-5xl md:text-6xl text-primary leading-[1.05] mb-6 text-balance",children:["Why ",c.jsx("em",{className:"text-accent",children:"All About You?"})]}),c.jsx("p",{className:"font-display text-2xl md:text-[1.7rem] italic text-foreground/85 leading-snug mb-8 text-pretty",children:"Because we pride ourselves on creating a holistic healing space where people feel accepted and safe to address their deepest issues."}),c.jsxs("div",{className:"space-y-5 text-foreground/80 leading-relaxed text-[15px]",children:[c.jsx("p",{children:"All About You is an Award winning Wellness and Hypnotherapy Centre in Hong Kong, specializing in Mental Health, founded by Hong Kong's leading Hypnotherapist Sonia Samtani, with an intention to create a space where people feel accepted and safe to address their deepest issues."}),c.jsx("p",{children:"At All About You we pride ourselves in providing our clients a Holistic Healing experience, creating bespoke Signature packages that address their physical, mental, emotional and spiritual needs at the core, empowering them, and allowing them to manifest a new reality."}),c.jsx("p",{children:"We do this through a combination of private sessions, personal development workshops, certified practitioner training programs, and products that promote self-awareness."}),c.jsx("p",{children:"Services are provided by resident and visiting practitioners who are experts in Hypnotherapy, Energy Healing, NLP, Regression Therapy, Tarot Reading, Public Speaking, Couples Counselling, Fast Track Technique, and coaching."})]}),c.jsx("div",{className:"mt-10",children:c.jsx(ne,{to:"/alternative-healing",className:"btn-primary",children:"Explore How We Can Help"})})]}),c.jsxs("div",{className:"lg:col-span-6 order-1 lg:order-2 relative",children:[c.jsx("div",{className:"absolute -inset-4 border border-gold/50","aria-hidden":!0}),c.jsx("img",{src:aE,alt:"All About You Centre Hong Kong Office",className:"relative w-full h-[420px] md:h-[560px] object-cover"})]})]})})})}const cE=[{rank:"#1",title:"Best Alternative Healing Centre",source:"Honeycombers · 2023"},{rank:"Winner",title:"Best Coach",source:"Liv Media"},{rank:"Winner",title:"Best Alternative Healing Centre",source:"Liv Media"},{rank:"Winner",title:"Wellness Entrepreneur of the Year",source:"Liv Media"}];function jb(){return c.jsx("section",{className:"bg-background py-16 md:py-20 border-y border-border",children:c.jsxs("div",{className:"container-editorial",children:[c.jsx("p",{className:"eyebrow justify-center text-center mb-10 flex justify-center",children:"Recognition"}),c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-px bg-border",children:cE.map(t=>c.jsxs("div",{className:"bg-background px-6 py-8 text-center group",children:[c.jsx("div",{className:"font-display text-4xl md:text-5xl text-accent italic mb-2 group-hover:scale-105 transition-transform",children:t.rank}),c.jsx("div",{className:"font-display text-lg md:text-xl text-primary leading-tight mb-2",children:t.title}),c.jsx("div",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground",children:t.source})]},t.title))})]})})}const uE=[{title:"Overcoming Anxiety & Depression",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Overcoming-Anxiety-and-Depression.jpg?lossy=0&
196strip=1&webp=1"},{title:"Gaining Clarity & Direction",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Clarity-and-Direction.jpg?lossy=0&strip=1&webp=1"},{title:"Breaking free from old Habits, Fears & Phobias",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Breaking-free-from-old-Habits-Fears-and-Phobias.jpg?lossy=0&strip=1&webp=1"},{title:"Healing Your Inner Child",img:"/images/Inner-Child-Healing.jpg"},{title:"Releasing Pain & Trauma from body and mind",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Releasing-Pain-and-Trauma-from-body-and-mind.jpg?lossy=0&strip=1&webp=1"},{title:"Improving Relationships",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Improving-Relationships.jpg?lossy=0&strip=1&webp=1"}];function Pb(){return c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-14",children:[c.jsx("p",{className:"eyebrow justify-center inline-flex mb-6",children:"A Moment to Reflect"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight mb-5 text-balance",children:["You being here right now is ",c.jsx("em",{className:"text-accent",children:"no coincidenceâ¦"})]}),c.jsxs("p",{className:"text-foreground/75 text-lg leading-relaxed",children:["and we commend you for taking the ",c.jsx("strong",{children:"first step"})," towards your new journey of living to your peak potential. Just take a moment and ask yourselfâ¦"]}),c.jsx("p",{className:"font-display italic text-2xl md:text-3xl text-primary mt-4",children:"What is it that you're looking for?"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:uE.map((t,e)=>c.jsx(ne,{to:"/contact",className:"group relative overflow-hidden text-left block",children:c.jsxs("div",{className:"relative h-72 md:h-80 overflow-hidden",children:[c.jsx("img",{src:t.img,alt:t.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/85 via-primary/30 to-transparent"}),c.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-6",children:[c.jsxs("p",{className:"text-[10px] uppercase tracking-[0.28em] text-primary-foreground/70 mb-2",children:["0",e+1]}),c.jsx("h3",{className:"font-display text-2xl md:text-[1.65rem] text-primary-foreground leading-tight",children:t.title}),c.jsx("div",{className:"mt-3 h-px w-10 bg-accent group-hover:w-20 transition-all duration-500"})]})]})},t.title))}),c.jsxs("div",{className:"mt-14 text-center",children:[c.jsx("p",{className:"font-display italic text-xl text-foreground/80 mb-5",children:"None of the above, but just need something to change?"}),c.jsx(ne,{to:"/contact",className:"btn-accent",children:"Explore How We Can Help"})]})]})})}const dE=[{title:"Hypnotherapy",to:"/alternative-healing/hypnotherapy",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/private-sessions-all-about-you-centre.jpg?lossy=0&strip=1&webp=1"},{title:"NLP Coaching",to:"/alternative-healing/nlp-coaching",img:"/images/Practitioners-Training-all-about-you-centre.jpg"},{title:"Fast Track Technique",to:"/alternative-healing/fast-track-technique",img:"/images/Fast-Track-Technique.jpg"},{title:"Akashic Reading",to:"/alternative-healing/akashic-reading",img:"/images/Akashic-Reading.jpg"},{title:"Pain Relief & Trauma Release",to:"/alternative-healing/pain-relief-trauma-release",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Pain-Relief-and-Trauma-Release.jpg?lossy=0&strip=1&webp=1"},{title:"Psychic & Spiritual Readings",to:"/alternative-healing/psychic-spiritual-readings",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Psychic-and-Spiritual-Readings.jpg?lossy=0&strip=1&webp=1"},{title:"Tarot Readings",to:"/alternative-healing/tarot-readings",img:"/images/Tarot-Readings.jpg"},{title:"Family Systemic Constellations",to:"/alternative-healing/family-systemic-constellations",img:"/images/Family-Systemic-Constellations.jpg"}];function hE(){return c.jsx("section",{className:"bg-secondary/40 py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Our Modalities"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["Experience ",c.jsx("em",{className:"text-accent",children:"Holistic Healing"})," with us"]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
1965 md:gap-6",children:dE.map((t,e)=>c.jsxs(ne,{to:t.to,className:"group text-left block",children:[c.jsxs("div",{className:"relative overflow-hidden mb-4",children:[c.jsx("img",{src:t.img,alt:t.title,className:"w-full h-64 object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}),c.jsx("div",{className:"absolute inset-0 bg-primary/0 group-hover:bg-primary/15 transition-colors"}),c.jsxs("div",{className:"absolute top-4 left-4 text-[10px] uppercase tracking-[0.28em] text-primary-foreground/90 bg-primary/70 backdrop-blur px-2 py-1",children:["0",e+1]})]}),c.jsx("h3",{className:"font-display text-xl md:text-[1.4rem] text-primary leading-tight group-hover:text-accent transition-colors",children:t.title}),c.jsx("div",{className:"mt-2 h-px w-8 bg-gold group-hover:w-16 transition-all duration-500"})]},t.title))}),c.jsxs("div",{className:"mt-14 flex flex-col md:flex-row items-center justify-between gap-6 border-t border-border pt-10",children:[c.jsx("p",{className:"font-display italic text-xl text-foreground/80",children:"Not sure which modality is the right fit for you?"}),c.jsx(ne,{to:"/contact",className:"btn-primary",children:"Explore How We Can Help"})]})]})})}const pE="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/holistic-hypnotherapy-1-scaled.jpg?lossy=0&strip=1&webp=1";function Nb(){return c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsx("div",{className:"container-editorial",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 lg:gap-16 items-center",children:[c.jsxs("div",{className:"lg:col-span-6 relative",children:[c.jsx("div",{className:"absolute -inset-4 border border-gold/50","aria-hidden":!0}),c.jsx("img",{src:pE,alt:"Holistic Hypnotherapy at All About You Centre",className:"relative w-full h-[440px] md:h-[580px] object-cover",loading:"lazy"})]}),c.jsxs("div",{className:"lg:col-span-6",children:[c.jsx("p",{className:"eyebrow mb-6",children:"The Science of Inner Change"}),c.jsxs("h2",{className:"font-display text-5xl md:text-6xl text-primary leading-[1.02] mb-6 text-balance",children:["Why ",c.jsx("em",{className:"text-accent",children:"Hypn"}),"otherapy?"]}),c.jsx("p",{className:"font-display italic text-xl md:text-2xl text-foreground/80 leading-snug mb-8 text-pretty",children:"Because Hypnotherapy allows you to shift your story at the subconscious level, reflect deeply, and move forward with clarity and wisdom."}),c.jsxs("blockquote",{className:"border-l-2 border-accent pl-6 my-8",children:[c.jsxs("p",{className:"text-foreground/80 leading-relaxed text-[15px]",children:["I realised that ",c.jsx("strong",{children:"real confidence"})," doesn't come from how you look or act â it comes ",c.jsx("strong",{children:"from within"}),". That realisation led me to explore a wide range of healing modalities, including coaching, talk therapy, somatic work, and hypnotherapy. What stood out to me most was hypnotherapy, because it didn't just help me cope â it helped me ",c.jsx("strong",{children:"transform"}),". It addressed the root causes of my patterns and ",c.jsx("strong",{children:"rewired my core belief system."})]}),c.jsx("footer",{className:"mt-4 text-[11px] uppercase tracking-[0.22em] text-muted-foreground",children:"â Sonia Samtani, CEO & Founder of All About You Centre"})]}),c.jsx("h3",{className:"font-display text-2xl md:text-3xl text-primary leading-tight mb-4",children:"Hypnotherapy doesn't give you a temporary fix â it creates a deeper, transformational lifetime change."}),c.jsx("p",{className:"font-display italic text-lg text-foreground/70 mb-8",children:"Want to learn how it can help you fix your problems, or reach your desired goal?"}),c.jsx(ne,{to:"/contact",className:"btn-accent",children:"Start Your Journey Here"})]})]})})})}const fE="/images/Meet-Sonia-Samtani-Pioneering-Hypnotherapist.-All-About-You-Centre-Hong-Kong.png";function Rb(){return c.jsxs("section",{className:"bg-primary text-primary-foreground py-20 md:py-28 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 opacity-[0.04] pointer-events-none","aria-hidden":!0,
196children:c.jsx("div",{className:"absolute top-10 right-10 font-display text-[20rem] leading-none italic",children:"S"})}),c.jsx("div",{className:"container-editorial relative",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 lg:gap-16 items-start",children:[c.jsxs("div",{className:"lg:col-span-5 relative",children:[c.jsx("div",{className:"absolute -inset-4 border border-gold/40","aria-hidden":!0}),c.jsx("img",{src:fE,alt:"Sonia Samtani â Hong Kong's Pioneering Hypnotherapist",className:"relative w-full object-cover",loading:"lazy"})]}),c.jsxs("div",{className:"lg:col-span-7",children:[c.jsx("p",{className:"eyebrow mb-6 text-primary-foreground/70",children:"Founder Story"}),c.jsxs("h2",{className:"font-display text-5xl md:text-6xl leading-[1.02] mb-3 text-balance",children:["Meet ",c.jsx("em",{className:"text-accent",children:"Sonia Samtani"})]}),c.jsx("p",{className:"font-display italic text-xl md:text-2xl text-primary-foreground/75 mb-8",children:"Hong Kong's Pioneering Hypnotherapist"}),c.jsx("div",{className:"space-y-5 text-primary-foreground/85 leading-relaxed text-[15px]",children:c.jsxs("p",{children:["For over two decades, Sonia Samtani has helped thousands of people worldwide overcome their biggest challenges and achieve major breakthroughs. When Sonia first stepped into the world of mental health two decades ago, therapy wasn't a topic people in Hong Kong discussed openly. Hypnotherapy, in particular, was considered woo woo and taboo. But Sonia saw a gap, a need, and an opportunity to make a difference, and she has done just that by speaking at events worldwide; including ",c.jsx("strong",{className:"text-accent",children:"two TEDx talks"}),", through her best-selling book ",c.jsx("em",{children:'"52 Thoughts for Conscious Living"'}),", founding HK's first English Hypnotherapy Centre â All About You â while also being a former Senior Mentor for ",c.jsx("strong",{children:"Tony Robbins"}),". Sonia wears many hats, but her mission remains the same: ",c.jsx("em",{children:"to empower individuals with simple, powerful tools to move from judgment to acceptance."})]})}),c.jsx("blockquote",{className:"my-10 border-l-2 border-accent pl-6",children:c.jsx("p",{className:"font-display italic text-2xl md:text-[1.7rem] leading-snug text-primary-foreground",children:'"Seeing clients move from fear to confidence, or overcome deeply ingrained limiting beliefs, is the most rewarding part of my work."'})}),c.jsxs("p",{className:"text-primary-foreground/85 leading-relaxed text-[15px] mb-8",children:["Till date, Sonia has impacted more than ",c.jsx("strong",{className:"text-accent",children:"40,000 people"}),". Her successes include helping Formula Renault Racing Driver Dan Wells win 12 races in a row and resolving deep-rooted issues like bulimia and psoriasis in a single session. She has received several awards, including ",c.jsx("em",{children:"Hong Kong's Women of Power, Wellness Entrepreneur of the Year, and Best Hypnotherapist"})," from Prestige Magazine, Ritzy, and Liv Magazine."]}),c.jsx("blockquote",{className:"border-l-2 border-accent pl-6 mb-10",children:c.jsx("p",{className:"font-display italic text-xl md:text-2xl leading-snug text-primary-foreground/95",children:`"Therapy is no longer seen as something you turn to only when you're 'broken.' People are starting to view it as an ongoing practice, like going to the gym â but for your mind."`})}),c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(ne,{to:"/about",className:"btn-accent",children:"Read Sonia's Story"}),c.jsx("a",{href:"https://www.youtube.com/@allaboutyouwellnesscentre8713",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-7 py-3 text-[12px] uppercase tracking-[0.22em] border border-primary-foreground/40 text-primary-foreground hover:bg-primary-foreground hover:text-primary transition-colors",children:"Watch TEDx Talk"})]})]})]})})]})}const Dm=[["Vogue","/images/Vogue.png"],["SCMP","/images/SCMP-logo.png"],["HK Tatler","/images/HK-Tatler-Logo.png"],["Cosmopolitan","/images/Cosmopolitan-Logo.png"],["Elle","/images/Elle-Logo.png"],["Marie Claire","/images/Marie-Clare-Logo.png"],["Forbes India","/images/Forbes-India-Logo.png"],["Prestige","/images/Prestige.png"],["Honeycombers","/images/Honeycombers-Logo.png"],["Time Out HK","/images/Time-Out-HK-Logo.png"],["Lifestyle Asia","/images/Lifestyle-Asia-Logo.png"],["Jessica","/images/Jessica-logo.png"],["Sassy HK","/images/Sassy-HK-Logo.png"],["Sassy Mama","/images/Sassy-Mama-Hk-Logo.png"],["HK Living","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/HK-Living-Logo.png?lossy=0&
196strip=1&webp=1"],["Liv Magazine","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Liv-Magazine-Logo.png?lossy=0&strip=1&webp=1"],["Gafencu","/images/Gafencu-logo.png"],["Compare Retreats","/images/Compare-Retreats-Logo.png"],["Her World","/images/HER-World-Logo.png"],["Hashtag Legend","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Hashtag-Legend-Logo.png?lossy=0&strip=1&webp=1"],["China Daily","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/China-Daily-Logo.png?lossy=0&strip=1&webp=1"],["The Loop HK","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/The-Loop-HK.png?lossy=0&strip=1&webp=1"],["Ritzy HK","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Ritzy-Hong-Kong-Logo.png?lossy=0&strip=1&webp=1"],["HKTDC","https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/HKTDC-Logo.png?lossy=0&strip=1&webp=1"]];function Ob(){const t=[...Dm,...Dm];return c.jsxs("section",{className:"bg-background py-16 md:py-20 border-y border-border overflow-hidden",children:[c.jsxs("div",{className:"container-editorial mb-10",children:[c.jsx("p",{className:"eyebrow justify-center text-center inline-flex w-full mb-3",children:"As Featured In"}),c.jsx("h2",{className:"font-display italic text-3xl md:text-4xl text-primary text-center text-balance",children:"Trusted by leading press across the world"})]}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-24 bg-gradient-to-r from-background to-transparent z-10"}),c.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-24 bg-gradient-to-l from-background to-transparent z-10"}),c.jsx("div",{className:"marquee",children:t.map(([e,n],r)=>c.jsx("div",{className:"flex items-center justify-center shrink-0 h-16 md:h-20",children:c.jsx("img",{src:n,alt:`${e} logo`,className:"max-h-12 md:max-h-16 w-auto object-contain opacity-60 hover:opacity-100 grayscale hover:grayscale-0 transition-all duration-500",loading:"lazy"})},`${e}-${r}`))})]})]})}const mE=[{headline:"Won the Lamborghini Super Trofeo world final after my first Hypnotherapy session!",body:"Manifested winning the Lamborghini Super Trofeo world final in racing after my first hypnotherapy session, and then going on to working with Lamborghini and changing the trajectory of my life!! Thank you Sonia!",name:"Oscar Lee",role:"DW Evans GT Racecar Driver"},{headline:"I resolved the loss of my unborn child, through a Systemic Constellation.",body:"Through the powerful constellation process, I was able to bring to light my unresolved feelings about past loss of my unborn child which I had never had the courage to fully confront and resolve since the age of 21.",name:"Kim Do",role:"Family Systemic Constellation Client"},{headline:"Tarot reading session gave me a clearer direction in life.",body:"I had a tarot reading at All About You and it was amazing! The whole process felt so effortless, and Reader guided me through the session so well. On the questions I wanted to explore, we had such a rich conversation around what the cards are showing and what I need to do to move in the direction I want. It was an empowering session and we shared many laughs.",name:"Winnie Chung",role:"Tarot Reading Client"},{headline:"I overcame anxiety & insomnia starting from my first Hypnotherapy session.",body:"I had a wonderful experience with hypnotherapy at All About You. From our first session, the hypnotherapist instantly built trust and rapport, making me feel at ease and understood. She patiently helped me uncover the root cause of my recurring anxiety, working with me on a subconscious level to address it deeply and effectively. She also provided me with practical tools that I now use to manage and solve sleeping or overthinking problems as they arise.",name:"Min Lai",role:"Hypnotherapy Client"},{headline:"Fast Track Technique truly helped my financial freedom explode!",body:"Since I began dissolving those barriers through Fast Track Technique my financial situation has continued to explode. Earnings, bonuses, unexpected windfalls, freedom from debt⦠you name it. Thank y
196ou!",name:"Anonymous",role:"Fast Track Technique Client"},{headline:"Holistic healing approach released stuck energy in my body, allowing me to run again!",body:"My Pain Relief session at All About You Centre was just what I needed. After experiencing a Grade 2 Ankle Sprain about a year ago, I have not been able to get back to running. The therapist was able to release some pressure in my ankle area as well as stuck energy in the body. She has a wonderful calming presence and I felt really supported during the entire session. Initially, going in for my ankle pain, she was able to identify other areas of pain and release stuck areas in my heart and head. I highly recommend All About You's holistic approach to healing.",name:"Christy Donohue",role:"Pain Relief Client"}];function Ib(){return c.jsx("section",{className:"bg-secondary/40 py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Client Transformations"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["Here are the ",c.jsx("em",{className:"text-accent",children:"transformations"})," our clients have experienced"]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-px bg-border border border-border",children:mE.map((t,e)=>c.jsxs("article",{className:"bg-background p-8 md:p-10 flex flex-col",children:[c.jsx("span",{className:"font-display text-5xl text-accent leading-none mb-4 italic",children:'"'}),c.jsx("h3",{className:"font-display text-xl md:text-[1.45rem] text-primary leading-snug mb-5 text-balance",children:t.headline}),c.jsx("p",{className:"text-foreground/75 leading-relaxed text-[14.5px] mb-6 text-pretty",children:t.body}),c.jsxs("div",{className:"mt-auto pt-5 border-t border-border",children:[c.jsx("p",{className:"font-display italic text-lg text-primary",children:t.name}),c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground mt-1",children:t.role})]})]},t.name+e))}),c.jsxs("div",{className:"mt-14 text-center",children:[c.jsx("p",{className:"font-display italic text-xl text-foreground/80 mb-5",children:"Want to see more success stories?"}),c.jsx(ne,{to:"/about",className:"btn-outline",children:"Read More Testimonials"})]})]})})}const yE=[{title:"Private Sessions",desc:"Dive into deep relaxation to unlock your mind's potential and create positive change.",cta:"Book a Session",to:"/contact",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/private-sessions-all-about-you-centre.jpg?lossy=0&strip=1&webp=1"},{title:"Personal Development Workshops",desc:"Immersive group experiences designed to expand awareness, dissolve patterns, and unlock new possibilities.",cta:"Book a Workshop",to:"/workshops",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Personal-development-all-about-you-centre.jpg?lossy=0&strip=1&webp=1"},{title:"Practitioner Trainings",desc:"Enhance your understanding of the mind and gain insights into human behavior and other techniques.",cta:"Be a Practitioner",to:"/practitioner-trainings",img:"/images/Practitioners-Training-all-about-you-centre.jpg"}];function gE(){return c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Choose Your Path"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["Are you ready for ",c.jsx("em",{className:"text-accent",children:"your transformation?"})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8",children:yE.map(t=>c.jsxs("article",{className:"group bg-card border border-border flex flex-col",children:[c.jsx("div",{className:"relative h-64 overflow-hidden",children:c.jsx("img",{src:t.img,alt:t.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"})}),c.jsxs("div",{className:"p-8 flex flex-col flex-1",children:[c.jsx("h3",{className:"font-display text-2xl md:text-[1.6rem] text-primary leading-tight mb-3",children:t.title}),c.jsx("div",{className:"h-px w-10 bg-gold mb-4"}
196),c.jsx("p",{className:"text-foreground/75 leading-relaxed text-[14.5px] mb-8 flex-1",children:t.desc}),c.jsx(ne,{to:t.to,className:"btn-outline self-start",children:t.cta})]})]},t.title))})]})})}const vE="/images/National-Counselling-Conference-2024-AAYC.png";function Mn(){return c.jsxs("section",{className:"relative overflow-hidden",children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("img",{src:vE,alt:"National Counselling Conference 2024 â All About You Centre",className:"w-full h-full object-cover",loading:"lazy"}),c.jsx("div",{className:"absolute inset-0 bg-primary/85"})]}),c.jsxs("div",{className:"relative container-editorial py-24 md:py-32 text-center text-primary-foreground",children:[c.jsx("p",{className:"eyebrow justify-center inline-flex mb-6 text-primary-foreground/70",children:"Begin Today"}),c.jsxs("h2",{className:"font-display text-5xl md:text-6xl lg:text-7xl leading-[1.05] max-w-4xl mx-auto text-balance mb-8",children:[c.jsx("em",{className:"text-accent",children:"Start today,"})," and manifest your new reality."]}),c.jsx("p",{className:"max-w-xl mx-auto text-primary-foreground/85 text-lg leading-relaxed mb-10",children:"Your next chapter begins with a single decision. We're here to walk it with you."}),c.jsx(ne,{to:"/contact",className:"btn-accent",children:"Start Your Journey Here"})]})]})}const wE=()=>c.jsxs(c.Fragment,{children:[c.jsx(oE,{}),c.jsx(lE,{}),c.jsx(jb,{}),c.jsx(Pb,{}),c.jsx(hE,{}),c.jsx(Nb,{}),c.jsx(Rb,{}),c.jsx(Ob,{}),c.jsx(Ib,{}),c.jsx(gE,{}),c.jsx(Mn,{})]});function tn({eyebrow:t,title:e,intro:n,image:r,imageAlt:s,primaryCta:i,secondaryCta:o}){return c.jsx("section",{className:"relative bg-secondary/30 border-b border-border",children:c.jsx("div",{className:"container-editorial pt-16 pb-20 md:pt-20 md:pb-28",children:c.jsxs("div",{className:`grid gap-12 lg:gap-16 items-center ${r?"lg:grid-cols-12":""}`,children:[c.jsxs("div",{className:r?"lg:col-span-7":"max-w-4xl",children:[t&&c.jsx("p",{className:"eyebrow mb-6",children:t}),c.jsx("h1",{className:"font-display text-5xl md:text-6xl lg:text-[4.5rem] text-primary leading-[1.02] text-balance",children:e}),n&&c.jsx("div",{className:"mt-7 max-w-2xl text-base md:text-lg text-foreground/75 leading-relaxed text-pretty",children:n}),(i||o)&&c.jsxs("div",{className:"mt-9 flex flex-col sm:flex-row gap-4",children:[i&&c.jsx(ne,{to:i.to,className:"btn-primary",children:i.label}),o&&c.jsx(ne,{to:o.to,className:"btn-outline",children:o.label})]})]}),r&&c.jsxs("div",{className:"lg:col-span-5 relative",children:[c.jsx("div",{className:"absolute -inset-4 border border-gold/50","aria-hidden":!0}),c.jsx("img",{src:r,alt:s||"",className:"relative w-full h-[360px] md:h-[480px] object-cover",loading:"eager"})]})]})})})}const bE=[{step:"01",title:"Free Consultation Call",body:"We start with a complimentary call to understand your goals and the right path forward â no commitment, just clarity."},{step:"02",title:"Bespoke Session Plan",body:"Together we design a Signature package that addresses your physical, mental, emotional and spiritual needs at the core."},{step:"03",title:"Subconscious Reframing",body:"In a deeply relaxed state, we work directly with the subconscious to address root causes and rewire core beliefs."},{step:"04",title:"Integration & Tools",body:"You leave each session with practical tools and ongoing support to embody your transformation in everyday life."}],xE=[{q:"Will I lose control during hypnosis?",a:"Never. You remain fully aware and in control throughout the session. Hypnotherapy is a deeply relaxed, focused state â you can speak, move, and choose to come out at any moment."},{q:"How many sessions will I need?",a:"Most clients experience meaningful shifts within 3â6 sessions. Some issues resolve in a single session; deeper work may take longer. We design the plan together based on your goals."},{q:"Is Hypnotherapy suitable for everyone?",a:"Hypnotherapy is safe and effective for the vast majority of people. We assess suitability during the free consultation call and tailor the approach accordingly."},{q:"Can sessions happen online?",a:"Yes. Many clients prefer the comfort of home â sessions are equally effective in person at our Hong Kong studio or online via secure video."}];function kE(){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Holistic Hypnotherapy",title:c.jsxs(c.Fragment,{children:["Transform at the ",c.jsx("em",{className:"text-accent",children:"root"}),", not the surface."]}),intro:c.jsx(c.Fragment,{children:"Hypnotherapy at All About You is not a quick fix. It is a deeply personal, holistic process that works with your subconscious mind to dissolve limiting patterns, release emotional weight, and rewire the beliefs that shape your life."}),image:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/holistic-hypnotherapy-1-scaled.jpg?lossy=0&
196strip=1&webp=1",imageAlt:"Holistic Hypnotherapy session at All About You Centre",primaryCta:{label:"Book a Session",to:"/contact"},secondaryCta:{label:"Free Consultation Call",to:"/contact"}}),c.jsx(Nb,{}),c.jsx("section",{className:"bg-secondary/40 py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"The Journey"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["How a ",c.jsx("em",{className:"text-accent",children:"transformation"})," unfolds"]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-px bg-border border border-border",children:bE.map(t=>c.jsxs("div",{className:"bg-background p-8 md:p-10",children:[c.jsx("div",{className:"font-display italic text-5xl text-accent mb-4",children:t.step}),c.jsx("h3",{className:"font-display text-xl md:text-2xl text-primary leading-tight mb-3",children:t.title}),c.jsx("div",{className:"h-px w-10 bg-gold mb-4"}),c.jsx("p",{className:"text-foreground/75 text-[14.5px] leading-relaxed",children:t.body})]},t.step))})]})}),c.jsx(Pb,{}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial max-w-4xl",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Common Questions"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight mb-12 text-balance",children:["What clients ",c.jsx("em",{className:"text-accent",children:"most often"})," ask"]}),c.jsx("div",{className:"divide-y divide-border border-y border-border",children:xE.map(t=>c.jsxs("details",{className:"group py-7",children:[c.jsxs("summary",{className:"cursor-pointer flex items-start justify-between gap-6 list-none",children:[c.jsx("h3",{className:"font-display text-xl md:text-2xl text-primary leading-snug pr-4",children:t.q}),c.jsx("span",{className:"font-display text-3xl text-accent leading-none transition-transform group-open:rotate-45",children:"+"})]}),c.jsx("p",{className:"mt-5 text-foreground/75 leading-relaxed text-[15px]",children:t.a})]},t.q))}),c.jsxs("div",{className:"mt-12 flex flex-col sm:flex-row items-center justify-between gap-6 border-t border-border pt-10",children:[c.jsx("p",{className:"font-display italic text-xl text-foreground/80",children:"Still have questions?"}),c.jsx(ne,{to:"/contact",className:"btn-primary",children:"Talk to Us"})]})]})}),c.jsx(Mn,{})]})}function Es(t){const e=t.split(/\n+/);return e.map((n,r)=>{const s=[];let i=n,o=0;for(;i.length>0;){const a=i.match(/\*\*(.+?)\*\*/),l=i.match(new RegExp("(?<!\\*)\\*(?!\\*)(.+?)(?<!\\*)\\*(?!\\*)")),u=a&&l?a.index<l.index?{kind:"b",m:a}:{kind:"i",m:l}:a?{kind:"b",m:a}:l?{kind:"i",m:l}:null;if(!u){s.push(c.jsx(x.Fragment,{children:i},o++));break}const d=u.m.index;d>0&&s.push(c.jsx(x.Fragment,{children:i.slice(0,d)},o++));const h=u.m[1];s.push(u.kind==="b"?c.jsx("strong",{className:"text-primary font-semibold",children:h},o++):c.jsx("em",{children:h},o++)),i=i.slice(d+u.m[0].length)}return c.jsxs(x.Fragment,{children:[s,r<e.length-1?c.jsx("br",{}):null]},r)})}function Lb({blocks:t,skipImages:e,skipFirstNImages:n=0}){let r=0;return c.jsx("div",{className:"space-y-5 text-foreground/80 leading-relaxed text-[15.5px]",children:t.map((s,i)=>{if(s.type==="img")return e||(r+=1,r<=n)?null:c.jsx("figure",{className:"my-8",children:c.jsx("img",{src:s.src,alt:s.alt||"",loading:"lazy",className:"w-full h-auto border border-border bg-secondary/40"})},i);if(s.type==="h")return s.level<=2?c.jsx("h2",{className:"font-display text-3xl md:text-4xl text-primary leading-tight pt-6 mt-2 text-balance",children:Es(s.text)},i):s.level===3?c.jsx("h3",{className:"font-display text-2xl md:text-[26px] text-primary leading-snug pt-4 mt-2",children:Es(s.text)},i):c.jsx("h4",{className:"font-display text-xl text-primary leading-snug pt-3 mt-1",children:Es(s.text)},i);if(s.type==="list"){const o=s.ordered?"ol":"ul";return c.jsx(o,{className:s.ordered?"list-decimal pl-6 space-y-2 marker:text-accent":"space-y-2.5 pl-0",children:s.items.map((a,l)=>s.ordered?c.jsx("li",{className:"pl-1",children:Es(a)},l):c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"text-accent font-display italic text-lg leading-none mt-1.5",children:"â¦"}),c.jsx("span",{children:Es(a)})]},l))},i)}return c.jsx("p",{children:Es(s.text)},i)})})}function bi({eyebrow:t,title:e,intro:n,image:r,imageAlt:s,body:i,blocks:o,skipFirstNImages:a=0,highlights:l,bestFor:u,backTo:d,ctaLabel:h="Book a Session",bodyEyebrow:f="About",bodyHeading:p}){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:t,title:e,intro:n,image:r||"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&
196strip=1&webp=1",imageAlt:s||(typeof e=="string"?e:t),primaryCta:{label:h,to:"/contact"},secondaryCta:{label:"Free Consultation Call",to:"/contact"}}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial grid lg:grid-cols-12 gap-12 lg:gap-16",children:[c.jsxs("div",{className:"lg:col-span-7",children:[c.jsx("p",{className:"eyebrow mb-6",children:f}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight mb-8 text-balance",children:p??c.jsxs(c.Fragment,{children:["What to ",c.jsx("em",{className:"text-accent",children:"expect"})]})}),o&&o.length>0?c.jsx(Lb,{blocks:o,skipFirstNImages:a}):c.jsx("div",{className:"space-y-5 text-foreground/80 leading-relaxed text-[15.5px]",children:(i||[]).map((w,v)=>c.jsx("p",{children:w},v))})]}),c.jsx("aside",{className:"lg:col-span-5",children:c.jsxs("div",{className:"bg-secondary/40 border border-border p-8 md:p-10 sticky top-32",children:[l&&l.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"eyebrow mb-5",children:"Details"}),c.jsx("ul",{className:"space-y-3 mb-8",children:l.map(w=>c.jsxs("li",{className:"flex items-start justify-between gap-4 text-foreground/80 border-b border-border/60 pb-3 last:border-b-0",children:[c.jsx("span",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:w.label}),c.jsx("span",{className:"text-[14px] text-right",children:w.value})]},w.label))})]}),u&&u.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"eyebrow mb-5",children:"Best For"}),c.jsx("ul",{className:"space-y-3 mb-8",children:u.map(w=>c.jsxs("li",{className:"flex items-start gap-3 text-foreground/80",children:[c.jsx("span",{className:"text-accent font-display italic text-xl leading-none mt-0.5",children:"â¦"}),c.jsx("span",{className:"text-[15px]",children:w})]},w))})]}),c.jsx(ne,{to:"/contact",className:"btn-primary w-full justify-center",children:h}),d&&c.jsxs(ne,{to:d.to,className:"block text-center mt-4 text-[11px] uppercase tracking-[0.22em] text-muted-foreground hover:text-accent transition-colors",children:["â ",d.label]})]})})]})}),c.jsx(Mn,{})]})}const SE={"corporate-wellness":{title:"Practitioners, Hypnotherapists, Healers, Wellness, Counsellors",blocks:[{type:"h",level:1,text:"Corporate Wellness Programs"},{type:"p",text:"With mental-health as the leading cause of sickness-absence, people are realizing how ânormalâ it is to struggle with mental & emotional challenges, and companies are realizing the importance of mind-set as the foundation for success."},{type:"p",text:"All About You Wellness Centre has recently launched a suite of corporate programs to help employees release stress, and equip them with simple tools to support themselves mentally and emotionally. This means a happier, healthier team, and greater productivity!"},{type:"p",text:"Programs include:"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/05/AAY-Centre-Public-Speaking-Presentation-Training.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:2,text:"Public Speaking & Presentation Training"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/08/Screen-Shot-2019-08-31-at-12.40.59-PM.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:2,text:"Team Building Day Retreat"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/05/AAY-Centre-Coaching-you-can-count-on.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:2,text:"Private Corporate Coaching"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/08/Screen-Shot-2019-08-31-at-12.51.18-PM.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:2,text:"A Balanced Lunch"},{type:"p",text:"Contact Us for more information on our Corporate Wellness Programs."}]},faqs:{title:"Practitioner Trainings and Workshops for Personal Development Pre-Course Information",blocks:[{type:"h",level:1,text:"Frequently Asked Questions"},{type:"h",level:3,text:"HYPNOTHERAPY SESSIONS"},{type:"p",text:"Hypnotherapy is a form of therapy that uses hypnosis to help individuals access their unconscious minds and make positive changes in their thoughts, feelings, and behaviors. A hypnotic state is âfocused concentrationâ in which you are neither fully awake nor fully asleep so people can experience detachment to external attention and to focus on inner experiences. Hypnotherapy is a natural state of consciousness in which your logical and analytical faculties are reduced sufficiently, allowing deeper levels of your subconscious mind to be utilized for your health."},{type:"p",text:"Hypnotherapy induces a trance-like state to help a person achieve a heightened state of relaxation and focus, where they can release their blockages and access their inner resources. In this state, you bypass the judgment of your critical filter and the barriers of your defense mechanisms. As a result, you are more open to suggestions, and you can access files of your subconscious mind where your belief systems are stored, and make adjustments in alignment with your desired changes."},{type:"p",text:"A therapist will guide you into an altered state of consciousness, take you through various processes to release your suppressed emotions and change the way you have perceived your experiences so that you are more at peace and can create more empowering belief systems. A therapist typically uses visualizations, suggestions, imagery, and breathing to make the necessary changes."},{type:"p",text:"When a person is in a hypnotic state, their eyes are closed, their eyeballs roll back, they breathe deeply, and their brainwaves change from beta to alpha, to theta."},{type:"p",text:"The hypnotic state allows a person to be more open to discu
196ssion and suggestion. There are countless other applications where it can be of great benefit including:"},{type:"p",text:"During our sessions, we first aim to identify our clientâs objective and gain some background on the issue. We then educate people on why they may not have reached their objective by themselves. Clients learn about how their mind works, and discover beliefs that are sabotaging them towards achieving their goal. We end with a hypnotic process that guides them to the root of their issue, here people see where their issue has started, they use breathwork to release emotional charges, and get the opportunity to reinterpret events. Clientâs usually see some shift straight away after the first session. To end, we give them exercises or a tailor-made meditation that they listen to for the next few weeks."},{type:"p",text:"We believe that change takes place by intervention (what we do in the session) and repetition (what the client reinforces at home). Each session takes approximately 90 minutes, and comprises of healing techniques, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. This journey is a partnership between the client and the therapist, and we create lasting change together."},{type:"p",text:"During the therapy, the hypnotherapist speaks in a gentle, soothing tone, and describes images that create a sense of relaxation, security and well-being. The session will likely include some of the following techniques:"},{type:"p",text:"When the session is coming to an end, your hypnotherapist will gradually and comfortably increase your alertness until you are once again, wide awake and ready to leave your session. Youâre fully in control when under hypnosis and do not have to take on the therapistâs suggestions if you do not want to."},{type:"p",text:"Hypnosis is a term to describe an altered state of consciousness that people go into naturally every day, and hypnotherapy refers to doing therapy in that altered state. In other words, hypnosis refers to the state of consciousness that a person enters into during a hypnotherapy session, while hypnotherapy refers to the use of hypnosis as a therapeutic tool to help individuals overcome a variety of issues, such as anxiety, depression, chronic pain, phobias, and addictions."},{type:"p",text:"Hypnosis and hypnotherapy are widely studied with evidence-based results that have been reported for decades."},{type:"p",text:"Hypnotherapy is known to have a better success rate than other types of therapy. In 1970 a groundbreaking meta-analysis of hypnosis research studies was conducted by Alfred A. Barrios, which led to the mainstream acceptance of hypnosis as an extremely effective form of therapy. *âReportedly, hypnosis has a 93% success rate with less sessions than both behavioral and psychotherapy, according to research studies. This led researchers to believe that for changing habits, thought patterns, and actual behavior hypnosis was not only the most effective method but that it needed less time/sessions than other forms of therapy.â (Alfred A. Barrios/1970).*"},{type:"p",text:"In a 1970 study, Dr Barrios compared 1,018 studies and articles on hypnosis, 899 articles on psychoanalytic therapy and 355 on behavioural therapy. In particular he noted the overall lasting success rates of the different therapies."},{type:"p",text:"He found that hypnotherapy had a massive 93% success rate after only 6 sessions compared to only a 72% success rate with behavioral therapy (after 22 sessions on average), and only 38% success rate with psychotherapy (after an average of 600 sessions)."},{type:"p",text:"At All About You, we have seen people receive tremendous benefit from hypnotherapy to heal issues such as fears, phobias, allergies, alignment with life purpose, overcoming physical pain, resolving relationship issues, moving though trauma, increasing self-esteem, manifesting their dream life, and many more."},{type:"p",text:"Hypnotherapy can be used to address a wide range of mental, emotional and physical objectives. The objectives generally fall under the categories of issue resolution, spiritual advancement, or enhancing performance."},{type:"p",text:"**ISSUE RESOLUTION**"},{type:"p",text:"**SPIRITUAL ADVANCEMENT**"},{type:"p",text:"In our centre, we also practice spiritual hypnotherapy upon request. We can help people to:"},{type:"p",text:"**PERFORMANCE ENHANCEMENT**"},{type:"p",text:"While hypnotherapy cannot teach you a sport, a subject, or an activity, it can definitely help you to remove blocks and enhance your performance, and can be used for:"},{type:"p",text:"One of the biggest misconceptions with hypnotherapy is that it is mind-control, and that you are bestowing all your power to a therapist who can âmakeâ you say or do things beyond your control. It is actually nothing like that at all! In fact, hypnotherapy works the same way as meditation. The therapist guides you to focus intently on something, which induces a trance-like state, the body relaxes and you feel like you are in a day-dream. Your conscious mind is aware of what is going on the whole time, while the therapist makes guided suggestions to take you to the root of your issues to help you achieve your therapeutic goals. In the hypnotic state, your brainwaves turn to theta, your defenses are down, and you are more susceptible to suggestions that in your conscious state you may brush-off. The person undergoing hypnotherapy remains in complete control throughout the process."},{type:"p",text:"The biggest misconception people have about therapy is thinking that âsomething has to be wrong with youâ in order to get help. Some people still feel shame and stigma associated with therapy. Itâs important to understand that everyone has parts of them that have felt limited, doubtful or constrained at times, and we can all do with enhancement. People are understanding and accepting more that life will continuously bring shadows and light, support and challenge. Seeking help from a therapist is a combination of having a tutor for a subject that you are new to, having a non-judgmental sounding board for you to understand yourself, having a supporter and cheerleader to see you through, and having a guide to give you the roadmap for your life. Seeking therapy for your mental stresses is as normal as going to the doctor for your stomach ache, or the dentist for your toothache! We all have mental stress, and there are experts who can help to relieve you from your pain, so you can move forward."},{type:"p",text:"Clients attain peace by facing what they have been avoiding, moving through their resistance, processing their suppressed emotions, and accepting things they were judging. Through therapy we help clients to accept that pain is inevitable and it is okay to go through it; it builds strength and brings them wisdom. We address the fundamental beliefs and emotions that block them from feeling good about themselves, and invite them to accept who they are today so they donât need the external validation to feel good enough. When people can feel good enough now, and still move towards their desired outcomes, the result is a sense of inner-peace and fulfilment."}
196,{type:"p",text:"The length of time it takes to see changes after therapy can vary depending on a variety of factors, including the individual's specific needs and goals, the nature and severity of their issues, the type of therapy they receive, and how well they engage with the therapeutic process."},{type:"p",text:"In most of our cases, individuals may see positive changes after just one session, and see ongoing improvements in subsequent sessions. We look at the frequency and intensity of the issues to measure success. Most people report a shift after the first session, while in other cases it may take longer to see significant progress. It's important to keep in mind that therapy is a process, and it may take time and effort to see drastic changes."},{type:"p",text:"The frequency of hypnotherapy sessions can vary depending on the individual's specific needs and goals, as well as the recommendations of the hypnotherapist. In general, the frequency of sessions will depend on the nature and severity of the issue being addressed, as well as the individual's level of response to hypnosis."},{type:"p",text:"For some individuals, hypnotherapy may be recommended as a short-term intervention, with sessions scheduled once a week or every other week for a period of several weeks or months. For others, longer-term therapy may be recommended, with sessions scheduled less frequently over a period of several months or even years. Our sessions normally start out with a gap of between 1-3 weeks between sessions. Once the objective is met (usually after a few sessions), our clients come once every few months for a mental health check-in session to continue their personal evolution."},{type:"p",text:"RTT: Rapid Transformational TherapyÂ®ï¸ (RTT®ï¸) combines the most beneficial hypnotherapy, psychotherapy, NLP, CBT, and neuroscience principles. It's a technique by Marisa Peer, and it uses Hypnotherapy for mainly inner child work."},{type:"p",text:"The Integrated Clinical Hypnotherapy we offer, covers all of that, however we also have a spiritual element with ours, which covers past life therapy, energy entanglements, discovering your life purpose, chakras and more."},{type:"p",text:"The two systems are very different."},{type:"h",level:3,text:"HYPNOTHERAPY TRAINING"},{type:"p",text:"Hypnotherapy is a form of therapy that uses hypnosis to help individuals access their unconscious minds and make positive changes in their thoughts, feelings, and behaviors. A hypnotic state is âfocused concentrationâ in which you are neither fully awake nor fully asleep so people can experience detachment to external attention and to focus on inner experiences. Hypnotherapy is a natural state of consciousness in which your logical and analytical faculties are reduced sufficiently, allowing deeper levels of your subconscious mind to be utilized for your health."},{type:"p",text:"Hypnotherapy induces a trance-like state to help a person achieve a heightened state of relaxation and focus, where they can release their blockages and access their inner resources. In this state, you bypass the judgment of your critical filter and the barriers of your defense mechanisms. As a result, you are more open to suggestions, and you can access files of your subconscious mind where your belief systems are stored, and make adjustments in alignment with your desired changes."},{type:"p",text:"A therapist will guide you into an altered state of consciousness, take you through various processes to release your suppressed emotions and change the way you have perceived your experiences so that you are more at peace and can create more empowering belief systems. A therapist typically uses visualizations, suggestions, imagery, and breathing to make the necessary changes."},{type:"p",text:"When a person is in a hypnotic state, their eyes are closed, their eyeballs roll back, they breathe deeply, and their brainwaves change from beta to alpha, to theta."},{type:"p",text:"A Clinical Hypnotherapist uses hypnosis to help individuals overcome various issues like anxiety, phobias, smoking cessation, and weight management. They induce a hypnotic state to provide therapy, suggestions, and support tailored to the client's needs, empowering them to make positive changes."},{type:"p",text:`In order to receive a license to practice as a Hypnotherapist, you would first need to complete all 5 levels of the Training. 197The next step is The Internship, Complete (heal and resolve) â 10 cases pro bono and submit all documentation using a standard format that will be provided. You are also required to submit audio-recordings of 5 of your cases. 198The final step is the Interview, as once your 10 case studies are submitted, you will take a final interview with CHII either via Skype or in person. Upon passing the interview you would receive a license to practice as a therapist.`},{type:"p",text:"There is typically no strict age limit for hypnotherapy training. In general, as long as a person meets the educational and any other requirements set by the training program, they should be able to enroll in hypnotherapy training regardless of their age."},{type:"p",text:"Yes, you need to do 10 case studies, and then submit them. Upon passing the interview you would receive a license to practice as a therapist."},{type:"p",text:"a. RTT: Rapid Transformational TherapyÂ®ï¸ (RTT®ï¸) comb
198ines the most beneficial hypnotherapy, psychotherapy, NLP, CBT, and neuroscience principles. It's a technique by Marisa Peer, and it uses Hypnotherapy for mainly inner child work."},{type:"p",text:"b. The Integrated Clinical Hypnotherapy we offer, covers all of that, however we also have a spiritual element with ours, which covers past life therapy, energy entanglements, discovering your life purpose, chakras and more."},{type:"p",text:"c. The two systems are very different."},{type:"p",text:"Our Hypnotherapy Training Course runs over a course of 1 year, with all the levels paced out to give you ample time to process and digest all the information before moving on to the next level. However, you can choose to complete the full training in as little and as long as you like, given that youâre able to attend all the levels completely, without missing any of the training days. Please note that Level 5 only happens once in December every year."},{type:"p",text:"In order to be certified, it is imperative for participants to do all the levels. Missing Level 1 is not an option, as that is the base and foundation of the entire training. Without doing Level 1, you can not move onto any other levels."},{type:"p",text:"As a new participant, we highly recommend all participants to attend the complete days of training, as missing even half hour of the course will affect your progress. However, if due to external circumstances beyond our control, you must leave early on any specific day, esp in the beginning of the training, then itâs your responsibility to catch up to the work missed and ensure you are fully caught up before the next level of training."},{type:"p",text:`A Hypnotherapistsâ Journey is designed to outline the qualifications needed to achieve various levels within the profession. Key factors include:â 199Years of Experience: The total time spent practicing hypnotherapy.â 200Client Interactions: The number of clients you have worked with.â 201Skill Development: Participation in training and workshops to enhance your abilities.â 202Ongoing Education: Commitment to deepening your knowledge through courses and research.â 203Certifications: Attaining additional relevant certifications.â 204Client Testimonials: Gathering feedback from clients regarding successful outcomes.`},{type:"p",text:"https://www.allaboutyoucentre.com/a-hypnotherapists-journey/"}]},"free-meditations":{title:"Free Guided Meditations",blocks:[{type:"h",level:1,text:"Free Downloadable Meditations by Sonia Samtani"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/11/seven-chakra-healing.jpg?lossy=0&strip=1&webp=1",alt:"7 Chakra Meditation"},{type:"h",level:2,text:"Seven Chakra Healing"},{type:"p",text:"Chakras are vortexâs that take energy from the universe and supply it to our bodies so that our systems function optimally. Healthy chakras mean that our respiratory system, reproductive system, digestive system and lymphatic systems are all working for us. This meditation guides you through a complete cleansing process through your 7 major chakras bringing them positive affirmations, color therapy, Healing sounds and clarity. The result feels like a physical and emotional detox."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/11/hypnosis-for-anxiety-meditation.jpg?lossy=0&strip=1&webp=1",alt:"Hypnosis for Anxiety"},{type:"h",level:1,text:"Hypnosis for Anxiety"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/11/releasing-negative-feelings-meditation.jpg?lossy=0&strip=1&webp=1",alt:"Releasing Negative Feelings"},{type:"p",text:`Fear and anxiety has become a common way of feeling that plagues many of us on a daily basis. Anxiety is a constant worry that âsomething is going to go wrongâ, and prevents us from being relaxed and at peace. This meditation slowly guides you into a safe and quiet space and reinforces the faith that things are and will be okay. The powerful suggestions have you coming out feeling like you have more trust in life, and thus helps you to relax and let go of of the stored tension in your mind and body. 205 206 Download`},{type:"h",level:2,text:"Releasing Negative Feelings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/11/Joyful-pregnancy-for-website-1.jpg?lossy=0&
206strip=1&webp=1",alt:"Inner Child Healing"},{type:"p",text:`Many of us have a collection of limiting thoughts and emotions that we feel on a daily basis that donât serve us. The best way to deal with this is not to suppress it, but accept that itâs there and release it without judgment. This meditation guides you to let go of those toxic feelings and emotions, and puts you on a journey of self-acceptance. This raises your vibration, increases self-esteem and gears you towards a more positive future. 207 208 Download`},{type:"h",level:1,text:"Joyful Pregnancy"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/11/goodnight.jpg?lossy=0&strip=1&webp=1",alt:"Good Night"},{type:"p",text:`Pregnancy is a natural process which can be as easy for us as it is for any other being in nature who give birth easily and naturally by connecting to their breath and their child. Unfortunately many of us have been conditioned to believe the opposite, which results in feeling scared, worried and anxious, affecting both the mother and baby. This meditation guides you to release any negative emotions, fears and worries around pregnancy and childbirth. It brings you to a calm and peaceful state so that the experience of pregnancy is as natural and joyful as itâs designed to be. 209 210 Download`},{type:"h",level:2,text:"Good night"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/11/inner-child-healing.jpg?lossy=0&strip=1&webp=1",alt:"Inner Child Healing"},{type:"p",text:`Unwinding after a long day can be easier than it sounds for some. Although you are tired and look forward to getting into bed, somehow you just canât sleep. This guided meditation for a good nightâs sleep is perfect for a deep and relaxing sleep. This meditation guides you through the different stages of awareness and helps you to let go of the stresses of the day. Calm your mind, refocus yourself and slip into that much needed sleep. 211 212 Download`},{type:"h",level:1,text:"Inner Child Healing"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2018/08/Manifestation1.jpg?lossy=0&strip=1&webp=1",alt:"Manifestation"},{type:"p",text:`As our overall well-being and self esteem are influenced by our inner child, itâs important to understand the inner child. One of the best things you can do for yourself is focus on healing the parts of you that are stuck in the past. Sometimes revisiting the past is important to help you to find a new way of being and thinking. Unresolved issues in the past that are suppressed rather than being dealt with, create your inner child and influence the person you become today. This meditation will guide you to visiting your past self, healing yourself by learning from your past and healing the traumas that have created your inner child. 213 214 Download`},{type:"h",level:1,text:"Manifestation"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2018/08/backlit-meditating-meditation-1051838.jpg?lossy=0&strip=1&webp=1",alt:"Releasing Negative Feelings"},{type:"p",text:`Manifestation, in simple words, is attracting what you desire. Meditation is known to be very useful in achieving the highest level of effectiveness in manifestation. When coupled with guided meditation, manifestation becomes more powerful and the chances of achieving what you desire are increased. This meditation will guide you through relaxation techniques, manifesting your desires or ideal world and then focusing on being positive and clearing your mind to notice opportunities that will eventually lead to you getting what you want. 215 216 Download`},{type:"h",level:2,text:"Priming yourself for the day"},{type:"p",text:`This short meditation is aimed to prime yourself in the morning and get ready for the day ahead, so you start your day consciously. You will be guided to anchor yourself in the present by focusing on your root chakra, and connect yourself to your own intuition by focusing on your crown chakra. Doing this consistently every morning is a great ritual that has y
216ou feeling grounded and connected throughout your day, and reduces the stress and anxiety of your to-do list! 217 218 Download`},{type:"h",level:1,text:"Free Downloadable Meditations In Cantonese"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/04/Untitled-design.png?lossy=0&strip=1&webp=1",alt:"Hypnosis for Anxiety"},{type:"h",level:1,text:"Hypnosis for Anxiety"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/05/Untitled-design.png?lossy=0&strip=1&webp=1",alt:"Hypnosis for Anxiety"},{type:"p",text:`Anxiety is a constant worry that âsomething is going to go wrongâ, and prevents us from being relaxed and at peace. This meditation slowly guides you into a safe and quiet space and reinforces the faith that things are and will be okay. 219 220 Download`},{type:"h",level:1,text:"Goodnight Sleep"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/05/Untitled-design-1.png?lossy=0&strip=1&webp=1",alt:"Increasing Self Esteem"},{type:"p",text:`This guided meditation for a good nightâs sleep is perfect for a deep and relaxing sleep. This meditation guides you through the different stages of awareness and helps you to let go of the stresses of the day. Calm your mind, refocus yourself and slip into that much needed sleep. 221 222 Download`},{type:"h",level:1,text:"Increasing Self Esteem"},{type:"p",text:`This meditation guides you to let go of your toxic feelings, suppressed emotions, and limiting thought patterns while guiding you on a journey of self-acceptance. The result is an increase in your vibration, your self-esteem, and gearing you towards a more positive future. 223 224 Download`}]},index:{title:"About All About You",blocks:[{type:"p",text:"**Click Here to Join Soniaâs Signature Be Your Own Master Workshop. Level 3 â 12th â 14th June 2026. 10:00AM â 6:00PM HKT**"},{type:"p",text:`Imagine realizing you have the power to choose your experiences, the awareness 225to truly accept what has come your way, and the ability to find peace within. 226This is more than a mission, itâs a movement and a reminder of our true potential.`},{type:"h",level:1,text:"About Us"},{type:"p",text:"All About You is one of Hong Kongâs first Hypnotherapy Training and Alternative Healing Centres, based in the heart of Hong Kong in Sheung Wan. Here we offer private sessions, personal development workshops, certified practitioner training programs, and products that promote self-awareness. Our bespoke Holistic Signature packages ensure that all your healing needs are addressed under one roof."},{type:"p",text:"We have 4 therapy rooms and a training room, all fully equipped with luxurious settings to create the right atmosphere for healing and therapy. We also rent our therapy rooms for freelance practitioners, giving them a safe space to conduct their services in."},{type:"p",text:"The space is called All About You as a reminder that you are the creator of your reality and that your life is a reflection of your beliefs, experiences and perceptions."},{type:"p",text:"*Want to learn how it can help you fix your problems, or reach your desired goal? *"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/About-Us-All-About-You-Centre.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:2,text:"Our Mission"}
226,{type:"p",text:"Weâre here to ignite a profound shift in global consciousness by harnessing the incredible power of the human mind. We stand for a world where people live with purpose and alignment, continuously growing with reflections that are rooted in love."},{type:"p",text:"Imagine realizing you have the power to choose your experiences, the awareness to truly accept what has come your way, and the ability to find peace within. This is more than a mission, itâs a movement and a reminder of our true potential."},{type:"h",level:2,text:"Our Vision"},{type:"p",text:"Our vision is for the human tribe to finally become aware that a healthy mind can get you anywhere."},{type:"p",text:"âI cannot speak more highly of Sonia and her academy. A chance weekend course a few years ago **changed my life** and my whole career and I went on to qualify and teach. Every day now I get paid doing what I love which is helping making a difference to so many. Canât tell to how rewarding and fulfilling that is. Even if you donât go on to teach or to practice as a professional the personal growth is off the charts. Sonia is the most amazing teacher and mentor one could ask for. **It is pure magic!**â ~ **ALISON MIDDLETON, FOUNDER, AM 1 HEALTH**"},{type:"h",level:2,text:"*Hi! Iâm Sonia Samtani*"},{type:"p",text:"HONG KONGâS PIONEERING HYPNOTHERAPIST, MASTER HYPNOTHERAPY TRAINER, NLP COACH, BEST SELLING AUTHOR, 2X TEDX SPEAKER AND RENOWNED KEYNOTE SPEAKER"},{type:"p",text:"*âAt some point you will realise that life really is All About You and you have consciously or subconsciously created everything thatâs happened in your life. Truly mastering life simply requires you to Love, Accept and Integrate all parts of you.â *"},{type:"p",text:"From scrambling to order a meal at McDonaldâs as a shy teenager to coaching others in public speaking for two decades, presenting at TEDx, and giving keynotes on global platforms, I am a living testament to the power of subconscious reprogramming and its transformational potential. My own journey has always fueled my work, as I understand what itâs like to be held back by my own limiting beliefs and what itâs like to break through the unconscious patterns that kept me stuck. Many of us donât realize the tremendous influence of our formative years in creating our behavioral patterns, and I didnât realize how loyal I was to the identity that I created for myself when I was a teenager! Today, my baseline has shifted, and I am living a reality that I once only dreamed was possible."},{type:"p",text:"I believe that, at our core, we all share a deep desire to feel safe, accepted, and free from judgment. Thatâs why I created the All About You Centre as a space where others can feel supported and empowered to transform their mindsets, just as I did. Since then, it has become my mission to equip individuals with simple yet powerful tools to shift from judgment to acceptance. Over the past 20 years, weâve built a culture of conscious conversations within a community of individuals and organizations committed to mental health, emotional resilience, and growth."},{type:"p",text:"Through this mission, Iâve been fortunate to support over 40,000 people worldwide, helping them process emotional charges, shift limiting beliefs, and regain control of their lives through Hypnotherapy, and one of the turning points of my career was coaching a Formula One Racing driver to 12 consecutive wins in the World Finals!"},{type:"img",src:" https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Prestige.png?lossy=0&strip=1&webp=1 ",alt:" Prestige Logo "},{type:"img",src:" https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Vogue.png?lossy=0&strip=1&webp=1 ",alt:" Vogue Logo "},{type:"img",src:" https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/The-Loop-HK.png?lossy=0&strip=1&webp=1 ",alt:" The Loop HK Logo "},{type:"p",text:"Our Expert Team of Practitioners"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Sonia-Samtani-Founder-and-CEO-Master-Hypnotherapist-and-Trainer.png?lossy=0&
226strip=1&webp=1",alt:"Sonia Samtani - Founder and CEO"},{type:"p",text:"Sonia Samtani"},{type:"p",text:"Founder and CEO, Master Hypnotherapist and Trainer"},{type:"p",text:"Valentina Tudose"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Olivia-Mak-Clinical-Hypnotherapist.png?lossy=0&strip=1&webp=1",alt:"Olivia- Mak Hypnotherapist"},{type:"p",text:"Olivia Mak"},{type:"p",text:`Clinical 227Hypnotherapist`},{type:"p",text:"Olivia Mak"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Emily-richmond-Intuitive-Tarot-Reader-and-Divination-Specialist.png?lossy=0&strip=1&webp=1",alt:"Emily richmond Intuitive Tarot Reader and Divination Specialist"},{type:"p",text:"Emily Richmond"},{type:"p",text:"Intuitive Tarot Reader and Divination Specialist"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/hafsa-sana-khan-Pain-and-Trauma-Release-Specialist.png?lossy=0&strip=1&webp=1",alt:"hafsa sana khan Pain and Trauma Release Specialist"},{type:"p",text:"Hafsa Sana Khan"},{type:"p",text:`Pain and Trauma Release 228Specialist`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Vannessa-misso-veness-Transformational-Coach.png?lossy=0&strip=1&webp=1",alt:"Vanessa Misso Veness - Transformational Coach"},{type:"p",text:"Vannessa Misso-Veness"},{type:"p",text:`Transformational 229Coach`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Stephanie-Rault-Holistic-Wellness-Coach-1.png?lossy=0&strip=1&webp=1",alt:"Angelina Paraliki - Psychic and Spiritual Consultant"},{type:"p",text:"Stephanie rault"},{type:"p",text:`Holistic Wellness 230Coach`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Navniet-Saine-Akashik_Reader.png?lossy=0&strip=1&webp=1",alt:"Navniet Saine-Akashik_Reader"},{type:"p",text:"Navniet Saine"},{type:"p",text:`Akashik 231Reader`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Peter-Freeth-NLP-Neuro-Linguistic-Programming-Trainer.png?lossy=0&strip=1&webp=1",alt:"Olivia- Mak Hypnotherapist"},{type:"p",text:"Peter Freeth"},{type:"p",text:"NLP; Neuro Linguistic Programming Trainer"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Jaz-Goven-Fast-Track-Technique-Founder.png?lossy=0&strip=1&webp=1",alt:"Jaz Goven Fast Track Technique Founder"},{type:"p",text:"Jaz Goven"},{type:"p",text:`Fast Track 232Technique Founder`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Angelina-Paraliki-Psychic-and-Spiritual-Consultant.png?lossy=0&strip=1&webp=1",alt:"Angelina Paraliki - Psychic and Spiritual Consultant"},{type:"p",text:"Angelina Paraliki"},{type:"p",text:`Psychic and 233Spiritual Consultant`},{type:"p",text:"Let us recommend the most suitable Practitioner for your needs!"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/aayc_clients.png?lossy=0&strip=1&webp=1",alt:"Past Clients"},{type:"p",text:"What Clients Have to Say"},{type:"p",text:"â Won 12/12 races in Asian Formula Renault Championship thanks to the Hypnotherapy work done with Sonia Samtani. â"},{type:"p",text:"**Dan Wells**"},{type:"p",text:"âManifested my dream job at Google by overcoming patterns and releasing layers of blockages, through Hypnotherapy and other healing modalities at All About You!â"},{type:"p",text:"**Menka Sajnani**"},{type:"p",text:"âResolved gluten intolerance in one single Hypnotherapy session!â"},{type:"p",text:"**A.S**"},{type:"h",level:3,text:"Conscious Gift Shop"},{type:"p",text:"Along with Holistic healing services, we also provide a range of products that enhance self awareness and healing, and complement our services beautifully, making us a one stop centre for all your healing needs."},{type:"p",text:"Our products are mainly **crystals**; in the form of tumble stones and crystal generators as well as jewelry such as pendants and bracelets. We also offer **Space Clearing Kits** and other gift sets curated for specific needs, as well as books from our Founder and other Practitioners that enhance your knowledge and wisdom; such as **52 thoughts for Conscious Living** by Sonia Samtani, How to Sell Coaching by NLP Master, Peter Freeth amongst others. These products make the perfect conscious presents, for yourself or your loved one
233s to support them."},{type:"p",text:"Our **Signature products** are our Affirmation Series; A mug, Journal, and a blanket, created with love and care by our Founder; Sonia Samtani. These comprise of words and affirmations that Sonia has come up with through her years of working with individuals and words that we crave and love to hear since our childhood."},{type:"p",text:"*Want to learn how it can help you fix your problems, or reach your desired goal? *"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Conscious-Gift-Shop-1.jpg?lossy=0&strip=1&webp=1",alt:"Conscious Gift Shop"},{type:"h",level:2,text:"Therapy Room Rentals"},{type:"p",text:"All About You is a spaciously warm wellness centre with convenient and comfortable state of the art facilities. The space spans 1200 sqft in the heart of Sheung Wan and features four designer consultation rooms and a multifunctional training room. With free WiFi and refreshments available throughout, the centre has been personally designed to inspire growth and development."},{type:"p",text:"The training room is well equipped with a whiteboard, projector, Wi-Fi system, and portable desks and chairs that can be adapted to suit different requirements. As a holistic classroom made for education and transformation, it is an ideal setting for training workshops, seminars, meditations and group gatherings."},{type:"p",text:"Each therapy room reflects an element of confidentiality and comfort. They are furnished with a feature wall, a desk, two chairs, and a reclining therapy sofa. The sound proof rooms offer Freelance Practitioners, and visiting Therapists a safe and professional space to conduct individual sessions and achieve breakthroughs."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Waiting-lounge.jpg?lossy=0&strip=1&webp=1",alt:"waiting lounge"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Transformation-therapy-room.jpg?lossy=0&strip=1&webp=1",alt:"Transformation Therapy Room"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Surrender-therapy-room.jpg?lossy=0&strip=1&webp=1",alt:`Surrender Therapy Room<br /> 234`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Bliss-Therapy-Room.jpg?lossy=0&strip=1&webp=1",alt:"Bliss Therapy"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Training-Room.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Start Seeing Clients in a Space That Reflects Your Practice"},{type:"h",level:3,text:"Free *Meditations*"},{type:"p",text:`Whether you wish to overcome anxiety, release negative feelings, have a good nightsâ sleep, 235manifest or simply start your day well; thereâs a meditation for all of you!`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Meditations-1.png?lossy=0&strip=1&webp=1",alt:"Meditations"},{type:"h",level:3,text:"Have any questions or enquiries?"},{type:"p",text:`We are here to support you and guide you through your journey of personal development and transformations. 236Please feel free to reach out to us at any time, and we ensure to get back to you within 24hours.`}]},"meet-the-team":{title:"Page not found - All About You Centre",blocks:[{type:"h",level:1,text:"No Results Found"},{type:"p",text:"The page you requested could not be found. Try refining your search, or use the navigation above to locate the post."}]},"press-and-awards":{title:"All about You Centre",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/07/the-mindtalk.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"**Â Embracing the Inner Child: Healing Through Integrated Hypnotherapy**"},{type:"p",text:"Many of us carry childhood emotions that quietly shape our adult lives. In âEmbracing the Inner Child,â integrated hypnotherapy invites you to reconnect with those early parts of yourselfâhonouring past hurts, reframing limiting beliefs, and cultivating loving habits that support true wholeness. Discover gentle techniques to access your subconscious wisdom, foster self-compassion, and move forward with greater clarity and resilience."},{type:"p",text:"June 2025"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/07/WOHK-April-2025-2.png?lossy=0&
236strip=1&webp=1",alt:""},{type:"p",text:`**My News 237**May 2025 238Do you often put things off? A Hong Kong hypnotherapist can help you find out why.`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/07/WOHK-April-2025-3.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Honeycombers 239**May 2025 240Ask the expert: Sonia Samtani on harnessing change with hypnotherapy.`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/04/Draft-Mailerlite-friday-club-1.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Friday Club 241**January 2026 242All About You Wellness Centre Is Where Your 2026 Reset Gets Real`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/03/Friday-Club-March-2025.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Friday Club 243**March 2025 244This International Womenâs Day, These Female Heroes Deserve the Spotlight`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/04/The-Loop-HK-April-2025-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**The Loop 245**April 2025 246These Spaces Offer Unique Classes and Experiences for your Holistic Wellness Needs`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/07/WOHK-April-2025-1.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Women of Honk Kong 247**April 2025 248Â The Quiet Revolution: Sonia Samtaniâs Impact on Mental Health in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/07/csp-times-1.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**CSP Times 249**May 2025Â 250I Tried Hypnotherapy at Hong Kongâs All About You to Conquer my Fear of Flying â Hereâs What Actually Happened`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/03/Honeycombers-March-2025.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Honeycombers 251**March 2025 252International Womenâs Day: Wonder Women of Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/02/Friday-Club-February-2025-3.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Friday Club 253**February 2025 254The Secrets Of Habit Transformation: Break Free & Rewire Your Life`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/01/Prestige-March-2024-3.png?lossy=0&strip=1&webp=1",alt:"Tatler, January 2024"},{type:"p",text:`**Prestige 255**January 2025 256Six Hong Kong-Based Healers and Alternative Therapies to Guide You In 2025`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/01/Friday-Club-Nov-2024-2.png?lossy=0&strip=1&webp=1",alt:"#Legend, January 2024"},{type:"p",text:`**The MindTalk HK 257**January 2025 258Vision to Reality: Mastering Manifestation for the New Year`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/11/Friday-Club-Nov-2024.png?lossy=0&strip=1&webp=1",alt:"#Legend, January 2024"},{type:"p",text:`**Friday Club 259**November 2024 260Stuck in Old Patterns? Inner Child Healing Could Be The Answer`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/11/BurdaLuxury-Nov-2024.png?lossy=0&strip=1&webp=1",alt:"The Macao News, December 2023"},{type:"p",text:`**BurdaLuxury 261**November 2024 262Wellness in the Skies: How Airlines Partner with Beauty and Wellbeing Brands`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/11/Human-Resources-Online-October-2024.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2023"},{type:"p",text:`**Human Resources Online 263**October 2024 264Mind Matters: Validating rather than judging is one way this therapist suggests tackling negative emotions`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/11/Friday-Club-October-2024.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Friday Club 265**October 2024 266Celebrate World Mental Health Day With These Simple Tips For A Healthier Mind`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/10/Honeycombers-October-2024.png?lossy=0&strip=1&webp=1",alt:"#Legend, January 2024"},{type:"p",text:`**Honeycombers 267**October 2024 268Hypnotherapy in Hong Kong: Hypnosis and hypnotherapy training to harness change`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/01/Global-Influencers-September-2024-3.png?lossy=0&
268strip=1&webp=1",alt:"The Macao News, December 2023"},{type:"p",text:`**Global Influencers 269**September 2024 270Global Women of Influence Award`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/10/Honeycombers-September-2024.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2023"},{type:"p",text:`**Honeycombers 271**September 2024 272Love Local Awards: Editorâs Choice Award`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/07/Forbes-India-July-2024-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Forbes India 273**July 2024 274Sonia Samtani: Leading Expert in Hypnotherapy and Mental Wellness`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/06/Sassy-Mama-HK-May-2024.png?lossy=0&strip=1&webp=1",alt:"#Legend, January 2024"},{type:"p",text:`**Sassy Mama 275**May 2024 276Whatâs Causing Our Teens Anxiety & Upsetting Their Mental Health`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/06/Honeycombers-May-2024.png?lossy=0&strip=1&webp=1",alt:"The Macao News, December 2023"},{type:"p",text:`**Honeycombers 277**May 2024 278Journey to well-being via alternative healing in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/06/legend-May-2024.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2023"},{type:"p",text:`****Hashtag Legend** 279**May 2024 280Crystals against depression, anxiety, insomnia and stress`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/06/Jessica-April-2024-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`****Jessica** 281**April 2024 282S. Nine Spotlights Six Extraordinary Women`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/04/Legend-March-2024-3.png?lossy=0&strip=1&webp=1",alt:"#Legend, January 2024"},{type:"p",text:`**Prestige 283**April 2024 284Youâre Not Alone: Three Mental Health Experts Shed Light on Stigma in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/04/Legend-March-2024-2.png?lossy=0&strip=1&webp=1",alt:"Tatler, January 2024"},{type:"p",text:`**Hashtag Legend 285**March 2024 286Crystals for heartache, loss of relationship and emotional suffering`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/04/Legend-February-2024.png?lossy=0&strip=1&webp=1",alt:"The Macao News, December 2023"},{type:"p",text:`**Hashtag Legend 287**February 2024 288Hypnotherapy to boost productivity and employee wellbeing`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/04/Tatler-January-2024-2.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2023"},{type:"p",text:`****Tatler** 289**January 2024 290How to collect luxury watches and avoid the pitfalls of addiction: Collectors and a mental health expert share key advice`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/02/Legend-January-2024.png?lossy=0&strip=1&webp=1",alt:"#Legend, January 2024"},{type:"p",text:`**Hashtag Legend 291**January 2024 292Manifesting love, luxury, and prosperity in 2024`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/02/Tatler-January-2024.png?lossy=0&strip=1&webp=1",alt:"Tatler, January 2024"},{type:"p",text:`**Tatler 293**January 2024 294The weigh-in: Is the concept of ânew year, new meâ empowering and effective for personal growth?`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/02/The-Macao-News-December-2023.png?lossy=0&strip=1&webp=1",alt:"The Macao News, December 2023"},{type:"p",text:`**The Macao News** 295December 2023 296Here are 6 ways to make New Year resolutions work`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/12/Prestige-December-2023.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2023"},{type:"p",text:`****Prestige** 297**December 2023 298Women of Power: Drowning Out the Noise`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/LIV-October-2023-WLA-2023_-Wellness-Entrepreneur-of-the-Year.png?lossy=0&
298strip=1&webp=1",alt:"LIV, October 2023 (WLA 2023_ Wellness Entrepreneur of the Year)"},{type:"p",text:`**LIV Magazine 299**November 2023 300WLA 2023: Wellness Entrepreneur of the Year 301Platinum: Sonia Samtani, All About You`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/LIV-November-2023-WLA-2023_-Best-Mental-Health-Service.png?lossy=0&strip=1&webp=1",alt:"LIV, November 2023 (WLA 2023_ Best Mental Health Service)"},{type:"p",text:`**LIV Magazine 302**November 2023 303WLA 2023: Best Mental Health Service`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/LIV-November-2023-WLA-2023_-Best-Alternative-Health-Centre.png?lossy=0&strip=1&webp=1",alt:"LIV, November 2023 (WLA 2023_ Best Alternative Health Centre)"},{type:"p",text:`**LIV Magazine** 304November 2023 305WLA 2023: Best Alternative Health Centre`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/10/Honeycombers-October-2023.png?lossy=0&strip=1&webp=1",alt:"Honeycombers, October 2023"},{type:"p",text:`****Honeycombers** 306**October 2023 307Seeking help for mental health is always okay â hereâs where to get counselling in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/10/The-Macao-News-October-2023.png?lossy=0&strip=1&webp=1",alt:"The Macao News, October 2023"},{type:"p",text:`**The Macao News** 308October 2023 309Unlock the potential of a healthy mind on World Mental Health Day`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/10/China-Daily-Girl-City-Video-October-2023.png?lossy=0&strip=1&webp=1",alt:"New Moon January 2023"},{type:"p",text:`**China Daily City Video 310**October 2023 311Promoting Mental Health`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/10/Macao-News-September-2023.png?lossy=0&strip=1&webp=1",alt:"Macao News, September 2023"},{type:"p",text:`**Macao News** 312September 2023 313Wellness expert Sonia Samtani is coming to Macao to talk about âconscious parenting.â Hereâs what that means`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/JTM-August-2023.png?lossy=0&strip=1&webp=1",alt:"JTM, August 2023"},{type:"p",text:`****JTM Macau Newspaper** 314**August 2023 315CONHECIDA TERAPEUTA SONIA SAMTANI ORIENTA WORKSHOPS DE SAÃDE MENTAL`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Honeycombers-August-2023.jpg?lossy=0&strip=1&webp=1",alt:"Honeycombers, August 2023"},{type:"p",text:`**Honeycombers 316**August 2023 317Alternative Healing in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Jessica-June-2023.png?lossy=0&strip=1&webp=1",alt:"New Moon January 2023"},{type:"p",text:`**Jessica 318**June 2023 319ãWellness warriorsãæç¤ºãå¬ç çæ³ãçççåéï½å¬ç æ²»ç師åAll About You Wellness Centreåµè¾¦äºº Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Prestige-Women-of-Power-2023-June-2023.png?lossy=0&strip=1&webp=1",alt:"Asian Property Review, October2022"},{type:"p",text:`**Prestige 320**June 2023 321Women of Power Summit 2023`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Liv-May-2023.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2022 (2)"},{type:"p",text:`**Liv 322**June 2023 323Meet the Winners of the 2023 Women of Wellness Awards!`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Honeycombers-May-2023.png?lossy=0&strip=1&webp=1",alt:"The Beat Asia, January 2023"},{type:"p",text:`**Honeycombers 324**May 2023 325Entrepreneurs we love: Get to know Sonia Samtani, hypnotherapy expert and founder of All About You Wellness Centre`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/New-Moon-February-2023.png?lossy=0&strip=1&webp=1",alt:"Asian Property Review, October2022"},{type:"p",text:`**New Moon 326**March 2023 327Sense of Self with Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Honeycombers-March-2023.png?lossy=0&
327strip=1&webp=1",alt:"Prestige, December 2022 (2)"},{type:"p",text:`**Honeycombers 328**March 2023 329International Womenâs Day 2023: Give it up for these inspirational women in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/03/New-Moon-February-2023.png?lossy=0&strip=1&webp=1",alt:"New Moon January 2023"},{type:"p",text:`**New Moon 330**January 2023 331How To: Set New Year Resolutions and Manifestations`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/03/The-BEAT-Hongkong-January-2023-2.png?lossy=0&strip=1&webp=1",alt:"The Beat Asia, January 2023"},{type:"p",text:`**The BEAT 332**January 2023 333Hong Kongâs Mental Health Practitioners Set their Sights on 2023`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/03/Prestige-December-2022.png?lossy=0&strip=1&webp=1",alt:"Asian Property Review, October2022"},{type:"p",text:`**Prestige 334**December 2022 335Prestige Women of Power 2022: Inside the Event â Prestige Online`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/03/Prestige-December-2022-2-1.png?lossy=0&strip=1&webp=1",alt:"Prestige, December 2022 (2)"},{type:"p",text:`**Prestige 336**December 2022 337Challenge Accepted: Our Women of Power Laureates on Lessons Learned`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/11/Hashtag-Legend-November-2022.png?lossy=0&strip=1&webp=1",alt:"Hashtag Legend, November 2022"},{type:"p",text:`**#legend 338**November 2022 339#legendchats: Recalibrating mental health to achieve peace, self-acceptance`},{type:"p",text:`**The BEAT 340**January 2023 341Hong Kongâs Mental Health Practitioners Set their Sights on 2023`},{type:"p",text:`**Prestige 342**December 2022 343Prestige Women of Power 2022: Inside the Event â Prestige Online`},{type:"p",text:`**Prestige 344**December 2022 345Challenge Accepted: Our Women of Power Laureates on Lessons Learned`},{type:"p",text:`**#legend 346**November 2022 347#legendchats: Recalibrating mental health to achieve peace, self-acceptance`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/11/TMS-October-2022.png?lossy=0&strip=1&webp=1",alt:"TMS, October 2022"},{type:"p",text:`**TMS 348**October 2022 349Exploring the potential of hypnotherapy with All About Youâs Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/11/Asian-Property-Review-October2022.png?lossy=0&strip=1&webp=1",alt:"Asian Property Review, October2022"},{type:"p",text:`**Asian Property Review 350**October 2022 351A Chat With A Wellness Guru`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/11/Radar-List-August-2022.png?lossy=0&strip=1&webp=1",alt:"Radar List, August 2022"},{type:"p",text:`**Radar List 352**August 2022 353Women In Wellness: Hong Kong Sheroes We Would Love You To Meet`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/New-Moon-Magazine-May-2022-Copy.png?lossy=0&strip=1&webp=1",alt:"New Moon, August 2022"},{type:"p",text:`**New Moon 354**August 2022 355The Gap Between Intention And Action`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-4.png?lossy=0&strip=1&webp=1",alt:"Prestige, July 2022"},{type:"p",text:`**Prestige Magazine 356**July 2022 357Sonia Samtani on Hypnotherapy And Letting go`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-3.png?lossy=0&strip=1&webp=1",alt:"SCMP, July 2022"},{type:"p",text:`**SCMP 358**July 2022 359Anticipatory anxiety: what it is and how to overcome your fears, as cases rise with return to the office and going out after the pandemic`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-2.png?lossy=0&strip=1&webp=1",alt:"SCMP, July 2022"},{type:"p",text:`**SCMP 360**July 2022 361What drew three women to bear Elon Musk children besides his wealth? Womenâs reproductive priorities explained`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-1.png?lossy=0&
361strip=1&webp=1",alt:"LIV Magazine"},{type:"p",text:`**LIV Magazine 362**August 2022 363Conscious Parenting Tips`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-8.png?lossy=0&strip=1&webp=1",alt:"New Moon Magazine, May 2022"},{type:"p",text:`**New Moon Magazine 364**May 2022 365THE POWER OF NEGATIVE THINKING`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-7.png?lossy=0&strip=1&webp=1",alt:"LIV Magazine - Women of Wellness 2022, June 2022"},{type:"p",text:`**LIV Magazine â Women of Wellness 2022 366**June 2022 367Women of Wellness 2022: Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-6.png?lossy=0&strip=1&webp=1",alt:"LIV Magazine - Women of Wellness 2022, June 2022"},{type:"p",text:`**LIV Magazine â Women of Wellness 2022 368**June 2022 369Women of Wellness 2022: Meet The Winners!`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail-5.png?lossy=0&strip=1&webp=1",alt:"Outlook, India, July 2022"},{type:"p",text:`**Outlook, India 370**July 2022 371Top 10 Personalities To Look Upon If You Are Looking For An Inspiration`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Little-Steps-April-2022-Copy.png?lossy=0&strip=1&webp=1",alt:"Little Steps April 2022"},{type:"p",text:`**Little Steps Asia 372**April 2022 373Individual And Parenting Workshops With Sonia Samtani In Hong Kong 2022`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Press-Page-Thumbnail.png?lossy=0&strip=1&webp=1",alt:"SCMP, April 2022"},{type:"p",text:`**SCMP 374**April 2022 375How to self-partner, why Emma Watson and other celebrities have joined the movement, and the benefits of being your own better half`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/India-Today-April-2022-Copy.png?lossy=0&strip=1&webp=1",alt:"India Today, April 2022"},{type:"p",text:`**India Today 376**April 2022 377The ten most rising, iconic and inspirational leaders of India`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/08/Echelon-Magazine-May-2022-Copy.png?lossy=0&strip=1&webp=1",alt:"Echelon Magazine, May 2022"},{type:"p",text:`**Echelon 378**May 2022 379Self-care: Less Is More`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/04/Ritzy-Hong-Kong-March-2022.png?lossy=0&strip=1&webp=1",alt:"Alphamen Magazine, February 2022"},{type:"p",text:`**Ritzy Hong Kong 380**March 2022 381#WomenCan Campaign 2022 : Challenging traditional thoughts and break out of societal norms`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/04/Liv-March-2022.png?lossy=0&strip=1&webp=1",alt:"Alphamen Magazine, February 2022"},{type:"p",text:`**Liv Magazine 382**March 2022 383HK Small Business Guide: 10 Inspiring Women Owned Wellness Brands`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/04/Compare-Retreats-March-2022-1.png?lossy=0&strip=1&webp=1",alt:"Alphamen Magazine, February 2022"},{type:"p",text:`**Compare Retreats 384**March 2022 385On Conscious Parenting & How To Cope During The Pandemic`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/03/Press-Page-Thumbnail-Alphamen-Magazine-February-2022-.png?lossy=0&strip=1&webp=1",alt:"Alphamen Magazine, February 2022"},{type:"p",text:`**Alphamen Magazine 386**February 2022 387Dating in the Metaverse`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/02/Lifestyle-Asia-February-2022.png?lossy=0&strip=1&webp=1",alt:"Lifestyle Asia, February 2022"},{type:"p",text:`**Lifestyle Asia 388**February 2022 389Hong Kongâs mental health experts weigh in on the future of mental healthcare`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/03/Press-Page-Thumbnail-SCMP-February-2022.png?lossy=0&strip=1&webp=1",alt:"SCMP, February 2022"},{type:"p",text:`**South China Morning Post** 390February 2022 391Why we all need some self-love: how a cancer diagnosis pushed a people pleaser to put her own needs first`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/02/Prestige-February-2022.png?lossy=0&
391strip=1&webp=1",alt:"Prestige, February 2022"},{type:"p",text:`**Prestige** 3929th February 2022 393Hong Kongâs Mental Health Experts Weigh In on the Future of Mental Healthcare`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/02/SCMP-February-2022-2.png?lossy=0&strip=1&webp=1",alt:"SCMP, February 2022"},{type:"p",text:`**South China Morning Post 394**6th February 2022** 395**Dating in the metaverse? You need some ground rules to avoid the virtual replacing your reality`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/04/Chika-Magazine-January-2022.png?lossy=0&strip=1&webp=1",alt:"Ritzy Hong Kong, January 2022"},{type:"p",text:`**Chika Magazine** 396January 2022 397The Best Female Hypnotherapists in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/02/Ritzy-Hong-Kong-January-2022.png?lossy=0&strip=1&webp=1",alt:"Ritzy Hong Kong, January 2022"},{type:"p",text:`**Ritzy Hong Kong** 398January 2022 3992022 most influential people in the Wellness industry`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/01/New-Moon-January-2022.png?lossy=0&strip=1&webp=1",alt:"New Moon January 2022"},{type:"p",text:`**New Moon** 4006th January 2022 401COPING MECHANISMS: HELPFUL OR HINDRANCE?`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/01/Chika-Magazine-December-2021.png?lossy=0&strip=1&webp=1",alt:"Chika Magazine December 2021"},{type:"p",text:`**Prestige** 4029th February 2022 403Hong Kongâs Mental Health Experts Weigh In on the Future of Mental Healthcare`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/12/Press-Page-Thumbnail.png?lossy=0&strip=1&webp=1",alt:"PRESTIGE WOMEN OF POWER 2021"},{type:"p",text:`**Prestige** 4049th February 2022 405Hong Kongâs Mental Health Experts Weigh In on the Future of Mental Healthcare`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/12/South-China-Morning-Post-December-2021.png?lossy=0&strip=1&webp=1",alt:"New Moon September 2021"},{type:"p",text:`**South China Morning Post** 40612th December 2021 407How to let go of bad feelings that might end a relationship and make a fresh start for a new year`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/12/South-China-Morning-Post-Bovember2021.png?lossy=0&strip=1&webp=1",alt:"South China Morning Post - August 2021"},{type:"p",text:`**South China Morning Post** 40814th November 2021 409Winter is cuffing season`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/12/Press-Page-Thumbnail-1.png?lossy=0&strip=1&webp=1",alt:"South China Morning Post - August 2021"},{type:"p",text:`Hong Kong Living Influencer Awards 2021: Health & Wellness 41025th October 2021 411Get to know this years influencers in Hong Kongâs Health & Wellness category`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2022/04/Echelon-September-2021.png?lossy=0&strip=1&webp=1",alt:"New Moon September 2021"},{type:"p",text:`**Echelon Magazine** 412September 2021 413How Hypnotherapy Can Rescript Your Life`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/New-Moon-September-2021-1.jpg?lossy=0&strip=1&webp=1",alt:"New Moon September 2021"},{type:"p",text:`**New Moon Magazine** 41422nd August 2021 415Why setting boundaries is so important in a relationship`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/South-China-Morning-Post-July-2021-1.jpg?lossy=0&strip=1&webp=1",alt:"South China Morning Post - August 2021"},{type:"p",text:`**South China Morning Post** 41622nd August 2021 417Why setting boundaries is so important in a relationship`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/Tatler-Asia-July-2021.jpg?lossy=0&strip=1&webp=1",alt:"Tatler Asia - July 2021"},{type:"p",text:`**Tatler Asia** 41814th July 2021 419Conscious Living with Sonia Samtani by Asaya`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/Compare-Retreats-July-2021-1.jpg?lossy=0&
419strip=1&webp=1",alt:"Conscious Living With Sonia Samtani"},{type:"p",text:`**Compare Retreats** 420July 2021 421The Hong Kong Wellness Workshop`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/Little-Steps-July-2021-1.jpg?lossy=0&strip=1&webp=1",alt:"South China Morning Post - June 2021"},{type:"p",text:`**Little Steps** 42216th July 2021 423Conscious Living With Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/Press-Page-Thumbnail.jpg?lossy=0&strip=1&webp=1",alt:"Podcast - Ignite Your Life - June 2021"},{type:"p",text:`**PODCAST: POWER OF ACCEPTANCE** 42416th June 2021 425A Podcast with Leanne Blaney`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/09/South-China-Morning-Post-June-2021.jpg?lossy=0&strip=1&webp=1",alt:"South China Morning Post - June 2021"},{type:"p",text:`**SCMP** 42627th April 2021 427Pillow talk: the dos and donâts of intimate bedtime chats, and how they can help your relationship and sex life`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/06/gafencu-sonica-samtani-2021-06.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Gafencu** 42827th May 2021 429Five Surprising Ways Hypnotherapy can Benefit Your Health and Well-being`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/06/hktdc-sonia-samtani-2021-05.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**HKTDC** 43017th May 2021 431Pandemic-Induced Mental Reset`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/05/Beyond-the-Boudaries-Sonia-Samtani-2021-05-05.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Beyond the Boundaries** 4325th May 2021 433More than Meets the Pendulum`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/05/Liv-Magazine-Sonia-Samtani-2021-04-29.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Liv** 43429th April 2021 435Women of Wellness: Alternative Health`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/05/Sonia-Samtani-Elle-Magazine-2021-04-29.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**ELLE** 43629th April 2021 437ãå°å®¶è§£çãæ§éæ±ä¸åççè¦ï¼è·å¦ä¸åæ§ææ¬¡æ¸ä¸å調æéº¼è¾¦ï¼`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/05/Sonia-Samtani-HK-Tatler-2021-04-09.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Hong Kong Tatler** 4389th April 2021 439Tatler House Stories: A Panel Discussion With Wellness Advocates Sonia Samtani, Natalie Söderström & Sabrina Villard`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/05/Sonia-Samtani-SCMP-2021-04-04.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 4404th April 2021 441How to forgive yourself and why self-forgiveness helps us truly give love to others`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/06/sassy-mama-sonia-samtani-2021-03.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sassy Mama** 44216th March 2021 443Alternative Therapy in Hong Kong: Reiki, Hypnotherapy, Art Therapy and More`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/03/beyond-the-boundaries.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Beyond the Boundaries** 444January â February 2021 445How to Increase the Quotient of Happiness in Our Lives`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/02/new-moon-2021-02-18.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**New Moon** 44618th February 2021 447Sonia Samtani on How Hypnotherapy Heals`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/02/hk-tatler-2021-01-20.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Hong Kong Tatler** 44820th January 2021 449Hypnotherapist Sonia Samtani: True Healing Begins In The Subconscious Mind`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/02/scmp-2021-01-10.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 45010th January 2021 451How to prevent a break-up and rebuild a relationship thatâs stagnant or in trouble`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/02/hong-kong-living-january-2021.png?lossy=0&
451strip=1&webp=1",alt:""},{type:"p",text:`**Hong Kong Living** 452January 2021 453Cover Story`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/02/sassy-mama-2020-12-22.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sassy Mama** 45422nd December 2020 455Mindful Gifts For Christmas: Wrapped With Love From Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/marie-claire-2020-11.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Marie Claire** 45614th December 2020 457æ°ä¸å¹´ 5åæ¥é©æä½ è¨ç«çæ£å¯è¡çç®æ¨ å»ºç«ææèç2021å¹´`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/02/scmp-2020-11-29.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 45829th November 2020 459How to get over fear of intimacy: be open, patient and build trust over time to truly deepen your relationship`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/vogue-2020-11.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Vogue** 46013th November 2020 461Understanding Hypnotherapy and Its Benefits With Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/nana-november-2020.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Nana** 46212th November 2020 463I got my Chakras aligned and this is what happened`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/jessica-cover.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Jessica** 46410th November 2020 465çºèªå·±èæ´»`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/popbee-2020-11.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Popbee** 4662nd November 2020 467覺å¾äººçæ²æåºè·¯äºåï¼ç¾å¥½ççæ´»æè¨±ç±å¾éæ§è¦ºééå§ï¼`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/vogue-october-2020.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Vogue Hong Kong** 4689th October 2020 469èªèä»éº¼æ¯å¬ç çæ³ï¼å°å®¶ Sonia Samtani 叿æ¹åé½å¸äººå¥åº·åé¡`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-october-2020-sonia-samtani.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 4704th October 2020 471Is your partner having an emotional affair? Cheating without sex â how to spot it and ways to avoid it`},{type:"p",text:`**Marie Claire** 47224th September 2020 473æ°å èºç䏿·åæ´ç¦æ ®ï¼å°å®¶æä½ 3ææ¹è®æç¶èªå¿«æ¨å¯¶å¯¶`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/cosmopolitan-hk-2020-09-10.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Cosmopolitan Hong Kong** 4748th September 2020 475ç ´è§£å¬ç 10大迷æã¡å¬ç æ²»ç師ï¼å¬ç 坿¾ååä¸è¨æ¶ãæ²»çå種å¿çåé¡`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/vogue-hong-kong-19-august-2020.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Vogue Hong Kong** 47619th August 2020 477What Wellness Means to Me: Belinda Koo`},{type:"p",text:`**Jessica** 47810th August 2020 479å¦ä½ä¿æåå (å³ä½¿è¬è¬ä¸é¡â¦)`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/marie-claire-june-2020.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Marie Claire Hong Kong** 48022nd July 2020 481ä¸çåå£ä¹è¦å¥½å¥½é å¬ç æ²»ç師æ3æè身é«å»ºç«éä¿å¾ä¸ç²å¾å¹³é`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/time-out-hong-kong-august-2020.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**TImeOut Hong Kong** 482August 2020 483Time Out Says`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/compare-retreats-AAY.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Compare Retreats Magazine** 484June 2020 485Healing Your Inner Child & Balancing Feminine And Masculine Energy`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/10/compare-retreats-cover-may-2020.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Compare Retreats** 48611th May 2020 4873 Hypnosis Centres In Hong Kong To Break Bad Habits`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2020-05-03.png?lossy=0&
487strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 4883rd May 2020 489How is the Coronavirus Affecting Your Relationship?`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2020-04-08.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 4908th April 2020 491How the Corona Virus Might Change the World for the Better`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/liv-online-magazine-crystal-shopping.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**LIV** 49210th March 2020 493Good Vibrations: How to shop for Crystals in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/love-during-corona-scmp.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 4949th February 2020 495Love During the Coronavirus`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/save-relationship-after-cheating-scmp.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 4962nd February 2020 497How to Save a Relationship after Cheating and Get Sex Back on Track`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2020-01-12.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sunday Morning Post 498**12th January 2020 499Resolutions to Help Reboot Your Relationship`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/line-today-sonia-samtani.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**LIV** 50010th March 2020 501Good Vibrations: How to shop for Crystals in Hong Kong`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/Jan-Feb-2020-Desi-Flava-cover.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**A-Desiflava** 502January â February 2020 503Bygones & Beginnings`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/Nov-Dec-2019-Desi-Flava-cover.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**A-Desiflava** 504November â December 2019 505Mindful Mission`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/Sept-Oct-2019-Desi-Flava-cover.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**A-Desiflava** 506September â October 2019 507Light Over Darkness`},{type:"p",text:`**SCMP** 50813th October 2019 509Why Hong Kong Protests are Driving Families Apart and How to Discuss the Issues without Anger`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2019-09-29-online.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP** 51029th September 2019 511Conscious Dating: How to Find the Perfect Partner by Using Truthfulness, Integrity and Common Sense`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2019-09-29.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP 512**29th September 2019 513A Userâs Guide to 514Conscious Dating`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/HK-confidential-sonia-samtani.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Hong Kong Confidential** 51524th September 2019 516Episode 4: All About You`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/sonia-samtani-the-asian-entrepreneur.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**The Asian Entrepreneur** 5177th August 2019 518Feature Article`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/liv-magazine-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**LIV 519**2019 520Around Town`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-better-way-to-broach.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP 521**7th April 2019 522A Better Way to Broach the Birds and the Bees`},{type:"p",text:`**SCMP 523**7th April 2019 524When to Talk to Kids about Sex and Benefits of Regular Open Discussion`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2018-11-08.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP 525**8th November 2018 526Scared of Turtles? Petrified of Pigeons? How Phobias Happen, and What You Can Do if You Have an Irrational Fear`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/asia-spa-october-2018-sonia-samtani.png?lossy=0&
526strip=1&webp=1",alt:""},{type:"p",text:`**Asia Spa 527**September â October 2018 528Feminine Forces`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/sassy-mama-sept-2018-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sassy Mama 529**28th September 2018 530Whatâs Your Emotional Trigger?`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/sassy-mama-aug-2018-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sassy Mama 531**15th August 2018 532Stress: How Itâs Hurting You 533and What to Do About It`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/sassy-mama-july-2018-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sassy Mama 534**9th July 2018 535Mental Health and Stress: How Your Mind Affects Your 536Overall Health`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/compare-retreats-magazine-sonia-samtani.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Compare Retreats Magazine** 5379th July 2018 538How A Clinical Hypnotherapy Course Could Improve Your Wellness`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/lifehacks-cover.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Lifehacks** 53930th May 2018 540From Aggravation To Elation â The Story Of Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2017-10-04.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP 541**4th October 2017 542How to Cure a Fear of Flying: Virtual Reality Headsets Offer Alternative to Hypnotherapy, Breathing Exercises and Tapes`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/a-desiflava-sonia-samtani.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**A-Desiflava** 54321st September 2017 544Searching for Happiness Amidst the Stress`},{type:"p",text:`**SCMP 545**15th November 2015 546Hong Kong Hypnotherapist Unlocks Power of the Subconscious to Help 547Change Lives`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/virsa-the-culture-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Virsa The Culture 548**September â October 2014 549All About You Wellness Centre`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/the-edge-cover.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**The Edge 550**17th March 2014 551All About You`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/beyond-sindh-2014.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Beyond Sindh Magazine 552**2014 553Sonia Samtani Launches New Space for Wellness & Transformation in the 554Heart of Kowloon`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/global-health-and-travel-2014.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Global Health and Travel 555**July â August 2013 556The Pursuit of Happiness`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/hkyantoyan-sonia-samtani.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**HKYantoYan** 5572nd December 2012 558Basic Clinical Hypnosis by Sonia Samtani`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/the-list-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**The List 559**February, 2010 560People List`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/gafencu-men-thumbnail.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Gafencu Coverage Report 561**December 2009 562Big Bash Theory`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2008-08-09.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP 563**9th August 2008 564You Have to Work on Yourself before Anyone Else`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2020/11/scmp-2006.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**SCMP, HK 565**August 2006 566A Crash Course in Courtship`}]}},_E={index:{title:"Contact All About You Centre",blocks:[{type:"h",level:1,text:"Contact Our Centre"},{type:"h",level:3,text:"**Email us** **at**"},{type:"h",level:3,text:"**Call us** **at**"},{type:"h",level:3,text:"**+852 6133 5976**"},{type:"h",level:3,text:"**Visit our**"},{type:"h",level:3,text:"**Founderâs website**"},{type:"h",level:3,text:"**Visit us at**"},{type:"h",level:3,text:"**Instagram**"},{type:"h",level:3,text:"**Visit our**"},{type:"h",level:3,text:"**Facebook page**"},{type:"h",level:3,text:"**Visit our**"},{type:"h",level:3,text:"**videos on mental health**"},{type:"h",level:3,text:"**Listen to our**"},{type:"h",level:3,text:"**meditations on Spotify**"}]}},TE={index:{title:"All About You Centre",blocks:[{type:"p",text:"**Click Here to Join Soniaâs Signature Be Your Own Master Workshop. Level 3 â 12th â 14th June 2026. 10:00AM â 6:00PM HKT**"},{type:"h",level:1,text:"you are Loved"},{type:"h",level:1,text:"you are Enough"},{type:"h",level:1,text:"you are Safe"},{type:"h",level:1,text:"You Belong"},{type:"p",text:`Join thousands who have *transformed their lives* 567through the power of **Hypnotherapy** and alternative healing with *Sonia Samtani* and her team!`},{type:"h",level:2,text:"**Why All About You?**"},{type:"p",text:"All About You is an Award winning Wellness and Hypnotherapy Centre in Hong Kong, specializing in Mental Health, founded by Hong Kongâs leading Hypnotherapist Sonia Samtani, with an intention to create a space where people feel accepted and safe to address their deepest issues."},{type:"p",text:"At All About You we pride ourselves in providing our clients a Holistic Healing experience, creating bespoke Signature packages that address their physical, mental, emotional and spiritual needs at the core, empowering them, and allowing them to manifest a new reality."},{type:"p",text:"We do this through a combination of private sessions, personal development workshops, certified practitioner training programs, and products that promote self
567-awareness."},{type:"p",text:"Services are provided by resident and visiting practitioners who are experts in Hypnotherapy, Energy Healing, NLP, Regression Therapy, Tarot Reading, Public Speaking, Couples Counselling, Fast Track Technique, and coaching."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&strip=1&webp=1",alt:"All About You Centre Hong Kong Office"},{type:"h",level:2,text:"You being here right now is no coincidenceâ¦"},{type:"p",text:"and we commend you for taking the **first step** towards your new journey of living to your peak potential!"},{type:"p",text:"Just take a moment and ask yourselfâ¦***What is it that youâre looking for?***"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Overcoming-Anxiety-and-Depression.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Overcoming anxiety & depression"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Breaking-free-from-old-Habits-Fears-and-Phobias.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Gaining Clarity & Direction"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Clarity-and-Direction.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Breaking free from old Habits, Fears & Phobias"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Inner-Child-Healing.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Healing Your Inner Child"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Releasing-Pain-and-Trauma-from-body-and-mind.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Releasing Pain & Trauma from body and mind"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Improving-Relationships.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Improving Relationships"},{type:"p",text:"None of the above, but just need something to change!"},{type:"h",level:2,text:"Experience Holistic Healing with us"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/private-sessions-all-about-you-centre.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Hypnotherapy"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Practitioners-Training-all-about-you-centre.jpg?lossy=0&strip=1&webp=1",alt:"Practitioners Training"},{type:"h",level:3,text:"NLP Coaching"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Fast-Track-Technique.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Fast Track Technique"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Akashic-Reading.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Akashic Reading"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Pain-Relief-and-Trauma-Release.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:`Pain Relief 568and Trauma Release`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Psychic-and-Spiritual-Readings.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Psychic and Spiritual Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Tarot-Readings.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Tarot Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Family-Systemic-Constellations.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Family Systemic Constellations"},{type:"p",text:"Not sure which modality is the right fit for you?"},{type:"h",level:1,text:"Why *Hypn*otherapy?"},{type:"p",text:"*Because Hypnotherapy allows you to shift your story at the subconscious level, reflect deeply, and move forward with clarity and wisdom.*"},{type:"p",text:"I realised that **real confidence** doesnât come from how you look or act â it c
568omes **from within**. That realisation led me to explore a wide range of healing modalities, including coaching, talk therapy, somatic work, and hypnotherapy. What stood out to me most was hypnotherapy, because it didnât just help me cope â it helped me **transform**. It addressed the root causes of my patterns and** rewired my core belief system.******"},{type:"p",text:"**~ Sonia Samtani, CEO and Founder of All About You Centre**"},{type:"h",level:2,text:`Hypnotherapy doesnât give you a 569temporary fix, it creates a deeper 570transformational lifetime change!`},{type:"p",text:"*Want to learn how it can help you fix your problems, or reach your desired goal? *"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/holistic-hypnotherapy-1-scaled.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Meet-Sonia-Samtani-Pioneering-Hypnotherapist.-All-About-You-Centre-Hong-Kong.png?lossy=0&strip=1&webp=1",alt:"Meet Sonia Samtani Photo"},{type:"h",level:2,text:"Meet Sonia Samtani;"},{type:"p",text:"Hong Kongâs Pioneering Hypnotherapist"},{type:"p",text:"For over two decades, Sonia Samtani has helped thousands of people worldwide overcome their biggest challenges and achieve major breakthroughs. When Sonia first stepped into the world of mental health two decades ago, therapy wasnât a topic people in Hong Kong discussed openly. Hypnotherapy, in particular, was considered woo woo and taboo. But Sonia saw a gap, a need, and an opportunity to make a difference, and she has done just that by speaking at events worldwide; including **two Tedx talks**, through her best-selling book **â52 thoughts for Conscious Living**â, founding HKâs first English Hypnotherapy Centre; All About You while also being a former Senior Mentor for **Tony Robbins.** Sonia wears many hats, but her mission remains the same*** to empower individuals with simple, powerful tools to move from judgment to acceptance.***"},{type:"p",text:"***âSeeing clients move from fear to confidence, or overcome deeply ingrained limiting beliefs, is the most rewarding part of my work,â***"},{type:"p",text:"Till date, Sonia has impacted more than 40,000 people. Her successes include helping Formula Renault Racing Driver Dan Wells win 12 races in a row and resolving deep-rooted issues like bulimia and psoriasis in a single session. She has received several awards, including Hong Kongâs Women of Power, Wellness entrepreneur of the year, and Best Hypnotherapist from Prestige Magazine, Ritzy, and Liv Magazine."},{type:"p",text:"**âTherapy is no longer seen as something you turn to only when youâre âbroken.â People are starting to view it as an ongoing practice, like going to the gymâbut for your mind.â**"},{type:"img",src:" https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Prestige.png?lossy=0&strip=1&webp=1 ",alt:" Prestige Logo "},{type:"img",src:" https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Vogue.png?lossy=0&strip=1&webp=1 ",alt:" Vogue Logo "},{type:"img",src:" https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/The-Loop-HK.png?lossy=0&strip=1&webp=1 ",alt:" The Loop HK Logo "},{type:"h",level:2,text:`Here are the transformations our 571clients have experienced`},{type:"p",text:"Manifested winning the Lamborghini Super Trofeo world final in racing after my first hypnotherapy session, and then going on to working with Lamborghini and changing the trajectory of my life!! Thank you Sonia! : *Oscar Lee DW Evans GT Racecar Driver*"},{type:"p",text:"Through the powerful constellation process,I was able to bring to light my unresolved feelings about past loss of my unborn child which I had never had the courage to fully confront and resolve since the age of 21: *Kim Do*"},{type:"p",text:"I had a tarot reading at All About You and it was amazing! The whole process felt so effortless, and Reader guided me through the session so well. On the questions I wanted to explore, we had such a rich conversation around what the cards are showing and what I need to do to move in the direction I want. It was an empowering session and we shared many laughs. â *Winnie Chung*"},{type:"p",text:"I had a wonderful experience with hypnotherapy at All About You. From our first session, the hypnotherapist instantly built trust and rapport, making me feel at ease and understood. She patiently helped me uncover the root cause of my recurring anxiety, working with me on a subconscious level to address it deeply and effectively. She also provided me with practical tools that I now use to manage and solve sleeping or overthinking problems as they arise. â *Min Lai*"},{type:"p",text:"Since I began dissolving those barriers through Fast Track Technique my financial situation has continued to explode. Earnings, bonuses, unexpected windfalls, freedom from debt⦠you name it. Thank y
571ou!"},{type:"p",text:"My Pain Relief session at All About You Centre was just what I needed. After experiencing a Grade 2 Ankle Sprain about a year ago, I have not been able to get back to running. The therapist was able to release some pressure in my ankle area as well as stuck energy in the body. She has a wonderful calming presence and I felt really supported during the entire session. Initially, going in for my ankle pain, she was able to identify other areas of pain and release stuck areas in my heart and head. I highly recommend All About Youâs holistic approach to healing. â *Christy Donohue*"},{type:"p",text:"Want to see more success stories?"},{type:"h",level:2,text:"**Are you ready for** *your transformation*?"},{type:"h",level:3,text:"Private Sessions"},{type:"p",text:"Dive into deep relaxation to unlock your mindâs potential and create positive change."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Personal-development-all-about-you-centre.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:3,text:"PERSONAL DEVELOPMENT WORKSHOPS"},{type:"p",text:"To find out more about our workshops, please click below."},{type:"h",level:3,text:"PRACTITIONER TRAININGS"},{type:"p",text:"Enhance your understanding of the mind and gain insights into human behavior and other techniques."},{type:"h",level:2,text:"*Start today, and manifest your new reality!*"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/National-Counselling-Conference-2024-AAYC.png?lossy=0&strip=1&webp=1",alt:"National Counselling Conference in 2024"}]}},CE={"fast-track":{title:"Fast Track Technique Training â All About You Centre Hong Kong",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Jaz-Goven.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Facilitator: Jaz Goven 572**`},{type:"p",text:"Jaz has spent more than 20 years dedicated to guiding people on transformative journeys. Her own path toward healing was deeply personal, driving her to explore numerous modalities. Eventually, this journey culminated in the creation of Fast Track Technique, a comprehensive system that integrates the most effective techniques she has encountered."},{type:"h",level:1,text:"Fast Track Technique Practitioner Training"},{type:"p",text:"Fast Track Technique is a powerful and intelligent energy healing system for self- investigation, realization and transformation. Fast Track Technique provides immediate, permanent and positive change addressing relationship issues, money troubles, health, self esteem and many more types of blockages."},{type:"p",text:"Access your subconscious programming using muscle testing and the specially developed FTT cards to release mental, emotional and physical blockages, limiting beliefs, negative behaviour patterns and programs easily and permanently."},{type:"p",text:`**Available In Person or Online 573****Fee: **HKD2,600`},{type:"p",text:"**Go Back to Events Page**"}]},hypnorevive:{title:"Hypnotherapy Hong Kong, Become a Therapist, Certified Hypnotherapist",blocks:[{type:"h",level:1,text:"**Hypno-Revive: Intensive Training**"},{type:"h",level:1,text:"with Sonia Samtani"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 574 575**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:`ððð² ððð¤ððð°ðð²ð¬ 576 577â Reinforcement of Core Techniques: Refresh your understanding of key hypnotherapy techniques from Levels 2 to 5. 578 579â Tailored Learning Experience: Engage in personalized group discussions to target your specific learning needs. 580 581â Hands-On Practice: Gain practical experience through demonstrations and application of techniques. 582 583â Community Building: Network with fellow Level 5 graduates and share experiences. 584 585â Expert Guidance: Receive clarifications and insights from Sonia
585Samtani on complex concepts. 586 587 588 589 590 591 592 593 Book Now`},{type:"p",text:`**Saturday â Monday 594 595**21st â 23rd June 2025 596 59710:00 am â 7:00 pm`},{type:"p",text:"**Venue**: Hybrid â both online via zoom and in person at All About You"},{type:"p",text:"**Eligible**: Exclusively for Hypnotherapy Level 5 graduates from AAY"},{type:"p",text:"**Fee: HKD4,000 **"},{type:"p",text:"**Go Back to Events Page**"}]},hypnotherapy:{title:"Level 5 Hypnotherapy Training in Hong Kong",blocks:[{type:"h",level:1,text:"Level 5 Hypnotherapy with Sonia Samtani"},{type:"p",text:"**Certification:** Integrated Clinical Hypnotherapy"},{type:"p",text:"**Prerequisite:** Level 4 â Course in Integrated Spiritual Hypnosis"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 598**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:"Studying hypnosis in Hong Kong is becoming increasingly popular. Learning the five-levelled curriculum by the California Hypnosis Institute of India (CHII) has appealed to people for a number of reasons. Some do it for the joy of the knowledge alone while others do it to become a qualified therapist or teacher of the curriculum. A career in this fields can be personally enriching as well as financially viable."},{type:"p",text:"**The 5 Levels of Integrated Clinical Hypnotherapy:**"},{type:"p",text:"**Covers:**"},{type:"p",text:"**Duration:** 8 Days consecutively."},{type:"p",text:"**Certification: **Integrated Clinical Hypnotherapy"},{type:"p",text:"**Prerequisite:** Level 4 â Course in Integrated Spiritual Hypnosis"},{type:"p",text:`**Schedule: TBC** 599IN PERSON`},{type:"p",text:"**Fee: **TBC"},{type:"p",text:"**Go Back to Events Page**"},{type:"p",text:"Just love my hypno therapy course experience here, Sonia is the best master that I have learned so much about hypnosis. This is a process of discovering the power of our subconscious mind as well as a self-growth path. I highly recommend you all to experience it. - **CQ**"},{type:"p",text:"I had a wonderful time learning hypnotherapy at All About You with Sonia Samtani. Sonia took me on an insightful and transformative journey from level 1 to level 4. She beautifully balances professionalism, friendliness and humour."},{type:"p",text:"I always look forward to attending her classes. She has done a lovely job fostering a sense of community at All About You!"},{type:"p",text:"A big thank you to the AAY team for making my time as a student very enjoyable! - **Amelia Lecapitaine**"},{type:"p",text:"The practice part (being the client and therapist) was the best part of Level 1 training. The field of psychology has always been an interest of mine and this training has expanded my knowledge and appreciation for the mind like no other. Truly an out-of-world experience where every bit of information is new and fascinating while providing substantial evidence. **- Yannick Nathan Artigolle**"},{type:"p",text:"Cannot speak more highly of Sonia and her academy. A chance weekend course a few years ago changed my life and my whole career.and I went on to qualify and teach. Every day now I get paid doing what I love which is helping making a difference to so many. Can't tell to how rewarding and fulfilling that is. Even if you don't go on to teach or to practice as a professional the personal growth is off the charts. Sonia is the most amazing teacher and mentor one could ask for. It is pure magic! - **Alison Middleton**"},{type:"p",text:"I have studied with numerous wise teachers over the years Sonia comfortably falls into this category. Sonia and her team's friendly and very informative levels of expertise really provide a wonderful platform to learn and understand greater the working of our minds. I walked away from a 2 day course with not only new profound insights but highly practical tools and techniques that I can apply within my life and use to understand both my and the actions of others with deeper clarity. I cannot recommend this course highly enough. - **Brian**"},{type:"p",text:"Sonia is doing an excellent service by providing a lifetime opportunity of bringing âHypnotherapy coursesâ as well as other courses right at our doorstep. We truly are fortunate enough to experience this. I would highly recommend the Hypnotherapy course to every individual whether they intend to be a therapist or not. Itâs not just a course. Itâs a way of life. This course has opened doors to the different realms that exist within me. Not only does healing take place but we get a deeper understanding of our own selves. Most importantly we âlearnâ to love and accept ourselves. Truly a journey inside out! -** Rani Moriani**"},{type:"p",text:"It is amazing to me that I can make so much self-improvement by using the right hypnotic technique only within 2 days. - **Claire Zhong**"},{type:"p",text:"Hong Kong"},{type:"p",text:"I was very stressed in the midst of mid-life career change and was having a skin rash that would NOT go away in 4 weeks while normally a skin rash would go away in 2-3 days. During the course, I came in touch with one of my core beliefs which prevented me from mov
599ing forward, and immediately the skin rash subsided that very same day. - **Anonymous nutritionist**"},{type:"p",text:"The hypnotherapy course at All About You in really life changing. During level 5, Sonia and Yuvraj shared the teachings with great knowledge, passion, humour and kindness. Everyone is very helpful and makes the experience memorable. I highly recommend this course at this centre: you wonât be disappointed. - **Aurelie Gauthier**"},{type:"p",text:"Very impressive journey with all beautiful creatures ðð - **Madeleine Xiaoma**"},{type:"p",text:"It has been such an incredible journey for me learning from Sonia as a student in the hypnotherapy training program. The program is absolutely amazing not only for aspiring hypnotherapists but also for anyone seeking to better empower themselves in life. The curriculum is filled with helpful information and knowledge that really opened up my mind to a completely new perspective and I would definitely continue with the more advanced levels. - **Y. Ji**"},{type:"p",text:`This safe haven in Sheung Wan is a one-stop shop of transformation and wellness. The founder, Sonia Samtani is an authentic, passionate and excellent hypnotherapist and trainer of EKAA Hypnotherapy Training. 600Not only is hypnotherapy a wonderful healing tool with profound results for people, and this centre a wonderful place for healing and training; but the other workshops by Sonia herself and by the other practitioners here are all fascinating, highly informative, practical and amazing value. All About You is like a beautiful bottomless well of wellness! - **J St Clair**`},{type:"p",text:"It has been such an amazing journey learning from Sonia & also being her hypnotherapy client, I have a big shift in my perspectives in life by recognizing myself as well as understanding others in daily life."},{type:"p",text:"Sonia is very professional in her teachings and as a therapist, & organizing the All About You Centre offering a variety of classes and treatments that helps many people."},{type:"p",text:"Her compassion and patience together with her expertise make her the best therapist in town. I would recommend the All About You centre to all my families & friends, I trust Sonia can make this a better world. -** Joanne Chan**"},{type:"p",text:"Sonia Samtani and her team at All About You has done an incredible job in the space of self-development, healing and learning in Hong Kong. The hypnotherapy courses and workshops are amazing which helps us gain deep understanding and wisdom of ourselves, our loved ones and our lives. Practical tools and exercises are taught to enhance our knowledge and transformation with regular practice."},{type:"p",text:"Sonia is such an inspiration in this space. She is not only a dedicated teacher, sheâs also a very professional and loving hypnotherapist. The space she creates is really âAll About Youâ where her clients come first and receive full support. I look forward to more exciting workshops and learn from the best! -** OM**"},{type:"p",text:"Sonia is an amazing hypnotherapist with comprehensive knowledge and experiences that transforms belief systems and thus leads into a better life. Her workshops are mind-blowing and the hypnotherapist training is incredible journey even for who won't pursue a career but only to obtain the knowledge to guide one's own lives."},{type:"p",text:`For anyone who is ready to look inward and striving for a life that is empowered. All about you is the place to be! 601All the best and love to everyone! - **Helena Hong**`},{type:"p",text:"The best part of Level 1 training was understanding some of the things I went through during my own private hypnotherapy sessions and feeling inspired to apply the knowledge I have to continue to work on myself. This is an absolutely transformative experience and the course really taught me more about myself beyond the theory and knowledge of hypnotherapy. Would highly recommend! - **Yuni Zihan Ji **"},{type:"p",text:"A beautiful journey working with Sonia and every classmate. Together with her humbleness, knowledge,wisdom,compassion and love sharing this spiritual journey is much easier and lighter. Thank y
601ou for providing a solid platform for all the possibilities to happenâ¦Until next time."},{type:"p",text:"I really liked this course, just like any other ones given by Sonia. She is incredibly knowledgeable, a great presenter and public speaker. The workshop gave me more understanding about how our mind works and a chance to practise hypnosis on myself and others. Highly recommended. - **Yelena Zakharova**"},{type:"p",text:"I learnt so much about the mind and how it works. It helps me to understand myself and others so much better. I especially love the self-hypnosis techniques. That would definitely improve the quality of my life. - **Duong Bao Anh**"},{type:"p",text:"I found level 1 amazing and valuable. The course has so much to take away and the addiction to come back to level 2 onwards. My journey has just begun. - **Tobias Lee**"},{type:"p",text:"Appreciation and understanding of life, the mind, the material universe and the metaphysical continues to deepen at each level and surpassed even the highest expectations. Helped me make great progress in personal life issues and enlightenment of life purposes. - **Melody Wong**"},{type:"p",text:"The best part of Level 1 training was the deepening technique and self hypnosis technique. It is worth doing the course for your own personal development even if you are unsure you ever wish to practice. - **Anonymous**"},{type:"p",text:"The best part of Level 1 training was the deepening technique and self hypnosis technique. It is worth doing the course for your own personal development even if you are unsure you ever wish to practice."},{type:"p",text:"Soniaâs hypno courses are life changing . I am at level 4 currently and already experience some huge shift in love life, family life and personal issues. I have realize something that I might not know before which block me from going to next level in life . This journey is interesting and make me understand everything happens for a reason and I am grateful I am here . - **Yukie.travel**"},{type:"p",text:"Hi My Name is Jaya and I am a big believer in Sonia and her wonderful work ð𥰠I have done some healing work with her and am very grateful to her for her help and adviceðâ¤ï¸ Thank you dear Sonia I wish you good luck and a great year ahead. Keep up alll the good work you are doing. - **Veena Gopwani**"},{type:"p",text:"It's a very intense and fulfilling course. You get to discover yourself at a deeper level, which you never knew existed before. Additionally, Sonia explains very complicated topics in an easy way, which helps you apply all the techniques immediately. Furthermore, you get to meet the nicest people ever. I really love it! -** Teodora Lazarova**"},{type:"p",text:"All About You Centre is one of if not the leading mental wellness centre in Hong Kong that has a range of offerings to provide support to people in need when it comes to mental health or someone seeking holistic healing. The range of courses being offered is well suited for the stressful life we are facing in today's world which is more prevalent during Covid times. Their main modality offered, Hynotherapy is something that I connect with and has transformed my life in my self discovery journey. Sonia who is the founder of All About You Centre is a great therapist and educator. - **Mei Yee Lim**"},{type:"p",text:"I am Soniaâs client since 2016 and she has been an amazing hypnotherapist who has transformed my life in many aspect, she has strong technical knowledge, rich experience and also wisdom."},{type:"p",text:"I took the hypnotherapy course in 2022 and it has been another awakening journey, with all the knowledge and wisdom I took, I am able to see myself in living the life I want, understanding what has come to me and be able to give it love and acceptance."},{type:"p",text:"On top of that, Iâm able to meet my fellow wonderful classmate and build meaningful connections.Thank you Sonia and everyone in the All about you Center!"},{type:"p",text:"I have done several courses and workshops at All About You over the years, including hypnotherapy training, inner child work, family constellations, mental mastery for manifestation and more."},{type:"p",text:"Sonia and her centre have been an integral and important part of my life journey, helping me learn, grow and evolve on this journey called life. It's value you can't put a price on. Thank y
601ou so much Sonia and All About You! - **Neetu Sakrani**"},{type:"p",text:'To learn how to heal others, one has to confront and heal his/her own inner issues. This was a most unexpected and beautiful surprise that I received from the course. "Physician heal thyself", as they say.'},{type:"p",text:`I am immensely grateful to the entire wonderful team, teachers, facilitators, mentors and admin personnel at All About You Centre. 602 Ken Yu`},{type:"p",text:"I learn a lot of new ideas and perspective. Things that I thought I know become new and more elaborate. - **Koslowski Wai Chi Wanda **"},{type:"p",text:"The best of Level 1 training was to swire again on the theory of mind and refresh my knowledge. Refreshing is important! This time the knowledge that I previously received sunk in and basic level of the course intensified and gave me more confidence to continue with the trainings. - **Marcia Silva **"},{type:"p",text:"Iâve found Soniaâs courses on hypnotherapy one of the best that Iâve ever done. She has changed peopleâs lives; sheâs changed my life. Iâd always had a fear of the sea and we had done a hypnotherapy session and Iâve now since gone on holiday and I am able to swim in the sea without any fear. Iâve got a lot more inner peace. And now I am beginning to help people again which what I am here for."},{type:"p",text:"I got a lot of benefit from the Level 1 course. I have studied a lot of personal development course including Anthony Robbins, The Landmark Forum and am a certified NLP practitioner. The Level 1 course linked all of these courses together, providing me with valuable insight into the backgrounds where these courses come from. I look forward to becoming a certified Hypnotherapist. Sonia is a great teacher, who is happy to spend time to ensure that all elements of the course are fully understood by her students."},{type:"p",text:"The presentation and explanation of types of problems and techniques of therapy were well structured and explained. The practical hypnotherapy practices as therapist and client were invaluable. A âlearningâ and âhealingâ experience. - **Susan Sims**"},{type:"p",text:"Very easy to understand and very clear to process the whole course. Enjoyful amosphere and very peasceful energy here. Love it, enjoyed it and will be my treasure in my life. - **Madaline Zhang**"},{type:"p",text:"Amazing and life changing experience, learning while resolving issues, love it! - **Amy Chin, HK**"},{type:"p",text:"Hong Kong"},{type:"p",text:"It will solve all your problems and you will know also how to help others. If you feel lost, it will give you direction. It will improve your life, even if you are at 10/10..WOW - **Agnes Chow, HK**"},{type:"p",text:"Hong Kong"},{type:"p",text:"I have been a student in the center. The all hypnotherapist curriculum but also various workshops. Sonia is very knowledgeable when it comes to therapy, understanding of human beeings and also she is an amazing teacher. Always super organized, very clear in her explanations and of great assistance along the way. She is never pushy and let her students evolve and find their own path. It really changed my life and how I look at everything. For Ever Grateful and wish her and her team all the very Best ! - **Isabelle D**"},{type:"p",text:`All about you is a safe place where you feel welcomed and not judged..Here you learn that you are the master of you own life! 603Sonia is an inspiring woman, I am very grateful to have found her. - **Priscila M**`},{type:"p",text:"Just completed Hypnotherapy level 2 with Sonia Samtani. Wow! Itâs an amazing journey. Soniaâs depth of knowledge and wisdom is incredible. The learning I am receiving at All About You Centre extends beyond the basic curriculum as it includes invaluable insights from Soniaâs own experience as a valued hypnotherapist and teacher. - **Lisa G**"},{type:"p",text:"My self-empowerment journey with Sonia and All About You Centre in the past six months has been so profound beyond words. It started with my pure interest in learning how the minds work. The hypnotherapy training courses has allowed me to look inwards in ways that help make sense of who I am and how things work around me in my own lenses."},{type:"p",text:"In the workshops, with Sonia's tremendous knowledge and care, we were guided with tools and transformed perspectives to discover and liberate own true beings. While my journey continues, I trust that my own healing process will be holding extra space of abundance for beyond myself."}
603,{type:"p",text:"I understand now why this centre is named All About You, because it's really all about YOU no matter what might bring you to this centre. I highly recommend this place as it's very professional and has a wide range of workshops and therapies for anyone looking to become a better self (as an individual, parent, partner, etc.) - **Erin Shieh**"}]},index:{title:"Practitioner Trainings in Hypnotherapy",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Practitioner-Trainings-in-All-About-You-Centre.png?lossy=0&strip=1&webp=1",alt:"Practitioner Trainings in All About You Centre"},{type:"h",level:1,text:"Practitioner Trainings"},{type:"p",text:"To find out more about our practitioner trainings, please **click on the relevant topic** below."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/clinical-hypnotherapy-180.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Clinical Hypnotherapy"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/neuro-linguistic-180.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Neuro-Linguistic Programming (NLP)"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/tasso-regression-therapy-180.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Transpersonal Regression Therapy"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/fast-track-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Fast Track Technique"}]},nlp:{title:"NLP Training with Peter Freeth - All About You Centre",blocks:[{type:"h",level:1,text:"NLP Training with Peter Freeth"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/02/NLP-Training.png?lossy=0&strip=1&webp=1",alt:"NLP Training with Peter Freeth"}]}},EE={"awakening-your-psychic-senses":{title:"Awakening your Psychic Senses",blocks:[{type:"h",level:1,text:"Awakening Your Psychic Senses"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Angelina.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Facilitator: Angelina Paraliki 604**Angelina Paraliki is an International Psychic Medium offering professional consultations for life guidance by connecting with the source of universal energy that flows through us all. 605From this unique perspective she is able to help others develop their own gifts, connect with their loved ones in Spirit, or simply gain a deeper understanding and an insight with which to move forward in their lives.`},{type:"p",text:"We all have the innate ability to bring forth our natural aspect of ourselves, that is that we are indeed Spiritual Beings having a physical experience."},{type:"p",text:"In this workshop you will have the opportunity through various guided exercises to experience some of your natural Clair Senses, such as clairvoyance [ clear seeing] Clairempathy [clear emotion} and touch upon the possibility to work with one another to give feedback."},{type:"p",text:"This workshop will give you the opportunity to open the door to the vast world of your psychic senses so that you may trust it as a guidance in your everyday Life if you so wish."},{type:"p",text:"Join me in this exciting journey."},{type:"p",text:`**Friday 606**6th February 2026 6076:30 pm â 8:30 pm HKT 608**Venue: 609**Online ** 610**`},{type:"p",text:"**Fee: HKD800**"},{type:"p",text:"**Go Back to Events Page**"}]},"be-your-own-master-1":{title:"Be Your Own Master Level 1 with Sonia Samtani â Heal, Empower, and Transform",blocks:[{type:"h",level:1,text:"Be Your Own Master Level 1 with Sonia Samtani"},{type:"p",text:"If you are ready to find your own inner compass so that you can experience true contentment instead of the short-term high you get from achievements, then you belong at Be Your Own Master."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 611**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:"The quality of your health, your relationships, and lifestyle are all determined by your beliefs, and you have power over them. Most people are not even aware of the beliefs that are running their lives, thus they give their power away, and end up feeling stressed, anxious or depressed."},{type:"p",text:"Knowing how your mind works, how to reinvent your beliefs, and how to truly process your emotions will give you one of the most profound understandings that can rescript your life forever."}
611,{type:"p",text:"Sonia has empowered thousands of people by working with their subconscious mind to reinterpret their past and put them back in charge of their lives. This workshop combines all her knowledge and experience of being in the field since 2005 of lovingly guiding people to become aware of how they are functioning and getting the opportunity to change their blueprint by accepting all they have judged."},{type:"p",text:"**Level 1: Get Unstuck â identify the patterns that are running you & break free**"},{type:"p",text:"In this foundation course you will get a deep understanding on how you function; we will cover the workings of your mind, what influences your behaviour, how you show up in relationships, and your mind-body connection. This workshop will bring to your awareness many of your actions that are happening on autopilot so that you can identify the patterns that are both supporting and sabotaging you, and make a choice to continue or change. As a result, you will feel more inspired and in charge of your life. (We can pretty much guarantee that by the end of these 3 days you would have understood at least things about yourself that you didnât know before!)"},{type:"p",text:"**Outcomes you will achieve in this course:**"},{type:"p",text:`**Friday â Sunday** 612**30th January â 1st February 2026** 613**10:00 am â 6:00 pm HKT**`},{type:"p",text:`**Venue:** 614All About You Centre`},{type:"p",text:`**Fee: 615**Level 1: HKD5,200 616Refresher: HKD450/day 617All 3 Levels: HKD14,500`},{type:"p",text:"**Go Back to Events Page**"},{type:"p",text:"**Level 2: Redesign Your Identity â create the life you want**"},{type:"p",text:"**Level 3: Surrender to your Purpose â Understand the deeper meaning of your existence**"}]},"be-your-own-master-2":{title:"Be Your Own Master Level 2",blocks:[{type:"h",level:1,text:"Be Your Own Master Level 2 with Sonia Samtani"},{type:"p",text:"If you are ready to find your own inner compass so that you can experience true contentment instead of the short-term high you get from achievements, then you belong at Be Your Own Master."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 618**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:"The quality of your health, your relationships, and lifestyle are all determined by your beliefs, and you have power over them. Most people are not even aware of the beliefs that are running their lives, thus they give their power away, and end up feeling stressed, anxious or depressed."},{type:"p",text:"Knowing how your mind works, how to reinvent your beliefs, and how to truly process your emotions will give you one of the most profound understandings that can rescript your life forever."},{type:"p",text:"Sonia has empowered thousands of people by working with their subconscious mind to reinterpret their past and put them back in charge of their lives. This workshop combines all her knowledge and experience of being in the field since 2005 of lovingly guiding people to become aware of how they are functioning and getting the opportunity to change their blueprint by accepting all they have judged."},{type:"p",text:"If you are ready to find your own inner compass so that you can experience true contentment instead of the short-term high you get from achievements, then you belong at Be Your Own Master."},{type:"p",text:"**Level 1: Get Unstuck** â identify the patterns that are running you & break free"},{type:"p",text:"**Level 2: Redesign Your Identity** â create the life you want"},{type:"p",text:"**Level 3: Surrender to your Purpose** â Understand the deeper meaning of your existence"},{type:"p",text:`**Prerequisite:** 619Be Your Own Master Level 1`},{type:"p",text:"**BE YOUR OWN MASTER Level 2**"},{type:"p",text:"The second level of Be Your Own Master is about identifying and addressing all the patterns that are running your life, right from your childhood until today. During these three days you will understand the influence of your environment in shaping your belief systems, address the younger versions of yourself that are still stuck in events of your past, and get many opportunities to nurture and heal those parts of yourself. You will go deeper into understanding your personal life story, how your family system impacted you, how you created your coping mechanisms, and the emotional charges that are affecting you. There will be many exercises and meditations for you to discover, heal, and move to a place where you are more in charge of your life, and feel free to live responsibly in the present."},{type:"p",text:"**Outcomes you will achieve in this course:**"},{type:"p",text:`**Friday â Sunday** 620**20th â 22nd March 2026** 621**10:00 am â 6:00 pm HKT**`},{type:"p",text:`**Venue:** 622All About You Centre`},{type:"p",text:`**Fee: 623**Level 2: HKD5,200 624Refresher: HKD450/day 625All 3 Levels: HKD14,500`},{type:"p",text:"**Go Back to Events Page**"}]},"be-your-own-master-3":{title:"Be Your Own Master Level 3",blocks:[{type:"h",level:1,text:"Be Your Own Master Level 3 with Sonia Samtani"},{type:"p",text:"If you are ready to find your own inner compass so that you can experience true contentment instead of the short
625-term high you get from achievements, then you belong at Be Your Own Master."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 626**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:"The quality of your health, your relationships, and lifestyle are all determined by your beliefs, and you have power over them. Most people are not even aware of the beliefs that are running their lives, thus they give their power away, and end up feeling stressed, anxious or depressed."},{type:"p",text:"Knowing how your mind works, how to reinvent your beliefs, and how to truly process your emotions will give you one of the most profound understandings that can rescript your life forever."},{type:"p",text:"Sonia has empowered thousands of people by working with their subconscious mind to reinterpret their past and put them back in charge of their lives. This workshop combines all her knowledge and experience of being in the field since 2005 of lovingly guiding people to become aware of how they are functioning and getting the opportunity to change their blueprint by accepting all they have judged."},{type:"p",text:`**Prerequisite:** 627Be Your Own Master Level 2`},{type:"p",text:"**BE YOUR OWN MASTER Level 3**"},{type:"p",text:"The final level of the Be Your Own Master curriculum is about putting you in vibrational alignment with your purpose. This is the ultimate mastery and touches upon spiritual and metaphysical concepts so you discover who you are, why you are here, what your unique talent is, and what are the lessons you are here to learn. Level 3 is for people who have done a fair amount of self-discovery, and are ready to answer the deepest questions about their life. You will learn about different dimensions of consciousness, look at the bigger picture of how life works, recognize how your ancestral lineage is influencing you, and answer the most fundamental questions you have about your life. You will experience many deep meditations where you will travel to past lives and different states of consciousness where you can see life from a different perspective. We hope that after this level, you would have experienced a profound sense of self, gained clarity, and that life will never be the same again!"},{type:"p",text:"**Outcomes you will achieve in this course:**"},{type:"p",text:`**Friday â Sunday** 628**12th â 14th June 2026** 629**10:00 am â 6:00 pm HKT**`},{type:"p",text:`**Venue:** 630All About You Centre`},{type:"p",text:`**Fee: 631**Level 3: HKD5,200 632Refresher: HKD450/day 633All 3 Levels: HKD14,500`},{type:"p",text:"**Go Back to Events Page**"}]},"connect-with-the-tarot":{title:"Connect with the Tarot",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/personal-development-workshops-hong-kong.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"âThe truest Tarot is the Tarot you grow within yourself through practice and meditation.â"},{type:"h",level:1,text:"Connect with the Tarot:"},{type:"h",level:3,text:`Learn to Read Tarot 634Systematically and Intuitively 635with Qabalistic Philosophy`},{type:"h",level:4,text:"Are you intrigued, fascinated, or drawn to the Tarot? Are you a beginner, intermediate or even a seasoned reader looking to learn more and delve deeper? Do you wish to connect to your Tarot deck in a way that brings Wisdom and Spirit into your practice? Do you wish to learn about the Qabalistic and Magickal philosophy behind modern Tarot? *These courses are for anyone who answered Yes.*"},{type:"p",text:"**We offer 4 Levels for our Connect to the Tarot Workshop.**"},{type:"h",level:3,text:"**Course Descriptions**"},{type:"h",level:2,text:"Connect to the Tarot-Level 1 (The Major Arcana)"},{type:"p",text:"This course is designed to help you build a powerful connection to your Tarot deck. The Tarot is much more than a tool for telling fortunes. The Tarot is also a book of wisdom and a spiritual path that opens the door to enlightening magical experiences. In the first level, you will learn about the map of consciousness called the Qabalistic Tree of Life, and you will learn how to use the Tarot to explore it. If you continue to practice this approach to Tarot, you will become a skillful, informed, intuitive reader with access to a holistic life philosophy. Level one focuses on obtaining a solid foundation in the Major Arcana â the twenty-two most important Tarot cards in the deck."},{type:"p",text:"**Students will learn:**"},{type:"p",text:"**Students will experience:**"},{type:"p",text:"**What students need (or might want) for the course:**"},{type:"h",level:2,text:"Connect to the Tarot-Level 2 (The Minor Arcana)"},{type:"p",text:"If the Major Arcana are the grand storylines of the Tarot, the Minor Arcana are the individual scenes, and the Court cards are the characters. Level two builds upon level one, but focuses on gaining a solid foundation in the Minor arcana and Courts â the persons and events. We will learn how the minor arcana connect to the astrological signs of the Zodiac, and we will learn how to visualize the entire Tarot as a âmemory palaceâ. When this class is complete, students will be able to connect the the three parts of the deck together in both meditation and in readings, and be reading to begin daily practice toward Tarot mastery."},{type:"p",text:"**Students will learn:**"},{type:"p",text:"**Students will experience:**"},{type:"p",text:"**What students need (or might want) for the course:**"},{type:"h",level:2,text:"Connect to the Tarot-Level 3 (Make Your Own Major Arcana)"},{type:"p",text:"This course is designed to creatively deepen the connection to your Tarot Deck that you forged in Levels 1-2. Since you have already taken the time to get familiar with each of the energies in the deck, now connect further by actually making a set of twenty two Major Cards. Using guided meditation and a wide variety of example decks, we will produce our own âMajorsâ decks drawing directly from our unconscious connection to the cards. We will learn about the Hebrew Letters along the way, and the symbols they connect with. Students who take this course will be rewarded with a powerful set of personal tools for exploring the Qabalistic Tarot System for both readings and personal transformation."},{type:"p",text:"**Students will learn:**"},{type:"p",text:"**Students will experience:**"},{type:"p",text:"**What students need (or might want) for the course:**"}
635,{type:"h",level:2,text:"Connect to the Tarot-Level 4 (Make Your Own Minor Arcana)"},{type:"p",text:"This course is designed to bring the the process of connecting to the Tarot full circle by completing the personalized Tarot Deck we started in Level 3. In this final class will make a deck of 40 Minor Arcana and 16 Courts. Students will be exposed to a wide variety of decks, and engage with them both meditatively and artistically. By the end of this class they will have a complete deck of 78 personalized cards, a comprehensive understanding of the structure of the Tarot andwill be fully empowered to learn to use any Tarot Deck for personal transformation or reading. Very few practioners have a complete personalized set of cards, so by completing this full course â regardless of how long you have studied Tarot â you will have a major advantage in your personal Tarot journey, and you will be fully equipped to undertake the adventure of practice that ultimately leads to mastery."},{type:"p",text:"**Students will Learn:**"},{type:"p",text:"**Students will experience:**"},{type:"p",text:"**What students need (or might want) for the course:**"},{type:"h",level:2,text:"Prices"},{type:"p",text:"**Levels 1 to 4:** HKD12,500"},{type:"p",text:`**Level 1: 2-Day Workshop 636**8 hours`},{type:"p",text:`**Level 2: 2-Day Workshop 637**8 hours`},{type:"p",text:`**Level 3: 2-Day Workshop 638**8 hours`},{type:"p",text:`**Level 4: 2-Day Workshop 639**8 hours`},{type:"p",text:`**Per Level Fee:** 640HKD3,550 / HKD400 per day (For refreshers â please remember to bring your Tarot Cards)`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/03/Dr-Peter-Duchemin-1.png?lossy=0&strip=1&webp=1",alt:""}]},"family-systemic-constellation":{title:"Family Systemic Constellation - All About You Centre",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/personal-development-workshops-hong-kong.jpg?lossy=0&strip=1&webp=1",alt:"Personal Development Workshops"},{type:"h",level:1,text:"Family Constellation"},{type:"p",text:"A family constellation (also known as systemic constellation) is an experiential process that aims to release and resolve profound issues within and between people. The constellation creates a representation of a personâs energy field that allows us to explore interpersonal situations and complexities more fully. The process provides an insight into the hidden dynamics in a family, and is used to gain an understanding and provide healing without the physical presence of every family member."},{type:"h",level:3,text:"How it Works:"},{type:"p",text:"Before starting each constellation, the client discusses their objective/ issue with the facilitator."},{type:"p",text:"With everyone seated in a circle, the client is asked to intuitively select representatives that are associated with their issue and place them within the circle. The client then sits back and watches the interplay of all the participants, revealing the story of their life and indications of where the issues have stemmed from. The facilitator guides the process for all the participants, and points the constellation towards a resolution."},{type:"h",level:3,text:"If You Have:"},{type:"h",level:3,text:"Benefits:"},{type:"p",text:`**Duration:** 641Approximately 90 minutes`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/Sonia-for-website-180x180.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Fee: 642For the client: 643$2,500.00 HKD (if the client arranges for a minimum of 5 volunteers)
644$2,750.00 HKD (if the client arranges a minimum of 2 volunteers) 645$3,000.00 HKD (if AAY is to arrange for a minimum of  5 volunteers)**`},{type:"p",text:"Book with Sonia"},{type:"p",text:"My first contact with the Centre was almost 5 years ago when searching for Systemic Family Constellation, an effective and highly spiritual therapy. Sonia was the only person in HK conducting the therapy in the standards I had sought in Europe. Since then I got to experience hypnotherapy and became fascinated by the teachings of Integrated Hypnosis. âAll About Youâ has been empowering, life changing and great reminder that my life is really about the choices I make."},{type:"p",text:"The effectiveness of how directly its (Family & Systemic Constelaltion) work goes straight to the issues weâre all addressing went very deep. Even when we havenât voiced a particular issue, Sonia holds a very clear, strong, safe space and has a really succinct way of connecting what is evolving and moving with the emotions and issues as they are arising."},{type:"p",text:"Family & Systemic Constellation"}]},"fast-track-technique":{title:"Fast Track Technique in Hong Kong",blocks:[{type:"h",level:1,text:"Fast Track Technique"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/05/Jaz-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Jaz Goven 646**Jaz has spent more than 20 years dedicated to guiding people on transformative journeys. Her own path toward healing was deeply personal, driving her to explore numerous modalities. Eventually, this journey culminated in the creation of Fast Track Technique, a comprehensive system that integrates the most effective techniques she has encountered.`},{type:"p",text:"Fast Track Technique is the culmination of years of experience, exploration and expertise in holistic wellbeing practices. The result is a unique system which combines the most efficient modes of therapy with an optimum âend goalâ focus. This targeted approach meets you exactly where you are and your specific needs and provides the most effective and direct access to a balanced outcome."},{type:"h",level:3,text:"Our Individual Session:"},{type:"p",text:"A Fast Track Technique session begins by honing in on what you wish to achieve in life â right now. By focusing on the positive outcome as opposed to negative issues, there is no need for a client to go into painful or upsetting situations which created the imbalance. Once the positive âbig pictureâ or âdesired outcomeâ is defined, Fast Track Technique then brings this vision into reality."},{type:"p",text:"Fast Track Technique connects the super conscious, the subconscious and conscious minds to open up and align with each other, releasing the past and allowing what you consciously want and deserve. It uses muscle testing and specially designed cards to communicate with the subconscious to locate the root cause of an issue plus other associated aspects; once these aspects are identified, it takes just moments to remove the associated blockages whereupon change starts to happen easily and naturally."},{type:"p",text:"By recognising and confirming what you would like to be experiencing in life, as well as removing negative emotions, programming, responses and beliefs which do not support your new life picture, Fast Track Technique provides immediate access to the life you have always dreamed of. To ensure that clients hold the keys to their own transformational journey and can continue to benefit from their session, clients are taught how to continue reprogramming their subconscious at home which put you in the driverâs seat of your life and what you want."},{type:"p",text:`**Fee: 647**In Person: HKD1,750 648Online: HKD1,500 649******Duration: **90 minutes 650**Venue: 651**Online via Zoom`}]},"healing-your-inner-child":{title:"Hypnotherapy Hong Kong, Become a Therapist, Certified Hypnotherapist",blocks:[{type:"h",level:1,text:"Healing Your Inner Child with Sonia Samtani"},{type:"p",text:"Healing the younger version of yourself who is still stuck with the pain of the past."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/07/Sonia-soft-headshot.png?lossy=0&
651strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 652**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:"Inner child healing is one of the most powerful gifts that you can give yourself. All the triggers, stress and traumas that are present right now are the results of an unhealed past. Healing your inner-child simply means healing that younger version of yourself who is still stuck with the pain of the past and hasnât been able move past it. Once you have healed that part of you, you will feel more complete, in control and able to face current situations as the grounded and mature adult of today."},{type:"p",text:"**Healing Your Inner Child Basic Course**"},{type:"p",text:"In this workshop participants will:"},{type:"p",text:`**Healing Your Inner Child Advanced Course 653**`},{type:"p",text:"This workshop brings you deeper into the techniques to continue loving, healing and accepting your inner child. We will examine deeper into the birthing experience and notice conclusions you have made that are unconsciously running your life. By the end of the day, you will have an experience of parenting your inner child and bringing him/her into this world with acceptance, and freeing yourself from limiting conclusions and coping mechanisms."},{type:"p",text:"**Participation requirements for Advanced course:** Completion of Healing Your Inner Child Basic Course or completion of Levels 1, 2 & 3 of Hypnotherapy Training"},{type:"p",text:"** **"},{type:"p",text:`**Basic Course: 654Saturday** 65518th April 2026 65610:00 am â 2:00 pm 657**Advanced Course:** 658**Saturday** 6594th July 2026 66010:00 am â 2:00 pm 661**Venue: 662**All About You Centre`},{type:"p",text:`**Fee 663Basic Course:** HKD1,500 664**Advanced Course:** HKD1,500`},{type:"p",text:"**Go Back to Events Page**"}]},index:{title:"Personal Development Workshops in Hong Kong",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Personal-Development-Workshops-at-All-About-You-Centre.png?lossy=0&strip=1&webp=1",alt:"Personal Development Workshops at All About You Centre"},{type:"h",level:1,text:"Workshops"},{type:"p",text:"To find out more about our workshops, please **click on the relevant topic** below."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Be-Your-Own-Master-Workshop.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Be Your Own Master"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Healing-Your-Inner-Child.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Healing Your Inner Child"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Understanding-Your-Chakras.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Understanding Your Chakras"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Mental-Mastery-for-Manifestation.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Connecting with your Guides"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Metaphors-of-the-Mind-Online-Workshop.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"FTT Expansion Circle"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Balancing-Your-Inner-Yin-Yang-Online-Workshop.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Balancing Your Inner Yin & Yang"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Effective-Public-Speaking.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Effective Public Speaking"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Conscious-Parenting.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Conscious Parenting"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/Family-Constellation.png?lossy=0&
664strip=1&webp=1",alt:""},{type:"h",level:4,text:"Family Constellation"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/01/3.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"Romantic Relationships"},{type:"p",text:"**More workshops of visiting practitioners are available during their visit. Please view our events calendar for details.**"},{type:"h",level:4,text:"Would you like to give feedback after your workshop?"},{type:"p",text:"If so, please click on the button below and complete our feedback form. Thank you."}]}},AE={about:SE,"alternative-healing":{"akashic-reading":{title:"Akashic Readings in Hong Kong",blocks:[{type:"h",level:1,text:"Akashic Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Navniet-Saine-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Navniet Saine 665**Navniet creates a safe space and guides individuals on sacred healing practices like Akashic recordings, Bazi Readings and Sacred Doorways to help you shed patterns, reclaim your essence and reconnecting within to feel more present and balanced.`},{type:"p",text:"In the Akashic records session, we step into the quantum field, where we access your records, soul contracts across lifetimes to uncover the root of whatâs holding you back. Whether the blocks are karmic, ancestral, or present-day, we receive guidance from the masters to clear energetic imprints, to facilitate healing and realign you with your soulâs path."},{type:"p",text:"This work offers the opportunity to break patterns, dissolve emotional residue, and reconnect with your deeper purpose. Itâs not just insightâitâs energetic recalibration."},{type:"p",text:"**What a Session Looks Like**"},{type:"p",text:"We begin by identifying the challenges youâre facing and what you hope to resolve. The session starts with grounding and nervous system regulation, followed by opening the field to receive guidance from the masters. Using doorway points on the hands, we gently clear trauma imprints and energetic blocks stored in the body. Itâs a process of intuitive discovery and deep energetic clearing."},{type:"p",text:"**What to Expect**"},{type:"p",text:"Clients often experience subtle shifts in energy and perspective in the days and weeks following the session. These may show up as changes in relationships, environment, or emotional clarityâsigns that healing is unfolding. The work continues beyond the session, creating space for transformation, resolution, and realignment."},{type:"p",text:"**Fee:**"},{type:"p",text:"Single Session: HKD1,500"},{type:"p",text:"3 Sessions Package: HKD3,750"},{type:"p",text:"**Duration:** 60 minutes"}]},"bazi-readings":{title:"Bazi Readings in Hong Kong",blocks:[{type:"h",level:1,text:"Bazi Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Navniet-Saine-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Navniet Saine 666**Navniet creates a safe space and guides individuals on sacred healing practices like Akashic recordings, Bazi Readings and Sacred Doorways to help you shed patterns, reclaim your essence and reconnecting within to feel more present and balanced.`},{type:"p",text:"Bazi reading, helps you decode the energetic map of your birth chart using the Four Pillars of Destiny. We look at your elemental makeupâWood, Fire, Earth, Metal, and Waterâto understand your strengths, challenges, and life cycles."},{type:"p",text:"Youâll gain clarity on areas like career direction, relationship dynamics, timing for key decisions, and how to align with your natural flow."},{type:"p",text:`Itâs a practical, insightful session that gives you real tools to navigate life with more ease and awareness. 667intentions.`},{type:"p",text:"**What a Session Looks Like**"},{type:"p",text:"In a session, we examine your chart pillar by pillar. Each pillar reveals how elemental energies interact and where imbalances or opportunities may lie. Together, we explore how these dynamics show up in your personal and professional life, and how cycles of time influence your decisions. The process is structured, analytical, and focused on giving you practical insights you can apply immediately."},{type:"p",text:"Clients are also invited to bring up to three specific questionsâthese are woven into the reading so the guidance is directly linked to what matters most to you."},{type:"p",text:"**What to Expect**"},{type:"p",text:"* Clarity on strengths and challenges"},{type:"p",text:"* Timing insights: Guidance on when is the best time to move forward, pause, or recalibrate"},{type:"p",text:"* Practical direction: and remedies for career, relationships, health, and personal growth."},{type:"p",text:"* Personalized answers: Responses to up to three specific questions, integrated into the reading."},{type:"p",text:"* Deeper awareness: An expanded understanding of how elemental energies shape your decisions and experiences."},{type:"p",text:"Bazi is designed to give you practical guidance you can apply right away, while also opening space for ongoing selfâawareness that continues to unfold over time."},{type:"p",text:`**Fee:** HKD2,000 668**Duration:** 75 minutes`}]},"chakra-healing":{title:"Chakra Healing in Hong Kong",blocks:[{type:"h",level:1,text:"**Chakra Healing**"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Navniet-Saine-2.png?lossy=0&
668strip=1&webp=1",alt:""},{type:"p",text:`**Navniet Saine 669 670**Navniet creates a safe space and guides individuals on sacred healing practices like Akashic recordings, Bazi Readings and Sacred Doorways to help you shed patterns, reclaim your essence and reconnecting within to feel more present and balanced.`},{type:"p",text:"Chakra healing combines the gentle flow of Reiki with the stable, amplifying resonance of natural crystals. This practice helps identify and clear energetic blocksâespecially within the chakrasâfacilitating healing on physical, emotional, and spiritual levels. Itâs a deeply restorative experience that brings the body into a state of balance, serenity, and energetic alignment."},{type:"p",text:"Whether youâre feeling stuck, overwhelmed, or simply seeking clarity, this session offers a powerful resetâhelping you release what no longer serves and reconnect with your inner calm."},{type:"p",text:"**What a Session Looks Like**"},{type:"p",text:"Clients lie down comfortably on a healing table as we begin the session. We may incorporate essential oil blends to empower and activate specific chakras. Crystals are placed intuitively to align the bodyâs energy centers and dissolve blockages. The session lasts about 75 to 90 minutes and is deeply relaxingâoften described as meditative, grounding, and energetically cleansing."},{type:"p",text:"**What to Expect**"},{type:"p",text:"By the end of the session, clients often feel lighter, clearer, and deeply grounded. The mind feels serene, emotionally calm. This is excellent to detox after a stressful work week. With regular sessions, this healing builds progressivelyâsupporting long-term clarity, resilience, and inner peace."},{type:"p",text:`**Fee: **HKD1,500 671 672**Duration:** 75 minutes`}]},"crystal-healing":{title:"Crystal Healing1 - All About You Centre",blocks:[{type:"h",level:2,text:"**Crystal Healing: Energetic Reset for Body, Mind & Spirit**"},{type:"p",text:"Crystal healing combines the gentle flow of Reiki with the stable, amplifying resonance of natural crystals. This practice helps identify and clear energetic blocksâespecially within the chakrasâfacilitating healing on physical, emotional, and spiritual levels. Itâs a deeply restorative experience that brings the body into a state of balance, serenity, and energetic alignment."},{type:"p",text:"Whether youâre feeling stuck, overwhelmed, or simply seeking clarity, this session offers a powerful resetâhelping you release what no longer serves and reconnect with your inner calm."},{type:"h",level:1,text:"What a Session Looks Like"},{type:"p",text:"Clients lie down comfortably on a healing table as we begin the session. We may incorporate essential oil blends to empower and activate specific chakras. Crystals are placed intuitively to align the bodyâs energy centers and dissolve blockages. The session lasts about 75 to 90 minutes and is deeply relaxingâoften described as meditative, grounding, and energetically cleansing."},{type:"h",level:1,text:"What to Expect"},{type:"p",text:"By the end of the session, clients often feel lighter, clearer, and deeply grounded. The mind feels serene, emotionally calm. This is excellent to detox after a stressful work week. With regular sessions, this healing builds progressivelyâsupporting long-term clarity, resilience, and inner peace."},{type:"h",level:2,text:`**About the Facilitator 673**`},{type:"p",text:"****"},{type:"p",text:"****"},{type:"h",level:1,text:"**NAVNIET SAINE**"},{type:"p",text:"Navniet creates a safe space and guides individuals on sacred healing practices like Akashic recordings,"},{type:"p",text:"Bazi Readings and Sacred Doorways to help you shed patterns, reclaim your essence and reconnecting within to feel more present and balanced."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/navniet.png?lossy=0&strip=1&webp=1",alt:""},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/Time.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"75 minutes"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/dollar-1.png?lossy=0&
673strip=1&webp=1",alt:""},{type:"h",level:4,text:"hkd1,500"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/Line.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Here is what our clients have to say about this Workshop"},{type:"p",text:`Holistic healing approach released stuck energy in my body, 674allowing me to run again!`},{type:"h",level:1,text:"Want to see more success stories?"},{type:"h",level:2,text:"**Are you ready for ***your transformation?*"},{type:"p",text:"****"},{type:"p",text:"****"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/01.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"PRIVATE SESSIONS"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/f.png?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"PERSONAL DEVELOPMENT WORKSHOPS"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/03.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:4,text:"PRACTITIONER TRAININGS"},{type:"h",level:2,text:"*Start today, and manifest your new reality!*"},{type:"p",text:"****"},{type:"p",text:"****"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2026/03/b1.png?lossy=0&strip=1&webp=1",alt:""}]},"family-systemic-constellation":{title:"Family Systemic Constellation (Final) - All About You Centre",blocks:[{type:"h",level:1,text:"Family Constellation"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Sonia Samtani 675**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"p",text:"A family constellation (also known as systemic constellation) is an experiential process that aims to release and resolve profound issues within and between people. The constellation creates a representation of a personâs energy field that allows us to explore interpersonal situations and complexities more fully. The process provides an insight into the hidden dynamics in a family, and is used to gain an understanding and provide healing without the physical presence of every family member."},{type:"p",text:"**How it works:**"},{type:"p",text:"Before starting each constellation, the client discusses their objective/ issue with the facilitator."},{type:"p",text:"With everyone seated in a circle, the client is asked to intuitively select representatives that are associated with their issue and place them within the circle. The client then sits back and watches the interplay of all the participants, revealing the story of their life and indications of where the issues have stemmed from. The facilitator guides the process for all the participants, and points the constellation towards a resolution."},{type:"p",text:"**If you have:**"},{type:"p",text:"Book Now"},{type:"p",text:`**Fee:** 676For the client: 677HKD3,500 (if the client arranges for a minimum of 6 participants) 678HKD3,600 (if the client arranges a minimum of 3 participants) 679HKD4,000 (if centre is to arrange for a minimum of 6 participants) 680**Duration:** 6812 hours 682**Venue:** 683All About You Centre`}]},"fast-track-technique":{title:"Fast Track Technique in Hong Kong",blocks:[{type:"h",level:1,text:"Fast Track Technique"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/05/Jaz-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Jaz Goven 684**Jaz has spent more than 20 years dedicated to guiding people on transformative journeys. Her own path toward healing was deeply personal, driving her to explore numerous modalities. Eventually, this journey culminated in the creation of Fast Track Technique, a comprehensive system that integrates the most effective techniques she has encountered.`},{type:"p",text:"Fast Track Technique is the culmination of years of experience, exploration and expertise in holistic wellbeing practices. The result is a unique system which combines the most efficient modes of therapy with an optimum âend goalâ focus. This targeted approach meets you exactly where you are and your specific needs and provides the most effective and direct access to a balanced outcome."},{type:"h",level:3,text:"Our Individual Session:"},{type:"p",text:"A Fast Track Technique session begins by honing in on what you wish to achieve in life â right now. By focusing on the positive outcome as opposed to negative issues, there is no need for a client to go into painful or upsetting situations which created the imbalance. Once the positive âbig pictureâ or âdesired outcomeâ is defined, Fast Track Technique then brings this vision into reality."},{type:"p",text:"Fast Track Technique connects the super conscious, the subconscious and conscious minds to open up and align with each other, releasing the past and allowing what you consciously want and deserve. It uses muscle testing and specially designed cards to communicate with the subconscious to locate the root cause of an issue plus other associated aspects; once these aspects are identified, it takes just moments to remove the associated blockages whereupon change starts to happen easily and naturally."},{type:"p",text:"By recognising and confirming what you would like to be experiencing in life, as well as removing negative emotions, programming, responses and beliefs which do not support your new life picture, Fast Track Technique provides immediate access to the life you have always dreamed of. To ensure that clients hold the keys to their own transformational journey and can continue to benefit from their session, clients are taught how to continue reprogramming their subconscious at home which put you in the driverâs seat of your life and what you want."},{type:"p",text:`**Fee: 685**In Person: HKD1,750 686Online: HKD1,500 687******Duration: **90 minutes 688**Venue: 689**Online via Zoom`}]},index:{title:"Alternative Healing in Hong Kong",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/All-About-You-Centre-Alternative-Healing.png?lossy=0&
689strip=1&webp=1",alt:"Alternative Healing Banner"},{type:"h",level:1,text:"Alternative Healing"},{type:"p",text:"At All About You Centre, we offer a holistic wellness experience that blends a wide range of alternative healing modalities to address your physical, mental, emotional, and spiritual needs under one roof. Recognized by Liv Magazine as the âBest Alternative Health Centreâ, we customize bespoke Holistic Healing Packages that integrate mindfulness, energy therapies, neurolinguistics and more with personalized coaching and guidance to help you reprogram limiting thought patterns, release emotional blocks, restore energetic balance and provide you with clarity and guidance."},{type:"p",text:"Our mission is to enable individuals to embrace their true selves, fostering a shift from judgment to acceptance. Each of our services is intricately designed to promote self-discovery, healing, and personal growth, aligning perfectly with this mission."},{type:"p",text:"Explore our range of services:"},{type:"p",text:`1. **Neuro-linguistic Coaching:** Techniques to help reprogram negative thought patterns, enhancing personal effectiveness and self-acceptance. 6902. **Tarot and Psychic Readings:** Insightful sessions that provide clarity and guidance, helping individuals understand their lifeâs path and embrace their choices. 6913. **Trauma Release Exercises (TRE®):** A body-based approach to release tension and trauma stored in the muscles, facilitating emotional healing and resilience. 6924. **Fast Track Technique:** A rapid method for releasing emotional blocks and negative beliefs, empowering individuals to move forward with confidence. 6935. **Chakra Readings:** Assessments to identify energy imbalances, promoting holistic well-being and a deeper connection to oneself. 6946. **Pain Release with Spinal Energetics:** Techniques designed to alleviate physical pain and restore energetic balance, supporting overall health and wellness. 6957. **Akashic Healing:** We step into the quantum field, where we access your records, soul contracts across lifetimes to uncover the root of whatâs holding you back. 6968. **Bazi Reading:** Bazi is an ancient Chinese system that uses the Four Pillars of DestinyâYear, Month, Day, and Hourâto map the energetic influences present at your birth. 6979. **Chakra Healing: **Combines the gentle flow of Reiki with the stable, amplifying resonance of natural crystals. 69810. **Sacred Doorways:** We examine your chart pillar by pillar. Each pillar reveals how elemental energies interact and where imbalances or opportunities may lie. 69911. **Trauma-Informed Somatic Counselling:** These coaching sessions offer integrative support for your overall well-being through a trauma-informed, body-centered approach grounded in somatic and transpersonal psychology. 70012. **Transpersonal Psychology Coaching:** A transpersonal psychology coaching session is highly individualized and generally unfolds as a collaborative exploration of your conscious goals and deeper, spiritual dimensions of experience.`},{type:"p",text:"The benefits of alternative healing are profound, offering a pathway to greater self-awareness, emotional resilience, and holistic well-being. Join us at All About You Centre and embark on a transformative journey towards healing and self-discovery, where you can truly empower yourself and shift from judgment to acceptance."},{type:"h",level:2,text:"Explore our range of modalities"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/private-sessions-all-about-you-centre.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Hypnotherapy"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Practitioners-Training-all-about-you-centre.jpg?lossy=0&strip=1&webp=1",alt:"Practitioners Training"},{type:"h",level:3,text:"NLP Coaching"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Fast-Track-Technique.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Fast Track Technique"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Akashic-Reading.jpg?lossy=0&
700strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Akashic Reading"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Pain-Relief-and-Trauma-Release.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:`Pain Relief 701and Trauma Release`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Psychic-and-Spiritual-Readings.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Psychic and Spiritual Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Tarot-Readings.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Tarot Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Family-Systemic-Constellations.jpg?lossy=0&strip=1&webp=1",alt:"Private Sessions"},{type:"h",level:3,text:"Family Systemic Constellations"},{type:"p",text:"Let us create your bespoke package"}]},"nlp-coaching":{title:"Private NLP Coaching",blocks:[{type:"h",level:1,text:"Neuro-Linguistic Programming Coaching"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/07/Sonia-soft-headshot-1.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Sonia Samtani 702**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2018/11/Peter-Freeth.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Peter Freeth 703**As a NLP trainer, Peter has 25 years experience of learning, innovating and training NLP. He is a regular speaker at the International NLP Conference and is a full member of the NLP Leadership Summit, a group comprising the worldâs most experienced NLP trainers. Peter has developed many new NLP applications and techniques which are now used by trainers and coaches all over the world, and he is recognised most for making NLP easy, accessible and even fun.`},{type:"p",text:"Our mind is running programs that weâve developed through life that are responsible for how we feel, what we choose to do, and what is available to us in life. These patterns create our subjective reality and donât always update as our lives change, so we often find that although we have achieved success, our perception doesnât allow us to actually *feel* successful"},{type:"p",text:"Neuro-Linguistic Programming (NLP) is about learning the language of your mind and discovering the components that have created your subjective experience of life, so that you can shift it to create something more empowering. By understanding how you have stored information, you will be able to understand programs that are influencing your behavior and therefore been the root cause of your issues."},{type:"p",text:"NLP is a highly effective system that changes patterns of emotional and mental behavior, enabling you to live a happier, successful life.  By reprogramming the way you think, you will not only feel different but you will also see a change in the way people respond to you."},{type:"p",text:"Whether youâre looking to transform in your personal or professional life, NLP is known for making it possible to efficiently learn how to think, behave and communicate in order to achieve specific goals."},{type:"p",text:"Our NLP Private sessions are specifically tailored to your objectives, needs and personality. With a highly skilled NLP Master Practitioner, you will be able to identify the underlying repetitive patterns that keep playing subconsciously that cause your issues. Through effective NLP techniques you will shift your perception of reality. The intentions of these sessions are to help you to 1) Understand your existing programming and how itâs blocking you and 2) Move toward to a different path where you can design the future you want."},{type:"p",text:"Within a single NLP coaching session, you will be able to identify things about yourself that you may
703not consciously know, and experience noticeable shifts."},{type:"h",level:3,text:"What an NLP Session looks like:"},{type:"h",level:3,text:"What NLP can help with:"},{type:"p",text:"NLP is useful to tackle goals and objectives that youâve had for a long time, and havenât been able to feel like youâve accomplished. Here is a list of common objectives that clients come with:"},{type:"p",text:"Once we identify something you want within your control, we will create new pathways to make the effective and lasting changes that bring you closer to what you desire."},{type:"p",text:"Ultimately, you will feel positive, capable of achieving your goals and of course, you will feel free from what has been holding you back. If youâre ready to make a change and open to the techniques, you will see results from a single session, and reap the benefits of a new perception created by NLP Coaching.  Please see the information of our facilitator below and let us know if you would like to book a session."},{type:"p",text:`**Duration: **60-90 minutes 704**Venue: 705**In Person at All About You Centre or Online via Zoom`}]},"psychic-readings":{title:"Psychic Readings in Hong Kong",blocks:[{type:"h",level:1,text:"Psychic and Spiritual Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/06/Angelina.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Angelina Paraliki 706**Angelina Paraliki is an International Psychic Medium offering professional consultations for life guidance by connecting with the source of universal energy that flows through us all. 707From this unique perspective she is able to help others develop their own gifts, connect with their loved ones in Spirit, or simply gain a deeper understanding and an insight with which to move forward in their lives.`},{type:"p",text:"Angelina Paraliki has been aware of the Spirit world around her since she was a little girl."},{type:"p",text:"Coming from a Greek background with connections also to Egypt, a land that would later on in her life lead her to an Expansive Consciousness that has been working with her for many years. Being led to the Temple of Dendera in Egypt in 2012 anchored the Collectiveness that has now become almost like second nature to her where Spiritual information and wisdom are working as a flow as she connects to her clients."},{type:"p",text:"Spiritual and practical guidance is given through her own team of guides and the clients."},{type:"p",text:"From this unique perspective she is able to help others develop their own gifts, connect with their loved ones in Spirit if appropriate, or simply to gain a deeper understanding and insight into areas in the clientâs life."},{type:"p",text:"This could be clarity in personal relationships, career direction or personal growth."},{type:"p",text:"The readings will support you and navigate you through the challenges in your life."},{type:"p",text:"Having retired from a successful career as an art lecturer and examiner, she has chosen to focus on her soulâs work and guide others to walk their own Path of self transformation and development."},{type:"p",text:`**Fee: **HKD1,500 708**Duration: **60 minutes 709**Venue:** Online via Zoom`}]},reiki:{title:"Page not found - All About You Centre",blocks:[{type:"h",level:1,text:"No Results Found"},{type:"p",text:"The page you requested could not be found. Try refining your search, or use the navigation above to locate the post."}]},"sacred-doorways":{title:"Sacred Doorways in Hong Kong",blocks:[{type:"h",level:1,text:"Sacred Doorways"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Navniet-Saine-2.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Navniet Saine 710**Navniet creates a safe space and guides individuals on sacred healing practices like Akashic recordings, Bazi Readings and Sacred Doorways to help you shed patterns, reclaim your essence and reconnecting within to feel more present and balanced.`},{type:"p",text:"This is not a healing practice that finds everyoneâit arrives when the soul is ready. Sacred Doorways is a gentle yet profound hands-on healing rooted in the ancient Myrrophore lineage of Mary Magdalene, Isis, and Sophia. Few know of this work, and fewer still are called to receive it. To be guided by the masters of the sacred oils is a blessingâone that opens the body, mind and s
710oul to wisdom, release, and transformation."},{type:"p",text:"We use high-vibrational sacred oils and gentle touch to access energetic doorways in the body. These oils are not just aromaticâthey are carriers of ancient codes, designed to release stored stress and trauma across lifetimes and awaken the wisdom needed in the present"},{type:"p",text:"**What a Session Looks Like**"},{type:"p",text:"The client is gently draped and held in a sacred space. We apply the oils to specific doorway points on the body, allowing the energy to move and messages to surface. This healing is guided, by the lineage itself. The entire process feels like a prayer in motionâquiet, reverent, and deeply restorative."},{type:"p",text:"**What to Expect**"},{type:"p",text:"This is deeply transformative work. Clients may experience emotional release, energetic shifts, or subtle changes in their dreams, relationships, or environment. Insights may arrive through synchronicities or inner knowing. There is support throughout, and the process is always explained beforehand to ensure comfort and clarity."},{type:"p",text:"This healing unfolds over timeâcreating space for profound inner and outer shifts. Itâs not just a session. Itâs an initiation and I look forward to starting this journey with you."},{type:"p",text:`**Fee:** HKD2,100 711**Duration:** 90 minutes`}]},"tarot-readings":{title:"Tarot Readings in Hong Kong",blocks:[{type:"h",level:1,text:"Tarot Readings"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/10/emily.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Emily Richmond 712**With over 20 years of experience, Emily is a gifted intuitive divination specialist who provides enlightening tarot readings. Her signature straight-forward yet heart-centered style will reveal your path ahead in an empowering way. Whether you seek guidance around careers, relationships, or just need a nudge from the universe, Emilyâs readings will illuminate your way forward.`},{type:"p",text:"A tarot card reader connects to the higher self and the guides as he or she interprets the tarot cards. The cards show a potential future based on your current actions and uses the Tarot to explore any questions you may have."},{type:"p",text:"A session can be used to provide clarification, suggest, direct or offer possible solutions. The cards are not used as a doctrine of truth, but rather a tool that awakens us to our unconscious patterns and guiding us through any clouded thoughts."},{type:"p",text:`**Fee:** 71315 minutes (Online)  â HKD250 71430 minutes (Online) â HKD500 71545 minutes (Online) â HKD750 71660 minutes (In Person or Online) â HKD1,000`},{type:"p",text:`**Package:** 7174-Session Package of 30 minutes each â HKD1,800 7184-Session Package of 45 minutes each â HKD2,700 7194-Session Package of 60 minutes each â HKD3,600`},{type:"h",level:1,text:"FAQs"},{type:"h",level:3,text:"TAROT READING:"},{type:"p",text:"Tarot reading is a way to gain insights and guidance about different aspects of a personâs life through decoding metaphorical symbols. It uses a special deck of cards called tarot cards that have pictures and symbols on them."},{type:"p",text:"When you get a tarot reading, the reader shuffles the cards and then lays them out in a specific pattern. Each card has a meaning, and the reader interprets those meanings to give you information about your past, present, and future, or to help you understand a specific situation or question you have. The cards are not magical, but they are seen as a tool to tap into your own intuition and the wisdom of the universe. The reader combines their knowledge of the cards with their own intuition to provide you with guidance and insights."},{type:"p",text:"Tarot readings give people guidance and a direction on how to move forward and navigate their lives with more wisdom. They can depict underlying emotions or blocks that a person may not be present to, and need to work though. Often they give people reassurance about their gut feeling being true, and a path forward that can be in alignment with their highe
719st potential. The best way to use your reading is to see it as a guide to help you understand yourself more deeply, and make decisions from a healthy & loving mindset."}]},"transpersonal-psychology-coaching":{title:"Transpersonal Psychology Coaching in Hong Kong",blocks:[{type:"h",level:1,text:"Transpersonal Psychology Coaching"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Stephanie-Rault.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Stephanie Rault 720 721**Stephanie is a Holistic Wellness coach offering personalised one-on-one sessions that draw from transpersonal psychology, somatic practices and clinical hypnotherapy. Her approach is compassionate, intuitive and integrative, honoring the uniqueness of every personâs path towards wholeness.`},{type:"p",text:"Transpersonal Psychology Coaching is a holistic approach that moves beyond typical goal-setting to explore deeper meaning, purpose, and spiritual connection, integrating the inner world (soul, consciousness) with outer life for profound transformation, focusing on existential questions, purpose, and accessing higher potential rather than just fixing problems. Itâs for those feeling lost, seeking more than material success, and ready for deep self-discovery by exploring spirituality (connection, not religion), purpose, and universal consciousness."},{type:"p",text:"**What a Session Looks Like**"},{type:"p",text:"A transpersonal psychology coaching session is highly individualized and generally unfolds as a collaborative exploration of your conscious goals and deeper, spiritual dimensions of experience. Stephanie creates a supportive, non-judgmental space to help you bridge your everyday challenges with a search for meaning, purpose, and wholeness. Sessions integrate conventional coaching techniques with depth-oriented methods like guided visualization, mindfulness exercises, or dream work to access subconscious insights and non-ordinary states of consciousness. The focus is not just on problem-solving but on fostering a holistic transformation that connects personal development with transcendent, or âbeyond the personalâ, aspects of being."},{type:"p",text:"**What to Expect**"},{type:"p",text:"You can expect a holistic and integrative approach that addresses your mind, body, emotions, and spirit. The process is client-centered and non-directive, focusing on deep personal transformation and self-awareness beyond just achieving specific, ego-driven goals. In essence, you can expect to slow down, tune into your inner world, and embark on a transformative journey toward wholeness and self-actualization, seeing challenges as opportunities for profound growth."},{type:"p",text:`**Fee: 722 723**Single Session Price HKD1,800.00 724 7253 Session Package HKD5,025.00 726 7275 Session Package HKD8,000.00** 728 729Duration: 90 minutes**`}]},"trauma-informed-somatic-counselling":{title:"Trauma-Informed Somatic Counselling in Hong Kong",blocks:[{type:"h",level:1,text:"**Trauma-Informed Somatic Counselling **"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/11/Stephanie-Rault.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Stephanie Rault 730**Stephanie is a Holistic Wellness coach offering personalised one-on-one sessions that draw from transpersonal psychology, somatic practices and clinical hypnotherapy. Her approach is compassionate, intuitive and integrative, honoring the uniqueness of every personâs path towards wholeness.`},{type:"p",text:"These coaching sessions offer integrative support for your overall well-being through a trauma-informed, body-centered approach grounded in somatic and transpersonal psychology. By gently exploring the connections between your body, mind, and spirit, the sessions focus on cultivating deep self-awareness, emotional healing, and personal growth. Using somatic techniques, you will learn to tune into your bodyâs wisdom and regulate your nervous system, while transpersonal psychology insights guide you in connecting with your deeper sense of meaning and authentic self. This holistic approach supports lasting resilience, inner balance, and expanded well-being for individuals seeking profound and integrative healing on all levels."},{type:"p",text:"**About the service**"},{type:"p",text:"Trauma-informed somatic counseling integrates mind-body awareness to heal trauma, focusing on physical sensations to gently release trapped stress responses without needing to verbally rehash events. Therapists guide clients to track bodily sensations, use âresourcesâ (calming memories/objects), and use titration (small doses of sensation) to calm the nervous system, promoting grounding, presence, and empowering the client to process trauma safely and complete natural stress cycles for lasting healing."},{type:"p",text:"**What a Session Looks Like**"},{type:"p",text:"A trauma-informed somatic counseling session blends talk with body awareness, focusing on gentle, moment-to-moment tracking of physical sensations (like breath, tension) to release stored trauma, using techniques such as grounding, titration (small doses of trauma material), and pendulation (moving between stress and safety) to rebuild inner safety and prevent over
730whelm, rather than just analyzing the past. You will be guided to notice what your body feels as you talk, building a dialogue between mind and body to process experiences without re-traumatization. Sessions are intentionally designed to be safe, supportive, and deeply respectful of your mind, body, and spirit. Stephanie offers a gentle presence and attuned listening, honoring your autonomy and pace."},{type:"p",text:"**What to Expect**"},{type:"p",text:"You can expect moments of mindfulness, stillness, and reflection that will support groundedness and embodiment. Throughout, youâll build new internal resources to enhance emotional regulation, intuition, and resilience. Healing will unfold naturally and sustainably, always with care to support your nervous system and sense of safety."},{type:"p",text:`**Fee: 731**Single Session Price HKD1,800.00 7323 Session Package HKD5,025.00 7335 Session Package HKD8,000.00** 734Duration: 90 minutes**`}]}},contact:_E,"holistic-hypnotherapy":{allergies:{title:"Allergies - All About You Centre",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Hypnotherapy Sessions"},{type:"p",text:"Allergies are created when our subconscious mind associates a stimulus with the idea of a threat. These messages can be created in childhood, adulthood (or even past lives) and are also stored in our cellular memories so that every time we are in touch with the stimulus, the ânegativeâ association gets triggered and we have a reaction. Allergies can be treated effectively by figuring out what that association is and disentangling that association from deep inside your subconscious mind."},{type:"p",text:"In hypnotherapy, we do this through regression work by taking you back to what that association is and releasing it from the source where it was first created."},{type:"p",text:"For people who have done hypnotherapy before, it is possible to remove allergies in as little as a single session. For newer clients or if there is more than 1 association, it may that take 4 â 5 sessions."},{type:"p",text:"**Allergies can include and not limited to:**"},{type:"p",text:"*** Available via skype**"},{type:"p",text:`**Duration:** 73560-90 minutes`}]},anxiety:{title:"Release Anxiety with Hypnotherapy",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Overcome Anxiety"},{type:"h",level:3,text:"Anxiety causes fear in everyday situations such as:"},{type:"p",text:"Hypnotherapy sessions can be highly effective in helping individuals manage and reduce stress and anxiety."},{type:"p",text:"Through this relaxed state, the hypnotherapist can work with the individual to **explore the root causes and triggers of their anxiety**. They can** identify and reframe negative thought patterns, beliefs, and behaviors** that contribute to anxiety. By accessing the subconscious mind, we will **facilitate deep healing and transformation**, allowing individuals to release emotional baggage and develop healthier alternative behaviours. Techniques such as guided imagery, visualization, positive affirmations, and regression therapy can be used to identify and heal the root cause, while also create a state of relaxation and inner peace."},{type:"p",text:"The sessions will also empower individuals to cultivate a sense of calm and relaxation. This helps individuals learn to manage stress and anxiety more effectively and develop a greater sense of control over their emotions."},{type:"p",text:"Furthermore, hypnotherapy can assist in building resilience and confidence. By working through past traumas or challenging experiences, individuals can develop a stronger sense of self and enhance their ability to navigate future stressors with greater ease."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 736**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 737**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 73860-90 minutes`}]},"eating-disorders":{title:"Hypnotherapy for Eating Disorders in Hong Kong",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&
738strip=1&webp=1",alt:""},{type:"h",level:1,text:"Hypnotherapy Sessions"},{type:"p",text:"Food is one of our basic needs, however for some the relationship with food is complicated as a result of previous conditioning and conclusions made in the past, and results in eating disorders such as anorexia, bulimia and compulsive eating. Eating disorders have a physical, emotional and psychological effect and sufferers usually deal with issues such as depression, anxiety and low self-esteem to name a few."},{type:"p",text:"The issue lies in the illogical part of the mind, the subconscious which is why logicaI reasoning does not have an impact, and in fact makes a person feel worse when they cannot do what they consciously want. In a state of hypnosis, an understanding of what lies behind the thinking can be known and can be worked on to adopt a new and healthy relationship with food."},{type:"p",text:"Hypnotherapy works to identify the emotional root of this complex relationship, and addresses the associations made by the mind which as resulted in feeling a lack of control around food.  This process involves a lot of inner-child healing, and also addresses issues of self-esteem and confidence.  Depending on how deep the issue is, the unravelling and healing can take between 5-10 sessions â with the results being permanent. Learning to love and accept oneself is an important part of the process."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 739**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 740**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 74160-90 minutes`}]},"exam-anxiety":{title:"Hypnotherapy for Exam Anxiety",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Coping with Exam Anxiety"},{type:"p",text:"Exams often bring with it nervousness, stress and anxiety about the future. This is one of the most common issues in todayâs times when we have attached so much meaning to exams and our results."},{type:"p",text:"Symptoms can include:"},{type:"p",text:"If you have any of these symptoms and making the effort to prepare for the exam seems to take more out of you than it should, then hypnotherapy can be a great tool for you. Pushing yourself in this state only creates more stress, and reduces the oxygen in your brain and body."},{type:"p",text:"Hypnotherapy can help you relax, understand your triggers, and eliminate your anxiety.It will help also give you tools to clear your mind and improve your focus, making your study time more efficient. Our technique combines hypnotherapy with breathing techniques and counselling which enables you to retrain your mind and retain information more easily."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 742**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 743**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Zoom**"},{type:"p",text:`**Duration:** 74460-90 minutes`}]},"fear-of-flying":{title:"Hypnotherapy to Overcome Fear of Flying",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&
744strip=1&webp=1",alt:""},{type:"h",level:1,text:"Overcome Fear of Flying"},{type:"p",text:"Know that you are not alone in feeling this way. **Fear of flying is one of the most common phobias** with symptoms ranging from nervousness, sweating, dry mouth, nausea to panic attacks. The levels of distress associated with flying vary from person to person. Living with the fear of flying may cause a person to steer clear of careers involving travel and missing out on holidays with friends and family."},{type:"p",text:"Hypnotherapy can help resolve the fear and allow you to simply relax and enjoy the flying feeling relaxed, safe and free.  We have seen many cases being resolved in our package of 5 sessions."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 745**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 746**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 74760-90 minutes`}]},"fears-and-phobias":{title:"Fears & Phobias - All About You Centre",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Overcoming Fears & Phobias"},{type:"p",text:"A phobia is an irrational fear whereby a client feels it but has no clue why. Sufferers are often aware of this but find that they cannot control it. Any reference to the stimulus triggers a physiological response and extreme stress for a person; the source can be an animal, object, sound or situation. Fears and phobias are extremely common and come in a wide range."},{type:"h",level:3,text:"Below is a list of a few common fears:"},{type:"p",text:"Phobias can be distressing and debilitating. Often there will be avoidance of the source, coupled with loss of control, helplessness and embarrassment."},{type:"p",text:"Hypnotherapy has shown itself to be one of the most effective treatment for fears and phobias. it works by accessing the subconscious to discover the root cause of the phobia, and eliminates the current conditioned response to the stimulus. We encourage our clients to test themselves after our sessions and face their phobia, and have seen some tremendous results whereby clients have achieved their desired result of calmness, confidence or freedom."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 748**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 749**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 75060-90 minutes`}]},index:{title:"What Hypnotherapy Can Help With",blocks:[{type:"h",level:1,text:"What can Hypnotherapy Address?"},{type:"p",text:"Are you looking to achieve specific goals in your personal or professional life? Or do you feel held back by a persisting habit or ongoing challenges? Our expert hypnotherapy sessions are designed for you! With a goal-oriented approach, we help you systematically work towards your objectives and create a clear roadmap for success."},{type:"p",text:"Join us at our welcoming Hypnotherapy and Wellness Centre in Sheung Wan and start your transformative journey today! Experience the power of hypnotherapy and take the first step towards lasting change!"},{type:"p",text:"View this page in Chinese language"},{type:"h",level:3,text:"Experience the benefits of Hypnotherapy in the following areas:"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/depression.png?lossy=0&
750strip=1&webp=1",alt:"Hypnotherapy for Depression in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/life-purpose.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Life Purpose in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/social-anxiety.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Social Anxiety in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2018/08/Relationships_forwebsite.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Relationships in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/02/Allergies.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Allergies in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/fear-of-flying.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Fear of Flying in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/spirit-release-therapy.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Spirit Release in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/weight-loss.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Weight Loss in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/life-between-lives.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Life Between Lives in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/02/Performance-Enhancement.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Performance Enhancement in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/09/nail-biting.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Nail Biting in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/03/innerchild-round-180px.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Inner Child Healing in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/06/Eating-Disorder.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Eating Disorders in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2019/02/loss-and-grief.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Loss and Grief in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/10/1-3.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Performance Enhancement in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/exam-anxiety.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Exam Anxiety in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/fears-and-phobias.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Fears and Phobias in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2017/01/accident-trauma.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Accident Trauma in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2018/08/Family_Constellation.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Family Constellation in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/10/2-3.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Performance Enhancement in Hong Kong"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/10/sexual-dysfunction.png?lossy=0&strip=1&webp=1",alt:"Hypnotherapy for Allergies in Hong Kong"},{type:"p",text:"Since seeing Sonia Samtani, I have won every race I have entered â currently at 10 consecutive wins."},{type:"p",text:`The hypnotherapy sessions I had with Olivia Mak have helped me to feel more grounded and centered, and Iâm able to stay calm and focused even in situations that used to trigger anxiety or stress for me. Iâve also noticed that Iâm more confident in my ability to handle difficult conversations and navigate challenging situations with greater ease. 751Itâs been a great journey and I am grateful for the work weâve done together and Oliviaâs guidance throughout the process.`},{type:"p",text:"If youâre looking for a truly transformative hypnotherapy experience in Hong Kong, look no further than the incredible Hypnotherapist, Sonia
751Samtani. Soniaâs skillful approach to hypnotherapy will leave you feeling empowered, confident, and ready to take on anything life throws your way. Her warm, compassionate nature creates a safe, trusting space for you to explore your subconscious mind and release any limiting beliefs. After just a few sessions with Sonia, I felt a noticeable shift in my mindset and was amazed at the positive impact it had on my life. I am forever grateful for her guidance and would highly recommend her services to anyone seeking to improve mentally and emotionally."},{type:"p",text:"I was looking for a way to better understand my insecurities and beliefs. I wanted to try hypnotherapy and immediately felt at ease working with Louie. In 5 sessions he has helped me unpack where some of my daily issues were coming from and to really understand the core beliefs that were limiting me."},{type:"p",text:"Since seeing Sonia, I have had some major life changes and gained a new perspective on the world. Today my finances have dramatically improved, my self-esteem is high and I feel like I am back in control of my life. My work with Sonia has been a big part of these changes."},{type:"p",text:"I can honestly say that my hypnotherapy sessions with Sonia are a solid gold experience. She has a wealth of knowledge and wisdom that she is always ready to share. She can get to the heart of your issue with forensic precision. You will leave with clarity and enlightenment. Sonia is also a qualified life coach and is able to expertly weave her coaching skills into a session. She holds you accountable in a most gentle way but is extremely patient and there is never any judgement. I would recommend Sonia without hesitation to anyone who is ready to do some inner work. I promise youâll be in safe hands."},{type:"p",text:"I wasnât sure what to expect but Brian made me feel really comfortable and by the end of it, I knew I was going to come back for more. His pacing and explanations were just perfect. Would absolutely recommend."},{type:"p",text:"All About You is safe place for personal development. The private session are  incredibly, sound, interdisciplinary and intimate, and creates change!! I recommend 100%"},{type:"p",text:"I have been treated by Sonia Samtani for  Hypnotherapy, I found it very comfortable to talk to her. Her calm and mild demeanor in understanding your problems and assisting in the cure is indeed very effective."},{type:"h",level:3,text:"Book your Private Hypnotherapy Session today"},{type:"p",text:"Our clinical hypnotherapy sessions provide a safe and confidential space for your personal transformation."},{type:"p",text:`In each session, we begin by establishing a clear understanding of your objectives and gathering essential background information about the issue you wish to address. We recognize that beliefs play a significant role in influencing behavior, and our focus is on working with the beliefs stored in your subconscious mind that may be holding you back. 752Our sessions incorporate a variety of powerful healing techniques done under hypnosis, including visualizations, suggestion placement, releasing, and gaining wisdom. These approaches are carefully designed to help release disempowering beliefs and experiences from your subconscious mind, allowing you to create positive change and overcome obstacles.`},{type:"p",text:"We firmly believe in the collaborative nature of the therapeutic journey, and our sessions are built on a partnership between you and the therapist. Together, we explore and uncover the underlying factors that contribute to your challenges, empowering you to make lasting transformations."},{type:"p",text:"To support your progress outside of the sessions, we provide practical and effective homework exercises. These exercises are tailored to your specific needs and are designed to help you integrate the shifts and insights gained during our time together, fostering ongoing growth and positive change."},{type:"p",text:"Each private session typically lasts about 90 minutes, ensuring ample time for deep exploration and healing. We prioritize your privacy, confidentiality, and well-being throughout the entire process, guiding you towards a more empowered and fulfilling life."},{type:"h",level:1,text:"Our Resident Hypnotherapists"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&
752strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Sonia Samtani 753**Master Hypnotherapist and Trainer 754**Languages:** English and Hindi 755**Price: 756**Single Session â HKD3,000 7573 Sessions Package â HKD8,650`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Valentina-Tudose.png?lossy=0&strip=1&webp=1",alt:"Valentina Tudose"},{type:"p",text:`**Valentina Tudose 758**Clinical Hypnotherapist and Trainer 759**Languages: **English and French 760**Price: 761**Single Session â HKD1,800 7625 Sessions Package â HKD8,750****`},{type:"p",text:"****"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/12/Louie-Chan-1.png?lossy=0&strip=1&webp=1",alt:"Louie Chan"},{type:"p",text:`**Louie Chan 763**Senior Hypnotherapist 764**Languages: **English and Cantonese 765**Price: 766**Single Session â HKD1,800 7675 Sessions â HKD8,000`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/05/Brian.png?lossy=0&strip=1&webp=1",alt:"Brian Christopher Hayes, NLP Graduate"},{type:"p",text:`**Brian Hayes 768**Clinical Hypnotherapist 769**Language: **English 770**Price: 771**Single Session â HKD1,350 7723 Sessions â HKD3,645`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Olivia-Mak-4.png?lossy=0&strip=1&webp=1",alt:"Olivia Mak"},{type:"p",text:`**Olivia Mak 773**Clinical Hypnotherapist 774**Languages: **English and Cantonese 775**Price: 776**Single Session â HKD1,350 7773 Sessions â HKD3,645`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/05/Akankasha.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Akankasha Kothari 778**Clinical Hypnotherapist 779**Languages: **English and Hindi 780**Price: 781******Single Session for Ethnic Minorities: HKD600 782Single Session â HKD1,350`}]},"inner-child":{title:"Inner Child Healing",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Inner Child Healing"},{type:"p",text:"Inner child therapy is one of the most powerful healing tools as it deals with traumaâs we are present to right now, which are the result of an unhealed past. Healing your inner-child simply means healing that younger version of yourself who is still stuck with the pain of the past and hasnât been able move past it.  Once you have healed that part of you, you will feel more in control and able to face situations as the grounded and mature adult of today."},{type:"p",text:"The impact of a wounded inner child usually come up as a sudden trigger when you see someone or think of a situation, which in turn reminds you of the past and then all the pain and anger comes flooding back. Although many people feel justified about their pain, they canât escape that the person suffering the most is them! For example if you feel justified to be angry at an abusive father, yet it could results in you not being able to trust any man and therefore have a string of failed relationships."},{type:"h",level:3,text:"Hypnotherapy for Inner child work is especially useful for people with the following symptoms:"},{type:"p",text:"Hypnotherapy provides easy access to these inner-children, and allows you to free them from their pain and coping mechanisms that are no longer serving.  This is a guided journey where the therapist leads you to those stuck parts of you, and facilitates you in releasing the toxicity from their experience."},{type:"p",text:"Healing this part of your personality can produce exponential results in shifting patterns, attracting a life you desire, raising self-esteem and attain a general feeling of a life that works."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 783**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 784**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 78560-90 minutes`}]},"life-purpose":{title:"Discover Your Life Purpose",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&
785strip=1&webp=1",alt:""},{type:"h",level:1,text:"Discover Your Life Purpose"},{type:"p",text:"Are you unsure about what your unique gift is? Do you feel like youâre wandering about without getting anywhere? Do you feel your life lacks fulfilment, passion and connectivity? Do you desire clarity and direction about your life purpose?"},{type:"p",text:"The answer to your life purpose is within you which is why you canât seem to shake the feeling that you should be doing something else or something more. Sometimes we get clouded by over thinking and are unable to see it."},{type:"p",text:"Spiritual Hypnotherapy helps clients that are inclined that way to access the energies of their âHigher Selfâ to get answers about their current life, including their purpose, alignment with their purpose and if there are any obstacles.  These answers give a person a sense of direction and atonement with their soul-plan and life purpose.  Understanding this will also make you feel more confident, grounded and motivated."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 786**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 787**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 78860-90 minutes`}]},"nail-biting":{title:"Stop Nail Biting with Hypnotherapy",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Stop Nail Biting"},{type:"p",text:"If youâve tried to stop biting your nails without success, itâs a habit thatâs masking a deeper anxiety stemming from your subconscious mind."},{type:"p",text:"Hypnotherapy allows you to access the subconscious, find out the root cause of this issue and eliminate it permanently. The urge to nail bite will dissipate and (you wonât even need to replace it with another habit) and you will feel calm, relaxed and more confident."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 789**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 790**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Zoom**"},{type:"p",text:`**Duration:** 79160-90 minutes`}]},"pain-management":{title:"Pain and Trauma Release with Hafsa Khan",blocks:[{type:"h",level:1,text:"Pain Relief and Trauma Release"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2024/11/hafsa-2.png?lossy=0&
791strip=1&webp=1",alt:"hafsa khan"},{type:"h",level:3,text:"Qualifications"},{type:"p",text:"Hafsa Khan is a holistic practitioner dedicated to facilitating deep healing for those seeking relief from pain and trauma. By incorporating myofascial techniques, energetics, and coaching tailored to the unique needs of each individual, she effectively integrates various modalities for nervous system regulation. This approach allows her to address the root causes of dis â ease, guiding her clients toward lasting recovery and ease. Hafsa empowers individuals to reconnect with their themselves and transform their lives."},{type:"p",text:"With a blend of compassion, wisdom, and expertise, she creates a profound healing experience that nurtures the mind, body, and soul, inspiring personal growth and resilience."},{type:"p",text:`**Available In Person 792****Fee 793**First Session (45mins): HKD1,000 794Single Standard Session (60mins): HKD1,400 7953-Session Package of Standard Session: HKD3,906 7966-Session Package of Standard Session: HKD7,560 79712-Session Package of Standard Session: HKD11.900`},{type:"p",text:"**Go Back to Events Page**"}]},"public-speaking":{title:"Public Speaking Workshop Hong Kong",blocks:[{type:"h",level:1,text:"Effective Public Speaking Workshop with Sonia Samtani"},{type:"p",text:"Overcome your fear of public speaking so that you can speak confidently in front of any audience!"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/11/Sonia-Samtani.png?lossy=0&strip=1&webp=1",alt:"Sonia Samtani"},{type:"p",text:`**Facilitator: Sonia Samtani 798**Sonia Samtani is the Founder and Managing Director of All About You. Sonia has an inherent passion to cultivate her community and its consciousness, which is reflected in her seminars, workshops and bespoke individual consultations. She is a licensed Clinical Hypnotherapist and trainer.** 799**`},{type:"p",text:"Each participant will get the opportunity to learn what it takes to be an effective presenter, overcome their greatest challenge, practice speaking in front of an audie
799nce, and receive immediate feedback."},{type:"p",text:"**You will gain skills to:**"},{type:"p",text:`**Saturday** 80024th October 2026 80110:00 am â 2:00 pm HKT`},{type:"p",text:`**Venue:** 802All About You Centre`},{type:"p",text:"**Fee: **HKD1,750"},{type:"p",text:"**Go Back to Events Page**"}]},"relationship-counselling":{title:"Healing Trauma & Abuse through Hypnotherapy in Hong Kong",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Trauma and Abuse"},{type:"p",text:"Trauma is a universal human experience. All trauma is relative, some are obvious like experiencing physical abuse, and others can be indirect in the form of neglect or emotional abuse. Unless our trauma is addressed, it remains suppressed in our minds and bodies, and people can be coping with trauma their entire lives without even realizing it."},{type:"p",text:"A traumatic event may involve anything from interpersonal abuse, to a natural disaster, to the sudden death of a loved one. When people struggle to process traumatic events or experiences, it can lead to certain mental health conditions or symptoms, such as depression, anxiety, insomnia, flashbacks, physical ailments, and more. Other impacts could look like spending oneâs entire life avoiding their trauma, by running away from facing their finances, their health, and their relationships."},{type:"p",text:"For many people, trauma can remain repressed where they may not even know or remember it occurred. While in other cases, people may have an impression of it but find it too uncomfortable to face or admit. Many people who have emotional difficulties in adulthood, (including addiction) wonder whether the cause was a trauma in their childhood that they have forgotten or **repressed**. They may have memories that are incomplete but feel uncomfortable, particularly when recalled with an adult perspective."},{type:"p",text:"Trauma and abuse is a highly sensitive issue that most people spend their entire lives protecting, and it would take a very safe space, and a trusting therapist to even begin to address and process these events, though the results of it are life-changing. Hypnotherapy has had some great results in helping people move through their traumatic events. During the sessions they are facing themselves in a safe space, processing their stuck emotions, and pulling themselves out of the situation ,so that they can finally put it behind them and move forward."},{type:"p",text:"Many studies have shown hypnotherapy to be helpful in the treatment of trauma symptoms, as well as **post-traumatic stress disorder (PTSD)**, in some instances. The sessions help prevent or reduce **dissociation** following exposure to a traumatic event, reduce symptoms of the trauma, and help people to be more in charge of their lives without the damaging impact of their traumatic past."},{type:"h",level:1,text:"Trauma and Abuse"},{type:"p",text:"Trauma is a universal human experience. All trauma is relative, some are obvious like experiencing physical abuse, and others can be indirect in the form of neglect or emotional abuse. Unless our trauma is addressed, it remains suppressed in our minds and bodies, and people can be coping with trauma their entire lives without even realizing it."},{type:"p",text:"A traumatic event may involve anything from interpersonal abuse, to a natural disaster, to the sudden death of a loved one. When people struggle to process traumatic events or experiences, it can lead to certain mental health conditions or symptoms, such as depression, anxiety, insomnia, flashbacks, physical ailments, and more. Other impacts could look like spending oneâs entire life avoiding their trauma, by running away from facing their finances, their health, and their relationships."},{type:"p",text:"For many people, trauma can remain repressed where they may not even know or remember it occurred. While in other cases, people may have an impression of it but find it too uncomfortable to face or admit. Many people who have emotional difficulties in adulthood, (including addiction) wonder whether the cause was a trauma in their childhood that they have forgotten or **repressed**. They may have memories that are incomplete but feel uncomfortable, particularly when recalled with an adult perspective."},{type:"p",text:"Trauma and abuse is a highly sensitive issue that most people spend their entire lives protecting, and it would take a very safe space, and a trusting therapist to even begin to address and process these events, though the results of it are life-changing. Hypnotherapy has had some great results in helping people move through their traumatic events. During the sessions they are facing themselves in a safe space, processing their stuck emotions, and pulling themselves out of the situation ,so that they can finally put it behind them and move forward."},{type:"p",text:"Many studies have shown hypnotherapy to be helpful in the treatment of trauma symptoms, as well as **post-traumatic stress disorder (PTSD)**, in some instances. The sessions help prevent or reduce **dissociation** following exposure to a traumatic event, reduce symptoms of the trauma, and help people to be more in charge of their lives without the damaging impact of their traumatic past."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 803**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 804**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 80560-90 minutes`}]},"self-confidence":{title:"Overcome Social Anxiety with Hypnotherapy",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&
805strip=1&webp=1",alt:""},{type:"h",level:1,text:"Overcome Social Anxiety"},{type:"p",text:"Social Anxiety (also known as social phobia) is an irrational and uncontrollable fear to social situations. It usually starts off with discomfort in a particular group or society and eventually leads to anxiety of all situations of social contact."},{type:"h",level:3,text:"Social anxiety causes fears in everyday situations such as:"},{type:"p",text:"Those who live with social anxiety have a fear of behaving in a manner in which they will be judged. In extreme cases it can lead to a withdrawal from any social contact. Feelings of anxiousness, low self-worth, self-doubt and isolation are common to sufferers."},{type:"p",text:"The root cause of this is not feeling accepted, and thus a sever fear of being judged. Very often this fear stems from an experience in the past which you may or may not be aware of. Hypnotherapy is effective therapy to identify the cause and release the trauma attached to it. This helps you to slowly drop the protective wall they have built up and feel safe in social situations.  During the process you will find that you will enhance your self-esteem, self- acceptance, confidence and have some effective tools to stay calm in social arenas."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 806**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 807**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 80860-90 minutes`}]},"sexual-dysfunction":{title:"Sexual Dysfunction Hypnotherapy",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Sexual Dysfunction"},{type:"p",text:"Sexual dysfunction refers to a range of issues that affect an individualâs ability to engage in sexual activity or experience sexual satisfaction. This can often be psychosomatic, meaning that psychological factors significantly influence the physical symptoms. It can manifest as problems with desire, arousal, orgasm, or pain during intervourse."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:"**Understanding the Psychosomatic connection:**"},{type:"p",text:"**The First Session:**"},{type:"p",text:`**Psychological Blocks:** 809Issues such as anxiety, stress, depression, trauma, or negative beliefs about sexuality can create psychological blocks. These blocks may lead to a diminished sexual desire, or the inability to orgasm.`},{type:"p",text:"**Subsequent Sessions: **"},{type:"p",text:`**Physical blocks:** 810The body often reacts to psychological stressors. For eg: anxiety can lead to muscle tension or increased heart rate, which may interfere with sexual arousal or performance. Negative thoughts can trigger a cycle of fear and avoidance, further elevating the dysfunction.`},{type:"p",text:"By addressing your psychological blocks through private Hypnotherapy sessions, individuals can often experience significant improvements in their sexual health. The healing of the mind can lead to a more relaxed and open state, enabling the body to respond more naturally and positively to sexual stimuli. This holistic approach recognises the intricate link between mind and body, fostering a healthier sexual experience."},{type:"p",text:"*** Available via Zoom**"},{type:"p",text:`**Duration:** 81160-90 minutes`}]},sleep:{title:"Hypnotherapy for Insomnia",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&
811strip=1&webp=1",alt:""},{type:"h",level:1,text:"Insomnia"},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/sleep.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:"Hypnotherapy for insomnia can be very effective. Hypnotherapy tackles the potential causes that stops you from sleeping properly, while helping you learn to relax and drop off to sleep. Alternatively, if a habit is causing your insomnia (such as alcohol) hypnotherapy can support you to break this habit."},{type:"p",text:"When suffering from insomnia for a long period of time, the patterns of sleep disturbances can become embedded in your subconscious. Hypnosis for insomnia aims to communicate with this and suggest positive changes. These suggestions will look to break the negative thought patterns that are at the root cause of the problem."},{type:"p",text:"While some sleeping problems will have an obvious cause, others may not."},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2023/08/Sonia-Samtani-Hypno-Session-SS-scaled.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 812**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 813**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 81460-90 minutes`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/08/Sonia-Samtani-hypnotherapist.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Price:** 815Single Session â HKD2,800 8165-Session Package â HKD13,250 81710-Session Package â HKD25,000 81825-Session Package â HKD47,000`},{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2021/01/Louie-Chan-180px.png?lossy=0&strip=1&webp=1",alt:""},{type:"p",text:`**Price:** 819Single Session â HKD1,500 8205-Session Package â HKD6,800 82110-Session Package â HKD13,000`}]},"smoking-cessation":{title:"Quit Smoking with Hypnotherapy",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Smoking Cessation"},{type:"p",text:"Quitting smoking is a difficult journey, but by being here, youâve already taken the crucial first step towards success. By tapping into the power of the subconscious mind, hypnotherapy helps individuals break free from their smoking addiction. Through deep relaxation and focused suggestion, our skilled Hypnotherapist guides smokers to reframe their beliefs and behaviours surrounding cigarettes."},{type:"p",text:"Our approach with smoking cessation follows a different routine to our other sessions. For best results we would like the client to see the hypnotherapist for 5 sessions, over 5 consecutive days to break the pattern of this habit. We have curated a special 5-day program which addresses the underlying cause behind this habit, release unprocessed emotions, shift belief systems, and feel empowered to step into a new identity as a non-smoker."}
821,{type:"p",text:"We have had many successful cases where our clients have testified that this process addressed their underlying psychological triggers and cravings, and empowered them to let go of their smoking habit for good."},{type:"p",text:"With the support of hypnotherapy, smokers also gain valuable tools to overcome withdrawal symptoms, manage stress, and cultivate a positive mindset, ultimately leading to a smoke-free and healthier future."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 822**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 823**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 82460-90 minutes`}]},"spirit-release":{title:"Spirit Release Therapy â Energetic Clearing & Hypnotherapy in Hong Kong",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Spirit Release Therapy"},{type:"p",text:"Just as we are affected by bacteria and viruses on a physical level, on an energetic level we can feel drained by the energy of a place or person. We can also be affected by non-physical beings (or entities), who are often people who have passed away but their energies remain on this plane due to reasons such as shock or trauma at the time of death, attachment to loved ones, and unresolved issues to name a few. These entities can attach themselves to places as well as people."},{type:"h",level:3,text:"Some telling signs of entity attachments are:"},{type:"p",text:"Spiritual Hypnotherapy allows us to gain access to the entity through the clientâs subconscious mind. In this therapy we open up a dialogue with the spirit / entity in a safe space allowing the entity to release their attachment and find its way to the light. Most dark energies possess light and are treated with the same compassion and love. The purpose of spirit release is to free the client, and assist the spirit on its journey."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 825**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 826**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 82760-90 minutes`}]},"sports-performance":{title:"Performance Enhancement - All About You Centre",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&
827strip=1&webp=1",alt:""},{type:"h",level:1,text:"Hypnotherapy Sessions"},{type:"p",text:"Our performance enhancement program is designed specifically for sports players to help enhance their skill and performance. (Hypnotherapy cannot teach you how to play the sport, but we can definitely make you better at it!)"},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:"During the session, we align your mind with the memory of your best shot or your best win and reinforce it through anchors. The sessions strengthen the neuropathway of winning, and eliminate anything that is not in alignment with that, such as fears, limiting thoughts and beliefs. During the sessions, we create a trigger for the sports player, so every time the trigger is activated they are in full alignment with their best performance and can re-create that for themselves. With continuous practice, it has them master any sport and perform to their best ability."},{type:"p",text:"Sonia has worked with race car driver, Dan Wells â 2015 Asian Formula Renault Champion for 1 year using this technique and in that year he won 12 consecutive races in a row. Making a winning record of 12 out of 12!"},{type:"p",text:"*** Available via skype**"},{type:"p",text:`**Duration:** 82860-90 minutes`}]},"stress-management":{title:"Stress Management Workshop",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/10/professional-development-workshops.jpg?lossy=0&strip=1&webp=1",alt:"All About You Centre Banner"},{type:"h",level:1,text:"Stress Management"},{type:"p",text:"When taking time out to destress is not an option â learn 3 quick ways to destress in under 5 mins. It isnât news that Stress is detrimental. It can lead to unhappiness, poor health, poor concentration, mistakes, missed deadlines, and destroys creative thinking and good communication."},{type:"p",text:"**In short â a stressed team is an ineffective team. **"},{type:"p",text:"This short workshop teaches participants how to identify stressors and triggers, and how to work to clear them using three quick and simple techniques: Mindfulness, Tapping, and the FLIP Model. Participants will have a chance to practice techniques during the workshop. They will leave with tools to self-manage external stressors so that they can remain positive beacons of calm in a stormy situation."},{type:"p",text:"**Duration:** Subject to the requirements and objective of the company, the training can be anywhere from a few hours to full-days"},{type:"p",text:"**Participants:** A minimum of 10 participants per session"},{type:"p",text:"**Venue:** We can conduct this training at your premises or ours; whichever is most suitable for the training and number or participants."},{type:"p",text:"**Requirements:** Projector for PowerPoint presentation, whiteboard/ flipchart, enough space to move around"},{type:"p",text:`**Fee:** 829 83010 â 25 pax â HKD 5,000.00 per hour 831 83225 â 50 pax â HKD 5,500.00 per hour 833 83450 â 100 pax â HKD 6,000.00 per hour 835 836100 pax and over â HKD 6,500.00 per hour`}]},"weight-loss":{title:"Hypnotherapy for Weight Loss & Emotional Eating",blocks:[{type:"img",src:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2016/03/hypnotherapy-private-sessions.jpg?lossy=0&strip=1&webp=1",alt:""},{type:"h",level:1,text:"Weight Loss"},{type:"p",text:"Shedding weight and keeping it off can seem like a constant battle for some people despite trying several diet and workout regimes. It can be a frustrating and disheartening journey which is both physical and emotional, invoking feelings of low self-worth, guilt, anger and loneliness. There are numerous reason why it is difficult for the weight to come off that lie in our subconscious mind. Emotional eating is something that many experience and is an indication that there is a deeper void."},{type:"p",text:"Hypnotherapy works on discovering the connection between the mind and the bodyâs attachment to the weight. The placement of the weight and the age in which the weight-gain started is indicative of where the issue lies.  We work through this by giving the client a recording to reprogram their mind as well as sessions to identify the void and release the trauma from the cells of the body. Through hypnosis you can create a new and healthy relationship with yourself and food. Hypnotherapy is complementary therapy and should be used along side healthy eating and exercise."},{type:"h",level:3,text:"How The Process Works:"},{type:"p",text:`**The First Session: 837**Our first role is to clearly identify your objective and gain some background on the issue. All behavior is governed by beliefs, and we work with the beliefs you have accumulated in the subconscious mind that are holding you back. During the  session you will learn how the mind works, and discover beliefs that you have that are supporting you and sabotaging you towards achieving your goal. We will end with a tailor-made guided meditation that you can take home and listen to for the next few weeks.`},{type:"p",text:`**Subsequent Sessions: 838**Each session comprises of several healing techniques, hypnotherapy, visualisations and exercises to release the disempowering beliefs and experiences from your subconscious mind. We believe that this journey is a partnership between you and the therapist, and will be giving you simple exercises to do for homework so you can maintain the shifts at home and create lasting change together.`},{type:"p",text:"Each session takes between 60-90 minutes, with the exception of the first session that includes a case history and is approximately 90 minutes."},{type:"p",text:"*** Available via Online**"},{type:"p",text:`**Duration:** 83960-90 minutes`}]}},home:TE,trainings:CE,workshops:EE},jE=AE,PE={"alternative-healing":{"pain-relief-trauma-release":"trauma-informed-somatic-counselling","psychic-spiritual-readings":"psychic-readings","family-systemic-constellations":"family-systemic-constellation","transpersonal-coaching":"transpersonal-psychology-coac
839hing","somatic-counselling":"trauma-informed-somatic-counselling",hypnotherapy:"index"},"holistic-hypnotherapy":{"what-it-addresses":"index","fears-phobias":"fears-and-phobias",insomnia:"sleep",trauma:"relationship-counselling"},trainings:{"hypnotherapy-level-1":"hypnotherapy","hypnotherapy-level-2":"hypnotherapy","hypnotherapy-level-3":"hypnotherapy","hypnotherapy-level-4":"hypnotherapy","hypnotherapy-level-5":"hypnotherapy","nlp-practitioner":"nlp","fast-track-technique":"fast-track"},workshops:{"inner-child-healing":"healing-your-inner-child",manifestation:"index","mind-body-connection":"index","connect-with-tarot":"connect-with-the-tarot"},about:{team:"meet-the-team",press:"press-and-awards"}};function oa(t,e){var s;const n=jE[t];if(!n)return null;const r=((s=PE[t])==null?void 0:s[e])??e;return n[r]??null}function aa(t){const e=[];let n=!1;for(const r of t.blocks){if(!n&&r.type==="h"&&r.level===1){n=!0;continue}e.push(r)}return e}function la(t){for(const e of t.blocks)if(e.type==="p"&&e.text.length>30)return e.text.replace(/\*\*/g,"").trim();return null}function ca(t){for(const e of t.blocks)if(e.type==="img")return e.src;return null}const NE={"what-it-addresses":{title:"What Hypnotherapy Can Address"}
839,anxiety:{title:"Anxiety & Depression",bestFor:["Generalised Anxiety","Panic & Overwhelm","Persistent Low Mood","Rumination"]},"inner-child":{title:"Inner Child Healing",bestFor:["Self-Worth","Reparenting","Childhood Wounds","Emotional Triggers"]},"fears-phobias":{title:"Fears & Phobias",bestFor:["Fear of Flying","Public Speaking","Specific Phobias","Social Anxiety"]},insomnia:{title:"Insomnia & Sleep",bestFor:["Insomnia","Racing Thoughts at Night","Disrupted Sleep"]},"weight-loss":{title:"Weight Loss & Eating Patterns",bestFor:["Emotional Eating","Body Image","Sustainable Habits"]},"smoking-cessation":{title:"Smoking Cessation",bestFor:["Stop Smoking","Vaping","Habit Replacement"]},trauma:{title:"Trauma & Abuse",bestFor:["Trauma Recovery","PTSD-Related Patterns","Abuse Healing"]}},RE="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&strip=1&webp=1";function OE(){var a;const{slug:t}=na();if(!t)return c.jsx(gn,{to:"/holistic-hypnotherapy",replace:!0});const e=oa("holistic-hypnotherapy",t),n=NE[t];if(!e&&!n)return c.jsx(gn,{to:"/holistic-hypnotherapy",replace:!0});const r=((a=e==null?void 0:e.title)==null?void 0:a.split(/[-|â]/)[0].trim())||(n==null?void 0:n.title)||t,s=e&&la(e)||"",i=e&&ca(e)||RE,o=e?aa(e):[];return c.jsx(bi,{eyebrow:"Holistic Hypnotherapy",title:r,intro:s,image:i,imageAlt:r,blocks:o,skipFirstNImages:1,bestFor:n==null?void 0:n.bestFor,backTo:{label:"Back to Hypnotherapy",to:"/holistic-hypnotherapy"}})}const IE=[{title:"Hypnotherapy",desc:"Work with the subconscious mind to dissolve limiting patterns and rewire core beliefs at the root.",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/private-sessions-all-about-you-centre.jpg?lossy=0&strip=1&webp=1"},{title:"NLP Coaching",desc:"Neuro-Linguistic Programming techniques to reframe thought patterns and unlock new behavioural possibilities.",img:"/images/Practitioners-Training-all-about-you-centre.jpg"},{title:"Fast Track Technique",desc:"Rapid energy-clearing modality designed to dissolve subconscious blocks around money, relationships, and success.",img:"/images/Fast-Track-Technique.jpg"},{title:"Akashic Reading",desc:"Access the energetic record of your soul's journey for deeper insight into your purpose, patterns, and path forward.",img:"/images/Akashic-Reading.jpg"},{title:"Pain Relief & Trauma Release",desc:"Release stuck emotional and physical energy from the body, allowing you to move freely and feel safe again.",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Pain-Relief-and-Trauma-Release.jpg?lossy=0&strip=1&webp=1"},{title:"Psychic & Spiritual Readings",desc:"Intuitive guidance from experienced readers to bring clarity to questions about love, career, and life direction.",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Psychic-and-Spiritual-Readings.jpg?lossy=0&strip=1&webp=1"},{title:"Tarot Readings",desc:"A reflective conversation guided by the cards â practical, empowering, and rich with insight for the road ahead.",img:"/images/Tarot-Readings.jpg"},{title:"Family Systemic Constellations",desc:"Surface and resolve hidden dynamics within your family system, freeing you from inherited patterns and burdens.",img:"/images/Family-Systemic-Constellations.jpg"}],LE=t=>t.toLowerCase().replace(/&/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");function HE(){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Alternative Healing",title:c.jsxs(c.Fragment,{children:["Many ",c.jsx("em",{className:"text-accent",children:"paths"}),", one purpose: your wholeness."]}),intro:c.jsx(c.Fragment,{children:"Our resident and visiting practitioners are experts across a spectrum of holistic modalities. Whether you arrive seeking insight, release, or deep inner change, there is a doorway here for you."}),image:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&strip=1&webp=1",imageAlt:"Alternative healing studio at All About You Centre Hong Kong",primaryCta:{label:"Book a Session",to:"/contact"}}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Our Modalities"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["Choose the ",c.jsx("em",{className:"text-accent",children:"doorway"})," that calls you"]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-px bg-border border border-border",children:IE.map((t,e)=>c.jsxs(ne,{to:`/alternative-healing/${LE(t.title)}`,className:"group bg-background flex flex-col",children:[c.jsxs("div",{className:"relative h-56 overflow-hidden",children:[c.jsx("img",{src:t.img,alt:t.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}),c.jsxs("div",{className:"absolute top-4 left-4 text-[10px] uppercase tracking-[0.28em] text-primary-foreground
839/90 bg-primary/70 backdrop-blur px-2 py-1",children:["0",e+1]})]}),c.jsxs("div",{className:"p-7 flex flex-col flex-1",children:[c.jsx("h3",{className:"font-display text-2xl text-primary leading-tight mb-3 group-hover:text-accent transition-colors",children:t.title}),c.jsx("div",{className:"h-px w-10 bg-gold mb-4"}),c.jsx("p",{className:"text-foreground/75 text-[14.5px] leading-relaxed flex-1",children:t.desc}),c.jsx("span",{className:"mt-5 inline-flex text-[11px] uppercase tracking-[0.22em] text-accent group-hover:text-primary transition-colors",children:"Learn more â"})]})]},t.title))})]})}),c.jsx(Mn,{})]})}const ME={hypnotherapy:{title:"Hypnotherapy"},"nlp-coaching":{title:"NLP Coaching",bestFor:["Goal Setting & Performance","Limiting Beliefs","Communication","Career Transitions","Confidence"]},"fast-track-technique":{title:"Fast Track Technique",bestFor:["Money & Abundance","Career Blocks","Relationship Patterns","Self-Sabotage"]},"akashic-reading":{title:"Akashic Reading",bestFor:["Life Purpose","Spiritual Direction","Soul-Level Patterns","Major Life Decisions"]},"pain-relief-trauma-release":{title:"Pain Relief & Trauma Release",bestFor:["Chronic Pain","Stored Trauma","Body-Based Healing"]},"psychic-spiritual-readings":{title:"Psychic & Spiritual Readings",bestFor:["Love & Relationships","Career Decisions","Family Dynamics","Major Crossroads"]},"tarot-readings":{title:"Tarot Readings",bestFor:["Decision-Making","Self-Reflection","Relationship Insight","Life Direction"]},"family-systemic-constellations":{title:"Family Systemic Constellations",bestFor:["Inherited Patterns","Grief & Loss","Family Conflict","Sense of Belonging"]},"bazi-readings":{title:"Bazi Readings",bestFor:["Life Direction","Career Timing","Relationship Compatibility","Personal Cycles"]},"chakra-healing":{title:"Chakra Healing",bestFor:["Energetic Imbalance","Emotional Stagnation","Burnout & Fatigue"]},"transpersonal-coaching":{title:"Transpersonal Psychology Coaching",bestFor:["Meaning & Purpose","Spiritual Integration","Life Transitions"]},"somatic-counselling":{title:"Trauma-Informed Somatic Counselling",bestFor:["Stored Trauma","Anxiety & Overwhelm","Nervous System Regulation"]},"sacred-doorways":{title:"Sacred Doorways",bestFor:["Self-Discovery","Symbolic Insight","Creative Reconnection","Spiritual Exploration"]}},DE="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/12/All-About-You-Centre-Alternative-Healing-Banner.png?lossy=0&strip=1&webp=1";function FE(){var a;const{slug:t}=na();if(!t)return c.jsx(gn,{to:"/alternative-healing",replace:!0});const e=oa("alternative-healing",t),n=ME[t];if(!e&&!n)return c.jsx(gn,{to:"/alternative-healing",replace:!0});const r=((a=e==null?void 0:e.title)==null?void 0:a.split(/[-|â]/)[0].trim())||(n==null?void 0:n.title)||t,s=e&&la(e)||"",i=e&&ca(e)||DE,o=e?aa(e):[];return c.jsx(bi,{eyebrow:"Alternative Healing",title:r,intro:s,image:i,imageAlt:r,blocks:o,skipFirstNImages:1,bestFor:n==null?void 0:n.bestFor,backTo:{label:"Back to all modalities",to:"/alternative-healing"},bodyHeading:c.jsxs(c.Fragment,{children:["About this ",c.jsx("em",{className:"text-accent",children:"modality"})]})})}const $E=[{title:"Certified Hypnotherapy Practitioner",duration:"12 days · IACT, IMDHA & NGH accredited",body:"Become a fully certified Hypnotherapist with one of Asia's most respected training programs. Learn the theory, the techniques, and the deep client work that lets you hold real transformation.",img:"/images/Practitioners-Training-all-about-you-centre.jpg"},{title:"NLP Practitioner Certification",duration:"10 days · ABNLP-aligned curriculum",body:"A comprehensive NLP Practitioner training covering anchoring, reframing, swish patterns, timeline work and more â with extensive live practice.",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Personal-development-all-about-you-centre.jpg?lossy=0&strip=1&webp=1"},{title:"Fast Track Technique Practitioner",duration:"Intensive · Sonia Samtani lineage",body:"Learn to facilitate Fast Track Technique sessions â a rapid energy-clearing modality designed to dissolve subconscious blocks around money, relationships, and success.",img:"/images/Fast-Track-Technique.jpg"}],WE=[{name:"IACT",img:"/images/IACT-Logo.png"},{name:"IMDHA",img:"/images/IMDHA-Logo.png"},{name:"NGH",img:"/images/NGH_Logo.png"}];function BE(){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Practitioner Trainings",title:c.jsxs(c.Fragment,{children:["Become the ",c.jsx("em",{className:"text-accent",children:"practitioner"})," you once needed."]}),intro:c.jsx(c.Fragment,{children:"Our certification programs are internationally accredited and grounded in 20+ years of clinical practice. Whether you are training to build a practice, deepen your existing work, or simply understand yourself more fully â you are welcome here."}),image:"/images/Practitioners-Training-all-about-you-centre.jpg",imageAlt:"Practitioner training at All About You Centre Hong Kong",primaryCta:{label:"Enquire Now",to:"/contact"}}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Programs"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["Our ",c.jsx("em",{className:"text-accent",children:"certification"})," pathways"]})]}),c.jsx("div",{className:"space-y-12",children:$E.map((t,e)=>c.jsxs("article",{className:"grid lg:grid-cols-12 gap-8 lg:gap-12 items-center border-t border-border pt-12 first:border-t-0 first:pt-0",children:[c.jsxs("div",{className:`lg:col-span-5 relative ${e%2===1?"lg:order-2":""}`,children:[c.jsx("div",{className:"absolute -inset-3 border border-gold/40","aria-hidden":!0}),c.jsx("img",{src:t.img,alt:t.title,className:"relative w-full h-72 md:h-96 object-cover",loading:"lazy"})]}),c.jsxs("div",{className:`lg:col-span-7 ${e%2===1?"lg:order-1":""}`,children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-accent mb-3",children:t.duration}),c.jsx("h3",{className:"font-display text-3xl md:text-4xl text-primary leading-tight mb-5 text-balance",children:t.title}),c.jsx("div",{className:"h-px w-12 bg-gold mb-6"}
839),c.jsx("p",{className:"text-foreground/75 text-[15.5px] leading-relaxed mb-7",children:t.body}),c.jsx(ne,{to:"/contact",className:"btn-outline",children:"Enquire About This Training"})]})]},t.title))})]})}),c.jsx("section",{className:"bg-secondary/40 py-16 border-y border-border",children:c.jsxs("div",{className:"container-editorial",children:[c.jsx("p",{className:"eyebrow justify-center text-center inline-flex w-full mb-8",children:"Internationally Accredited"}),c.jsx("div",{className:"flex flex-wrap items-center justify-center gap-12",children:WE.map(t=>c.jsx("img",{src:t.img,alt:`${t.name} logo`,className:"h-14 md:h-20 w-auto object-contain",loading:"lazy"},t.name))})]})}),c.jsx(Mn,{})]})}const UE={"hypnotherapy-level-1":{title:"Hypnotherapy · Level 1",highlights:[{label:"Module",value:"Foundations"},{label:"Format",value:"In-person · Hong Kong"},{label:"Accreditation",value:"IACT, IMDHA & NGH"}]},"hypnotherapy-level-2":{title:"Hypnotherapy · Level 2",highlights:[{label:"Module",value:"Regression & Parts Work"},{label:"Prerequisite",value:"Level 1"}]},"hypnotherapy-level-3":{title:"Hypnotherapy · Level 3",highlights:[{label:"Module",value:"Trauma-Informed Practice"},{label:"Prerequisite",value:"Level 2"}]},"hypnotherapy-level-4":{title:"Hypnotherapy · Level 4",highlights:[{label:"Module",value:"Advanced Protocols"},{label:"Prerequisite",value:"Level 3"}]},"hypnotherapy-level-5":{title:"Hypnotherapy · Level 5",highlights:[{label:"Module",value:"Certifying Capstone"},{label:"Prerequisite",value:"Level 4"},{label:"Outcome",value:"Full Certification"}]},"nlp-practitioner":{title:"NLP Practitioner Certification",highlights:[{label:"Format",value:"In-person · Hong Kong"},{label:"Curriculum",value:"ABNLP-aligned"}]},"fast-track-technique":{title:"Fast Track Technique Practitioner",highlights:[{label:"Format",value:"Intensive"},{label:"Lineage",value:"Sonia Samtani / Jaz Goven"}]}},zE="/images/Practitioners-Training-all-about-you-centre.jpg";function KE(){var a;const{slug:t}=na();if(!t)return c.jsx(gn,{to:"/practitioner-trainings",replace:!0});const e=oa("trainings",t),n=UE[t];if(!e&&!n)return c.jsx(gn,{to:"/practitioner-trainings",replace:!0});const r=(n==null?void 0:n.title)||((a=e==null?void 0:e.title)==null?void 0:a.split(/[-|â]/)[0].trim())||t,s=e&&la(e)||"",i=e&&ca(e)||zE,o=e?aa(e):[];return c.jsx(bi,{eyebrow:"Practitioner Training",title:r,intro:s,image:i,imageAlt:r,blocks:o,skipFirstNImages:1,highlights:n==null?void 0:n.highlights,backTo:{label:"Back to all trainings",to:"/practitioner-trainings"},ctaLabel:"Enquire Now",bodyHeading:c.jsxs(c.Fragment,{children:["About this ",c.jsx("em",{className:"text-accent",children:"training"})]})})}const Fm=[{date:"12â14 June 2026",title:"Be Your Own Master · Level 3",tagline:"Sonia's signature 3-day immersion",body:"An intensive deep-dive into the patterns that have been running your life â and the precise tools to dissolve them. Level 3 is the most advanced of Sonia's signature trainings, designed for those ready to take radical responsibility for their reality.",location:"Hong Kong · 10:00AMâ6:00PM HKT",img:"/images/private-sessions-all-about-you-centre.webp",featured:!0},{date:"Quarterly · See schedule",title:"Be Your Own Master · Level 1",tagline:"The foundational immersion",body:"Your introduction to the framework. Across one transformational weekend, you'll learn to identify and shift the core patterns that shape how you experience love, success, and self.",location:"Hong Kong studio",img:"/images/private-sessions-all-about-you-centre.webp"},{date:"Quarterly · See schedule",title:"Inner Child Healing Workshop",tagline:"Reclaim the parts of you that were left behind",body:"A gentle, profound group experience to meet, witness, and reparent the younger parts of yourself â restoring wholeness and softening lifelong patterns.",location:"Hong Kong studio",img:"/images/Inner-Child-Healing.jpg"},{date:"By announcement",title:"Family Systemic Constellation Day",tagline:"Group constellation work",body:"Surface and resolve hidden dynamics within your family system. A powerful, experiential day that consistently produces deep, often immediate shifts.",location:"Hong Kong studio",img:"/images/Family-Systemic-Constellations.jpg"}];function qE(){const t=Fm.find(n=>n.featured),e=Fm.filter(n=>!n.featured);return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Workshops",title:c.jsxs(c.Fragment,{children:["Group ",c.jsx("em",{className:"text-accent",children:"immersions"})," for personal transformation"]}),intro:c.jsx(c.Fragment,{children:"Our workshops gather small, intentional groups in person at our Hong Kong studio. Each is designed to dissolve patterns, expand awareness, and unlock new possibilities â together, in community."}),image:"/images/private-sessions-all-about-you-centre.webp",imageAlt:"Personal development workshop at All About You Centre",primaryCta:{label:"Reserve Your Place",to:"/contact"}}),t&&c.jsx("section",{className:"bg-primary text-primary-foreground py-20 md:py-28",children:c.jsx("div",{className:"container-editorial",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 lg:gap-16 items-center",children:[c.jsxs("div",{className:"lg:col-span-6 relative",children:[c.jsx("div",{className:"absolute -inset-4 border border-gold/40","aria-hidden":!0}),c.jsx("img",{src:t.img,alt:t.title,className:"relative w-full h-[440px] md:h-[560px] object-cover",loading:"lazy"})]}),c.jsxs("div",{className:"lg:col-span-6",children:[c.jsxs("p",{className:"text-[11px] uppercase tracking-[0.28em] text-accent mb-5",children:["Featured · ",t.date]}),c.jsx("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl leading-[1.05] mb-3 text-balance",children:t.title}),c.jsx("p",{className:"font-display italic text-xl md:text-2xl text-primary-foreground
839/80 mb-6",children:t.tagline}),c.jsx("div",{className:"h-px w-12 bg-gold mb-6"}),c.jsx("p",{className:"text-primary-foreground/85 text-[15.5px] leading-relaxed mb-3",children:t.body}),c.jsx("p",{className:"text-[12px] uppercase tracking-[0.22em] text-primary-foreground/70 mb-8",children:t.location}),c.jsx(ne,{to:"/contact",className:"btn-accent",children:"Reserve Your Place"})]})]})})}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Recurring Workshops"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["Other ",c.jsx("em",{className:"text-accent",children:"workshops"})," running throughout the year"]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8",children:e.map(n=>c.jsxs("article",{className:"bg-card border border-border flex flex-col",children:[c.jsx("div",{className:"relative h-56 overflow-hidden",children:c.jsx("img",{src:n.img,alt:n.title,className:"w-full h-full object-cover",loading:"lazy"})}),c.jsxs("div",{className:"p-7 flex flex-col flex-1",children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-accent mb-3",children:n.date}),c.jsx("h3",{className:"font-display text-2xl text-primary leading-tight mb-2",children:n.title}),c.jsx("p",{className:"font-display italic text-base text-foreground/65 mb-4",children:n.tagline}),c.jsx("div",{className:"h-px w-10 bg-gold mb-4"}),c.jsx("p",{className:"text-foreground/75 text-[14.5px] leading-relaxed mb-6 flex-1",children:n.body}),c.jsx(ne,{to:"/contact",className:"btn-outline self-start",children:"Enquire"})]})]},n.title))})]})}),c.jsx(Mn,{})]})}const VE={"be-your-own-master-1":{title:"Be Your Own Master · Level 1",highlights:[{label:"Format",value:"Weekend Immersion"},{label:"Location",value:"Hong Kong Studio"},{label:"Led By",value:"Sonia Samtani"}]},"be-your-own-master-2":{title:"Be Your Own Master · Level 2",highlights:[{label:"Format",value:"Weekend Immersion"},{label:"Prerequisite",value:"Level 1"},{label:"Led By",value:"Sonia Samtani"}]},"be-your-own-master-3":{title:"Be Your Own Master · Level 3",highlights:[{label:"Dates",value:"12â14 June 2026"},{label:"Schedule",value:"10:00AMâ6:00PM HKT"},{label:"Prerequisite",value:"Level 2"},{label:"Led By",value:"Sonia Samtani"}]},"inner-child-healing":{title:"Healing Your Inner Child",highlights:[{label:"Format",value:"Workshop"},{label:"Location",value:"Hong Kong Studio"},{label:"Led By",value:"Sonia Samtani"}]},manifestation:{title:"Manifestation Workshop"},"mind-body-connection":{title:"Mind-Body Connection"},"connect-with-tarot":{title:"Connect with the Tarot",highlights:[{label:"Format",value:"Workshop"},{label:"Location",value:"Hong Kong Studio"}]}},YE="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Personal-development-all-about-you-centre.jpg?lossy=0&strip=1&webp=1";function JE(){var a;const{slug:t}=na();if(!t)return c.jsx(gn,{to:"/workshops",replace:!0});const e=oa("workshops",t),n=VE[t];if(!e&&!n)return c.jsx(gn,{to:"/workshops",replace:!0});const r=(n==null?void 0:n.title)||((a=e==null?void 0:e.title)==null?void 0:a.split(/[-|â]/)[0].trim())||t,s=e&&la(e)||"",i=e&&ca(e)||YE,o=e?aa(e):[];return c.jsx(bi,{eyebrow:"Workshop",title:r,intro:s,image:i,imageAlt:r,blocks:o,skipFirstNImages:1,highlights:n==null?void 0:n.highlights,backTo:{label:"Back to all workshops",to:"/workshops"},ctaLabel:"Reserve Your Place",bodyHeading:c.jsxs(c.Fragment,{children:["About this ",c.jsx("em",{className:"text-accent",children:"workshop"})]})})}const GE=[{title:"Acceptance",body:"We meet every person exactly where they are â without judgement, agenda, or labels."},{title:"Depth",body:"We work at the root, not the surface. Real change requires going inwards."},{title:"Integrity",body:"Our work is grounded in 20+ years of practice, internationally accredited, and held with care."},{title:"Empowerment",body:"We give you tools, not dependence. Our aim is to make ourselves unnecessary."}];function QE(){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"About Us",title:c.jsxs(c.Fragment,{children:["A space where you are ",c.jsx("em",{className:"text-accent",children:"accepted"}),", exactly as you are."]}),intro:c.jsx(c.Fragment,{children:"All About You is an award-winning Wellness and Hypnotherapy Centre in Hong Kong, founded by Sonia Samtani with an intention to create a space where people feel safe to address their deepest issues â and emerge with the tools to live a fuller life."}),image:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&
839strip=1&webp=1",imageAlt:"All About You Centre Hong Kong office"}),c.jsx(Rb,{}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsxs("div",{className:"max-w-3xl mb-14",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Our Values"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight text-balance",children:["The principles that ",c.jsx("em",{className:"text-accent",children:"hold our work"})]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-px bg-border border border-border",children:GE.map((t,e)=>c.jsxs("div",{className:"bg-background p-8 md:p-10",children:[c.jsxs("div",{className:"font-display italic text-4xl text-accent mb-4",children:["0",e+1]}),c.jsx("h3",{className:"font-display text-2xl text-primary leading-tight mb-3",children:t.title}),c.jsx("div",{className:"h-px w-10 bg-gold mb-4"}),c.jsx("p",{className:"text-foreground/75 text-[14.5px] leading-relaxed",children:t.body})]},t.title))})]})}),c.jsx(jb,{}),c.jsx(Ob,{}),c.jsx(Ib,{}),c.jsx(Mn,{})]})}const ZE=[{name:"Sonia Samtani",role:"Founder & CEO · Master Hypnotherapist and Trainer",img:"/images/Sonia-Samtani-Founder-and-CEO-Master-Hypnotherapist-and-Trainer.png"},{name:"Olivia Mak",role:"Clinical Hypnotherapist",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Olivia-Mak-Clinical-Hypnotherapist.png?lossy=0&strip=1&webp=1"},{name:"Emily Richmond",role:"Intuitive Tarot Reader and Divination Specialist",img:"/images/Emily-richmond-Intuitive-Tarot-Reader-and-Divination-Specialist.png"},{name:"Hafsa Sana Khan",role:"Pain and Trauma Release Specialist",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/hafsa-sana-khan-Pain-and-Trauma-Release-Specialist.png?lossy=0&strip=1&webp=1"},{name:"Vannessa Misso-Veness",role:"Transformational Coach",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Vannessa-misso-veness-Transformational-Coach.png?lossy=0&strip=1&webp=1"},{name:"Stephanie Rault",role:"Holistic Wellness Coach",img:"/images/Stephanie-Rault-Holistic-Wellness-Coach-1.png"},{name:"Navniet Saine",role:"Akashic Reader",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Navniet-Saine-Akashik_Reader.png?lossy=0&strip=1&webp=1"},{name:"Peter Freeth",role:"NLP · Neuro-Linguistic Programming Trainer",img:"/images/Peter-Freeth-NLP-Neuro-Linguistic-Programming-Trainer.png"},{name:"Jaz Goven",role:"Fast Track Technique Founder",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Jaz-Goven-Fast-Track-Technique-Founder.png?lossy=0&strip=1&webp=1"},{name:"Angelina Paraliki",role:"Psychic and Spiritual Consultant",img:"/images/Angelina-Paraliki-Psychic-and-Spiritual-Consultant.png"}],gu="https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Why-All-About-You.jpg?lossy=0&strip=1&webp=1";function XE(){const{sub:t}=na();if(!t)return c.jsx(gn,{to:"/about",replace:!0});if(t==="team")return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Meet the Team",title:c.jsxs(c.Fragment,{children:["The hands and hearts behind ",c.jsx("em",{className:"text-accent",children:"your healing"}),"."]}),intro:"Our resident and visiting practitioners bring decades of combined experience across hypnotherapy, energy work, intuitive guidance, and somatic care.",image:gu,imageAlt:"All About You team"}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsx("div",{className:"container-editorial",children:c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8",children:ZE.map(a=>c.jsxs("div",{className:"group",children:[c.jsx("div",{className:"aspect-[4/5] overflow-hidden bg-secondary mb-5",children:c.jsx("img",{src:a.img,alt:a.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700",loading:"lazy"})}),c.jsx("h3",{className:"font-display text-2xl text-primary leading-tight",children:a.name}),c.jsx("p",{className:"text-[12px] uppercase tracking-[0.18em] text-muted-foreground mt-2",children:a.role})]},a.name))})})}),c.jsx(Mn,{})]});const n={faqs:{eyebrow:"FAQs",title:"Frequently Asked Questions",backLabel:"Back to About"},press:{eyebrow:"Press & Awards",title:"Press & Awards",backLabel:"Back to About"},"free-meditations":{eyebrow:"Free Meditations",title:"Free Guided Meditations",backLabel:"Back to About"},"corporate-wellness":{eyebrow:"Corporate Wellness",title:"Corporate Wellness Programs",backLabel:"Back to About"}}[t];if(!n)return c.jsx(gn,{to:"/about",replace:!0});const r=oa("about",t);if(!r)return c.jsx(bi,{eyebrow:n.eyebrow,title:n.title,intro:"",image:gu,body:[],backTo:{label:n.backLabel,to:"/about"}});const s=la(r)||"",i=ca(r)||gu,o=aa(r);return t==="faqs"?c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:n.eyebrow,title:c.jsxs(c.Fragment,{children:["Frequently Asked ",c.jsx("em",{className:"text-accent",children:"Questions"})]}),intro:s,image:i,imageAlt:n.title}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsx("div",{className:"container-editorial max-w-3xl",children:c.jsx(Lb,{blocks:o,skipImages:!0})})}),c.jsx(Mn,{})]}):c.jsx(bi,{eyebrow:n.eyebrow,title:n.title,intro:s,image:i,imageAlt:n.title,blocks:o,skipFirstNImages:1,backTo:{label:n.backLabel,to:"/about"},ctaLabel:t==="corporate-wellness"?"Enquire for Your Team":"Book a Session"})}const eA=[{title:"What hypnotherapy actually does to your subconscious",excerpt:"A clear-eyed look at the neuroscience behind subconscious reframing â and why one session can sometimes outperform years of talk therapy.",date:"Coming soon",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/holistic-hypnotherapy-1-scaled.jpg?lossy=0&
839strip=1&webp=1"},{title:"Inner child work: the gentle practice changing modern therapy",excerpt:"How meeting and reparenting your younger self can dissolve patterns you've been carrying for decades.",date:"Coming soon",img:"/images/Inner-Child-Healing.jpg"},{title:"Why your body remembers what your mind has forgotten",excerpt:"An introduction to somatic trauma release â and why chronic pain often has emotional roots.",date:"Coming soon",img:"https://b3238988.smushcdn.com/3238988/wp-content/uploads/2025/10/Pain-Relief-and-Trauma-Release.jpg?lossy=0&strip=1&webp=1"},{title:"The Akashic Records explained â without the woo",excerpt:"A grounded look at one of the most ancient â and most misunderstood â modalities of spiritual insight.",date:"Coming soon",img:"/images/Akashic-Reading.jpg"},{title:"Family Constellations: surfacing the inheritance you didn't know you carried",excerpt:"How systemic work brings hidden family dynamics into the light â and what changes when it does.",date:"Coming soon",img:"/images/Family-Systemic-Constellations.jpg"},{title:"Conscious living: 5 daily practices from Sonia's bestselling book",excerpt:"Practical, simple shifts drawn from '52 Thoughts for Conscious Living' that can transform an ordinary week.",date:"Coming soon",img:"/images/Meet-Sonia-Samtani-Pioneering-Hypnotherapist.-All-About-You-Centre-Hong-Kong.png"}];function tA(){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Journal",title:c.jsxs(c.Fragment,{children:["Reflections on ",c.jsx("em",{className:"text-accent",children:"healing"}),", consciousness & inner change."]}),intro:c.jsx(c.Fragment,{children:"Long-form essays, frameworks, and practical pieces from Sonia and the All About You team. Our full archive is on its way â sign up to our newsletter and we'll share new pieces as they go live."})}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial",children:[c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-px bg-border border border-border",children:eA.map(t=>c.jsxs("article",{className:"bg-background flex flex-col",children:[c.jsxs("div",{className:"relative h-56 overflow-hidden",children:[c.jsx("img",{src:t.img,alt:t.title,className:"w-full h-full object-cover transition-transform duration-700 hover:scale-105",loading:"lazy"}),c.jsx("div",{className:"absolute top-4 left-4 text-[10px] uppercase tracking-[0.28em] text-primary-foreground/90 bg-primary/70 backdrop-blur px-2 py-1",children:t.date})]}),c.jsxs("div",{className:"p-7 flex flex-col flex-1",children:[c.jsx("h2",{className:"font-display text-xl md:text-[1.4rem] text-primary leading-snug mb-3 text-balance",children:t.title}),c.jsx("div",{className:"h-px w-10 bg-gold mb-4"}),c.jsx("p",{className:"text-foreground/75 text-[14.5px] leading-relaxed flex-1",children:t.excerpt}),c.jsx("span",{className:"mt-5 text-[11px] uppercase tracking-[0.22em] text-muted-foreground italic",children:"Article publishing soon"})]})]},t.title))}),c.jsxs("div",{className:"mt-16 text-center",children:[c.jsx("p",{className:"font-display italic text-2xl text-foreground/80 mb-6",children:"Want to be notified when articles go live?"}),c.jsx(ne,{to:"/contact",className:"btn-primary",children:"Join Our Newsletter"})]})]})})]})}var de;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(const o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i}
vendor: 1,037 bytes, line 839
839)(de||(de={}));var $m;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})($m||($m={}));const W=de.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),tr=t=>{switch(typeof t){case"undefined":return W.undefined;case"string":return W.string;case"number":return Number.isNaN(t)?W.nan:W.number;case"boolean":return W.boolean;case"function":return W.function;case"bigint":return W.bigint;case"symbol":return W.symbol;case"object":return Array.isArray(t)?W.array:t===null?W.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?W.promise:typeof Map<"u"&&t instanceof Map?W.map:typeof Set<"u"&&t instanceof Set?W.set:typeof Date<"u"&&t instanceof Date?W.date:W.object;default:return W.unknown}},R=de.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invali
839d_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Dn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(o))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),r}static assert(e){if(!(e instanceof Dn))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,de.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Dn.create=t=>new Dn(t);const Fd=(t,e)=>{let n;switch(t.code){case R.invalid_type:t.received===W.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case R.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,de.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:n=`Unrecognized key(s) in object: ${de.joinValues(t.keys,", ")}`;break;case R.invalid_union:n="Invalid input";break;case R.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${de.joinValues(t.options)}`;break;case R.invalid_enum_value:n=`Invalid enum value. Expected ${de.joinValues(t.options)}, received '${t.received}'`;break;case R.invalid_arguments:n="Invalid function arguments";break;case R.invalid_return_type:n="Invalid function return type";break;case R.invalid_date:n="Invalid date";break;case R.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:de.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case R.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case R.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case R.custom:n="Invalid input";break;case R.invalid_intersection_types:n="Intersection results could not be merged";break;case R.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case R.not_finite:n="Number must be finite";break;default:n=e.defaultError,de.assertNever(t)}return{message:n}};let nA=Fd;function rA(){return nA}const sA=t=>
vendor: 29,041 bytes, line 839
839{const{data:e,path:n,errorMaps:r,issueData:s}=t,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:e,defaultError:a}).message;return{...s,path:i,message:a}};function M(t,e){const n=rA(),r=sA({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Fd?void 0:Fd].filter(s=>!!s)});t.common.issues.push(r)}class bt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return Y;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return bt.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return Y;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:e.value,value:r}}}const Y=Object.freeze({status:"aborted"}),Xi=t=>({status:"dirty",value:t}),Rt=t=>({status:"valid",value:t}),Wm=t=>t.status==="aborted",Bm=t=>t.status==="dirty",xi=t=>t.status==="valid",zl=t=>typeof Promise<"u"&&t instanceof Promise;var B;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(B||(B={}));class Rr{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Um=(t,e)=>{if(xi(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Dn(t.common.issues);return this._error=n,this._error}}};function re(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{const{message:l}=t;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class ce{get description(){return this._def.description}_getType(e){return tr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:tr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new bt,ctx:{common:e.parent.common,data:e.data,parsedType:tr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(zl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tr(e)},s=this._parseSync({data:e,path:r.path,parent:r});return Um(r,s)}"~validate"(e){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tr(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:n});return xi(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(i=>xi(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tr(e)},s=this._parse({data:e,path:r.path,parent:r}),i=await(zl(s)?s:Promise.resolve(s));return Um(r,i)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=e(s),a=()=>i.addIssue({code:R.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new Si({schema:this,typeName:J.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Tr.create(this,this._def)}nullable(){return _i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return yn.create(this)}promise(){return Yl.create(this,this._def)}or(e){return ql.create([this,e],this._def)}and(e){return Vl.create(this,e,this._def)}transform(e){return new Si({...re(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Bd({...re(this._def),innerType:this,defaultValue:n,typeName:J.ZodDefault})}brand(){return new EA({typeName:J.ZodBranded,type:this,...re(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ud({...re(this._def),innerType:this,catchValue:n,typeName:J.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return lp.create(this,e)}readonly(){return zd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iA=/^c[^\s-]{8,}$/i,oA=/^[0-9a-z]+$/,aA=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lA=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cA=/^[a-z0-9_-]{21}$/i,uA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,dA=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,hA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vu;const fA=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mA=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yA=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,gA=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Hb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bA=new RegExp(`^${Hb}$`);function Mb(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function xA(t){return new RegExp(`^${Mb(t)}$`)}function kA(t){let e=`${Hb}T${Mb(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function SA(t,e){return!!((e==="v4"||!e)&&fA.test(t)||(e==="v6"||!e)&&yA.test(t))}function _A(t,e){if(!uA.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function TA(t,e){return!!((e==="v4"||!e)&&mA.test(t)||(e==="v6"||!e)&&gA.test(t))}class mr extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==W.string){const i=this._getOrReturnCtx(e);return M(i,{code:R.invalid_type,expected:W.string,received:i.parsedType}),Y}const r=new bt;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),M(s,{code:R.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),M(s,{code:R.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?M(s,{code:R.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&M(s,{code:R.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")hA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"email",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")vu||(vu=new RegExp(pA,"u")),vu.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"emoji",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")lA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"uuid",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")cA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"nanoid",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")iA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"cuid",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")oA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"cuid2",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")aA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"ulid",code:R.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),M(s,{validation:"url",code:R.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"regex",code:R.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),M(s,{code:R.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),M(s,{code:R.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),M(s,{code:R.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?kA(i).test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{code:R.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?bA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{code:R.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?xA(i).test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{code:R.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?dA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"duration",code:R.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?SA(e.data,i.version)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"ip",code:R.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?_A(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"jwt",code:R.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?TA(e.data,i.version)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"cidr",code:R.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?vA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"base64",code:R.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?wA.test(e.data)||(s=this._getOrReturnCtx(e,s),M(s,{validation:"base64url",code:R.invalid_string,message:i.message}),r.dirty()):de.assertNever(i);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:R.invalid_string,...B.errToObj(r)})}_addCheck(e){return new mr({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...B.errToObj(e)})}url(e){return this._addCheck({kind:"url",...B.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...B.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...B.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...B.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...B.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...B.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...B.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...B.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...B.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...B.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...B.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...B.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...B.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...B.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...B.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...B.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...B.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...B.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...B.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...B.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...B.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...B.errToObj(n)})}nonempty(e){return this.min(1,B.errToObj(e))}trim(){return new mr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new mr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new mr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}mr.create=t=>new mr({checks:[],typeName:J.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...re(t)});function CA(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(t.toFixed(s).replace(".","")),o=Number.parseInt(e.toFixed(s).replace(".",""));return i%o/10**s}class Ko extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==W.number){const i=this._getOrReturnCtx(e);return M(i,{code:R.invalid_type,expected:W.number,received:i.parsedType}),Y}let r;const s=new bt;for(const i of this._def.checks)i.kind==="int"?de.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),M(r,{code:R.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),M(r,{code:R.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),M(r,{code:R.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?CA(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),M(r,{code:R.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),M(r,{code:R.not_finite,message:i.message}),s.dirty()):de.assertNever(i);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,B.toString(n))}gt(e,n){return this.setLimit("min",e,!1,B.toString(n))}lte(e,n){return this.setLimit("max",e,!0,B.toString(n))}lt(e,n){return this.setLimit("max",e,!1,B.toString(n))}setLimit(e,n,r,s){return new Ko({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:B.toString(s)}]})}_addCheck(e){return new Ko({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:B.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:B.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:B.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:B.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:B.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:B.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&de.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}Ko.create=t=>new Ko({checks:[],typeName:J.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...re(t)});class qo extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==W.bigint)return this._getInvalidInput(e);let r;const s=new bt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),M(r,{code:R.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),M(r,{code:R.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),M(r,{code:R.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):de.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return M(n,{code:R.invalid_type,expected:W.bigint,received:n.parsedType}),Y}gte(e,n){return this.setLimit("min",e,!0,B.toString(n))}gt(e,n){return this.setLimit("min",e,!1,B.toString(n))}lte(e,n){return this.setLimit("max",e,!0,B.toString(n))}lt(e,n){return this.setLimit("max",e,!1,B.toString(n))}setLimit(e,n,r,s){return new qo({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:B.toString(s)}]})}_addCheck(e){return new qo({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:B.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:B.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}qo.create=t=>new qo({checks:[],typeName:J.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...re(t)});class zm extends ce{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==W.boolean){const r=this._getOrReturnCtx(e);return M(r,{code:R.invalid_type,expected:W.boolean,received:r.parsedType}),Y}return Rt(e.data)}}zm.create=t=>new zm({typeName:J.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...re(t)});class Kl extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==W.date){const i=this._getOrReturnCtx(e);return M(i,{code:R.invalid_type,expected:W.date,received:i.parsedType}),Y}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return M(i,{code:R.invalid_date}),Y}const r=new bt;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),M(s,{code:R.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),M(s,{code:R.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):de.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Kl({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:B.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:B.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Kl.create=t=>new Kl({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:J.ZodDate,...re(t)});class Km extends ce{_parse(e){if(this._getType(e)!==W.symbol){const r=this._getOrReturnCtx(e);return M(r,{code:R.invalid_type,expected:W.symbol,received:r.parsedType}),Y}return Rt(e.data)}}Km.create=t=>new Km({typeName:J.ZodSymbol,...re(t)});class qm extends ce{_parse(e){if(this._getType(e)!==W.undefined){const r=this._getOrReturnCtx(e);return M(r,{code:R.invalid_type,expected:W.undefined,received:r.parsedType}),Y}return Rt(e.data)}}qm.create=t=>new qm({typeName:J.ZodUndefined,...re(t)});class Vm extends ce{_parse(e){if(this._getType(e)!==W.null){const r=this._getOrReturnCtx(e);return M(r,{code:R.invalid_type,expected:W.null,received:r.parsedType}),Y}return Rt(e.data)}}Vm.create=t=>new Vm({typeName:J.ZodNull,...re(t)});class Ym extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return Rt(e.data)}}Ym.create=t=>new Ym({typeName:J.ZodAny,...re(t)});class Jm extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Rt(e.data)}}Jm.create=t=>new Jm({typeName:J.ZodUnknown,...re(t)});class Or extends ce{_parse(e){const n=this._getOrReturnCtx(e);return M(n,{code:R.invalid_type,expected:W.never,received:n.parsedType}),Y}}Or.create=t=>new Or({typeName:J.ZodNever,...re(t)});class Gm extends ce{_parse(e){if(this._getType(e)!==W.undefined){const r=this._getOrReturnCtx(e);return M(r,{code:R.invalid_type,expected:W.void,received:r.parsedType}),Y}return Rt(e.data)}}Gm.create=t=>new Gm({typeName:J.ZodVoid,...re(t)});class yn extends ce{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==W.array)return M(n,{code:R.invalid_type,expected:W.array,received:n.parsedType}),Y;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&(M(n,{code:o?R.too_big:R.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(M(n,{code:R.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(M(n,{code:R.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Rr(n,o,n.path,a)))).then(o=>bt.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Rr(n,o,n.path,a)));return bt.mergeArray(r,i)}
vendor: 5,068 bytes, line 839
839get element(){return this._def.type}min(e,n){return new yn({...this._def,minLength:{value:e,message:B.toString(n)}})}max(e,n){return new yn({...this._def,maxLength:{value:e,message:B.toString(n)}})}length(e,n){return new yn({...this._def,exactLength:{value:e,message:B.toString(n)}})}nonempty(e){return this.min(1,e)}}yn.create=(t,e)=>new yn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:J.ZodArray,...re(e)});function Rs(t){if(t instanceof Ae){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Tr.create(Rs(r))}return new Ae({...t._def,shape:()=>e})}else return t instanceof yn?new yn({...t._def,type:Rs(t.element)}):t instanceof Tr?Tr.create(Rs(t.unwrap())):t instanceof _i?_i.create(Rs(t.unwrap())):t instanceof us?us.create(t.items.map(e=>Rs(e))):t}class Ae extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=de.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==W.object){const u=this._getOrReturnCtx(e);return M(u,{code:R.invalid_type,expected:W.object,received:u.parsedType}),Y}const{status:r,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Or&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const d=i[u],h=s.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new Rr(s,h,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof Or){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")a.length>0&&(M(s,{code:R.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of a){const h=s.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new Rr(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const h=await d.key,f=await d.value;u.push({key:h,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>bt.mergeObjectSync(r,u)):bt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return B.errToObj,new Ae({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:B.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new Ae({...this._def,unknownKeys:"strip"})}passthrough(){return new Ae({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ae({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ae({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:J.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new Ae({...this._def,catchall:e})}pick(e){const n={};for(const r of de.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Ae({...this._def,shape:()=>n})}omit(e){const n={};for(const r of de.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new Ae({...this._def,shape:()=>n})}deepPartial(){return Rs(this)}partial(e){const n={};for(const r of de.objectKeys(this.shape)){const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}return new Ae({...this._def,shape:()=>n})}required(e){const n={};for(const r of de.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Tr;)i=i._def.innerType;n[r]=i}return new Ae({...this._def,shape:()=>n})}keyof(){return Db(de.objectKeys(this.shape))}}Ae.create=(t,e)=>new Ae({shape:()=>t,unknownKeys:"strip",catchall:Or.create(),typeName:J.ZodObject,...re(e)});Ae.strictCreate=(t,e)=>new Ae({shape:()=>t,unknownKeys:"strict",catchall:Or.create(),typeName:J.ZodObject,...re(e)});Ae.lazycreate=(t,e)=>new Ae({shape:t,unknownKeys:"strip",catchall:Or.create(),typeName:J.ZodObject,...re(e)});class ql extends ce{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Dn(a.ctx.common.issues));return M(n,{code:R.invalid_union,unionErrors:o}),Y}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;
vendor: 4,993 bytes, line 839
839const a=o.map(l=>new Dn(l));return M(n,{code:R.invalid_union,unionErrors:a}),Y}}get options(){return this._def.options}}ql.create=(t,e)=>new ql({options:t,typeName:J.ZodUnion,...re(e)});function $d(t,e){const n=tr(t),r=tr(e);if(t===e)return{valid:!0,data:t};if(n===W.object&&r===W.object){const s=de.objectKeys(e),i=de.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(const a of i){const l=$d(t[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===W.array&&r===W.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const o=t[i],a=e[i],l=$d(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===W.date&&r===W.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Vl extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(i,o)=>{if(Wm(i)||Wm(o))return Y;const a=$d(i.value,o.value);return a.valid?((Bm(i)||Bm(o))&&n.dirty(),{status:n.value,value:a.data}):(M(r,{code:R.invalid_intersection_types}),Y)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Vl.create=(t,e,n)=>new Vl({left:t,right:e,typeName:J.ZodIntersection,...re(n)});class us extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==W.array)return M(r,{code:R.invalid_type,expected:W.array,received:r.parsedType}),Y;if(r.data.length<this._def.items.length)return M(r,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Y;!this._def.rest&&r.data.length>this._def.items.length&&(M(r,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Rr(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>bt.mergeArray(n,o)):bt.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new us({...this._def,rest:e})}}us.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new us({items:t,typeName:J.ZodTuple,rest:null,...re(e)})};class Qm extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==W.map)return M(r,{code:R.invalid_type,expected:W.map,received:r.parsedType}),Y;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new Rr(r,a,r.path,[u,"key"])),value:i._parse(new Rr(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return Y;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return Y;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}}Qm.create=(t,e,n)=>new Qm({valueType:e,keyType:t,typeName:J.ZodMap,...re(n)});class Vo extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==W.set)return M(r,{code:R.invalid_type,expected:W.set,received:r.parsedType}),Y;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(M(r,{code:R.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(M(r,{code:R.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const d of l){if(d.status==="aborted")return Y;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>i._parse(new Rr(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,n){return new Vo({...this._def,minSize:{value:e,message:B.toString(n)}})}max(e,n){return new Vo({...this._def,maxSize:{value:e,message:B.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Vo.create=(t,e)=>new Vo({valueType:t,minSize:null,maxSize:null,typeName:J.ZodSet,...re(e)});class Zm extends ce{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Zm.create=(t,e)=>new Zm({getter:t,typeName:J.ZodLazy,...re(e)});class Wd extends ce{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return M(n,{received:n.data,code:R.invalid_literal,expected:this._def.value}),Y}
vendor: 5,343 bytes, line 839
839return{status:"valid",value:e.data}}get value(){return this._def.value}}Wd.create=(t,e)=>new Wd({value:t,typeName:J.ZodLiteral,...re(e)});function Db(t,e){return new ki({values:t,typeName:J.ZodEnum,...re(e)})}class ki extends ce{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return M(n,{expected:de.joinValues(r),received:n.parsedType,code:R.invalid_type}),Y}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return M(n,{received:n.data,code:R.invalid_enum_value,options:r}),Y}return Rt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return ki.create(e,{...this._def,...n})}exclude(e,n=this._def){return ki.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}ki.create=Db;class Xm extends ce{_parse(e){const n=de.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==W.string&&r.parsedType!==W.number){const s=de.objectValues(n);return M(r,{expected:de.joinValues(s),received:r.parsedType,code:R.invalid_type}),Y}if(this._cache||(this._cache=new Set(de.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=de.objectValues(n);return M(r,{received:r.data,code:R.invalid_enum_value,options:s}),Y}return Rt(e.data)}get enum(){return this._def.values}}Xm.create=(t,e)=>new Xm({values:t,typeName:J.ZodNativeEnum,...re(e)});class Yl extends ce{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==W.promise&&n.common.async===!1)return M(n,{code:R.invalid_type,expected:W.promise,received:n.parsedType}),Y;const r=n.parsedType===W.promise?n.data:Promise.resolve(n.data);return Rt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Yl.create=(t,e)=>new Yl({type:t,typeName:J.ZodPromise,...re(e)});class Si extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===J.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{M(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return Y;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?Y:l.status==="dirty"||n.value==="dirty"?Xi(l.value):l});{if(n.value==="aborted")return Y;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?Y:a.status==="dirty"||n.value==="dirty"?Xi(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Y:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Y:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!xi(o))return Y;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>xi(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):Y);de.assertNever(s)}}Si.create=(t,e,n)=>new Si({schema:t,typeName:J.ZodEffects,effect:e,...re(n)});Si.createWithPreprocess=(t,e,n)=>new Si({schema:e,effect:{type:"preprocess",transform:t},typeName:J.ZodEffects,...re(n)});class Tr extends ce{_parse(e){return this._getType(e)===W.undefined?Rt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Tr.create=(t,e)=>new Tr({innerType:t,typeName:J.ZodOptional,...re(e)});class _i extends ce{_parse(e){return this._getType(e)===W.null?Rt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}_i.create=(t,e)=>new _i({innerType:t,typeName:J.ZodNullable,...re(e)});class Bd extends ce{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===W.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Bd.create=(t,e)=>new Bd({innerType:t,typeName:J.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...re(e)});class Ud extends ce{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return zl(s)?s.then(i=>
839({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Dn(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Dn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ud.create=(t,e)=>new Ud({innerType:t,typeName:J.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...re(e)});class ey extends ce{_parse(e){if(this._getType(e)!==W.nan){const r=this._getOrReturnCtx(e);return M(r,{code:R.invalid_type,expected:W.nan,received:r.parsedType}),Y}return{status:"valid",value:e.data}}}ey.create=t=>new ey({typeName:J.ZodNaN,...re(t)});class EA extends ce{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class lp extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Y:i.status==="dirty"?(n.dirty(),Xi(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Y:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new lp({in:e,out:n,typeName:J.ZodPipeline})}}class zd extends ce{_parse(e){const n=this._def.innerType._parse(e),r=s=>(xi(s)&&(s.value=Object.freeze(s.value)),s);return zl(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}zd.create=(t,e)=>new zd({innerType:t,typeName:J.ZodReadonly,...re(e)});Ae.lazycreate;var J;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(J||(J={}));const qt=mr.create;Or.create;yn.create;const Fb=Ae.create;Ae.strictCreate;ql.create;Vl.create;us.create;const qs=Wd.create;ki.create;Yl.create;Tr.create;_i.create;const AA=Fb({name:qt().trim().min(1,"Please enter your name").max(200),email:qt().trim().email("Please enter a valid email").max(320),phone:qt().trim().max(50).optional().or(qs("")),subject:qt().trim().max(300).optional().or(qs("")),message:qt().trim().min(1,"Please add a short message").max(5e3)}),jA=Fb({name:qt().trim().min(1,"Please enter your name").max(200),email:qt().trim().email("Please enter a valid email").max(320),phone:qt().trim().max(50).optional().or(qs("")),preferred_time:qt().trim().max(200).optional().or(qs("")),area_of_interest:qt().trim().max(200).optional().or(qs("")),message:qt().trim().max(3e3).optional().or(qs(""))}),PA=["Anxiety & Depression","Clarity & Direction","Habits, Fears & Phobias","Inner Child Healing","Pain & Trauma Release","Relationships","Workshops","Practitioner Trainings","Not sure yet"];function NA(){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Contact",title:c.jsxs(c.Fragment,{children:["Let's ",c.jsx("em",{className:"text-accent",children:"begin"}),"."]}),intro:c.jsx(c.Fragment,{children:"Whether you have a question, want to book a session, or simply want to know if this work is right for you â we are here. Choose a free consultation call to talk it through, or send us a message and we'll respond personally."})}),c.jsx("section",{className:"bg-background py-20 md:py-28",children:c.jsxs("div",{className:"container-editorial grid lg:grid-cols-12 gap-12 lg:gap-16",children:[c.jsxs("div",{className:"lg:col-span-5",children:[c.jsx("p",{className:"eyebrow mb-6",children:"Get in Touch"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight mb-8 text-balance",children:["We are ",c.jsx("em",{className:"text-accent",children:"listening"})]}
839),c.jsx("p",{className:"text-foreground/75 leading-relaxed mb-10",children:"Our team responds personally â usually within one business day. For something time-sensitive, WhatsApp is the fastest way to reach us."}),c.jsxs("div",{className:"space-y-6 mb-10",children:[c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"mt-1 h-10 w-10 border border-gold/50 flex items-center justify-center shrink-0",children:c.jsx(uo,{className:"h-4 w-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground mb-1",children:"Email"}),c.jsx("a",{href:"mailto:[email protected]",className:"font-display text-xl text-primary hover:text-accent transition-colors",children:"[email protected]"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"mt-1 h-10 w-10 border border-gold/50 flex items-center justify-center shrink-0",children:c.jsx(Ll,{className:"h-4 w-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground mb-1",children:"Phone"}),c.jsx("a",{href:"tel:+85261335976",className:"font-display text-xl text-primary hover:text-accent transition-colors",children:"+852 6133 5976"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"mt-1 h-10 w-10 border border-gold/50 flex items-center justify-center shrink-0",children:c.jsx(xw,{className:"h-4 w-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground mb-1",children:"WhatsApp"}),c.jsx("a",{href:"https://wa.me/85261335976",target:"_blank",rel:"noopener noreferrer",className:"font-display text-xl text-primary hover:text-accent transition-colors",children:"Chat on WhatsApp"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"mt-1 h-10 w-10 border border-gold/50 flex items-center justify-center shrink-0",children:c.jsx(NS,{className:"h-4 w-4 text-accent"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground mb-1",children:"Studio"}),c.jsx("p",{className:"font-display text-xl text-primary leading-tight",children:"All About You Centre"}),c.jsx("p",{className:"text-sm text-foreground/70",children:"Hong Kong"})]})]})]}),c.jsxs("div",{className:"border-t border-border pt-8",children:[c.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground mb-4",children:"Follow Us"}),c.jsx("div",{className:"flex gap-3",children:[{icon:ww,href:"https://www.instagram.com/allaboutyouwellnesscentre/",label:"Instagram"},{icon:vw,href:"https://www.facebook.com/AllAboutYouHK/",label:"Facebook"},{icon:bw,href:"https://hk.linkedin.com/company/all-about-you-wellness-centre",label:"LinkedIn"},{icon:Sw,href:"https://www.youtube.com/@allaboutyouwellnesscentre8713",label:"YouTube"}].map(({icon:t,href:e,label:n})=>c.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer","aria-label":n,className:"h-11 w-11 border border-border flex items-center justify-center text-primary hover:bg-primary hover:text-primary-foreground transition-colors",children:c.jsx(t,{className:"h-4 w-4"})},n))})]})]}),c.jsx("div",{className:"lg:col-span-7",children:c.jsxs("div",{className:"bg-secondary/40 border border-border p-8 md:p-10",children:[c.jsx("p",{className:"eyebrow mb-5",children:"Free Consultation Call"}),c.jsxs("h2",{className:"font-display text-3xl md:text-4xl text-primary leading-tight mb-3 text-balance",children:["Book a ",c.jsx("em",{className:"text-accent",children:"complimentary"})," call"]}),c.jsx("p",{className:"text-foreground/70 leading-relaxed mb-8",children:"A 20-minute call to understand your goals and the right path forward. No commitment."}),c.jsx(RA,{})]})})]})}),c.jsx("section",{className:"bg-secondary/40 py-20 md:py-28 border-t border-border",children:c.jsxs("div",{className:"container-editorial max-w-3xl",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("p",{className:"eyebrow justify-center inline-flex mb-6",children:"General Enquiry"}),c.jsxs("h2",{className:"font-display text-4xl md:text-5xl text-primary leading-tight mb-4 text-balance",children:["Send us a ",c.jsx("em",{className:"text-accent",children:"message"})]}
839),c.jsx("p",{className:"text-foreground/70 leading-relaxed",children:"For everything else â questions about workshops, trainings, partnerships, or media."})]}),c.jsx("div",{className:"bg-background border border-border p-8 md:p-10",children:c.jsx(OA,{})})]})})]})}function Vt({label:t,required:e,children:n,error:r}){return c.jsxs("label",{className:"block",children:[c.jsxs("span",{className:"block text-[11px] uppercase tracking-[0.22em] text-muted-foreground mb-2",children:[t," ",e&&c.jsx("span",{className:"text-accent",children:"*"})]}),n,r&&c.jsx("span",{className:"block mt-1.5 text-xs text-destructive",children:r})]})}const Yt="w-full bg-background border border-border px-4 py-3 text-[15px] text-foreground placeholder:text-muted-foreground/60 focus:outline-none focus:border-accent transition-colors";function RA(){const[t,e]=x.useState({name:"",email:"",phone:"",preferred_time:"",area_of_interest:"",message:""}),[n,r]=x.useState({}),[s,i]=x.useState(!1),[o,a]=x.useState(!1),l=async u=>{u.preventDefault(),r({});const d=jA.safeParse(t);if(!d.success){const p={};d.error.issues.forEach(w=>{w.path[0]&&(p[String(w.path[0])]=w.message)}),r(p);return}i(!0);const h={name:d.data.name,email:d.data.email,phone:d.data.phone||null,preferred_time:d.data.preferred_time||null,area_of_interest:d.data.area_of_interest||null,message:d.data.message||null},{error:f}=await ap.from("consultation_requests").insert(h);if(i(!1),f){fr.error("Sorry, something went wrong. Please try again or email us directly.");return}fr.success("Thank you â we'll be in touch within one business day."),a(!0),e({name:"",email:"",phone:"",preferred_time:"",area_of_interest:"",message:""})};return o?c.jsxs("div",{className:"text-center py-8",children:[c.jsx("div",{className:"font-display text-5xl text-accent italic mb-4",children:"â¦"}),c.jsx("h3",{className:"font-display text-2xl text-primary mb-3",children:"Your request is on its way."}),c.jsx("p",{className:"text-foreground/75 mb-6",children:"We've received your details and will reach out personally within one business day to schedule your call."}),c.jsx("button",{onClick:()=>a(!1),className:"btn-outline",children:"Submit Another"})]}):c.jsxs("form",{onSubmit:l,className:"space-y-5",children:[c.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[c.jsx(Vt,{label:"Your Name",required:!0,error:n.name,children:c.jsx("input",{type:"text",value:t.name,onChange:u=>e({...t,name:u.target.value}),maxLength:200,className:Yt,placeholder:"Jane Doe"})}),c.jsx(Vt,{label:"Email",required:!0,error:n.email,children:c.jsx("input",{type:"email",value:t.email,onChange:u=>e({...t,email:u.target.value}),maxLength:320,className:Yt,placeholder:"[email protected]"})})]}),c.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[c.jsx(Vt,{label:"Phone (optional)",error:n.phone,children:c.jsx("input",{type:"tel",value:t.phone,onChange:u=>e({...t,phone:u.target.value}),maxLength:50,className:Yt,placeholder:"+852 ..."})}),c.jsx(Vt,{label:"Preferred Time (optional)",error:n.preferred_time,children:c.jsx("input",{type:"text",value:t.preferred_time,onChange:u=>e({...t,preferred_time:u.target.value}),maxLength:200,className:Yt,placeholder:"Weekday mornings, etc."})})]}),c.jsx(Vt,{label:"What would you like to explore?",error:n.area_of_interest,children:c.jsxs("select",{value:t.area_of_interest,onChange:u=>e({...t,area_of_interest:u.target.value}),className:Yt,children:[c.jsx("option",{value:"",children:"Select an area (optional)"}),PA.map(u=>c.jsx("option",{value:u,children:u},u))]})}),c.jsx(Vt,{label:"Anything you'd like us to know? (optional)",error:n.message,children:c.jsx("textarea",{rows:4,value:t.message,onChange:u=>e({...t,message:u.target.value}),maxLength:3e3,className:Yt,placeholder:"A few sentences is plenty."})}),c.jsx("button",{type:"submit",disabled:s,className:"btn-primary w-full justify-center",children:s?c.jsxs(c.Fragment,{children:[c.jsx(Yh,{className:"h-4 w-4 animate-spin"})," Submittingâ¦"]}):"Request My Free Call"}),c.jsx("p",{className:"text-[11px] text-muted-foreground text-center pt-2",children:"We respect your privacy. Your details are stored securely and never shared."})]})}
839function OA(){const[t,e]=x.useState({name:"",email:"",phone:"",subject:"",message:""}),[n,r]=x.useState({}),[s,i]=x.useState(!1),[o,a]=x.useState(!1),l=async u=>{u.preventDefault(),r({});const d=AA.safeParse(t);if(!d.success){const p={};d.error.issues.forEach(w=>{w.path[0]&&(p[String(w.path[0])]=w.message)}),r(p);return}i(!0);const h={name:d.data.name,email:d.data.email,phone:d.data.phone||null,subject:d.data.subject||null,message:d.data.message},{error:f}=await ap.from("contact_submissions").insert(h);if(i(!1),f){fr.error("Sorry, something went wrong. Please try again or email us directly.");return}fr.success("Thank you â your message has been received."),a(!0),e({name:"",email:"",phone:"",subject:"",message:""})};return o?c.jsxs("div",{className:"text-center py-6",children:[c.jsx("div",{className:"font-display text-5xl text-accent italic mb-4",children:"â¦"}),c.jsx("h3",{className:"font-display text-2xl text-primary mb-3",children:"Message received."}),c.jsx("p",{className:"text-foreground/75 mb-6",children:"Thank you for reaching out. We'll respond personally â usually within one business day."}),c.jsx("button",{onClick:()=>a(!1),className:"btn-outline",children:"Send Another"})]}):c.jsxs("form",{onSubmit:l,className:"space-y-5",children:[c.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[c.jsx(Vt,{label:"Your Name",required:!0,error:n.name,children:c.jsx("input",{type:"text",value:t.name,onChange:u=>e({...t,name:u.target.value}),maxLength:200,className:Yt,placeholder:"Jane Doe"})}),c.jsx(Vt,{label:"Email",required:!0,error:n.email,children:c.jsx("input",{type:"email",value:t.email,onChange:u=>e({...t,email:u.target.value}),maxLength:320,className:Yt,placeholder:"[email protected]"})})]}),c.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[c.jsx(Vt,{label:"Phone (optional)",error:n.phone,children:c.jsx("input",{type:"tel",value:t.phone,onChange:u=>e({...t,phone:u.target.value}),maxLength:50,className:Yt,placeholder:"+852 ..."})}),c.jsx(Vt,{label:"Subject (optional)",error:n.subject,children:c.jsx("input",{type:"text",value:t.subject,onChange:u=>e({...t,subject:u.target.value}),maxLength:300,className:Yt,placeholder:"What is this about?"})})]}),c.jsx(Vt,{label:"Your Message",required:!0,error:n.message,children:c.jsx("textarea",{rows:6,value:t.message,onChange:u=>e({...t,message:u.target.value}),maxLength:5e3,className:Yt,placeholder:"Tell us a little about what's on your mind..."})}),c.jsx("button",{type:"submit",disabled:s,className:"btn-primary w-full justify-center",children:s?c.jsxs(c.Fragment,{children:[c.jsx(Yh,{className:"h-4 w-4 animate-spin"})," Sendingâ¦"]}):"Send Message"})]})}function cp({title:t,intro:e,sections:n}){return c.jsxs(c.Fragment,{children:[c.jsx(tn,{eyebrow:"Legal",title:t,intro:e}),c.jsx("section",{className:"bg-background py-16 md:py-24",children:c.jsxs("div",{className:"container-editorial max-w-3xl",children:[c.jsx("div",{className:"space-y-12",children:n.map(r=>c.jsxs("div",{children:[c.jsx("h2",{className:"font-display text-3xl text-primary mb-5 leading-tight",children:r.heading}),c.jsx("div",{className:"space-y-4 text-foreground/80 leading-relaxed text-[15.5px]",children:r.body.map((s,i)=>c.jsx("p",{children:s},i))})]},r.heading))}),c.jsxs("p",{className:"mt-16 pt-8 border-t border-border text-xs text-muted-foreground",children:["Last updated: ",new Date().toLocaleDateString("en-GB",{year:"numeric",month:"long"})]})]})})]})}function IA(){return c.jsx(cp,{title:"Privacy Policy",intro:"Your trust matters to us. This page explains what we collect, why, and how we protect it.",sections:[{heading:"What we collect",body:["When you contact us, request a free consultation, or subscribe to our newsletter, we collect the information you provide â typically your name, email, and any message or context you share with us.","Session-related health information shared with our practitioners is held in strict confidence under professional standards (IACT, IMDHA, NGH)."]},{heading:"How we use it",body:["We use your information solely to respond to you, schedule sessions or workshops, and send communications you have signed up for. We never sell or share your details with third parties for marketing purposes."]},{heading:"How long we keep it",body:["Form submissions are retained for as long as needed to maintain our client records and as required by professional standards. Newsletter subscribers can unsubscribe at any time."]},{heading:"Your rights",body:["You can request access to, correction of, or deleti
839on of your personal data by emailing [email protected]. We will respond within a reasonable timeframe."]}]})}function LA(){return c.jsx(cp,{title:"Terms of Service",intro:"The terms that govern your use of this site and our services.",sections:[{heading:"About our services",body:["All About You Centre offers Hypnotherapy, alternative healing modalities, workshops, and practitioner trainings. Our practitioners are professionally trained and accredited (IACT, IMDHA, NGH).","Our services are intended to support personal growth and wellbeing. They are not a substitute for medical, psychiatric, or psychological treatment. If you are under medical care, we recommend speaking with your doctor before commencing sessions."]},{heading:"Bookings & cancellations",body:["Sessions, workshops, and trainings are confirmed once payment is received. Specific cancellation terms are shared at the time of booking and vary by service."]},{heading:"Confidentiality",body:["Everything shared in a session is confidential, in line with our professional accreditations. Exceptions apply only where required by law (e.g. risk of serious harm)."]},{heading:"Liability",body:["By engaging our services, you acknowledge that personal change is a process and individual outcomes vary. We do not guarantee specific results."]}]})}function HA(){return c.jsx(cp,{title:"Cookie Policy",intro:"A short note on the cookies we use and why.",sections:[{heading:"What are cookies?",body:["Cookies are small text files stored by your browser when you visit a website. They allow sites to remember your preferences and to function properly."]},{heading:"What we use",body:["We use only essential cookies needed for the site to function, plus minimal analytics cookies that help us understand which pages are most useful to visitors. No personal information is collected via cookies."]},{heading:"Managing cookies",body:["You can manage or disable cookies in your browser settings at any time. Disabling cookies may affect some site features but you can still browse most of the site normally."]}]})}const MA=()=>{const t=Wn();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),c.jsx("section",{className:"bg-background py-32 md:py-40",children:c.jsxs("div",{className:"container-editorial text-center max-w-2xl",children:[c.jsx("p",{className:"eyebrow justify-center inline-flex mb-6",children:"Page Not Found"}),c.jsx("h1",{className:"font-display text-7xl md:text-9xl text-primary italic mb-6",children:"404"}),c.jsx("p",{className:"font-display text-2xl md:text-3xl text-foreground/80 leading-snug mb-10 text-balance",children:"The page you were looking for has wandered off â perhaps it's on a healing journey of its own."}),c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[c.jsx(ne,{to:"/",className:"btn-primary",children:"Return Home"}),c.jsx(ne,{to:"/contact",className:"btn-outline",children:"Contact Us"})]})]})})},DA=new U1,FA=()=>c.jsx(K1,{client:DA,children:c.jsxs(X_,{children:[c.jsx(f8,{}),c.jsx(Ak,{}),c.jsx(z2,{children:c.jsx(H2,{children:c.jsxs(Ie,{element:c.jsx(sE,{}),children:[c.jsx(Ie,{path:"/",element:c.jsx(wE,{})}),c.jsx(Ie,{path:"/holistic-hypnotherapy",element:c.jsx(kE,{})}),c.jsx(Ie,{path:"/holistic-hypnotherapy/:slug",element:c.jsx(OE,{})}),c.jsx(Ie,{path:"/alternative-healing",element:c.jsx(HE,{})}),c.jsx(Ie,{path:"/alternative-healing/:slug",element:c.jsx(FE,{})}),c.jsx(Ie,{path:"/practitioner-trainings",element:c.jsx(BE,{})}),c.jsx(Ie,{path:"/practitioner-trainings/:slug",element:c.jsx(KE,{})}),c.jsx(Ie,{path:"/workshops",element:c.jsx(qE,{})}),c.jsx(Ie,{path:"/workshops/:slug",element:c.jsx(JE,{})}),c.jsx(Ie,{path:"/about",element:c.jsx(QE,{})}),c.jsx(Ie,{path:"/about/:sub",element:c.jsx(XE,{})}),c.jsx(Ie,{path:"/blog",element:c.jsx(tA,{})}),c.jsx(Ie,{path:"/contact",element:c.jsx(NA,{})}),c.jsx(Ie,{path:"/privacy",element:c.jsx(IA,{})}),c.jsx(Ie,{path:"/terms",element:c.jsx(LA,{})}),c.jsx(Ie,{path:"/cookies",element:c.jsx(HA,{})}),c.jsx(Ie,{path:"*",element:c.jsx(MA,{})})]})})})]})});_v(document.getElementById("root")).render(c.jsx(FA,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.