@storybook/addon-onboarding 1.0.12-canary.84.dfd1d9c.0 → 2.0.0--canary.84.fe09b4b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -0
- package/dist/manager.mjs +80 -96
- package/dist/manager.mjs.map +1 -1
- package/dist/preset.js +1 -1
- package/dist/preset.js.map +1 -1
- package/package.json +19 -26
package/dist/manager.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import * as T from 'react';
|
|
2
|
+
import T__default, { lazy, Suspense, useState, useCallback, useEffect, useMemo, forwardRef, useRef, createRef, useLayoutEffect, createElement, Fragment, createContext, Children, isValidElement, cloneElement, useContext, useReducer, useId, useInsertionEffect } from 'react';
|
|
3
|
+
import * as On from 'react-dom';
|
|
4
|
+
import On__default, { createPortal, flushSync } from 'react-dom';
|
|
5
|
+
import Gw from 'react-confetti';
|
|
5
6
|
import { ThemeProvider, useTheme, convert, styled, keyframes, ensure, themes, css } from '@storybook/theming';
|
|
6
7
|
import { STORY_SPECIFIED, UPDATE_STORY_ARGS, STORY_INDEX_INVALIDATED, STORY_RENDERED } from '@storybook/core-events';
|
|
7
8
|
import { Icons, SyntaxHighlighter } from '@storybook/components';
|
|
8
9
|
import { addons } from '@storybook/manager-api';
|
|
9
10
|
|
|
10
|
-
var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDescriptor;var tb=Object.getOwnPropertyNames;var rb=Object.getPrototypeOf,nb=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var We=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lc=(e,t)=>{for(var r in t)mo(e,r,{get:t[r],enumerable:!0});},uc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tb(t))!nb.call(e,o)&&o!==r&&mo(e,o,{get:()=>t[o],enumerable:!(n=eb(t,o))||n.enumerable});return e};var Qe=(e,t,r)=>(r=e!=null?J0(rb(e)):{},uc(t||!e||!e.__esModule?mo(r,"default",{value:e,enumerable:!0}):r,e)),ob=e=>uc(mo({},"__esModule",{value:!0}),e);var fc=We((cO,cc)=>{var ib="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";cc.exports=ib;});var hc=We((fO,mc)=>{var ab=fc();function pc(){}function dc(){}dc.resetWarningCache=pc;mc.exports=function(){function e(n,o,i,a,s,l){if(l!==ab){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dc,resetWarningCache:pc};return r.PropTypes=r,r};});var gc=We((mO,vc)=>{vc.exports=hc()();});function yc(e){return function(t){return typeof t===e}}var sb,lb,Ma,Da,ub,bc=v(()=>{sb=yc("function"),lb=function(e){return e===null},Ma=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},Da=function(e){return !ub(e)&&!lb(e)&&(sb(e)||typeof e=="object")},ub=yc("undefined");});function cb(e,t){var r=e.length;if(r!==t.length)return !1;for(var n=r;n--!==0;)if(!ve(e[n],t[n]))return !1;return !0}function fb(e,t){if(e.byteLength!==t.byteLength)return !1;for(var r=new DataView(e.buffer),n=new DataView(t.buffer),o=e.byteLength;o--;)if(r.getUint8(o)!==n.getUint8(o))return !1;return !0}function pb(e,t){var r,n,o,i;if(e.size!==t.size)return !1;try{for(var a=La(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return !1}}catch(f){r={error:f};}finally{try{s&&!s.done&&(n=a.return)&&n.call(a);}finally{if(r)throw r.error}}try{for(var u=La(e.entries()),c=u.next();!c.done;c=u.next()){var l=c.value;if(!ve(l[1],t.get(l[0])))return !1}}catch(f){o={error:f};}finally{try{c&&!c.done&&(i=u.return)&&i.call(u);}finally{if(o)throw o.error}}return !0}function db(e,t){var r,n;if(e.size!==t.size)return !1;try{for(var o=La(e.entries()),i=o.next();!i.done;i=o.next()){var a=i.value;if(!t.has(a[0]))return !1}}catch(s){r={error:s};}finally{try{i&&!i.done&&(n=o.return)&&n.call(o);}finally{if(r)throw r.error}}return !0}function ve(e,t){if(e===t)return !0;if(e&&Da(e)&&t&&Da(t)){if(e.constructor!==t.constructor)return !1;if(Array.isArray(e)&&Array.isArray(t))return cb(e,t);if(e instanceof Map&&t instanceof Map)return pb(e,t);if(e instanceof Set&&t instanceof Set)return db(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return fb(e,t);if(Ma(e)&&Ma(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return !1;for(var o=r.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return !1;for(var o=r.length;o--!==0;){var i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ve(e[i],t[i]))return !1}return !0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var La,Ia=v(()=>{bc();La=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};});var xc=v(()=>{});function ho(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return "HTMLElement";if(gb(t))return t}function Ue(e){return function(t){return ho(t)===e}}function gb(e){return hb.includes(e)}function hr(e){return function(t){return typeof t===e}}function yb(e){return vb.includes(e)}function A(e){if(e===null)return "null";switch(typeof e){case"bigint":return "bigint";case"boolean":return "boolean";case"number":return "number";case"string":return "string";case"symbol":return "symbol";case"undefined":return "undefined";}if(A.array(e))return "Array";if(A.plainFunction(e))return "Function";var t=ho(e);return t||"Object"}var mb,hb,vb,M,vo=v(()=>{xc();mb=["innerHTML","ownerDocument","style","attributes","nodeValue"],hb=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],vb=["bigint","boolean","null","number","string","symbol","undefined"];A.array=Array.isArray;A.arrayOf=function(e,t){return !A.array(e)&&!A.function(t)?!1:e.every(function(r){return t(r)})};A.asyncGeneratorFunction=function(e){return ho(e)==="AsyncGeneratorFunction"};A.asyncFunction=Ue("AsyncFunction");A.bigint=hr("bigint");A.boolean=function(e){return e===!0||e===!1};A.date=Ue("Date");A.defined=function(e){return !A.undefined(e)};A.domElement=function(e){return A.object(e)&&!A.plainObject(e)&&e.nodeType===1&&A.string(e.nodeName)&&mb.every(function(t){return t in e})};A.empty=function(e){return A.string(e)&&e.length===0||A.array(e)&&e.length===0||A.object(e)&&!A.map(e)&&!A.set(e)&&Object.keys(e).length===0||A.set(e)&&e.size===0||A.map(e)&&e.size===0};A.error=Ue("Error");A.function=hr("function");A.generator=function(e){return A.iterable(e)&&A.function(e.next)&&A.function(e.throw)};A.generatorFunction=Ue("GeneratorFunction");A.instanceOf=function(e,t){return !e||!t?!1:Object.getPrototypeOf(e)===t.prototype};A.iterable=function(e){return !A.nullOrUndefined(e)&&A.function(e[Symbol.iterator])};A.map=Ue("Map");A.nan=function(e){return Number.isNaN(e)};A.null=function(e){return e===null};A.nullOrUndefined=function(e){return A.null(e)||A.undefined(e)};A.number=function(e){return hr("number")(e)&&!A.nan(e)};A.numericString=function(e){return A.string(e)&&e.length>0&&!Number.isNaN(Number(e))};A.object=function(e){return !A.nullOrUndefined(e)&&(A.function(e)||typeof e=="object")};A.oneOf=function(e,t){return A.array(e)?e.indexOf(t)>-1:!1};A.plainFunction=Ue("Function");A.plainObject=function(e){if(ho(e)!=="Object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};A.primitive=function(e){return A.null(e)||yb(typeof e)};A.promise=Ue("Promise");A.propertyOf=function(e,t,r){if(!A.object(e)||!t)return !1;var n=e[t];return A.function(r)?r(n):A.defined(n)};A.regexp=Ue("RegExp");A.set=Ue("Set");A.string=hr("string");A.symbol=hr("symbol");A.undefined=hr("undefined");A.weakMap=Ue("WeakMap");A.weakSet=Ue("WeakSet");M=A;});function bb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(r){return M.string(r)||M.array(r)||M.plainObject(r)})}function xb(e,t,r){return Cc(e,t)?[e,t].every(M.array)?!e.some(wc(r))&&t.some(wc(r)):[e,t].every(M.plainObject)?!Object.entries(e).some(Sc(r))&&Object.entries(t).some(Sc(r)):t===r:!1}function ka(e,t,r){var n=r.actual,o=r.key,i=r.previous,a=r.type,s=He(e,o),l=He(t,o),u=[s,l].every(M.number)&&(a==="increased"?s<l:s>l);return M.undefined(n)||(u=u&&l===n),M.undefined(i)||(u=u&&s===i),u}function Na(e,t,r){var n=r.key,o=r.type,i=r.value,a=He(e,n),s=He(t,n),l=o==="added"?a:s,u=o==="added"?s:a;if(!M.nullOrUndefined(i)){if(M.defined(l)){if(M.array(l)||M.plainObject(l))return xb(l,u,i)}else return ve(u,i);return !1}return [a,s].every(M.array)?!u.every(Fa(l)):[a,s].every(M.plainObject)?Sb(Object.keys(l),Object.keys(u)):![a,s].every(function(c){return M.primitive(c)&&M.defined(c)})&&(o==="added"?!M.defined(a)&&M.defined(s):M.defined(a)&&!M.defined(s))}function Va(e,t,r){var n=r===void 0?{}:r,o=n.key,i=He(e,o),a=He(t,o);if(!Cc(i,a))throw new TypeError("Inputs have different types");if(!bb(i,a))throw new TypeError("Inputs don't have length");return [i,a].every(M.plainObject)&&(i=Object.keys(i),a=Object.keys(a)),[i,a]}function Sc(e){return function(t){var r=t[0],n=t[1];return M.array(e)?ve(e,n)||e.some(function(o){return ve(o,n)||M.array(n)&&Fa(n)(o)}):M.plainObject(e)&&e[r]?!!e[r]&&ve(e[r],n):ve(e,n)}}function Sb(e,t){return t.some(function(r){return !e.includes(r)})}function wc(e){return function(t){return M.array(e)?e.some(function(r){return ve(r,t)||M.array(t)&&Fa(t)(r)}):ve(e,t)}}function vr(e,t){return M.array(e)?e.some(function(r){return ve(r,t)}):ve(e,t)}function Fa(e){return function(t){return e.some(function(r){return ve(r,t)})}}function Cc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(M.array)||e.every(M.number)||e.every(M.plainObject)||e.every(M.string)}function He(e,t){if(M.plainObject(e)||M.array(e)){if(M.string(t)){var r=t.split(".");return r.reduce(function(n,o){return n&&n[o]},e)}return M.number(t)?e[t]:e}return e}var Ec=v(()=>{Ia();vo();});var Pc=v(()=>{});function At(e,t){if([e,t].some(M.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(f){return M.plainObject(f)||M.array(f)}))throw new Error("Expected plain objects or array");var r=function(f,p){try{return Na(e,t,{key:f,type:"added",value:p})}catch{return !1}},n=function(f,p,d){try{var m=He(e,f),h=He(t,f),g=M.defined(p),b=M.defined(d);if(g||b){var y=b?vr(d,m):!vr(p,m),x=vr(p,h);return y&&x}return [m,h].every(M.array)||[m,h].every(M.plainObject)?!ve(m,h):m!==h}catch{return !1}},o=function(f,p,d){if(!M.defined(f))return !1;try{var m=He(e,f),h=He(t,f),g=M.defined(d);return vr(p,m)&&(g?vr(d,h):!g)}catch{return !1}},i=function(f,p){return M.defined(f)?n(f,p):!1},a=function(f,p,d){if(!M.defined(f))return !1;try{return ka(e,t,{key:f,actual:p,previous:d,type:"decreased"})}catch{return !1}},s=function(f){try{var p=Va(e,t,{key:f}),d=p[0],m=p[1];return !!d.length&&!m.length}catch{return !1}},l=function(f){try{var p=Va(e,t,{key:f}),d=p[0],m=p[1];return !d.length&&!!m.length}catch{return !1}},u=function(f,p,d){if(!M.defined(f))return !1;try{return ka(e,t,{key:f,actual:p,previous:d,type:"increased"})}catch{return !1}},c=function(f,p){try{return Na(e,t,{key:f,type:"removed",value:p})}catch{return !1}};return {added:r,changed:n,changedFrom:o,changedTo:i,decreased:a,emptied:s,filled:l,increased:u,removed:c}}var ja=v(()=>{Ia();vo();Ec();Pc();});function go(e){let t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return "HTMLElement";if(Pb(t))return t}function ze(e){return t=>go(t)===e}function Pb(e){return Cb.includes(e)}function gr(e){return t=>typeof t===e}function Tb(e){return Eb.includes(e)}function $(e){if(e===null)return "null";switch(typeof e){case"bigint":return "bigint";case"boolean":return "boolean";case"number":return "number";case"string":return "string";case"symbol":return "symbol";case"undefined":return "undefined";}if($.array(e))return "Array";if($.plainFunction(e))return "Function";let t=go(e);return t||"Object"}var wb,Cb,Eb,oe,Tc=v(()=>{wb=["innerHTML","ownerDocument","style","attributes","nodeValue"],Cb=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Eb=["bigint","boolean","null","number","string","symbol","undefined"];$.array=Array.isArray;$.arrayOf=(e,t)=>!$.array(e)&&!$.function(t)?!1:e.every(r=>t(r));$.asyncGeneratorFunction=e=>go(e)==="AsyncGeneratorFunction";$.asyncFunction=ze("AsyncFunction");$.bigint=gr("bigint");$.boolean=e=>e===!0||e===!1;$.date=ze("Date");$.defined=e=>!$.undefined(e);$.domElement=e=>$.object(e)&&!$.plainObject(e)&&e.nodeType===1&&$.string(e.nodeName)&&wb.every(t=>t in e);$.empty=e=>$.string(e)&&e.length===0||$.array(e)&&e.length===0||$.object(e)&&!$.map(e)&&!$.set(e)&&Object.keys(e).length===0||$.set(e)&&e.size===0||$.map(e)&&e.size===0;$.error=ze("Error");$.function=gr("function");$.generator=e=>$.iterable(e)&&$.function(e.next)&&$.function(e.throw);$.generatorFunction=ze("GeneratorFunction");$.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;$.iterable=e=>!$.nullOrUndefined(e)&&$.function(e[Symbol.iterator]);$.map=ze("Map");$.nan=e=>Number.isNaN(e);$.null=e=>e===null;$.nullOrUndefined=e=>$.null(e)||$.undefined(e);$.number=e=>gr("number")(e)&&!$.nan(e);$.numericString=e=>$.string(e)&&e.length>0&&!Number.isNaN(Number(e));$.object=e=>!$.nullOrUndefined(e)&&($.function(e)||typeof e=="object");$.oneOf=(e,t)=>$.array(e)?e.indexOf(t)>-1:!1;$.plainFunction=ze("Function");$.plainObject=e=>{if(go(e)!=="Object")return !1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};$.primitive=e=>$.null(e)||Tb(typeof e);$.promise=ze("Promise");$.propertyOf=(e,t,r)=>{if(!$.object(e)||!t)return !1;let n=e[t];return $.function(r)?r(n):$.defined(n)};$.regexp=ze("RegExp");$.set=ze("Set");$.string=gr("string");$.symbol=gr("symbol");$.undefined=gr("undefined");$.weakMap=ze("WeakMap");$.weakSet=ze("WeakSet");oe=$;});var Ba=We(($O,yo)=>{(function(){var e=!!(typeof window<"u"&&window.document&&window.document.createElement),t={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return t}):typeof yo<"u"&&yo.exports?yo.exports=t:window.ExecutionEnvironment=t;})();});var Rc=We((RO,$c)=>{var Ob=new Error("Element already at target scroll position"),Ab=new Error("Scroll cancelled"),$b=Math.min,Oc=Date.now;$c.exports={left:Ac("scrollLeft"),top:Ac("scrollTop")};function Ac(e){return function(r,n,o,i){o=o||{},typeof o=="function"&&(i=o,o={}),typeof i!="function"&&(i=_b);var a=Oc(),s=r[e],l=o.ease||Rb,u=isNaN(o.duration)?350:+o.duration,c=!1;return s===n?i(Ob,r[e]):requestAnimationFrame(p),f;function f(){c=!0;}function p(d){if(c)return i(Ab,r[e]);var m=Oc(),h=$b(1,(m-a)/u),g=l(h);r[e]=g*(n-s)+s,h<1?requestAnimationFrame(p):requestAnimationFrame(function(){i(null,r[e]);});}}}function Rb(e){return .5*(1-Math.cos(Math.PI*e))}function _b(){}});var Mc=We((_c,bo)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof bo=="object"&&bo.exports?bo.exports=t():e.Scrollparent=t();})(_c,function(){function e(r){var n=getComputedStyle(r,null).getPropertyValue("overflow");return n.indexOf("scroll")>-1||n.indexOf("auto")>-1}function t(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var n=r.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode;}return document.scrollingElement||document.documentElement}}return t});});var Lc=We(Z=>{var pe=typeof Symbol=="function"&&Symbol.for,Wa=pe?Symbol.for("react.element"):60103,Ua=pe?Symbol.for("react.portal"):60106,xo=pe?Symbol.for("react.fragment"):60107,So=pe?Symbol.for("react.strict_mode"):60108,wo=pe?Symbol.for("react.profiler"):60114,Co=pe?Symbol.for("react.provider"):60109,Eo=pe?Symbol.for("react.context"):60110,Ha=pe?Symbol.for("react.async_mode"):60111,Po=pe?Symbol.for("react.concurrent_mode"):60111,To=pe?Symbol.for("react.forward_ref"):60112,Oo=pe?Symbol.for("react.suspense"):60113,Mb=pe?Symbol.for("react.suspense_list"):60120,Ao=pe?Symbol.for("react.memo"):60115,$o=pe?Symbol.for("react.lazy"):60116,Db=pe?Symbol.for("react.block"):60121,Lb=pe?Symbol.for("react.fundamental"):60117,Ib=pe?Symbol.for("react.responder"):60118,kb=pe?Symbol.for("react.scope"):60119;function _e(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wa:switch(e=e.type,e){case Ha:case Po:case xo:case wo:case So:case Oo:return e;default:switch(e=e&&e.$$typeof,e){case Eo:case To:case $o:case Ao:case Co:return e;default:return t}}case Ua:return t}}}function Dc(e){return _e(e)===Po}Z.AsyncMode=Ha;Z.ConcurrentMode=Po;Z.ContextConsumer=Eo;Z.ContextProvider=Co;Z.Element=Wa;Z.ForwardRef=To;Z.Fragment=xo;Z.Lazy=$o;Z.Memo=Ao;Z.Portal=Ua;Z.Profiler=wo;Z.StrictMode=So;Z.Suspense=Oo;Z.isAsyncMode=function(e){return Dc(e)||_e(e)===Ha};Z.isConcurrentMode=Dc;Z.isContextConsumer=function(e){return _e(e)===Eo};Z.isContextProvider=function(e){return _e(e)===Co};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wa};Z.isForwardRef=function(e){return _e(e)===To};Z.isFragment=function(e){return _e(e)===xo};Z.isLazy=function(e){return _e(e)===$o};Z.isMemo=function(e){return _e(e)===Ao};Z.isPortal=function(e){return _e(e)===Ua};Z.isProfiler=function(e){return _e(e)===wo};Z.isStrictMode=function(e){return _e(e)===So};Z.isSuspense=function(e){return _e(e)===Oo};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xo||e===Po||e===wo||e===So||e===Oo||e===Mb||typeof e=="object"&&e!==null&&(e.$$typeof===$o||e.$$typeof===Ao||e.$$typeof===Co||e.$$typeof===Eo||e.$$typeof===To||e.$$typeof===Lb||e.$$typeof===Ib||e.$$typeof===kb||e.$$typeof===Db)};Z.typeOf=_e;});var kc=We((MO,Ic)=>{Ic.exports=Lc();});var za=We((DO,Fc)=>{var Nb=function(t){return Vb(t)&&!Fb(t)};function Vb(e){return !!e&&typeof e=="object"}function Fb(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Wb(e)}var jb=typeof Symbol=="function"&&Symbol.for,Bb=jb?Symbol.for("react.element"):60103;function Wb(e){return e.$$typeof===Bb}function Ub(e){return Array.isArray(e)?[]:{}}function ln(e,t){return t.clone!==!1&&t.isMergeableObject(e)?yr(Ub(e),e,t):e}function Hb(e,t,r){return e.concat(t).map(function(n){return ln(n,r)})}function zb(e,t){if(!t.customMerge)return yr;var r=t.customMerge(e);return typeof r=="function"?r:yr}function Gb(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Nc(e){return Object.keys(e).concat(Gb(e))}function Vc(e,t){try{return t in e}catch{return !1}}function qb(e,t){return Vc(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Kb(e,t,r){var n={};return r.isMergeableObject(e)&&Nc(e).forEach(function(o){n[o]=ln(e[o],r);}),Nc(t).forEach(function(o){qb(e,o)||(Vc(e,o)&&r.isMergeableObject(t[o])?n[o]=zb(o,r)(e[o],t[o],r):n[o]=ln(t[o],r));}),n}function yr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Hb,r.isMergeableObject=r.isMergeableObject||Nb,r.cloneUnlessOtherwiseSpecified=ln;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):Kb(e,t,r):ln(t,r)}yr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return yr(n,o,r)},{})};var Yb=yr;Fc.exports=Yb;});var jc=We(Ga=>{Object.defineProperty(Ga,"__esModule",{value:!0});var Xb="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Zb="The error message is optional, but must be a string if provided.",Qb=function(t,r,n,o){return typeof t=="boolean"?t:typeof t=="function"?t(r,n,o):!!t&&!!t},Jb=function(t,r){return Object.hasOwnProperty.call(t,r)},ex=function(t,r,n,o){return o?new Error(o):new Error("Required "+t[r]+" `"+r+"`"+(" was not specified in `"+n+"`."))},tx=function(t,r){if(typeof t!="function")throw new TypeError(Xb);if(r&&typeof r!="string")throw new TypeError(Zb)},rx=function(t,r,n){return tx(t,n),function(o,i,a){for(var s=arguments.length,l=Array(3<s?s-3:0),u=3;u<s;u++)l[u-3]=arguments[u];return Qb(r,o,i,a)?Jb(o,i)?t.apply(void 0,[o,i,a].concat(l)):ex(o,i,a,n):t.apply(void 0,[o,i,a].concat(l))}};Ga.default=rx;});function ox(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e();}));}}function ix(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e();},nx));}}function Gc(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zt(e,t){if(e.nodeType!==1)return [];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function Qa(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function cn(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return /(auto|scroll|overlay)/.test(r+o+n)?e:cn(Qa(e))}function qc(e){return e&&e.referenceNode?e.referenceNode:e}function wr(e){return e===11?Bc:e===10?Wc:Bc||Wc}function br(e){if(!e)return document.documentElement;for(var t=wr(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return !n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&zt(r,"position")==="static"?br(r):r}function lx(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||br(e.firstElementChild)===e}function Ya(e){return e.parentNode!==null?Ya(e.parentNode):e}function Ro(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,o=r?t:e,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||n.contains(o))return lx(a)?a:br(a);var s=Ya(e);return s.host?Ro(s.host,t):Ro(e,Ya(t).host)}function xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[r]}return e[r]}function ux(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=xr(t,"top"),o=xr(t,"left"),i=r?-1:1;return e.top+=n*i,e.bottom+=n*i,e.left+=o*i,e.right+=o*i,e}function Uc(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function Hc(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],wr(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Kc(e){var t=e.body,r=e.documentElement,n=wr(10)&&getComputedStyle(r);return {height:Hc("Height",t,r,n),width:Hc("Width",t,r,n)}}function $t(e){return Ie({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Xa(e){var t={};try{if(wr(10)){t=e.getBoundingClientRect();var r=xr(e,"top"),n=xr(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n;}else t=e.getBoundingClientRect();}catch{}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i=e.nodeName==="HTML"?Kc(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=zt(e);l-=Uc(c,"x"),u-=Uc(c,"y"),o.width-=l,o.height-=u;}return $t(o)}function Ja(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=wr(10),o=t.nodeName==="HTML",i=Xa(e),a=Xa(t),s=cn(e),l=zt(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);r&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=$t({top:i.top-a.top-u,left:i.left-a.left-c,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!n&&o){var p=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);f.top-=u-p,f.bottom-=u-p,f.left-=c-d,f.right-=c-d,f.marginTop=p,f.marginLeft=d;}return (n&&!r?t.contains(s):t===s&&s.nodeName!=="BODY")&&(f=ux(f,t)),f}function px(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=Ja(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:xr(r),s=t?0:xr(r,"left"),l={top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:i};return $t(l)}function Yc(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return !1;if(zt(e,"position")==="fixed")return !0;var r=Qa(e);return r?Yc(r):!1}function Xc(e){if(!e||!e.parentElement||wr())return document.documentElement;for(var t=e.parentElement;t&&zt(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function es(e,t,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},a=o?Xc(e):Ro(e,qc(t));if(n==="viewport")i=px(a,o);else {var s=void 0;n==="scrollParent"?(s=cn(Qa(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):n==="window"?s=e.ownerDocument.documentElement:s=n;var l=Ja(s,a,o);if(s.nodeName==="HTML"&&!Yc(a)){var u=Kc(e.ownerDocument),c=u.height,f=u.width;i.top+=l.top-l.marginTop,i.bottom=c+l.top,i.left+=l.left-l.marginLeft,i.right=f+l.left;}else i=l;}r=r||0;var p=typeof r=="number";return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function dx(e){var t=e.width,r=e.height;return t*r}function Zc(e,t,r,n,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=es(r,n,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(p){return Ie({key:p},s[p],{area:dx(s[p])})}).sort(function(p,d){return d.area-p.area}),u=l.filter(function(p){var d=p.width,m=p.height;return d>=r.clientWidth&&m>=r.clientHeight}),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function Qc(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=n?Xc(t):Ro(t,qc(r));return Ja(r,o,n)}function Jc(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:e.offsetWidth+o,height:e.offsetHeight+n};return i}function _o(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function ef(e,t,r){r=r.split("-")[0];var n=Jc(e),o={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[l]/2-n[l]/2,r===s?o[s]=t[s]-n[u]:o[s]=t[_o(s)],o}function fn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function mx(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(o){return o[t]===r});var n=fn(e,function(o){return o[t]===r});return e.indexOf(n)}function tf(e,t,r){var n=r===void 0?e:e.slice(0,mx(e,"name",r));return n.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=o.function||o.fn;o.enabled&&Gc(i)&&(t.offsets.popper=$t(t.offsets.popper),t.offsets.reference=$t(t.offsets.reference),t=i(t,o));}),t}function hx(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Qc(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Zc(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ef(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=tf(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e));}}function rf(e,t){return e.some(function(r){var n=r.name,o=r.enabled;return o&&n===t})}function ts(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var o=t[n],i=o?""+o+r:e;if(typeof document.body.style[i]<"u")return i}return null}function vx(){return this.state.isDestroyed=!0,rf(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ts("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function nf(e){var t=e.ownerDocument;return t?t.defaultView:window}function of(e,t,r,n){var o=e.nodeName==="BODY",i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,r,{passive:!0}),o||of(cn(i.parentNode),t,r,n),n.push(i);}function gx(e,t,r,n){r.updateBound=n,nf(e).addEventListener("resize",r.updateBound,{passive:!0});var o=cn(e);return of(o,"scroll",r.updateBound,r.scrollParents),r.scrollElement=o,r.eventsEnabled=!0,r}function yx(){this.state.eventsEnabled||(this.state=gx(this.reference,this.options,this.state,this.scheduleUpdate));}function bx(e,t){return nf(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound);}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function xx(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=bx(this.reference,this.state));}function rs(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Za(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&rs(t[r])&&(n="px"),e.style[r]=t[r]+n;});}function Sx(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r);});}function wx(e){return Za(e.instance.popper,e.styles),Sx(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Za(e.arrowElement,e.arrowStyles),e}function Cx(e,t,r,n,o){var i=Qc(o,t,e,r.positionFixed),a=Zc(r.placement,i,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",a),Za(t,{position:r.positionFixed?"fixed":"absolute"}),r}function Ex(e,t){var r=e.offsets,n=r.popper,o=r.reference,i=Math.round,a=Math.floor,s=function(b){return b},l=i(o.width),u=i(n.width),c=["left","right"].indexOf(e.placement)!==-1,f=e.placement.indexOf("-")!==-1,p=l%2===u%2,d=l%2===1&&u%2===1,m=t?c||f||p?i:a:s,h=t?i:s;return {left:m(d&&!f&&t?n.left-1:n.left),top:h(n.top),bottom:h(n.bottom),right:m(n.right)}}function Tx(e,t){var r=t.x,n=t.y,o=e.offsets.popper,i=fn(e.instance.modifiers,function(x){return x.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=i!==void 0?i:t.gpuAcceleration,s=br(e.instance.popper),l=Xa(s),u={position:o.position},c=Ex(e,window.devicePixelRatio<2||!Px),f=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",d=ts("transform"),m=void 0,h=void 0;if(f==="bottom"?s.nodeName==="HTML"?h=-s.clientHeight+c.bottom:h=-l.height+c.bottom:h=c.top,p==="right"?s.nodeName==="HTML"?m=-s.clientWidth+c.right:m=-l.width+c.right:m=c.left,a&&d)u[d]="translate3d("+m+"px, "+h+"px, 0)",u[f]=0,u[p]=0,u.willChange="transform";else {var g=f==="bottom"?-1:1,b=p==="right"?-1:1;u[f]=h*g,u[p]=m*b,u.willChange=f+", "+p;}var y={"x-placement":e.placement};return e.attributes=Ie({},y,e.attributes),e.styles=Ie({},u,e.styles),e.arrowStyles=Ie({},e.offsets.arrow,e.arrowStyles),e}function af(e,t,r){var n=fn(e,function(s){var l=s.name;return l===t}),o=!!n&&e.some(function(s){return s.name===r&&s.enabled&&s.order<n.order});if(!o){var i="`"+t+"`",a="`"+r+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!");}return o}function Ox(e,t){var r;if(!af(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=["left","right"].indexOf(o)!==-1,u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),p=l?"left":"top",d=l?"bottom":"right",m=Jc(n)[u];s[d]-m<a[f]&&(e.offsets.popper[f]-=a[f]-(s[d]-m)),s[f]+m>a[d]&&(e.offsets.popper[f]+=s[f]+m-a[d]),e.offsets.popper=$t(e.offsets.popper);var h=s[f]+s[u]/2-m/2,g=zt(e.instance.popper),b=parseFloat(g["margin"+c]),y=parseFloat(g["border"+c+"Width"]),x=h-e.offsets.popper[f]-b-y;return x=Math.max(Math.min(a[u]-m,x),0),e.arrowElement=n,e.offsets.arrow=(r={},Sr(r,f,Math.round(x)),Sr(r,p,""),r),e}function Ax(e){return e==="end"?"start":e==="start"?"end":e}function zc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=qa.indexOf(e),n=qa.slice(r+1).concat(qa.slice(0,r));return t?n.reverse():n}function $x(e,t){if(rf(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=es(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],o=_o(n),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ka.FLIP:a=[n,o];break;case Ka.CLOCKWISE:a=zc(n);break;case Ka.COUNTERCLOCKWISE:a=zc(n,!0);break;default:a=t.behavior;}return a.forEach(function(s,l){if(n!==s||a.length===l+1)return e;n=e.placement.split("-")[0],o=_o(n);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,p=n==="left"&&f(u.right)>f(c.left)||n==="right"&&f(u.left)<f(c.right)||n==="top"&&f(u.bottom)>f(c.top)||n==="bottom"&&f(u.top)<f(c.bottom),d=f(u.left)<f(r.left),m=f(u.right)>f(r.right),h=f(u.top)<f(r.top),g=f(u.bottom)>f(r.bottom),b=n==="left"&&d||n==="right"&&m||n==="top"&&h||n==="bottom"&&g,y=["top","bottom"].indexOf(n)!==-1,x=!!t.flipVariations&&(y&&i==="start"&&d||y&&i==="end"&&m||!y&&i==="start"&&h||!y&&i==="end"&&g),w=!!t.flipVariationsByContent&&(y&&i==="start"&&m||y&&i==="end"&&d||!y&&i==="start"&&g||!y&&i==="end"&&h),C=x||w;(p||b||C)&&(e.flipped=!0,(p||b)&&(n=a[l+1]),C&&(i=Ax(i)),e.placement=n+(i?"-"+i:""),e.offsets.popper=Ie({},e.offsets.popper,ef(e.instance.popper,e.offsets.reference,e.placement)),e=tf(e.instance.modifiers,e,"flip"));}),e}function Rx(e){var t=e.offsets,r=t.popper,n=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=["top","bottom"].indexOf(o)!==-1,s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return r[s]<i(n[l])&&(e.offsets.popper[l]=i(n[l])-r[u]),r[l]>i(n[s])&&(e.offsets.popper[l]=i(n[s])),e}function _x(e,t,r,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=r;break;case"%":case"%r":default:s=n;}var l=$t(s);return l[t]/100*i}else if(a==="vh"||a==="vw"){var u=void 0;return a==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}else return i}function Mx(e,t,r,n){var o=[0,0],i=["right","left"].indexOf(n)!==-1,a=e.split(/(\+|\-)/).map(function(c){return c.trim()}),s=a.indexOf(fn(a,function(c){return c.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(c,f){var p=(f===1?!i:i)?"height":"width",d=!1;return c.reduce(function(m,h){return m[m.length-1]===""&&["+","-"].indexOf(h)!==-1?(m[m.length-1]=h,d=!0,m):d?(m[m.length-1]+=h,d=!1,m):m.concat(h)},[]).map(function(m){return _x(m,p,t,r)})}),u.forEach(function(c,f){c.forEach(function(p,d){rs(p)&&(o[f]+=p*(c[d-1]==="-"?-1:1));});}),o}function Dx(e,t){var r=t.offset,n=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=n.split("-")[0],l=void 0;return rs(+r)?l=[+r,0]:l=Mx(r,i,a,s),s==="left"?(i.top+=l[0],i.left-=l[1]):s==="right"?(i.top+=l[0],i.left+=l[1]):s==="top"?(i.left+=l[0],i.top-=l[1]):s==="bottom"&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e}function Lx(e,t){var r=t.boundariesElement||br(e.instance.popper);e.instance.reference===r&&(r=br(r));var n=ts("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[n];o.top="",o.left="",o[n]="";var l=es(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);o.top=i,o.left=a,o[n]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(d){var m=c[d];return c[d]<l[d]&&!t.escapeWithReference&&(m=Math.max(c[d],l[d])),Sr({},d,m)},secondary:function(d){var m=d==="right"?"left":"top",h=c[m];return c[d]>l[d]&&!t.escapeWithReference&&(h=Math.min(c[m],l[d]-(d==="right"?c.width:c.height))),Sr({},m,h)}};return u.forEach(function(p){var d=["left","top"].indexOf(p)!==-1?"primary":"secondary";c=Ie({},c,f[d](p));}),e.offsets.popper=c,e}function Ix(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets,i=o.reference,a=o.popper,s=["bottom","top"].indexOf(r)!==-1,l=s?"left":"top",u=s?"width":"height",c={start:Sr({},l,i[l]),end:Sr({},l,i[l]+i[u]-a[u])};e.offsets.popper=Ie({},a,c[n]);}return e}function kx(e){if(!af(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=fn(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]="";}else {if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1;}return e}function Nx(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,o=n.popper,i=n.reference,a=["left","right"].indexOf(r)!==-1,s=["top","left"].indexOf(r)===-1;return o[a?"left":"top"]=i[r]-(s?o[a?"width":"height"]:0),e.placement=_o(t),e.offsets.popper=$t(o),e}var un,nx,ax,sx,Bc,Wc,cx,fx,Sr,Ie,Px,sf,qa,Ka,Vx,Fx,Mo,ns,lf=v(()=>{un=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",nx=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(un&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();ax=un&&window.Promise,sx=ax?ox:ix;Bc=un&&!!(window.MSInputMethodContext&&document.documentMode),Wc=un&&/MSIE 10/.test(navigator.userAgent);cx=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},fx=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o);}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Sr=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e};Px=un&&/Firefox/i.test(navigator.userAgent);sf=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],qa=sf.slice(3);Ka={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};Vx={shift:{order:100,enabled:!0,fn:Ix},offset:{order:200,enabled:!0,fn:Dx,offset:0},preventOverflow:{order:300,enabled:!0,fn:Lx,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Rx},arrow:{order:500,enabled:!0,fn:Ox,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:$x,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Nx},hide:{order:800,enabled:!0,fn:kx},computeStyle:{order:850,enabled:!0,fn:Tx,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:wx,onLoad:Cx,gpuAcceleration:void 0}},Fx={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Vx},Mo=function(){function e(t,r){var n=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};cx(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=sx(this.update.bind(this)),this.options=Ie({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Ie({},e.Defaults.modifiers,o.modifiers)).forEach(function(a){n.options.modifiers[a]=Ie({},e.Defaults.modifiers[a]||{},o.modifiers?o.modifiers[a]:{});}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return Ie({name:a},n.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&Gc(a.onLoad)&&a.onLoad(n.reference,n.popper,n.options,a,n.state);}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i;}return fx(e,[{key:"update",value:function(){return hx.call(this)}},{key:"destroy",value:function(){return vx.call(this)}},{key:"enableEventListeners",value:function(){return yx.call(this)}},{key:"disableEventListeners",value:function(){return xx.call(this)}}]),e}();Mo.Utils=(typeof window<"u"?window:global).PopperUtils;Mo.placements=sf;Mo.Defaults=Fx;ns=Mo;});function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n);}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){ye(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}function mn(e,t,r){return t&&cf(e.prototype,t),r&&cf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&as(e,t);}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ko(e)}function as(e,t){return as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},as(e,t)}function jx(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function Bx(e,t){if(e==null)return {};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function df(e,t){if(e==null)return {};var r=Bx(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wx(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lt(e)}function vn(e){var t=jx();return function(){var n=ko(e),o;if(t){var i=ko(this).constructor;o=Reflect.construct(n,arguments,i);}else o=n.apply(this,arguments);return Wx(this,o)}}function os(){return "ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Do(e){var t=e.title,r=e.data,n=e.warn,o=n===void 0?!1:n,i=e.debug,a=i===void 0?!1:i,s=o?console.warn||console.error:console.log;a&&t&&r&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(l){M.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l]);}):s.apply(console,[r]),console.groupEnd());}function Hx(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,r,n);}function zx(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,r,n);}function Gx(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o;o=function(a){r(a),zx(e,t,o);},Hx(e,t,o,n);}function ff(){}function Yx(e){var t=(0, Io.default)(Kx,e.options||{});return {wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var E,is,Io,pf,Ux,z,ut,pn,mf,hf,qx,vf,gf,yf,bf,Kx,Xx,Zx,No,xf=v(()=>{E=Qe(gc()),is=Qe(jc());lf();Io=Qe(za());vo();ja();pf=Qe(Ba());Ux={flip:{padding:20},preventOverflow:{padding:10}},z={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},ut=pf.default.canUseDOM,pn=Lo.createPortal!==void 0;mf=function(e){hn(r,e);var t=vn(r);function r(){return dn(this,r),t.apply(this,arguments)}return mn(r,[{key:"componentDidMount",value:function(){ut&&(this.node||this.appendNode(),pn||this.renderPortal());}},{key:"componentDidUpdate",value:function(){ut&&(pn||this.renderPortal());}},{key:"componentWillUnmount",value:function(){!ut||!this.node||(pn||Lo.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0));}},{key:"appendNode",value:function(){var o=this.props,i=o.id,a=o.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node));}},{key:"renderPortal",value:function(){if(!ut)return null;var o=this.props,i=o.children,a=o.setRef;if(this.node||this.appendNode(),pn)return Lo.createPortal(i,this.node);var s=Lo.unstable_renderSubtreeIntoContainer(this,i.length>1?O__default.createElement("div",null,i):i[0],this.node);return a(s),null}},{key:"renderReact16",value:function(){var o=this.props,i=o.hasChildren,a=o.placement,s=o.target;return i?this.renderPortal():s||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return pn?this.renderReact16():null}}]),r}(O__default.Component);ye(mf,"propTypes",{children:E.default.oneOfType([E.default.element,E.default.array]),hasChildren:E.default.bool,id:E.default.oneOfType([E.default.string,E.default.number]),placement:E.default.string,setRef:E.default.func.isRequired,target:E.default.oneOfType([E.default.object,E.default.string]),zIndex:E.default.number});hf=function(e){hn(r,e);var t=vn(r);function r(){return dn(this,r),t.apply(this,arguments)}return mn(r,[{key:"parentStyle",get:function(){var o=this.props,i=o.placement,a=o.styles,s=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):i.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):i.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):i.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var o=this.props,i=o.placement,a=o.setArrowRef,s=o.styles,l=s.arrow,u=l.color,c=l.display,f=l.length,p=l.margin,d=l.position,m=l.spread,h={display:c,position:d},g,b=m,y=f;return i.startsWith("top")?(g="0,0 ".concat(b/2,",").concat(y," ").concat(b,",0"),h.bottom=0,h.marginLeft=p,h.marginRight=p):i.startsWith("bottom")?(g="".concat(b,",").concat(y," ").concat(b/2,",0 0,").concat(y),h.top=0,h.marginLeft=p,h.marginRight=p):i.startsWith("left")?(y=m,b=f,g="0,0 ".concat(b,",").concat(y/2," 0,").concat(y),h.right=0,h.marginTop=p,h.marginBottom=p):i.startsWith("right")&&(y=m,b=f,g="".concat(b,",").concat(y," ").concat(b,",0 0,").concat(y/2),h.left=0,h.marginTop=p,h.marginBottom=p),O__default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},O__default.createElement("span",{ref:a,style:h},O__default.createElement("svg",{width:b,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},O__default.createElement("polygon",{points:g,fill:u}))))}}]),r}(O__default.Component);ye(hf,"propTypes",{placement:E.default.string.isRequired,setArrowRef:E.default.func.isRequired,styles:E.default.object.isRequired});qx=["color","height","width"],vf=function(t){var r=t.handleClick,n=t.styles,o=n.color,i=n.height,a=n.width,s=df(n,qx);return O__default.createElement("button",{"aria-label":"close",onClick:r,style:s,type:"button"},O__default.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},O__default.createElement("g",null,O__default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};vf.propTypes={handleClick:E.default.func.isRequired,styles:E.default.object.isRequired};gf=function(t){var r=t.content,n=t.footer,o=t.handleClick,i=t.open,a=t.positionWrapper,s=t.showCloseButton,l=t.title,u=t.styles,c={content:O__default.isValidElement(r)?r:O__default.createElement("div",{className:"__floater__content",style:u.content},r)};return l&&(c.title=O__default.isValidElement(l)?l:O__default.createElement("div",{className:"__floater__title",style:u.title},l)),n&&(c.footer=O__default.isValidElement(n)?n:O__default.createElement("div",{className:"__floater__footer",style:u.footer},n)),(s||a)&&!M.boolean(i)&&(c.close=O__default.createElement(vf,{styles:u.close,handleClick:o})),O__default.createElement("div",{className:"__floater__container",style:u.container},c.close,c.title,c.content,c.footer)};gf.propTypes={content:E.default.node.isRequired,footer:E.default.node,handleClick:E.default.func.isRequired,open:E.default.bool,positionWrapper:E.default.bool.isRequired,showCloseButton:E.default.bool.isRequired,styles:E.default.object.isRequired,title:E.default.node};yf=function(e){hn(r,e);var t=vn(r);function r(){return dn(this,r),t.apply(this,arguments)}return mn(r,[{key:"style",get:function(){var o=this.props,i=o.disableAnimation,a=o.component,s=o.placement,l=o.hideArrow,u=o.status,c=o.styles,f=c.arrow.length,p=c.floater,d=c.floaterCentered,m=c.floaterClosing,h=c.floaterOpening,g=c.floaterWithAnimation,b=c.floaterWithComponent,y={};return l||(s.startsWith("top")?y.padding="0 0 ".concat(f,"px"):s.startsWith("bottom")?y.padding="".concat(f,"px 0 0"):s.startsWith("left")?y.padding="0 ".concat(f,"px 0 0"):s.startsWith("right")&&(y.padding="0 0 0 ".concat(f,"px"))),[z.OPENING,z.OPEN].indexOf(u)!==-1&&(y=ne(ne({},y),h)),u===z.CLOSING&&(y=ne(ne({},y),m)),u===z.OPEN&&!i&&(y=ne(ne({},y),g)),s==="center"&&(y=ne(ne({},y),d)),a&&(y=ne(ne({},y),b)),ne(ne({},p),y)}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.handleClick,s=o.hideArrow,l=o.setFloaterRef,u=o.status,c={},f=["__floater"];return i?O__default.isValidElement(i)?c.content=O__default.cloneElement(i,{closeFn:a}):c.content=i({closeFn:a}):c.content=O__default.createElement(gf,this.props),u===z.OPEN&&f.push("__floater__open"),s||(c.arrow=O__default.createElement(hf,this.props)),O__default.createElement("div",{ref:l,className:f.join(" "),style:this.style},O__default.createElement("div",{className:"__floater__body"},c.content,c.arrow))}}]),r}(O__default.Component);ye(yf,"propTypes",{component:E.default.oneOfType([E.default.func,E.default.element]),content:E.default.node,disableAnimation:E.default.bool.isRequired,footer:E.default.node,handleClick:E.default.func.isRequired,hideArrow:E.default.bool.isRequired,open:E.default.bool,placement:E.default.string.isRequired,positionWrapper:E.default.bool.isRequired,setArrowRef:E.default.func.isRequired,setFloaterRef:E.default.func.isRequired,showCloseButton:E.default.bool,status:E.default.string.isRequired,styles:E.default.object.isRequired,title:E.default.node});bf=function(e){hn(r,e);var t=vn(r);function r(){return dn(this,r),t.apply(this,arguments)}return mn(r,[{key:"render",value:function(){var o=this.props,i=o.children,a=o.handleClick,s=o.handleMouseEnter,l=o.handleMouseLeave,u=o.setChildRef,c=o.setWrapperRef,f=o.style,p=o.styles,d;if(i)if(O__default.Children.count(i)===1)if(!O__default.isValidElement(i))d=O__default.createElement("span",null,i);else {var m=M.function(i.type)?"innerRef":"ref";d=O__default.cloneElement(O__default.Children.only(i),ye({},m,u));}else d=i;return d?O__default.createElement("span",{ref:c,style:ne(ne({},p),f),onClick:a,onMouseEnter:s,onMouseLeave:l},d):null}}]),r}(O__default.Component);ye(bf,"propTypes",{children:E.default.node,handleClick:E.default.func.isRequired,handleMouseEnter:E.default.func.isRequired,handleMouseLeave:E.default.func.isRequired,setChildRef:E.default.func.isRequired,setWrapperRef:E.default.func.isRequired,style:E.default.object,styles:E.default.object.isRequired});Kx={zIndex:100};Xx=["arrow","flip","offset"],Zx=["position","top","right","bottom","left"],No=function(e){hn(r,e);var t=vn(r);function r(n){var o;return dn(this,r),o=t.call(this,n),ye(lt(o),"setArrowRef",function(i){o.arrowRef=i;}),ye(lt(o),"setChildRef",function(i){o.childRef=i;}),ye(lt(o),"setFloaterRef",function(i){o.floaterRef=i;}),ye(lt(o),"setWrapperRef",function(i){o.wrapperRef=i;}),ye(lt(o),"handleTransitionEnd",function(){var i=o.state.status,a=o.props.callback;o.wrapperPopper&&o.wrapperPopper.instance.update(),o.setState({status:i===z.OPENING?z.OPEN:z.IDLE},function(){var s=o.state.status;a(s===z.OPEN?"open":"close",o.props);});}),ye(lt(o),"handleClick",function(){var i=o.props,a=i.event,s=i.open;if(!M.boolean(s)){var l=o.state,u=l.positionWrapper,c=l.status;(o.event==="click"||o.event==="hover"&&u)&&(Do({title:"click",data:[{event:a,status:c===z.OPEN?"closing":"opening"}],debug:o.debug}),o.toggle());}}),ye(lt(o),"handleMouseEnter",function(){var i=o.props,a=i.event,s=i.open;if(!(M.boolean(s)||os())){var l=o.state.status;o.event==="hover"&&l===z.IDLE&&(Do({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:o.debug}),clearTimeout(o.eventDelayTimeout),o.toggle());}}),ye(lt(o),"handleMouseLeave",function(){var i=o.props,a=i.event,s=i.eventDelay,l=i.open;if(!(M.boolean(l)||os())){var u=o.state,c=u.status,f=u.positionWrapper;o.event==="hover"&&(Do({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:o.debug}),s?[z.OPENING,z.OPEN].indexOf(c)!==-1&&!f&&!o.eventDelayTimeout&&(o.eventDelayTimeout=setTimeout(function(){delete o.eventDelayTimeout,o.toggle();},s*1e3)):o.toggle(z.IDLE));}}),o.state={currentPlacement:n.placement,needsUpdate:!1,positionWrapper:n.wrapperOptions.position&&!!n.target,status:z.INIT,statusWrapper:z.INIT},o._isMounted=!1,o.hasMounted=!1,ut&&window.addEventListener("load",function(){o.popper&&o.popper.instance.update(),o.wrapperPopper&&o.wrapperPopper.instance.update();}),o}return mn(r,[{key:"componentDidMount",value:function(){if(ut){var o=this.state.positionWrapper,i=this.props,a=i.children,s=i.open,l=i.target;this._isMounted=!0,Do({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:M.boolean(s),positionWrapper:o,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&M.boolean(s);}}},{key:"componentDidUpdate",value:function(o,i){if(ut){var a=this.props,s=a.autoOpen,l=a.open,u=a.target,c=a.wrapperOptions,f=At(i,this.state),p=f.changedFrom,d=f.changed;if(o.open!==l){var m;M.boolean(l)&&(m=l?z.OPENING:z.CLOSING),this.toggle(m);}(o.wrapperOptions.position!==c.position||o.target!==u)&&this.changeWrapperPosition(this.props),d("status",z.IDLE)&&l?this.toggle(z.OPEN):p("status",z.INIT,z.IDLE)&&s&&this.toggle(z.OPEN),this.popper&&d("status",z.OPENING)&&this.popper.instance.update(),this.floaterRef&&(d("status",z.OPENING)||d("status",z.CLOSING))&&Gx(this.floaterRef,"transitionend",this.handleTransitionEnd),d("needsUpdate",!0)&&this.rebuildPopper();}}},{key:"componentWillUnmount",value:function(){ut&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy());}},{key:"initPopper",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,s=this.props,l=s.disableFlip,u=s.getPopper,c=s.hideArrow,f=s.offset,p=s.placement,d=s.wrapperOptions,m=p==="top"||p==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(p==="center")this.setState({status:z.IDLE});else if(i&&this.floaterRef){var h=this.options,g=h.arrow,b=h.flip,y=h.offset,x=df(h,Xx);new ns(i,this.floaterRef,{placement:p,modifiers:ne({arrow:ne({enabled:!c,element:this.arrowRef},g),flip:ne({enabled:!l,behavior:m},b),offset:ne({offset:"0, ".concat(f,"px")},y)},x),onCreate:function(P){var D;if(o.popper=P,!((D=o.floaterRef)!==null&&D!==void 0&&D.isConnected)){o.setState({needsUpdate:!0});return}u(P,"floater"),o._isMounted&&o.setState({currentPlacement:P.placement,status:z.IDLE}),p!==P.placement&&setTimeout(function(){P.instance.update();},1);},onUpdate:function(P){o.popper=P;var D=o.state.currentPlacement;o._isMounted&&P.placement!==D&&o.setState({currentPlacement:P.placement});}});}if(a){var w=M.undefined(d.offset)?0:d.offset;new ns(this.target,this.wrapperRef,{placement:d.placement||p,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(w,"px")},flip:{enabled:!1}},onCreate:function(P){o.wrapperPopper=P,o._isMounted&&o.setState({statusWrapper:z.IDLE}),u(P,"wrapper"),p!==P.placement&&setTimeout(function(){P.instance.update();},1);}});}}},{key:"rebuildPopper",value:function(){var o=this;this.floaterRefInterval=setInterval(function(){var i;(i=o.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(o.floaterRefInterval),o.setState({needsUpdate:!1}),o.initPopper());},50);}},{key:"changeWrapperPosition",value:function(o){var i=o.target,a=o.wrapperOptions;this.setState({positionWrapper:a.position&&!!i});}},{key:"toggle",value:function(o){var i=this.state.status,a=i===z.OPEN?z.CLOSING:z.OPENING;M.undefined(o)||(a=o),this.setState({status:a});}},{key:"debug",get:function(){var o=this.props.debug;return o||!!global.ReactFloaterDebug}},{key:"event",get:function(){var o=this.props,i=o.disableHoverToClick,a=o.event;return a==="hover"&&os()&&!i?"click":a}},{key:"options",get:function(){var o=this.props.options;return (0, Io.default)(Ux,o||{})}},{key:"styles",get:function(){var o=this,i=this.state,a=i.status,s=i.positionWrapper,l=i.statusWrapper,u=this.props.styles,c=(0, Io.default)(Yx(u),u);if(s){var f;[z.IDLE].indexOf(a)===-1||[z.IDLE].indexOf(l)===-1?f=c.wrapperPosition:f=this.wrapperPopper.styles,c.wrapper=ne(ne({},c.wrapper),f);}if(this.target){var p=window.getComputedStyle(this.target);this.wrapperStyles?c.wrapper=ne(ne({},c.wrapper),this.wrapperStyles):["relative","static"].indexOf(p.position)===-1&&(this.wrapperStyles={},s||(Zx.forEach(function(d){o.wrapperStyles[d]=p[d];}),c.wrapper=ne(ne({},c.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"));}return c}},{key:"target",get:function(){if(!ut)return null;var o=this.props.target;return o?M.domElement(o)?o:document.querySelector(o):this.childRef||this.wrapperRef}},{key:"render",value:function(){var o=this.state,i=o.currentPlacement,a=o.positionWrapper,s=o.status,l=this.props,u=l.children,c=l.component,f=l.content,p=l.disableAnimation,d=l.footer,m=l.hideArrow,h=l.id,g=l.open,b=l.showCloseButton,y=l.style,x=l.target,w=l.title,C=O__default.createElement(bf,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},u),P={};return a?P.wrapperInPortal=C:P.wrapperAsChildren=C,O__default.createElement("span",null,O__default.createElement(mf,{hasChildren:!!u,id:h,placement:i,setRef:this.setFloaterRef,target:x,zIndex:this.styles.options.zIndex},O__default.createElement(yf,{component:c,content:f,disableAnimation:p,footer:d,handleClick:this.handleClick,hideArrow:m||i==="center",open:g,placement:i,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:b,status:s,styles:this.styles,title:w}),P.wrapperInPortal),P.wrapperAsChildren)}}]),r}(O__default.Component);ye(No,"propTypes",{autoOpen:E.default.bool,callback:E.default.func,children:E.default.node,component:(0, is.default)(E.default.oneOfType([E.default.func,E.default.element]),function(e){return !e.content}),content:(0, is.default)(E.default.node,function(e){return !e.component}),debug:E.default.bool,disableAnimation:E.default.bool,disableFlip:E.default.bool,disableHoverToClick:E.default.bool,event:E.default.oneOf(["hover","click"]),eventDelay:E.default.number,footer:E.default.node,getPopper:E.default.func,hideArrow:E.default.bool,id:E.default.oneOfType([E.default.string,E.default.number]),offset:E.default.number,open:E.default.bool,options:E.default.object,placement:E.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:E.default.bool,style:E.default.object,styles:E.default.object,target:E.default.oneOfType([E.default.object,E.default.string]),title:E.default.node,wrapperOptions:E.default.shape({offset:E.default.number,placement:E.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:E.default.bool})});ye(No,"defaultProps",{autoOpen:!1,callback:ff,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:ff,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});});function wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n);}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wf(Object(r),!0).forEach(function(n){k(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mf(n.key),n);}}function pt(e,t,r){return t&&Cf(e.prototype,t),r&&Cf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t,r){return t=Mf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},Me.apply(this,arguments)}function qt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cs(e,t);}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vo(e)}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},cs(e,t)}function Jx(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function eS(e,t){if(e==null)return {};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Fo(e,t){if(e==null)return {};var r=eS(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tS(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function Kt(e){var t=Jx();return function(){var n=Vo(e),o;if(t){var i=Vo(this).constructor;o=Reflect.construct(n,arguments,i);}else o=n.apply(this,arguments);return tS(this,o)}}function rS(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Mf(e){var t=rS(e,"string");return typeof t=="symbol"?t:String(t)}function Df(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator.userAgent,t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.indexOf(" OPR/")>=0?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function ls(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yn(e){var t=[],r=function n(o){if(typeof o=="string"||typeof o=="number")t.push(o);else if(Array.isArray(o))o.forEach(function(a){return n(a)});else if(o&&o.props){var i=o.props.children;Array.isArray(i)?i.forEach(function(a){return n(a)}):n(i);}};return r(e),t.join(" ").trim()}function Ef(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nS(e,t){return !oe.plainObject(e)||!oe.array(t)?!1:Object.keys(e).every(function(r){return t.indexOf(r)!==-1})}function oS(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=e.replace(t,function(o,i,a,s){return i+i+a+a+s+s}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Pf(e){return e.disableBeacon||e.placement==="center"}function fs(e,t){var r,n=isValidElement(e)||isValidElement(t),o=oe.undefined(e)||oe.undefined(t);if(ls(e)!==ls(t)||n||o)return !1;if(oe.domElement(e))return e.isSameNode(t);if(oe.number(e))return e===t;if(oe.function(e))return e.toString()===t.toString();for(var i in e)if(Ef(e,i)){if(typeof e[i]>"u"||typeof t[i]>"u")return !1;if(r=ls(e[i]),["object","array"].indexOf(r)!==-1&&fs(e[i],t[i])||r==="function"&&fs(e[i],t[i]))continue;if(e[i]!==t[i])return !1}for(var a in t)if(Ef(t,a)&&typeof e[a]>"u")return !1;return !0}function Tf(){return ["chrome","safari","firefox","opera"].indexOf(Df())===-1}function Gt(e){var t=e.title,r=e.data,n=e.warn,o=n===void 0?!1:n,i=e.debug,a=i===void 0?!1:i,s=o?console.warn||console.error:console.log;a&&(t&&r?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(l){oe.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l]);}):s.apply(console,[r]),console.groupEnd()):console.error("Missing title or data props"));}function aS(e){var t=new Map,r=new Map,n=function(){function o(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.continuous,l=s===void 0?!1:s,u=a.stepIndex,c=a.steps,f=c===void 0?[]:c;ft(this,o),k(this,"listener",void 0),k(this,"setSteps",function(p){var d=i.getState(),m=d.size,h=d.status,g={size:p.length,status:h};r.set("steps",p),h===W.WAITING&&!m&&p.length&&(g.status=W.RUNNING),i.setState(g);}),k(this,"addListener",function(p){i.listener=p;}),k(this,"update",function(p){if(!nS(p,Of))throw new Error("State is not valid. Valid keys: ".concat(Of.join(", ")));i.setState(T({},i.getNextState(T(T(T({},i.getState()),p),{},{action:p.action||q.UPDATE}),!0)));}),k(this,"start",function(p){var d=i.getState(),m=d.index,h=d.size;i.setState(T(T({},i.getNextState({action:q.START,index:oe.number(p)?p:m},!0)),{},{status:h?W.RUNNING:W.WAITING}));}),k(this,"stop",function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,d=i.getState(),m=d.index,h=d.status;[W.FINISHED,W.SKIPPED].indexOf(h)===-1&&i.setState(T(T({},i.getNextState({action:q.STOP,index:m+(p?1:0)})),{},{status:W.PAUSED}));}),k(this,"close",function(){var p=i.getState(),d=p.index,m=p.status;m===W.RUNNING&&i.setState(T({},i.getNextState({action:q.CLOSE,index:d+1})));}),k(this,"go",function(p){var d=i.getState(),m=d.controlled,h=d.status;if(!(m||h!==W.RUNNING)){var g=i.getSteps()[p];i.setState(T(T({},i.getNextState({action:q.GO,index:p})),{},{status:g?h:W.FINISHED}));}}),k(this,"info",function(){return i.getState()}),k(this,"next",function(){var p=i.getState(),d=p.index,m=p.status;m===W.RUNNING&&i.setState(i.getNextState({action:q.NEXT,index:d+1}));}),k(this,"open",function(){var p=i.getState(),d=p.status;d===W.RUNNING&&i.setState(T({},i.getNextState({action:q.UPDATE,lifecycle:j.TOOLTIP})));}),k(this,"prev",function(){var p=i.getState(),d=p.index,m=p.status;m===W.RUNNING&&i.setState(T({},i.getNextState({action:q.PREV,index:d-1})));}),k(this,"reset",function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,d=i.getState(),m=d.controlled;m||i.setState(T(T({},i.getNextState({action:q.RESET,index:0})),{},{status:p?W.RUNNING:W.READY}));}),k(this,"skip",function(){var p=i.getState(),d=p.status;d===W.RUNNING&&i.setState({action:q.SKIP,lifecycle:j.INIT,status:W.SKIPPED});}),this.setState({action:q.INIT,controlled:oe.number(u),continuous:l,index:oe.number(u)?u:0,lifecycle:j.INIT,status:f.length?W.READY:W.IDLE},!0),this.setSteps(f);}return pt(o,[{key:"setState",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=this.getState(),u=T(T({},l),a),c=u.action,f=u.index,p=u.lifecycle,d=u.size,m=u.status;t.set("action",c),t.set("index",f),t.set("lifecycle",p),t.set("size",d),t.set("status",m),s&&(t.set("controlled",a.controlled),t.set("continuous",a.continuous)),this.listener&&this.hasUpdatedState(l)&&this.listener(this.getState());}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},iS)}},{key:"getNextState",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=this.getState(),u=l.action,c=l.controlled,f=l.index,p=l.size,d=l.status,m=oe.number(a.index)?a.index:f,h=c&&!s?f:Math.min(Math.max(m,0),p);return {action:a.action||u,controlled:c,index:h,lifecycle:a.lifecycle||j.INIT,size:a.size||p,status:h===p?W.FINISHED:a.status||d}}},{key:"hasUpdatedState",value:function(a){var s=JSON.stringify(a),l=JSON.stringify(this.getState());return s!==l}},{key:"getSteps",value:function(){var a=r.get("steps");return Array.isArray(a)?a:[]}},{key:"getHelpers",value:function(){return {close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),o}();return new n(e)}function Lf(e){return e?e.getBoundingClientRect():{}}function sS(){var e=document,t=e.body,r=e.documentElement;return !t||!r?0:Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function Mt(e){return typeof e=="string"?document.querySelector(e):e}function lS(e){return !e||e.nodeType!==1?{}:getComputedStyle(e)}function jo(e,t,r){var n=(0, ds.default)(e);if(n.isSameNode(Sn()))return r?document:Sn();var o=n.scrollHeight>n.offsetHeight;return !o&&!t?(n.style.overflow="initial",Sn()):n}function Bo(e,t){if(!e)return !1;var r=jo(e,t);return !r.isSameNode(Sn())}function uS(e){return e.offsetParent!==document.body}function Cr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fixed";if(!e||!(e instanceof HTMLElement))return !1;var r=e.nodeName;return r==="BODY"||r==="HTML"?!1:lS(e).position===t?!0:Cr(e.parentNode,t)}function cS(e){if(!e)return !1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var r=getComputedStyle(t),n=r.display,o=r.visibility;if(n==="none"||o==="hidden")return !1}t=t.parentNode;}return !0}function fS(e,t,r){var n=Lf(e),o=jo(e,r),i=Bo(e,r),a=0;o instanceof HTMLElement&&(a=o.scrollTop);var s=n.top+(!i&&!Cr(e)?a:0);return Math.floor(s-t)}function ps(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?ps(e.offsetParent)+e.offsetTop:e.offsetTop:0}function pS(e,t,r){if(!e)return 0;var n=(0, ds.default)(e),o=ps(e);return Bo(e,r)&&!uS(e)&&(o-=ps(n)),Math.floor(o-t)}function Sn(){return document.scrollingElement||document.createElement("body")}function dS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sn(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300;return new Promise(function(n,o){var i=t.scrollTop,a=e>i?e-i:i-e;_f.default.top(t,e,{duration:a<100?50:r},function(s){return s&&s.message!=="Element already at target scroll position"?o(s):n()});})}function mS(e){function t(n,o,i,a,s,l){var u=a||"<<anonymous>>",c=l||i;if(o[i]==null)return n?new Error("Required ".concat(s," `").concat(c,"` was not specified in `").concat(u,"`.")):null;for(var f=arguments.length,p=new Array(f>6?f-6:0),d=6;d<f;d++)p[d-6]=arguments[d];return e.apply(void 0,[o,i,u,s,c].concat(p))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function vS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=(0, Rt.default)(hS,e.options||{}),r=290;window.innerWidth>480&&(r=380),t.width&&(window.innerWidth<t.width?r=window.innerWidth-30:r=t.width);var n={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},o={beacon:T(T({},bn),{},{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(oS(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:r},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T(T({},bn),{},{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T(T({},bn),{},{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T(T({},bn),{},{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T(T({},bn),{},{color:t.textColor,fontSize:14}),overlay:T(T({},n),{},{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},n),overlayLegacyCenter:T(T({},n),{},{backgroundColor:t.overlayColor}),spotlight:T(T({},Af),{},{backgroundColor:"gray"}),spotlightLegacy:T(T({},Af),{},{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex+100}},options:t};return (0, Rt.default)(o,e)}function gS(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter(function(r){return t.indexOf(r)!==-1}).reduce(function(r,n){return r[n]=e[n],r},{})}function xn(e,t){if(!e)return null;var r=Rt.default.all([gS(t),us.step,e],{isMergeableObject:oe.plainObject}),n=vS((0, Rt.default)(t.styles||{},e.styles||{})),o=Bo(Mt(e.target),r.disableScrollParentFix),i=Rt.default.all([t.floaterProps||{},us.floaterProps,r.floaterProps||{}]);return i.offset=r.offset,i.styles=(0, Rt.default)(i.styles||{},n.floaterStyles||{}),delete n.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding||0,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),o&&(i.options.preventOverflow.boundariesElement="window"),T(T({},r),{},{locale:Rt.default.all([us.locale,t.locale||{},r.locale||{}]),floaterProps:i,styles:n})}function If(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return oe.plainObject(e)?e.target?!0:(Gt({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Gt({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function $f(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return oe.array(e)?e.every(function(r){return If(r,t)}):(Gt({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}function xS(e){var t=e.styles;return O__default.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})}function PS(e){var t=e.styles,r=Fo(e,CS),n=t.color,o=t.height,i=t.width,a=Fo(t,ES);return O__default.createElement("button",Me({style:a,type:"button"},r),O__default.createElement("svg",{width:typeof i=="number"?"".concat(i,"px"):i,height:typeof o=="number"?"".concat(o,"px"):o,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},O__default.createElement("g",null,O__default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Rf,_f,ds,ct,Rt,q,ke,j,W,_t,gn,iS,Of,hS,bn,Af,us,yS,bS,SS,wS,CS,ES,TS,OS,AS,$S,RS,ms,kf=v(()=>{ja();Tc();Rf=Qe(Ba()),_f=Qe(Rc()),ds=Qe(Mc()),ct=Qe(kc()),Rt=Qe(za());xf();q={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ke={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},j={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},W={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},_t=Rf.default.canUseDOM,gn=createPortal!==void 0;iS={action:"",controlled:!1,index:0,lifecycle:j.INIT,size:0,status:W.IDLE},Of=["action","index","lifecycle","status"];mS(function(e,t,r,n,o){var i=e[t],a=i;if(!O__default.isValidElement(i)&&(0, ct.isValidElementType)(i)){var s={ref:function(){},step:{}};a=O__default.createElement(a,s);}if(oe.string(i)||oe.number(i)||!(0, ct.isValidElementType)(i)||[ct.Element,ct.ForwardRef].indexOf((0, ct.typeOf)(a))===-1)return new Error("Invalid ".concat(n," `").concat(o,"` supplied to `").concat(r,"`. Expected a React class or forwardRef."))});hS={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},bn={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Af={borderRadius:4,position:"absolute"};us={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};yS=pt(function e(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ft(this,e),k(this,"element",void 0),k(this,"options",void 0),k(this,"canBeTabbed",function(o){var i=o.tabIndex;(i===null||i<0)&&(i=void 0);var a=isNaN(i);return !a&&r.canHaveFocus(o)}),k(this,"canHaveFocus",function(o){var i=/input|select|textarea|button|object/,a=o.nodeName.toLowerCase(),s=i.test(a)&&!o.getAttribute("disabled")||a==="a"&&!!o.getAttribute("href");return s&&r.isVisible(o)}),k(this,"findValidTabElements",function(){return [].slice.call(r.element.querySelectorAll("*"),0).filter(r.canBeTabbed)}),k(this,"handleKeyDown",function(o){var i=r.options.keyCode,a=i===void 0?9:i;o.keyCode===a&&r.interceptTab(o);}),k(this,"interceptTab",function(o){var i=r.findValidTabElements();if(i.length){o.preventDefault();var a=o.shiftKey,s=i.indexOf(document.activeElement);s===-1||!a&&s+1===i.length?s=0:a&&s===0?s=i.length-1:s+=a?-1:1,i[s].focus();}}),k(this,"isHidden",function(o){var i=o.offsetWidth<=0&&o.offsetHeight<=0,a=window.getComputedStyle(o);return i&&!o.innerHTML?!0:i&&a.getPropertyValue("overflow")!=="visible"||a.getPropertyValue("display")==="none"}),k(this,"isVisible",function(o){for(var i=o;i;)if(i instanceof HTMLElement){if(i===document.body)break;if(r.isHidden(i))return !1;i=i.parentNode;}return !0}),k(this,"removeScope",function(){window.removeEventListener("keydown",r.handleKeyDown);}),k(this,"checkFocus",function(o){document.activeElement!==o&&(o.focus(),window.requestAnimationFrame(function(){return r.checkFocus(o)}));}),k(this,"setFocus",function(){var o=r.options.selector;if(o){var i=r.element.querySelector(o);i&&window.requestAnimationFrame(function(){return r.checkFocus(i)});}}),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=n,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus();}),bS=function(e){qt(r,e);var t=Kt(r);function r(n){var o;if(ft(this,r),o=t.call(this,n),k(ie(o),"setBeaconRef",function(l){o.beacon=l;}),!n.beaconComponent){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style"),s=`
|
|
11
|
+
var r0=Object.create;var hn=Object.defineProperty;var o0=Object.getOwnPropertyDescriptor;var n0=Object.getOwnPropertyNames;var i0=Object.getPrototypeOf,s0=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(e&&(t=e(e=0)),t);var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lu=(e,t)=>{for(var r in t)hn(e,r,{get:t[r],enumerable:!0});},cu=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of n0(t))!s0.call(e,n)&&n!==r&&hn(e,n,{get:()=>t[n],enumerable:!(o=o0(t,n))||o.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?r0(i0(e)):{},cu(t||!e||!e.__esModule?hn(r,"default",{value:e,enumerable:!0}):r,e)),a0=e=>cu(hn({},"__esModule",{value:!0}),e);function pu(e){return t=>typeof t===e}function f0(e,t){let{length:r}=e;if(r!==t.length)return !1;for(let o=r;o--!==0;)if(!ee(e[o],t[o]))return !1;return !0}function p0(e,t){if(e.byteLength!==t.byteLength)return !1;let r=new DataView(e.buffer),o=new DataView(t.buffer),n=e.byteLength;for(;n--;)if(r.getUint8(n)!==o.getUint8(n))return !1;return !0}function d0(e,t){if(e.size!==t.size)return !1;for(let r of e.entries())if(!t.has(r[0]))return !1;for(let r of e.entries())if(!ee(r[1],t.get(r[0])))return !1;return !0}function m0(e,t){if(e.size!==t.size)return !1;for(let r of e.entries())if(!t.has(r[0]))return !1;return !0}function ee(e,t){if(e===t)return !0;if(e&&fu(e)&&t&&fu(t)){if(e.constructor!==t.constructor)return !1;if(Array.isArray(e)&&Array.isArray(t))return f0(e,t);if(e instanceof Map&&t instanceof Map)return d0(e,t);if(e instanceof Set&&t instanceof Set)return m0(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return p0(e,t);if(uu(e)&&uu(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return !1;for(let n=r.length;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[n]))return !1;for(let n=r.length;n--!==0;){let i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!ee(e[i],t[i]))return !1}return !0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var l0,c0,uu,fu,u0,gn=m(()=>{l0=pu("function"),c0=e=>e===null,uu=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",fu=e=>!u0(e)&&!c0(e)&&(l0(e)||typeof e=="object"),u0=pu("undefined");});function yn(e){let t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return "HTMLElement";if(y0(t))return t}function Le(e){return t=>yn(t)===e}function y0(e){return h0.includes(e)}function lr(e){return t=>typeof t===e}function v0(e){return g0.includes(e)}function E(e){if(e===null)return "null";switch(typeof e){case"bigint":return "bigint";case"boolean":return "boolean";case"number":return "number";case"string":return "string";case"symbol":return "symbol";case"undefined":return "undefined";}if(E.array(e))return "Array";if(E.plainFunction(e))return "Function";let t=yn(e);return t||"Object"}var h0,g0,b0,P,ze=m(()=>{h0=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],g0=["bigint","boolean","null","number","string","symbol","undefined"];b0=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.array=Array.isArray;E.arrayOf=(e,t)=>!E.array(e)&&!E.function(t)?!1:e.every(r=>t(r));E.asyncGeneratorFunction=e=>yn(e)==="AsyncGeneratorFunction";E.asyncFunction=Le("AsyncFunction");E.bigint=lr("bigint");E.boolean=e=>e===!0||e===!1;E.date=Le("Date");E.defined=e=>!E.undefined(e);E.domElement=e=>E.object(e)&&!E.plainObject(e)&&e.nodeType===1&&E.string(e.nodeName)&&b0.every(t=>t in e);E.empty=e=>E.string(e)&&e.length===0||E.array(e)&&e.length===0||E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length===0||E.set(e)&&e.size===0||E.map(e)&&e.size===0;E.error=Le("Error");E.function=lr("function");E.generator=e=>E.iterable(e)&&E.function(e.next)&&E.function(e.throw);E.generatorFunction=Le("GeneratorFunction");E.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;E.iterable=e=>!E.nullOrUndefined(e)&&E.function(e[Symbol.iterator]);E.map=Le("Map");E.nan=e=>Number.isNaN(e);E.null=e=>e===null;E.nullOrUndefined=e=>E.null(e)||E.undefined(e);E.number=e=>lr("number")(e)&&!E.nan(e);E.numericString=e=>E.string(e)&&e.length>0&&!Number.isNaN(Number(e));E.object=e=>!E.nullOrUndefined(e)&&(E.function(e)||typeof e=="object");E.oneOf=(e,t)=>E.array(e)?e.indexOf(t)>-1:!1;E.plainFunction=Le("Function");E.plainObject=e=>{if(yn(e)!=="Object")return !1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};E.primitive=e=>E.null(e)||v0(typeof e);E.promise=Le("Promise");E.propertyOf=(e,t,r)=>{if(!E.object(e)||!t)return !1;let o=e[t];return E.function(r)?r(o):E.defined(o)};E.regexp=Le("RegExp");E.set=Le("Set");E.string=lr("string");E.symbol=lr("symbol");E.undefined=lr("undefined");E.weakMap=Le("WeakMap");E.weakSet=Le("WeakSet");P=E;});function x0(...e){return e.every(t=>P.string(t)||P.array(t)||P.plainObject(t))}function w0(e,t,r){return vu(e,t)?[e,t].every(P.array)?!e.some(yu(r))&&t.some(yu(r)):[e,t].every(P.plainObject)?!Object.entries(e).some(gu(r))&&Object.entries(t).some(gu(r)):t===r:!1}function du(e,t,r){let{actual:o,key:n,previous:i,type:s}=r,a=He(e,n),l=He(t,n),c=[a,l].every(P.number)&&(s==="increased"?a<l:a>l);return P.undefined(o)||(c=c&&l===o),P.undefined(i)||(c=c&&a===i),c}function mu(e,t,r){let{key:o,type:n,value:i}=r,s=He(e,o),a=He(t,o),l=n==="added"?s:a,c=n==="added"?a:s;if(!P.nullOrUndefined(i)){if(P.defined(l)){if(P.array(l)||P.plainObject(l))return w0(l,c,i)}else return ee(c,i);return !1}return [s,a].every(P.array)?!c.every(Ys(l)):[s,a].every(P.plainObject)?S0(Object.keys(l),Object.keys(c)):![s,a].every(u=>P.primitive(u)&&P.defined(u))&&(n==="added"?!P.defined(s)&&P.defined(a):P.defined(s)&&!P.defined(a))}function hu(e,t,{key:r}={}){let o=He(e,r),n=He(t,r);if(!vu(o,n))throw new TypeError("Inputs have different types");if(!x0(o,n))throw new TypeError("Inputs don't have length");return [o,n].every(P.plainObject)&&(o=Object.keys(o),n=Object.keys(n)),[o,n]}function gu(e){return ([t,r])=>P.array(e)?ee(e,r)||e.some(o=>ee(o,r)||P.array(r)&&Ys(r)(o)):P.plainObject(e)&&e[t]?!!e[t]&&ee(e[t],r):ee(e,r)}function S0(e,t){return t.some(r=>!e.includes(r))}function yu(e){return t=>P.array(e)?e.some(r=>ee(r,t)||P.array(t)&&Ys(t)(r)):ee(e,t)}function ao(e,t){return P.array(e)?e.some(r=>ee(r,t)):ee(e,t)}function Ys(e){return t=>e.some(r=>ee(r,t))}function vu(...e){return e.every(P.array)||e.every(P.number)||e.every(P.plainObject)||e.every(P.string)}function He(e,t){return P.plainObject(e)||P.array(e)?P.string(t)?t.split(".").reduce((o,n)=>o&&o[n],e):P.number(t)?e[t]:e:e}function It(e,t){if([e,t].some(P.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(u=>P.plainObject(u)||P.array(u)))throw new Error("Expected plain objects or array");return {added:(u,f)=>{try{return mu(e,t,{key:u,type:"added",value:f})}catch{return !1}},changed:(u,f,p)=>{try{let d=He(e,u),g=He(t,u),h=P.defined(f),v=P.defined(p);if(h||v){let x=v?ao(p,d):!ao(f,d),y=ao(f,g);return x&&y}return [d,g].every(P.array)||[d,g].every(P.plainObject)?!ee(d,g):d!==g}catch{return !1}},changedFrom:(u,f,p)=>{if(!P.defined(u))return !1;try{let d=He(e,u),g=He(t,u),h=P.defined(p);return ao(f,d)&&(h?ao(p,g):!h)}catch{return !1}},decreased:(u,f,p)=>{if(!P.defined(u))return !1;try{return du(e,t,{key:u,actual:f,previous:p,type:"decreased"})}catch{return !1}},emptied:u=>{try{let[f,p]=hu(e,t,{key:u});return !!f.length&&!p.length}catch{return !1}},filled:u=>{try{let[f,p]=hu(e,t,{key:u});return !f.length&&!!p.length}catch{return !1}},increased:(u,f,p)=>{if(!P.defined(u))return !1;try{return du(e,t,{key:u,actual:f,previous:p,type:"increased"})}catch{return !1}},removed:(u,f)=>{try{return mu(e,t,{key:u,type:"removed",value:f})}catch{return !1}}}}var vn=m(()=>{gn();ze();gn();ze();});var Su=dt((KE,wu)=>{var C0=new Error("Element already at target scroll position"),P0=new Error("Scroll cancelled"),T0=Math.min,bu=Date.now;wu.exports={left:xu("scrollLeft"),top:xu("scrollTop")};function xu(e){return function(r,o,n,i){n=n||{},typeof n=="function"&&(i=n,n={}),typeof i!="function"&&(i=O0);var s=bu(),a=r[e],l=n.ease||E0,c=isNaN(n.duration)?350:+n.duration,u=!1;return a===o?i(C0,r[e]):requestAnimationFrame(p),f;function f(){u=!0;}function p(d){if(u)return i(P0,r[e]);var g=bu(),h=T0(1,(g-s)/c),v=l(h);r[e]=v*(o-a)+a,h<1?requestAnimationFrame(p):requestAnimationFrame(function(){i(null,r[e]);});}}}function E0(e){return .5*(1-Math.cos(Math.PI*e))}function O0(){}});var Pu=dt((Cu,bn)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof bn=="object"&&bn.exports?bn.exports=t():e.Scrollparent=t();})(Cu,function(){function e(r){var o=getComputedStyle(r,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function t(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var o=r.parentNode;o.parentNode;){if(e(o))return o;o=o.parentNode;}return document.scrollingElement||document.documentElement}}return t});});function Tu(e,...t){if(!P.plainObject(e))throw new TypeError("Expected an object");let r={};for(let o in e)({}).hasOwnProperty.call(e,o)&&(t.includes(o)||(r[o]=e[o]));return r}function Eu(e,...t){if(!P.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;let r={};for(let o in e)({}).hasOwnProperty.call(e,o)&&t.includes(o)&&(r[o]=e[o]);return r}var Ou=m(()=>{ze();});var xn=dt((tO,Ru)=>{var R0=function(t){return M0(t)&&!D0(t)};function M0(e){return !!e&&typeof e=="object"}function D0(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||N0(e)}var k0=typeof Symbol=="function"&&Symbol.for,L0=k0?Symbol.for("react.element"):60103;function N0(e){return e.$$typeof===L0}function I0(e){return Array.isArray(e)?[]:{}}function lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?cr(I0(e),e,t):e}function V0(e,t,r){return e.concat(t).map(function(o){return lo(o,r)})}function F0(e,t){if(!t.customMerge)return cr;var r=t.customMerge(e);return typeof r=="function"?r:cr}function j0(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Au(e){return Object.keys(e).concat(j0(e))}function $u(e,t){try{return t in e}catch{return !1}}function B0(e,t){return $u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _0(e,t,r){var o={};return r.isMergeableObject(e)&&Au(e).forEach(function(n){o[n]=lo(e[n],r);}),Au(t).forEach(function(n){B0(e,n)||($u(e,n)&&r.isMergeableObject(t[n])?o[n]=F0(n,r)(e[n],t[n],r):o[n]=lo(t[n],r));}),o}function cr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||V0,r.isMergeableObject=r.isMergeableObject||R0,r.cloneUnlessOtherwiseSpecified=lo;var o=Array.isArray(t),n=Array.isArray(e),i=o===n;return i?o?r.arrayMerge(e,t,r):_0(e,t,r):lo(t,r)}cr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,n){return cr(o,n,r)},{})};var W0=cr;Ru.exports=W0;});var Du=dt((rO,Mu)=>{var U0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Mu.exports=U0;});var Iu=dt((oO,Nu)=>{var z0=Du();function ku(){}function Lu(){}Lu.resetWarningCache=ku;Nu.exports=function(){function e(o,n,i,s,a,l){if(l!==z0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Lu,resetWarningCache:ku};return r.PropTypes=r,r};});var Fu=dt((sO,Vu)=>{Vu.exports=Iu()();});function G0(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e();}));}}function q0(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e();},H0));}}function zu(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Vt(e,t){if(e.nodeType!==1)return [];var r=e.ownerDocument.defaultView,o=r.getComputedStyle(e,null);return t?o[t]:o}function ta(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function uo(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Vt(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return /(auto|scroll|overlay)/.test(r+n+o)?e:uo(ta(e))}function Hu(e){return e&&e.referenceNode?e.referenceNode:e}function dr(e){return e===11?ju:e===10?Bu:ju||Bu}function ur(e){if(!e)return document.documentElement;for(var t=dr(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var o=r&&r.nodeName;return !o||o==="BODY"||o==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Vt(r,"position")==="static"?ur(r):r}function X0(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ur(e.firstElementChild)===e}function Qs(e){return e.parentNode!==null?Qs(e.parentNode):e}function wn(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=r?e:t,n=r?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(n,0);var s=i.commonAncestorContainer;if(e!==s&&t!==s||o.contains(n))return X0(s)?s:ur(s);var a=Qs(e);return a.host?wn(a.host,t):wn(e,Qs(t).host)}function fr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",o=e.nodeName;if(o==="BODY"||o==="HTML"){var n=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||n;return i[r]}return e[r]}function Z0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=fr(t,"top"),n=fr(t,"left"),i=r?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=n*i,e.right+=n*i,e}function _u(e,t){var r=t==="x"?"Left":"Top",o=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+o+"Width"])}function Wu(e,t,r,o){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],dr(10)?parseInt(r["offset"+e])+parseInt(o["margin"+(e==="Height"?"Top":"Left")])+parseInt(o["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Gu(e){var t=e.body,r=e.documentElement,o=dr(10)&&getComputedStyle(r);return {height:Wu("Height",t,r,o),width:Wu("Width",t,r,o)}}function ht(e){return $e({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Js(e){var t={};try{if(dr(10)){t=e.getBoundingClientRect();var r=fr(e,"top"),o=fr(e,"left");t.top+=r,t.left+=o,t.bottom+=r,t.right+=o;}else t=e.getBoundingClientRect();}catch{}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i=e.nodeName==="HTML"?Gu(e.ownerDocument):{},s=i.width||e.clientWidth||n.width,a=i.height||e.clientHeight||n.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=Vt(e);l-=_u(u,"x"),c-=_u(u,"y"),n.width-=l,n.height-=c;}return ht(n)}function ra(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=dr(10),n=t.nodeName==="HTML",i=Js(e),s=Js(t),a=uo(e),l=Vt(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);r&&n&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=ht({top:i.top-s.top-c,left:i.left-s.left-u,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!o&&n){var p=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);f.top-=c-p,f.bottom-=c-p,f.left-=u-d,f.right-=u-d,f.marginTop=p,f.marginLeft=d;}return (o&&!r?t.contains(a):t===a&&a.nodeName!=="BODY")&&(f=Z0(f,t)),f}function ex(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,o=ra(e,r),n=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),s=t?0:fr(r),a=t?0:fr(r,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:n,height:i};return ht(l)}function qu(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return !1;if(Vt(e,"position")==="fixed")return !0;var r=ta(e);return r?qu(r):!1}function Yu(e){if(!e||!e.parentElement||dr())return document.documentElement;for(var t=e.parentElement;t&&Vt(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function oa(e,t,r,o){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},s=n?Yu(e):wn(e,Hu(t));if(o==="viewport")i=ex(s,n);else {var a=void 0;o==="scrollParent"?(a=uo(ta(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):o==="window"?a=e.ownerDocument.documentElement:a=o;var l=ra(a,s,n);if(a.nodeName==="HTML"&&!qu(s)){var c=Gu(e.ownerDocument),u=c.height,f=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=f+l.left;}else i=l;}r=r||0;var p=typeof r=="number";return i.left+=p?r:r.left||0,i.top+=p?r:r.top||0,i.right-=p?r:r.right||0,i.bottom-=p?r:r.bottom||0,i}function tx(e){var t=e.width,r=e.height;return t*r}function Ku(e,t,r,o,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=oa(r,o,i,n),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map(function(p){return $e({key:p},a[p],{area:tx(a[p])})}).sort(function(p,d){return d.area-p.area}),c=l.filter(function(p){var d=p.width,g=p.height;return d>=r.clientWidth&&g>=r.clientHeight}),u=c.length>0?c[0].key:l[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function Xu(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,n=o?Yu(t):wn(t,Hu(r));return ra(r,n,o)}function Zu(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),o=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),n=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:e.offsetWidth+n,height:e.offsetHeight+o};return i}function Sn(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function Qu(e,t,r){r=r.split("-")[0];var o=Zu(e),n={width:o.width,height:o.height},i=["right","left"].indexOf(r)!==-1,s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return n[s]=t[s]+t[l]/2-o[l]/2,r===a?n[a]=t[a]-o[c]:n[a]=t[Sn(a)],n}function fo(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function rx(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(n){return n[t]===r});var o=fo(e,function(n){return n[t]===r});return e.indexOf(o)}function Ju(e,t,r){var o=r===void 0?e:e.slice(0,rx(e,"name",r));return o.forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&zu(i)&&(t.offsets.popper=ht(t.offsets.popper),t.offsets.reference=ht(t.offsets.reference),t=i(t,n));}),t}function ox(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Xu(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ku(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Qu(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ju(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e));}}function ef(e,t){return e.some(function(r){var o=r.name,n=r.enabled;return n&&o===t})}function na(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var n=t[o],i=n?""+n+r:e;if(typeof document.body.style[i]<"u")return i}return null}function nx(){return this.state.isDestroyed=!0,ef(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[na("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function tf(e){var t=e.ownerDocument;return t?t.defaultView:window}function rf(e,t,r,o){var n=e.nodeName==="BODY",i=n?e.ownerDocument.defaultView:e;i.addEventListener(t,r,{passive:!0}),n||rf(uo(i.parentNode),t,r,o),o.push(i);}function ix(e,t,r,o){r.updateBound=o,tf(e).addEventListener("resize",r.updateBound,{passive:!0});var n=uo(e);return rf(n,"scroll",r.updateBound,r.scrollParents),r.scrollElement=n,r.eventsEnabled=!0,r}function sx(){this.state.eventsEnabled||(this.state=ix(this.reference,this.options,this.state,this.scheduleUpdate));}function ax(e,t){return tf(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound);}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function lx(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ax(this.reference,this.state));}function ia(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function ea(e,t){Object.keys(t).forEach(function(r){var o="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&ia(t[r])&&(o="px"),e.style[r]=t[r]+o;});}function cx(e,t){Object.keys(t).forEach(function(r){var o=t[r];o!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r);});}function ux(e){return ea(e.instance.popper,e.styles),cx(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&ea(e.arrowElement,e.arrowStyles),e}function fx(e,t,r,o,n){var i=Xu(n,t,e,r.positionFixed),s=Ku(r.placement,i,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",s),ea(t,{position:r.positionFixed?"fixed":"absolute"}),r}function px(e,t){var r=e.offsets,o=r.popper,n=r.reference,i=Math.round,s=Math.floor,a=function(x){return x},l=i(n.width),c=i(o.width),u=["left","right"].indexOf(e.placement)!==-1,f=e.placement.indexOf("-")!==-1,p=l%2===c%2,d=l%2===1&&c%2===1,g=t?u||f||p?i:s:a,h=t?i:a;return {left:g(d&&!f&&t?o.left-1:o.left),top:h(o.top),bottom:h(o.bottom),right:g(o.right)}}function mx(e,t){var r=t.x,o=t.y,n=e.offsets.popper,i=fo(e.instance.modifiers,function(b){return b.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=i!==void 0?i:t.gpuAcceleration,a=ur(e.instance.popper),l=Js(a),c={position:n.position},u=px(e,window.devicePixelRatio<2||!dx),f=r==="bottom"?"top":"bottom",p=o==="right"?"left":"right",d=na("transform"),g=void 0,h=void 0;if(f==="bottom"?a.nodeName==="HTML"?h=-a.clientHeight+u.bottom:h=-l.height+u.bottom:h=u.top,p==="right"?a.nodeName==="HTML"?g=-a.clientWidth+u.right:g=-l.width+u.right:g=u.left,s&&d)c[d]="translate3d("+g+"px, "+h+"px, 0)",c[f]=0,c[p]=0,c.willChange="transform";else {var v=f==="bottom"?-1:1,x=p==="right"?-1:1;c[f]=h*v,c[p]=g*x,c.willChange=f+", "+p;}var y={"x-placement":e.placement};return e.attributes=$e({},y,e.attributes),e.styles=$e({},c,e.styles),e.arrowStyles=$e({},e.offsets.arrow,e.arrowStyles),e}function of(e,t,r){var o=fo(e,function(a){var l=a.name;return l===t}),n=!!o&&e.some(function(a){return a.name===r&&a.enabled&&a.order<o.order});if(!n){var i="`"+t+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!");}return n}function hx(e,t){var r;if(!of(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if(typeof o=="string"){if(o=e.instance.popper.querySelector(o),!o)return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,l=["left","right"].indexOf(n)!==-1,c=l?"height":"width",u=l?"Top":"Left",f=u.toLowerCase(),p=l?"left":"top",d=l?"bottom":"right",g=Zu(o)[c];a[d]-g<s[f]&&(e.offsets.popper[f]-=s[f]-(a[d]-g)),a[f]+g>s[d]&&(e.offsets.popper[f]+=a[f]+g-s[d]),e.offsets.popper=ht(e.offsets.popper);var h=a[f]+a[c]/2-g/2,v=Vt(e.instance.popper),x=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),b=h-e.offsets.popper[f]-x-y;return b=Math.max(Math.min(s[c]-g,b),0),e.arrowElement=o,e.offsets.arrow=(r={},pr(r,f,Math.round(b)),pr(r,p,""),r),e}function gx(e){return e==="end"?"start":e==="start"?"end":e}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Xs.indexOf(e),o=Xs.slice(r+1).concat(Xs.slice(0,r));return t?o.reverse():o}function yx(e,t){if(ef(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=oa(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],n=Sn(o),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case Zs.FLIP:s=[o,n];break;case Zs.CLOCKWISE:s=Uu(o);break;case Zs.COUNTERCLOCKWISE:s=Uu(o,!0);break;default:s=t.behavior;}return s.forEach(function(a,l){if(o!==a||s.length===l+1)return e;o=e.placement.split("-")[0],n=Sn(o);var c=e.offsets.popper,u=e.offsets.reference,f=Math.floor,p=o==="left"&&f(c.right)>f(u.left)||o==="right"&&f(c.left)<f(u.right)||o==="top"&&f(c.bottom)>f(u.top)||o==="bottom"&&f(c.top)<f(u.bottom),d=f(c.left)<f(r.left),g=f(c.right)>f(r.right),h=f(c.top)<f(r.top),v=f(c.bottom)>f(r.bottom),x=o==="left"&&d||o==="right"&&g||o==="top"&&h||o==="bottom"&&v,y=["top","bottom"].indexOf(o)!==-1,b=!!t.flipVariations&&(y&&i==="start"&&d||y&&i==="end"&&g||!y&&i==="start"&&h||!y&&i==="end"&&v),w=!!t.flipVariationsByContent&&(y&&i==="start"&&g||y&&i==="end"&&d||!y&&i==="start"&&v||!y&&i==="end"&&h),C=b||w;(p||x||C)&&(e.flipped=!0,(p||x)&&(o=s[l+1]),C&&(i=gx(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=$e({},e.offsets.popper,Qu(e.instance.popper,e.offsets.reference,e.placement)),e=Ju(e.instance.modifiers,e,"flip"));}),e}function vx(e){var t=e.offsets,r=t.popper,o=t.reference,n=e.placement.split("-")[0],i=Math.floor,s=["top","bottom"].indexOf(n)!==-1,a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return r[a]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-r[c]),r[l]>i(o[a])&&(e.offsets.popper[l]=i(o[a])),e}function bx(e,t,r,o){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+n[1],s=n[2];if(!i)return e;if(s.indexOf("%")===0){var a=void 0;switch(s){case"%p":a=r;break;case"%":case"%r":default:a=o;}var l=ht(a);return l[t]/100*i}else if(s==="vh"||s==="vw"){var c=void 0;return s==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*i}else return i}function xx(e,t,r,o){var n=[0,0],i=["right","left"].indexOf(o)!==-1,s=e.split(/(\+|\-)/).map(function(u){return u.trim()}),a=s.indexOf(fo(s,function(u){return u.search(/,|\s/)!==-1}));s[a]&&s[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=a!==-1?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map(function(u,f){var p=(f===1?!i:i)?"height":"width",d=!1;return u.reduce(function(g,h){return g[g.length-1]===""&&["+","-"].indexOf(h)!==-1?(g[g.length-1]=h,d=!0,g):d?(g[g.length-1]+=h,d=!1,g):g.concat(h)},[]).map(function(g){return bx(g,p,t,r)})}),c.forEach(function(u,f){u.forEach(function(p,d){ia(p)&&(n[f]+=p*(u[d-1]==="-"?-1:1));});}),n}function wx(e,t){var r=t.offset,o=e.placement,n=e.offsets,i=n.popper,s=n.reference,a=o.split("-")[0],l=void 0;return ia(+r)?l=[+r,0]:l=xx(r,i,s,a),a==="left"?(i.top+=l[0],i.left-=l[1]):a==="right"?(i.top+=l[0],i.left+=l[1]):a==="top"?(i.left+=l[0],i.top-=l[1]):a==="bottom"&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e}function Sx(e,t){var r=t.boundariesElement||ur(e.instance.popper);e.instance.reference===r&&(r=ur(r));var o=na("transform"),n=e.instance.popper.style,i=n.top,s=n.left,a=n[o];n.top="",n.left="",n[o]="";var l=oa(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);n.top=i,n.left=s,n[o]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,f={primary:function(d){var g=u[d];return u[d]<l[d]&&!t.escapeWithReference&&(g=Math.max(u[d],l[d])),pr({},d,g)},secondary:function(d){var g=d==="right"?"left":"top",h=u[g];return u[d]>l[d]&&!t.escapeWithReference&&(h=Math.min(u[g],l[d]-(d==="right"?u.width:u.height))),pr({},g,h)}};return c.forEach(function(p){var d=["left","top"].indexOf(p)!==-1?"primary":"secondary";u=$e({},u,f[d](p));}),e.offsets.popper=u,e}function Cx(e){var t=e.placement,r=t.split("-")[0],o=t.split("-")[1];if(o){var n=e.offsets,i=n.reference,s=n.popper,a=["bottom","top"].indexOf(r)!==-1,l=a?"left":"top",c=a?"width":"height",u={start:pr({},l,i[l]),end:pr({},l,i[l]+i[c]-s[c])};e.offsets.popper=$e({},s,u[o]);}return e}function Px(e){if(!of(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=fo(e.instance.modifiers,function(o){return o.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]="";}else {if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1;}return e}function Tx(e){var t=e.placement,r=t.split("-")[0],o=e.offsets,n=o.popper,i=o.reference,s=["left","right"].indexOf(r)!==-1,a=["top","left"].indexOf(r)===-1;return n[s?"left":"top"]=i[r]-(a?n[s?"width":"height"]:0),e.placement=Sn(t),e.offsets.popper=ht(n),e}var co,H0,Y0,K0,ju,Bu,Q0,J0,pr,$e,dx,nf,Xs,Zs,Ex,Ox,Cn,sa,sf=m(()=>{co=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",H0=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(co&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();Y0=co&&window.Promise,K0=Y0?G0:q0;ju=co&&!!(window.MSInputMethodContext&&document.documentMode),Bu=co&&/MSIE 10/.test(navigator.userAgent);Q0=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},J0=function(){function e(t,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),pr=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},$e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e};dx=co&&/Firefox/i.test(navigator.userAgent);nf=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Xs=nf.slice(3);Zs={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};Ex={shift:{order:100,enabled:!0,fn:Cx},offset:{order:200,enabled:!0,fn:wx,offset:0},preventOverflow:{order:300,enabled:!0,fn:Sx,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:vx},arrow:{order:500,enabled:!0,fn:hx,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:yx,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Tx},hide:{order:800,enabled:!0,fn:Px},computeStyle:{order:850,enabled:!0,fn:mx,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ux,onLoad:fx,gpuAcceleration:void 0}},Ox={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ex},Cn=function(){function e(t,r){var o=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Q0(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=K0(this.update.bind(this)),this.options=$e({},e.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys($e({},e.Defaults.modifiers,n.modifiers)).forEach(function(s){o.options.modifiers[s]=$e({},e.Defaults.modifiers[s]||{},n.modifiers?n.modifiers[s]:{});}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return $e({name:s},o.options.modifiers[s])}).sort(function(s,a){return s.order-a.order}),this.modifiers.forEach(function(s){s.enabled&&zu(s.onLoad)&&s.onLoad(o.reference,o.popper,o.options,s,o.state);}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i;}return J0(e,[{key:"update",value:function(){return ox.call(this)}},{key:"destroy",value:function(){return nx.call(this)}},{key:"enableEventListeners",value:function(){return sx.call(this)}},{key:"disableEventListeners",value:function(){return lx.call(this)}}]),e}();Cn.Utils=(typeof window<"u"?window:global).PopperUtils;Cn.placements=nf;Cn.Defaults=Ox;sa=Cn;});var af=m(()=>{});function Pn(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return "HTMLElement";if(Mx(t))return t}function Ne(e){return function(t){return Pn(t)===e}}function Mx(e){return $x.includes(e)}function mr(e){return function(t){return typeof t===e}}function Dx(e){return Rx.includes(e)}function O(e){if(e===null)return "null";switch(typeof e){case"bigint":return "bigint";case"boolean":return "boolean";case"number":return "number";case"string":return "string";case"symbol":return "symbol";case"undefined":return "undefined";}if(O.array(e))return "Array";if(O.plainFunction(e))return "Function";var t=Pn(e);return t||"Object"}var Ax,$x,Rx,$,Tn=m(()=>{af();Ax=["innerHTML","ownerDocument","style","attributes","nodeValue"],$x=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Rx=["bigint","boolean","null","number","string","symbol","undefined"];O.array=Array.isArray;O.arrayOf=function(e,t){return !O.array(e)&&!O.function(t)?!1:e.every(function(r){return t(r)})};O.asyncGeneratorFunction=function(e){return Pn(e)==="AsyncGeneratorFunction"};O.asyncFunction=Ne("AsyncFunction");O.bigint=mr("bigint");O.boolean=function(e){return e===!0||e===!1};O.date=Ne("Date");O.defined=function(e){return !O.undefined(e)};O.domElement=function(e){return O.object(e)&&!O.plainObject(e)&&e.nodeType===1&&O.string(e.nodeName)&&Ax.every(function(t){return t in e})};O.empty=function(e){return O.string(e)&&e.length===0||O.array(e)&&e.length===0||O.object(e)&&!O.map(e)&&!O.set(e)&&Object.keys(e).length===0||O.set(e)&&e.size===0||O.map(e)&&e.size===0};O.error=Ne("Error");O.function=mr("function");O.generator=function(e){return O.iterable(e)&&O.function(e.next)&&O.function(e.throw)};O.generatorFunction=Ne("GeneratorFunction");O.instanceOf=function(e,t){return !e||!t?!1:Object.getPrototypeOf(e)===t.prototype};O.iterable=function(e){return !O.nullOrUndefined(e)&&O.function(e[Symbol.iterator])};O.map=Ne("Map");O.nan=function(e){return Number.isNaN(e)};O.null=function(e){return e===null};O.nullOrUndefined=function(e){return O.null(e)||O.undefined(e)};O.number=function(e){return mr("number")(e)&&!O.nan(e)};O.numericString=function(e){return O.string(e)&&e.length>0&&!Number.isNaN(Number(e))};O.object=function(e){return !O.nullOrUndefined(e)&&(O.function(e)||typeof e=="object")};O.oneOf=function(e,t){return O.array(e)?e.indexOf(t)>-1:!1};O.plainFunction=Ne("Function");O.plainObject=function(e){if(Pn(e)!=="Object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};O.primitive=function(e){return O.null(e)||Dx(typeof e)};O.promise=Ne("Promise");O.propertyOf=function(e,t,r){if(!O.object(e)||!t)return !1;var o=e[t];return O.function(r)?r(o):O.defined(o)};O.regexp=Ne("RegExp");O.set=Ne("Set");O.string=mr("string");O.symbol=mr("symbol");O.undefined=mr("undefined");O.weakMap=Ne("WeakMap");O.weakSet=Ne("WeakSet");$=O;});function lf(e){return function(t){return typeof t===e}}var kx,Lx,aa,la,Nx,cf=m(()=>{kx=lf("function"),Lx=function(e){return e===null},aa=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},la=function(e){return !Nx(e)&&!Lx(e)&&(kx(e)||typeof e=="object")},Nx=lf("undefined");});function Ix(e,t){var r=e.length;if(r!==t.length)return !1;for(var o=r;o--!==0;)if(!oe(e[o],t[o]))return !1;return !0}function Vx(e,t){if(e.byteLength!==t.byteLength)return !1;for(var r=new DataView(e.buffer),o=new DataView(t.buffer),n=e.byteLength;n--;)if(r.getUint8(n)!==o.getUint8(n))return !1;return !0}function Fx(e,t){var r,o,n,i;if(e.size!==t.size)return !1;try{for(var s=ca(e.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!t.has(l[0]))return !1}}catch(f){r={error:f};}finally{try{a&&!a.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}try{for(var c=ca(e.entries()),u=c.next();!u.done;u=c.next()){var l=u.value;if(!oe(l[1],t.get(l[0])))return !1}}catch(f){n={error:f};}finally{try{u&&!u.done&&(i=c.return)&&i.call(c);}finally{if(n)throw n.error}}return !0}function jx(e,t){var r,o;if(e.size!==t.size)return !1;try{for(var n=ca(e.entries()),i=n.next();!i.done;i=n.next()){var s=i.value;if(!t.has(s[0]))return !1}}catch(a){r={error:a};}finally{try{i&&!i.done&&(o=n.return)&&o.call(n);}finally{if(r)throw r.error}}return !0}function oe(e,t){if(e===t)return !0;if(e&&la(e)&&t&&la(t)){if(e.constructor!==t.constructor)return !1;if(Array.isArray(e)&&Array.isArray(t))return Ix(e,t);if(e instanceof Map&&t instanceof Map)return Fx(e,t);if(e instanceof Set&&t instanceof Set)return jx(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Vx(e,t);if(aa(e)&&aa(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return !1;for(var n=r.length;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[n]))return !1;for(var n=r.length;n--!==0;){var i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!oe(e[i],t[i]))return !1}return !0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ca,ua=m(()=>{cf();ca=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};});function Bx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(r){return $.string(r)||$.array(r)||$.plainObject(r)})}function _x(e,t,r){return pf(e,t)?[e,t].every($.array)?!e.some(ff(r))&&t.some(ff(r)):[e,t].every($.plainObject)?!Object.entries(e).some(uf(r))&&Object.entries(t).some(uf(r)):t===r:!1}function fa(e,t,r){var o=r.actual,n=r.key,i=r.previous,s=r.type,a=Ie(e,n),l=Ie(t,n),c=[a,l].every($.number)&&(s==="increased"?a<l:a>l);return $.undefined(o)||(c=c&&l===o),$.undefined(i)||(c=c&&a===i),c}function pa(e,t,r){var o=r.key,n=r.type,i=r.value,s=Ie(e,o),a=Ie(t,o),l=n==="added"?s:a,c=n==="added"?a:s;if(!$.nullOrUndefined(i)){if($.defined(l)){if($.array(l)||$.plainObject(l))return _x(l,c,i)}else return oe(c,i);return !1}return [s,a].every($.array)?!c.every(ma(l)):[s,a].every($.plainObject)?Wx(Object.keys(l),Object.keys(c)):![s,a].every(function(u){return $.primitive(u)&&$.defined(u)})&&(n==="added"?!$.defined(s)&&$.defined(a):$.defined(s)&&!$.defined(a))}function da(e,t,r){var o=r===void 0?{}:r,n=o.key,i=Ie(e,n),s=Ie(t,n);if(!pf(i,s))throw new TypeError("Inputs have different types");if(!Bx(i,s))throw new TypeError("Inputs don't have length");return [i,s].every($.plainObject)&&(i=Object.keys(i),s=Object.keys(s)),[i,s]}function uf(e){return function(t){var r=t[0],o=t[1];return $.array(e)?oe(e,o)||e.some(function(n){return oe(n,o)||$.array(o)&&ma(o)(n)}):$.plainObject(e)&&e[r]?!!e[r]&&oe(e[r],o):oe(e,o)}}function Wx(e,t){return t.some(function(r){return !e.includes(r)})}function ff(e){return function(t){return $.array(e)?e.some(function(r){return oe(r,t)||$.array(t)&&ma(t)(r)}):oe(e,t)}}function hr(e,t){return $.array(e)?e.some(function(r){return oe(r,t)}):oe(e,t)}function ma(e){return function(t){return e.some(function(r){return oe(r,t)})}}function pf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every($.array)||e.every($.number)||e.every($.plainObject)||e.every($.string)}function Ie(e,t){if($.plainObject(e)||$.array(e)){if($.string(t)){var r=t.split(".");return r.reduce(function(o,n){return o&&o[n]},e)}return $.number(t)?e[t]:e}return e}var df=m(()=>{ua();Tn();});var mf=m(()=>{});function ha(e,t){if([e,t].some($.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(f){return $.plainObject(f)||$.array(f)}))throw new Error("Expected plain objects or array");var r=function(f,p){try{return pa(e,t,{key:f,type:"added",value:p})}catch{return !1}},o=function(f,p,d){try{var g=Ie(e,f),h=Ie(t,f),v=$.defined(p),x=$.defined(d);if(v||x){var y=x?hr(d,g):!hr(p,g),b=hr(p,h);return y&&b}return [g,h].every($.array)||[g,h].every($.plainObject)?!oe(g,h):g!==h}catch{return !1}},n=function(f,p,d){if(!$.defined(f))return !1;try{var g=Ie(e,f),h=Ie(t,f),v=$.defined(d);return hr(p,g)&&(v?hr(d,h):!v)}catch{return !1}},i=function(f,p){return $.defined(f)?o(f,p):!1},s=function(f,p,d){if(!$.defined(f))return !1;try{return fa(e,t,{key:f,actual:p,previous:d,type:"decreased"})}catch{return !1}},a=function(f){try{var p=da(e,t,{key:f}),d=p[0],g=p[1];return !!d.length&&!g.length}catch{return !1}},l=function(f){try{var p=da(e,t,{key:f}),d=p[0],g=p[1];return !d.length&&!!g.length}catch{return !1}},c=function(f,p,d){if(!$.defined(f))return !1;try{return fa(e,t,{key:f,actual:p,previous:d,type:"increased"})}catch{return !1}},u=function(f,p){try{return pa(e,t,{key:f,type:"removed",value:p})}catch{return !1}};return {added:r,changed:o,changedFrom:n,changedTo:i,decreased:s,emptied:a,filled:l,increased:c,removed:u}}var hf=m(()=>{ua();Tn();df();mf();});function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o);}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(o){ie(e,o,r[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o));});}return e}function mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yf(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,wf(o.key),o);}}function ho(e,t,r){return t&&yf(e.prototype,t),r&&yf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ie(e,t,r){return t=wf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function go(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ya(e,t);}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(e)}function ya(e,t){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},ya(e,t)}function Ux(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function zx(e,t){if(e==null)return {};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function xf(e,t){if(e==null)return {};var r=zx(e,t),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o]);}return r}function tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hx(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tt(e)}function yo(e){var t=Ux();return function(){var o=$n(e),n;if(t){var i=$n(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return Hx(this,n)}}function Gx(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function wf(e){var t=Gx(e,"string");return typeof t=="symbol"?t:String(t)}function Xx(e,t,r,o){return typeof e=="boolean"?e:typeof e=="function"?e(t,r,o):e?!!e:!1}function Zx(e,t){return Object.hasOwnProperty.call(e,t)}function Qx(e,t,r,o){return o?new Error(o):new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(r,"`."))}function Jx(e,t){if(typeof e!="function")throw new TypeError(Yx);if(t&&typeof t!="string")throw new TypeError(Kx)}function vf(e,t,r){return Jx(e,r),function(o,n,i){for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];return Xx(t,o,n,i)?Zx(o,n)?e.apply(void 0,[o,n,i].concat(a)):Qx(o,n,i,r):e.apply(void 0,[o,n,i].concat(a))}}function Ge(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function ga(){return "ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function En(e){var t=e.title,r=e.data,o=e.warn,n=o===void 0?!1:o,i=e.debug,s=i===void 0?!1:i,a=n?console.warn||console.error:console.log;s&&t&&r&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(l){$.plainObject(l)&&l.key?a.apply(console,[l.key,l.value]):a.apply(console,[l]);}):a.apply(console,[r]),console.groupEnd());}function ew(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,r,o);}function tw(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,r,o);}function rw(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n;n=function(s){r(s),tw(e,t,n);},ew(e,t,n,o);}function bf(){}function Pf(e){var t=e.handleClick,r=e.styles,o=r.color,n=r.height,i=r.width,s=xf(r,ow);return T__default.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},T__default.createElement("svg",{width:"".concat(i,"px"),height:"".concat(n,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},T__default.createElement("g",null,T__default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}function Tf(e){var t=e.content,r=e.footer,o=e.handleClick,n=e.open,i=e.positionWrapper,s=e.showCloseButton,a=e.title,l=e.styles,c={content:T__default.isValidElement(t)?t:T__default.createElement("div",{className:"__floater__content",style:l.content},t)};return a&&(c.title=T__default.isValidElement(a)?a:T__default.createElement("div",{className:"__floater__title",style:l.title},a)),r&&(c.footer=T__default.isValidElement(r)?r:T__default.createElement("div",{className:"__floater__footer",style:l.footer},r)),(s||i)&&!$.boolean(n)&&(c.close=T__default.createElement(Pf,{styles:l.close,handleClick:o})),T__default.createElement("div",{className:"__floater__container",style:l.container},c.close,c.title,c.content,c.footer)}function iw(e){var t=(0, An.default)(nw,e.options||{});return {wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var S,An,qx,Yx,Kx,_,po,Sf,Cf,ow,Ef,Of,nw,sw,aw,Rn,Af=m(()=>{S=mt(Fu());sf();An=mt(xn());Tn();hf();qx={flip:{padding:20},preventOverflow:{padding:10}},Yx="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Kx="The error message is optional, but must be a string if provided.";_={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},po=On__default.createPortal!==void 0;Sf=function(e){go(r,e);var t=yo(r);function r(){return mo(this,r),t.apply(this,arguments)}return ho(r,[{key:"componentDidMount",value:function(){Ge()&&(this.node||this.appendNode(),po||this.renderPortal());}},{key:"componentDidUpdate",value:function(){Ge()&&(po||this.renderPortal());}},{key:"componentWillUnmount",value:function(){!Ge()||!this.node||(po||On__default.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0));}},{key:"appendNode",value:function(){var n=this.props,i=n.id,s=n.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node));}},{key:"renderPortal",value:function(){if(!Ge())return null;var n=this.props,i=n.children,s=n.setRef;if(this.node||this.appendNode(),po)return On__default.createPortal(i,this.node);var a=On__default.unstable_renderSubtreeIntoContainer(this,i.length>1?T__default.createElement("div",null,i):i[0],this.node);return s(a),null}},{key:"renderReact16",value:function(){var n=this.props,i=n.hasChildren,s=n.placement,a=n.target;return i?this.renderPortal():a||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return po?this.renderReact16():null}}]),r}(T__default.Component);ie(Sf,"propTypes",{children:S.default.oneOfType([S.default.element,S.default.array]),hasChildren:S.default.bool,id:S.default.oneOfType([S.default.string,S.default.number]),placement:S.default.string,setRef:S.default.func.isRequired,target:S.default.oneOfType([S.default.object,S.default.string]),zIndex:S.default.number});Cf=function(e){go(r,e);var t=yo(r);function r(){return mo(this,r),t.apply(this,arguments)}return ho(r,[{key:"parentStyle",get:function(){var n=this.props,i=n.placement,s=n.styles,a=s.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=a):i.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=a):i.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):i.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var n=this.props,i=n.placement,s=n.setArrowRef,a=n.styles,l=a.arrow,c=l.color,u=l.display,f=l.length,p=l.margin,d=l.position,g=l.spread,h={display:u,position:d},v,x=g,y=f;return i.startsWith("top")?(v="0,0 ".concat(x/2,",").concat(y," ").concat(x,",0"),h.bottom=0,h.marginLeft=p,h.marginRight=p):i.startsWith("bottom")?(v="".concat(x,",").concat(y," ").concat(x/2,",0 0,").concat(y),h.top=0,h.marginLeft=p,h.marginRight=p):i.startsWith("left")?(y=g,x=f,v="0,0 ".concat(x,",").concat(y/2," 0,").concat(y),h.right=0,h.marginTop=p,h.marginBottom=p):i.startsWith("right")&&(y=g,x=f,v="".concat(x,",").concat(y," ").concat(x,",0 0,").concat(y/2),h.left=0,h.marginTop=p,h.marginBottom=p),T__default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},T__default.createElement("span",{ref:s,style:h},T__default.createElement("svg",{width:x,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T__default.createElement("polygon",{points:v,fill:c}))))}}]),r}(T__default.Component);ie(Cf,"propTypes",{placement:S.default.string.isRequired,setArrowRef:S.default.func.isRequired,styles:S.default.object.isRequired});ow=["color","height","width"];Pf.propTypes={handleClick:S.default.func.isRequired,styles:S.default.object.isRequired};Tf.propTypes={content:S.default.node.isRequired,footer:S.default.node,handleClick:S.default.func.isRequired,open:S.default.bool,positionWrapper:S.default.bool.isRequired,showCloseButton:S.default.bool.isRequired,styles:S.default.object.isRequired,title:S.default.node};Ef=function(e){go(r,e);var t=yo(r);function r(){return mo(this,r),t.apply(this,arguments)}return ho(r,[{key:"style",get:function(){var n=this.props,i=n.disableAnimation,s=n.component,a=n.placement,l=n.hideArrow,c=n.status,u=n.styles,f=u.arrow.length,p=u.floater,d=u.floaterCentered,g=u.floaterClosing,h=u.floaterOpening,v=u.floaterWithAnimation,x=u.floaterWithComponent,y={};return l||(a.startsWith("top")?y.padding="0 0 ".concat(f,"px"):a.startsWith("bottom")?y.padding="".concat(f,"px 0 0"):a.startsWith("left")?y.padding="0 ".concat(f,"px 0 0"):a.startsWith("right")&&(y.padding="0 0 0 ".concat(f,"px"))),[_.OPENING,_.OPEN].indexOf(c)!==-1&&(y=q(q({},y),h)),c===_.CLOSING&&(y=q(q({},y),g)),c===_.OPEN&&!i&&(y=q(q({},y),v)),a==="center"&&(y=q(q({},y),d)),s&&(y=q(q({},y),x)),q(q({},p),y)}},{key:"render",value:function(){var n=this.props,i=n.component,s=n.handleClick,a=n.hideArrow,l=n.setFloaterRef,c=n.status,u={},f=["__floater"];return i?T__default.isValidElement(i)?u.content=T__default.cloneElement(i,{closeFn:s}):u.content=i({closeFn:s}):u.content=T__default.createElement(Tf,this.props),c===_.OPEN&&f.push("__floater__open"),a||(u.arrow=T__default.createElement(Cf,this.props)),T__default.createElement("div",{ref:l,className:f.join(" "),style:this.style},T__default.createElement("div",{className:"__floater__body"},u.content,u.arrow))}}]),r}(T__default.Component);ie(Ef,"propTypes",{component:S.default.oneOfType([S.default.func,S.default.element]),content:S.default.node,disableAnimation:S.default.bool.isRequired,footer:S.default.node,handleClick:S.default.func.isRequired,hideArrow:S.default.bool.isRequired,open:S.default.bool,placement:S.default.string.isRequired,positionWrapper:S.default.bool.isRequired,setArrowRef:S.default.func.isRequired,setFloaterRef:S.default.func.isRequired,showCloseButton:S.default.bool,status:S.default.string.isRequired,styles:S.default.object.isRequired,title:S.default.node});Of=function(e){go(r,e);var t=yo(r);function r(){return mo(this,r),t.apply(this,arguments)}return ho(r,[{key:"render",value:function(){var n=this.props,i=n.children,s=n.handleClick,a=n.handleMouseEnter,l=n.handleMouseLeave,c=n.setChildRef,u=n.setWrapperRef,f=n.style,p=n.styles,d;if(i)if(T__default.Children.count(i)===1)if(!T__default.isValidElement(i))d=T__default.createElement("span",null,i);else {var g=$.function(i.type)?"innerRef":"ref";d=T__default.cloneElement(T__default.Children.only(i),ie({},g,c));}else d=i;return d?T__default.createElement("span",{ref:u,style:q(q({},p),f),onClick:s,onMouseEnter:a,onMouseLeave:l},d):null}}]),r}(T__default.Component);ie(Of,"propTypes",{children:S.default.node,handleClick:S.default.func.isRequired,handleMouseEnter:S.default.func.isRequired,handleMouseLeave:S.default.func.isRequired,setChildRef:S.default.func.isRequired,setWrapperRef:S.default.func.isRequired,style:S.default.object,styles:S.default.object.isRequired});nw={zIndex:100};sw=["arrow","flip","offset"],aw=["position","top","right","bottom","left"],Rn=function(e){go(r,e);var t=yo(r);function r(o){var n;return mo(this,r),n=t.call(this,o),ie(tt(n),"setArrowRef",function(i){n.arrowRef=i;}),ie(tt(n),"setChildRef",function(i){n.childRef=i;}),ie(tt(n),"setFloaterRef",function(i){n.floaterRef=i;}),ie(tt(n),"setWrapperRef",function(i){n.wrapperRef=i;}),ie(tt(n),"handleTransitionEnd",function(){var i=n.state.status,s=n.props.callback;n.wrapperPopper&&n.wrapperPopper.instance.update(),n.setState({status:i===_.OPENING?_.OPEN:_.IDLE},function(){var a=n.state.status;s(a===_.OPEN?"open":"close",n.props);});}),ie(tt(n),"handleClick",function(){var i=n.props,s=i.event,a=i.open;if(!$.boolean(a)){var l=n.state,c=l.positionWrapper,u=l.status;(n.event==="click"||n.event==="hover"&&c)&&(En({title:"click",data:[{event:s,status:u===_.OPEN?"closing":"opening"}],debug:n.debug}),n.toggle());}}),ie(tt(n),"handleMouseEnter",function(){var i=n.props,s=i.event,a=i.open;if(!($.boolean(a)||ga())){var l=n.state.status;n.event==="hover"&&l===_.IDLE&&(En({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:n.debug}),clearTimeout(n.eventDelayTimeout),n.toggle());}}),ie(tt(n),"handleMouseLeave",function(){var i=n.props,s=i.event,a=i.eventDelay,l=i.open;if(!($.boolean(l)||ga())){var c=n.state,u=c.status,f=c.positionWrapper;n.event==="hover"&&(En({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:n.debug}),a?[_.OPENING,_.OPEN].indexOf(u)!==-1&&!f&&!n.eventDelayTimeout&&(n.eventDelayTimeout=setTimeout(function(){delete n.eventDelayTimeout,n.toggle();},a*1e3)):n.toggle(_.IDLE));}}),n.state={currentPlacement:o.placement,needsUpdate:!1,positionWrapper:o.wrapperOptions.position&&!!o.target,status:_.INIT,statusWrapper:_.INIT},n._isMounted=!1,n.hasMounted=!1,Ge()&&window.addEventListener("load",function(){n.popper&&n.popper.instance.update(),n.wrapperPopper&&n.wrapperPopper.instance.update();}),n}return ho(r,[{key:"componentDidMount",value:function(){if(Ge()){var n=this.state.positionWrapper,i=this.props,s=i.children,a=i.open,l=i.target;this._isMounted=!0,En({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:$.boolean(a),positionWrapper:n,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&$.boolean(a);}}},{key:"componentDidUpdate",value:function(n,i){if(Ge()){var s=this.props,a=s.autoOpen,l=s.open,c=s.target,u=s.wrapperOptions,f=ha(i,this.state),p=f.changedFrom,d=f.changed;if(n.open!==l){var g;$.boolean(l)&&(g=l?_.OPENING:_.CLOSING),this.toggle(g);}(n.wrapperOptions.position!==u.position||n.target!==c)&&this.changeWrapperPosition(this.props),d("status",_.IDLE)&&l?this.toggle(_.OPEN):p("status",_.INIT,_.IDLE)&&a&&this.toggle(_.OPEN),this.popper&&d("status",_.OPENING)&&this.popper.instance.update(),this.floaterRef&&(d("status",_.OPENING)||d("status",_.CLOSING))&&rw(this.floaterRef,"transitionend",this.handleTransitionEnd),d("needsUpdate",!0)&&this.rebuildPopper();}}},{key:"componentWillUnmount",value:function(){Ge()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy());}},{key:"initPopper",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,a=this.props,l=a.disableFlip,c=a.getPopper,u=a.hideArrow,f=a.offset,p=a.placement,d=a.wrapperOptions,g=p==="top"||p==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(p==="center")this.setState({status:_.IDLE});else if(i&&this.floaterRef){var h=this.options,v=h.arrow,x=h.flip,y=h.offset,b=xf(h,sw);new sa(i,this.floaterRef,{placement:p,modifiers:q({arrow:q({enabled:!u,element:this.arrowRef},v),flip:q({enabled:!l,behavior:g},x),offset:q({offset:"0, ".concat(f,"px")},y)},b),onCreate:function(D){var L;if(n.popper=D,!((L=n.floaterRef)!==null&&L!==void 0&&L.isConnected)){n.setState({needsUpdate:!0});return}c(D,"floater"),n._isMounted&&n.setState({currentPlacement:D.placement,status:_.IDLE}),p!==D.placement&&setTimeout(function(){D.instance.update();},1);},onUpdate:function(D){n.popper=D;var L=n.state.currentPlacement;n._isMounted&&D.placement!==L&&n.setState({currentPlacement:D.placement});}});}if(s){var w=$.undefined(d.offset)?0:d.offset;new sa(this.target,this.wrapperRef,{placement:d.placement||p,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(w,"px")},flip:{enabled:!1}},onCreate:function(D){n.wrapperPopper=D,n._isMounted&&n.setState({statusWrapper:_.IDLE}),c(D,"wrapper"),p!==D.placement&&setTimeout(function(){D.instance.update();},1);}});}}},{key:"rebuildPopper",value:function(){var n=this;this.floaterRefInterval=setInterval(function(){var i;(i=n.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(n.floaterRefInterval),n.setState({needsUpdate:!1}),n.initPopper());},50);}},{key:"changeWrapperPosition",value:function(n){var i=n.target,s=n.wrapperOptions;this.setState({positionWrapper:s.position&&!!i});}},{key:"toggle",value:function(n){var i=this.state.status,s=i===_.OPEN?_.CLOSING:_.OPENING;$.undefined(n)||(s=n),this.setState({status:s});}},{key:"debug",get:function(){var n=this.props.debug;return n||Ge()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var n=this.props,i=n.disableHoverToClick,s=n.event;return s==="hover"&&ga()&&!i?"click":s}},{key:"options",get:function(){var n=this.props.options;return (0, An.default)(qx,n||{})}},{key:"styles",get:function(){var n=this,i=this.state,s=i.status,a=i.positionWrapper,l=i.statusWrapper,c=this.props.styles,u=(0, An.default)(iw(c),c);if(a){var f;[_.IDLE].indexOf(s)===-1||[_.IDLE].indexOf(l)===-1?f=u.wrapperPosition:f=this.wrapperPopper.styles,u.wrapper=q(q({},u.wrapper),f);}if(this.target){var p=window.getComputedStyle(this.target);this.wrapperStyles?u.wrapper=q(q({},u.wrapper),this.wrapperStyles):["relative","static"].indexOf(p.position)===-1&&(this.wrapperStyles={},a||(aw.forEach(function(d){n.wrapperStyles[d]=p[d];}),u.wrapper=q(q({},u.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"));}return u}},{key:"target",get:function(){if(!Ge())return null;var n=this.props.target;return n?$.domElement(n)?n:document.querySelector(n):this.childRef||this.wrapperRef}},{key:"render",value:function(){var n=this.state,i=n.currentPlacement,s=n.positionWrapper,a=n.status,l=this.props,c=l.children,u=l.component,f=l.content,p=l.disableAnimation,d=l.footer,g=l.hideArrow,h=l.id,v=l.open,x=l.showCloseButton,y=l.style,b=l.target,w=l.title,C=T__default.createElement(Of,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},c),D={};return s?D.wrapperInPortal=C:D.wrapperAsChildren=C,T__default.createElement("span",null,T__default.createElement(Sf,{hasChildren:!!c,id:h,placement:i,setRef:this.setFloaterRef,target:b,zIndex:this.styles.options.zIndex},T__default.createElement(Ef,{component:u,content:f,disableAnimation:p,footer:d,handleClick:this.handleClick,hideArrow:g||i==="center",open:v,placement:i,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:a,styles:this.styles,title:w}),D.wrapperInPortal),D.wrapperAsChildren)}}]),r}(T__default.Component);ie(Rn,"propTypes",{autoOpen:S.default.bool,callback:S.default.func,children:S.default.node,component:vf(S.default.oneOfType([S.default.func,S.default.element]),function(e){return !e.content}),content:vf(S.default.node,function(e){return !e.component}),debug:S.default.bool,disableAnimation:S.default.bool,disableFlip:S.default.bool,disableHoverToClick:S.default.bool,event:S.default.oneOf(["hover","click"]),eventDelay:S.default.number,footer:S.default.node,getPopper:S.default.func,hideArrow:S.default.bool,id:S.default.oneOfType([S.default.string,S.default.number]),offset:S.default.number,open:S.default.bool,options:S.default.object,placement:S.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:S.default.bool,style:S.default.object,styles:S.default.object,target:S.default.oneOfType([S.default.object,S.default.string]),title:S.default.node,wrapperOptions:S.default.shape({offset:S.default.number,placement:S.default.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:S.default.bool})});ie(Rn,"defaultProps",{autoOpen:!1,callback:bf,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:bf,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});});var Rf=dt((OO,$f)=>{var lw=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},cw=function(e,t){return e+vo(t)},vo=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(cw,""):lw(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?vo(e.props.children):""};vo.default=vo;$f.exports=vo;});function gt(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function Vf(e){return e?e.getBoundingClientRect():null}function pw(){let{body:e,documentElement:t}=document;return !e||!t?0:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}function vt(e){return typeof e=="string"?document.querySelector(e):e}function dw(e){return !e||e.nodeType!==1?null:getComputedStyle(e)}function kn(e,t,r){if(!e)return Ft();let o=(0, va.default)(e);if(o){if(o.isSameNode(Ft()))return r?document:Ft();if(!(o.scrollHeight>o.offsetHeight)&&!t)return o.style.overflow="initial",Ft()}return o}function Ln(e,t){if(!e)return !1;let r=kn(e,t);return r?!r.isSameNode(Ft()):!1}function mw(e){return e.offsetParent!==document.body}function Po(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return !1;let{nodeName:r}=e,o=dw(e);return r==="BODY"||r==="HTML"?!1:o&&o.position===t?!0:e.parentNode?Po(e.parentNode,t):!1}function hw(e){var t;if(!e)return !1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){let{display:o,visibility:n}=getComputedStyle(r);if(o==="none"||n==="hidden")return !1}r=(t=r.parentElement)!=null?t:null;}return !0}function gw(e,t,r){var o;let n=Vf(e),i=kn(e,r),s=Ln(e,r),a=0,l=(o=n?.top)!=null?o:0;return i instanceof HTMLElement&&(a=i.scrollTop,!s&&!Po(e)&&(l+=a),i.isSameNode(Ft())||(l+=Ft().scrollTop)),Math.floor(l-t)}function yw(e,t,r){var o;if(!e)return 0;let{offsetTop:n=0,scrollTop:i=0}=(o=(0, va.default)(e))!=null?o:{},s=e.getBoundingClientRect().top+i;n&&(Ln(e,r)||mw(e))&&(s-=n);let a=Math.floor(s-t);return a<0?0:a}function Ft(){var e;return (e=document.scrollingElement)!=null?e:document.documentElement}function vw(e,t){let{duration:r,element:o}=t;return new Promise((n,i)=>{let{scrollTop:s}=o,a=e>s?e-s:s-e;If.default.top(o,e,{duration:a<100?50:r},l=>l&&l.message!=="Element already at target scroll position"?i(l):n());})}function Ff(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function yt(e){let t=[],r=o=>{if(typeof o=="string"||typeof o=="number")t.push(o);else if(Array.isArray(o))o.forEach(n=>r(n));else if(isValidElement(o)){let{children:n}=o.props;Array.isArray(n)?n.forEach(i=>r(i)):r(n);}};return r(e),t.join(" ").trim()}function ww(e,t){return !P.plainObject(e)||!P.array(t)?!1:Object.keys(e).every(r=>t.includes(r))}function Sw(e){let t=/^#?([\da-f])([\da-f])([\da-f])$/i,r=e.replace(t,(n,i,s,a)=>i+i+s+s+a+a),o=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);return o?[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]:[]}function Mf(e){return e.disableBeacon||e.placement==="center"}function Df(){return !["chrome","safari","firefox","opera"].includes(Ff())}function Bt({data:e,debug:t=!1,title:r,warn:o=!1}){let n=o?console.warn||console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(i=>{P.plainObject(i)&&i.key?n.apply(console,[i.key,i.value]):n.apply(console,[i]);}):n.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"));}function Cw(e){let{isFirstStep:t,lifecycle:r,previousLifecycle:o,scrollToFirstStep:n,step:i,target:s}=e;return !i.disableScrolling&&(!t||n||r===N.TOOLTIP)&&i.placement!=="center"&&(!i.isFixed||!Po(s))&&o!==r&&[N.BEACON,N.TOOLTIP].includes(r)}function Aw(e,t){let r=(0, Dn.default)(e??{},t??{}),o=(0, Dn.default)(Ow,r.options||{}),{width:n}=o;window.innerWidth>480&&(n=380),"width"in o&&(n=typeof o.width=="number"&&window.innerWidth<o.width?window.innerWidth-30:o.width);let i={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:o.zIndex},s={beacon:{...xo,display:"inline-block",height:o.beaconSize,position:"relative",width:o.beaconSize,zIndex:o.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:o.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Sw(o.primaryColor).join(",")}, 0.2)`,border:`2px solid ${o.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:o.backgroundColor,borderRadius:5,boxSizing:"border-box",color:o.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...xo,backgroundColor:o.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...xo,color:o.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...xo,color:o.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...xo,color:o.textColor,fontSize:14},overlay:{...i,backgroundColor:o.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...i},overlayLegacyCenter:{...i,backgroundColor:o.overlayColor},spotlight:{...kf,backgroundColor:"gray"},spotlightLegacy:{...kf,boxShadow:`0 0 0 9999px ${o.overlayColor}, ${o.spotlightShadow}`},floaterStyles:{arrow:{color:o.arrowColor},options:{zIndex:o.zIndex+100}},options:o};return (0, Dn.default)(s,r)}function $w(e){return Eu(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function wo(e,t){var r,o,n,i,s,a;let l=e??{},c=So.default.all([Tw,$w(t),l],{isMergeableObject:P.plainObject}),u=Aw(t.styles,c.styles),f=Ln(vt(c.target),c.disableScrollParentFix),p=So.default.all([Pw,(r=t.floaterProps)!=null?r:{},(o=c.floaterProps)!=null?o:{}]);return p.offset=c.offset,p.styles=(0, So.default)((n=p.styles)!=null?n:{},u.floaterStyles),p.offset+=(s=(i=t.spotlightPadding)!=null?i:c.spotlightPadding)!=null?s:0,c.placementBeacon&&p.wrapperOptions&&(p.wrapperOptions.placement=c.placementBeacon),f&&p.options.preventOverflow&&(p.options.preventOverflow.boundariesElement="window"),{...c,locale:So.default.all([jf,(a=t.locale)!=null?a:{},c.locale||{}]),floaterProps:p,styles:Tu(u,"floaterStyles")}}function Bf(e,t=!1){return P.plainObject(e)?e.target?!0:(Bt({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Bt({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Lf(e,t=!1){return P.array(e)?e.every(r=>Bf(r,t)):(Bt({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}function Dw(e){return new Mw(e)}function Nw({styles:e}){return T.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}function jw({styles:e,...t}){let{color:r,height:o,width:n,...i}=e;return T__default.createElement("button",{style:i,type:"button",...t},T__default.createElement("svg",{height:typeof o=="number"?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof n=="number"?`${n}px`:n,xmlns:"http://www.w3.org/2000/svg"},T__default.createElement("g",null,T__default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}function _w(e){let{backProps:t,closeProps:r,continuous:o,index:n,isLastStep:i,primaryProps:s,size:a,skipProps:l,step:c,tooltipProps:u}=e,{content:f,hideBackButton:p,hideCloseButton:d,hideFooter:g,locale:h,showProgress:v,showSkipButton:x,styles:y,title:b}=c,{back:w,close:C,last:D,next:L,skip:A}=h,k={primary:C};return o&&(k.primary=i?D:L,v&&(k.primary=T.createElement("span",null,k.primary," (",n+1,"/",a,")"))),x&&!i&&(k.skip=T.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...l},A)),!p&&n>0&&(k.back=T.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t},w)),k.close=!d&&T.createElement(Bw,{"data-test-id":"button-close",styles:y.buttonClose,...r}),T.createElement("div",{key:"JoyrideTooltip","aria-label":yt(b)||yt(f),className:"react-joyride__tooltip",style:y.tooltip,...u},T.createElement("div",{style:y.tooltipContainer},b&&T.createElement("h1",{"aria-label":yt(b),style:y.tooltipTitle},b),T.createElement("div",{style:y.tooltipContent},f)),!g&&T.createElement("div",{style:y.tooltipFooter},T.createElement("div",{style:y.tooltipFooterSpacer},k.skip),k.back,T.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...s},k.primary)),k.close)}var If,va,So,Dn,_f,uw,fw,R,W,Ve,N,I,bo,Pw,jf,Tw,Ew,Ow,xo,kf,Rw,Nf,Mw,kw,Lw,Iw,Vw,Fw,Bw,Ww,Uw,zw,zf,Hf,Gf=m(()=>{gn();ze();vn();If=mt(Su(),1),va=mt(Pu(),1);ze();Ou();So=mt(xn(),1);ze();Dn=mt(xn(),1);ze();Af();ze();vn();_f=mt(Rf(),1);ze();vn();uw=Object.defineProperty,fw=(e,t,r)=>t in e?uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>(fw(e,typeof t!="symbol"?t+"":t,r),r),W={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ve={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},N={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},I={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};bo=createPortal!==void 0;Pw={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},jf={back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},Tw={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:jf,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Ew={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},Ow={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},xo={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},kf={borderRadius:4,position:"absolute"};Rw={action:"init",controlled:!1,index:0,lifecycle:N.INIT,size:0,status:I.IDLE},Nf=["action","index","lifecycle","status"],Mw=class{constructor(e){R(this,"beaconPopper"),R(this,"tooltipPopper"),R(this,"data",new Map),R(this,"listener"),R(this,"store",new Map),R(this,"addListener",n=>{this.listener=n;}),R(this,"setSteps",n=>{let{size:i,status:s}=this.getState(),a={size:n.length,status:s};this.data.set("steps",n),s===I.WAITING&&!i&&n.length&&(a.status=I.RUNNING),this.setState(a);}),R(this,"getPopper",n=>n==="beacon"?this.beaconPopper:this.tooltipPopper),R(this,"setPopper",(n,i)=>{n==="beacon"?this.beaconPopper=i:this.tooltipPopper=i;}),R(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null;}),R(this,"close",()=>{let{index:n,status:i}=this.getState();i===I.RUNNING&&this.setState({...this.getNextState({action:W.CLOSE,index:n+1})});}),R(this,"go",n=>{let{controlled:i,status:s}=this.getState();if(i||s!==I.RUNNING)return;let a=this.getSteps()[n];this.setState({...this.getNextState({action:W.GO,index:n}),status:a?s:I.FINISHED});}),R(this,"info",()=>this.getState()),R(this,"next",()=>{let{index:n,status:i}=this.getState();i===I.RUNNING&&this.setState(this.getNextState({action:W.NEXT,index:n+1}));}),R(this,"open",()=>{let{status:n}=this.getState();n===I.RUNNING&&this.setState({...this.getNextState({action:W.UPDATE,lifecycle:N.TOOLTIP})});}),R(this,"prev",()=>{let{index:n,status:i}=this.getState();i===I.RUNNING&&this.setState({...this.getNextState({action:W.PREV,index:n-1})});}),R(this,"reset",(n=!1)=>{let{controlled:i}=this.getState();i||this.setState({...this.getNextState({action:W.RESET,index:0}),status:n?I.RUNNING:I.READY});}),R(this,"skip",()=>{let{status:n}=this.getState();n===I.RUNNING&&this.setState({action:W.SKIP,lifecycle:N.INIT,status:I.SKIPPED});}),R(this,"start",n=>{let{index:i,size:s}=this.getState();this.setState({...this.getNextState({action:W.START,index:P.number(n)?n:i},!0),status:s?I.RUNNING:I.WAITING});}),R(this,"stop",(n=!1)=>{let{index:i,status:s}=this.getState();[I.FINISHED,I.SKIPPED].includes(s)||this.setState({...this.getNextState({action:W.STOP,index:i+(n?1:0)}),status:I.PAUSED});}),R(this,"update",n=>{var i;if(!ww(n,Nf))throw new Error(`State is not valid. Valid keys: ${Nf.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...n,action:(i=n.action)!=null?i:W.UPDATE},!0)});});let{continuous:t=!1,stepIndex:r,steps:o=[]}=e??{};this.setState({action:W.INIT,controlled:P.number(r),continuous:t,index:P.number(r)?r:0,lifecycle:N.INIT,status:o.length?I.READY:I.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(o);}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Rw}}getNextState(e,t=!1){var r,o,n,i;let{action:s,controlled:a,index:l,size:c,status:u}=this.getState(),f=P.number(e.index)?e.index:l,p=a&&!t?l:Math.min(Math.max(f,0),c);return {action:(r=e.action)!=null?r:s,controlled:a,index:p,lifecycle:(o=e.lifecycle)!=null?o:N.INIT,size:(n=e.size)!=null?n:c,status:p===c?I.FINISHED:(i=e.status)!=null?i:u}}getSteps(){let e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){let t=JSON.stringify(e),r=JSON.stringify(this.getState());return t!==r}setState(e,t=!1){let r=this.getState(),{action:o,index:n,lifecycle:i,size:s,status:a}={...r,...e};this.store.set("action",o),this.store.set("index",n),this.store.set("lifecycle",i),this.store.set("size",s),this.store.set("status",a),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState());}getHelpers(){return {close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};kw=class{constructor(e,t){if(R(this,"element"),R(this,"options"),R(this,"canBeTabbed",r=>{let{tabIndex:o}=r;return o===null||o<0?!1:this.canHaveFocus(r)}),R(this,"canHaveFocus",r=>{let o=/input|select|textarea|button|object/,n=r.nodeName.toLowerCase();return (o.test(n)&&!r.getAttribute("disabled")||n==="a"&&!!r.getAttribute("href"))&&this.isVisible(r)}),R(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),R(this,"handleKeyDown",r=>{let{code:o="Tab"}=this.options;r.code===o&&this.interceptTab(r);}),R(this,"interceptTab",r=>{r.preventDefault();let o=this.findValidTabElements(),{shiftKey:n}=r;if(!o.length)return;let i=document.activeElement?o.indexOf(document.activeElement):0;i===-1||!n&&i+1===o.length?i=0:n&&i===0?i=o.length-1:i+=n?-1:1,o[i].focus();}),R(this,"isHidden",r=>{let o=r.offsetWidth<=0&&r.offsetHeight<=0,n=window.getComputedStyle(r);return o&&!r.innerHTML?!0:o&&n.getPropertyValue("overflow")!=="visible"||n.getPropertyValue("display")==="none"}),R(this,"isVisible",r=>{let o=r;for(;o;)if(o instanceof HTMLElement){if(o===document.body)break;if(this.isHidden(o))return !1;o=o.parentNode;}return !0}),R(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown);}),R(this,"checkFocus",r=>{document.activeElement!==r&&(r.focus(),window.requestAnimationFrame(()=>this.checkFocus(r)));}),R(this,"setFocus",()=>{let{selector:r}=this.options;if(!r)return;let o=this.element.querySelector(r);o&&window.requestAnimationFrame(()=>this.checkFocus(o));}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus();}},Lw=class extends T.Component{constructor(e){if(super(e),R(this,"beacon",null),R(this,"setBeaconRef",n=>{this.beacon=n;}),e.beaconComponent)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.id="joyride-beacon-animation",e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode(`
|
|
11
12
|
@keyframes joyride-beacon-inner {
|
|
12
13
|
20% {
|
|
13
14
|
opacity: 0.9;
|
|
@@ -33,7 +34,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
33
34
|
transform: scale(1);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
`;a.type="text/css",a.id="joyride-beacon-animation",n.nonce!==void 0&&a.setAttribute("nonce",n.nonce),a.appendChild(document.createTextNode(s)),i.appendChild(a);}return o}return pt(r,[{key:"componentDidMount",value:function(){var o=this,i=this.props.shouldFocus;setTimeout(function(){oe.domElement(o.beacon)&&i&&o.beacon.focus();},0);}},{key:"componentWillUnmount",value:function(){var o=document.getElementById("joyride-beacon-animation");o&&o.parentNode.removeChild(o);}},{key:"render",value:function(){var o=this.props,i=o.beaconComponent,a=o.locale,s=o.onClickOrHover,l=o.styles,u={"aria-label":a.open,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:a.open},c;if(i){var f=i;c=O__default.createElement(f,u);}else c=O__default.createElement("button",Me({key:"JoyrideBeacon",className:"react-joyride__beacon",style:l.beacon,type:"button"},u),O__default.createElement("span",{style:l.beaconInner}),O__default.createElement("span",{style:l.beaconOuter}));return c}}]),r}(O__default.Component);SS=["mixBlendMode","zIndex"],wS=function(e){qt(r,e);var t=Kt(r);function r(){var n;ft(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),k(ie(n),"_isMounted",!1),k(ie(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),k(ie(n),"handleMouseMove",function(s){var l=n.state.mouseOverSpotlight,u=n.spotlightStyles,c=u.height,f=u.left,p=u.position,d=u.top,m=u.width,h=p==="fixed"?s.clientY:s.pageY,g=p==="fixed"?s.clientX:s.pageX,b=h>=d&&h<=d+c,y=g>=f&&g<=f+m,x=y&&b;x!==l&&n.updateState({mouseOverSpotlight:x});}),k(ie(n),"handleScroll",function(){var s=n.props.target,l=Mt(s);if(n.scrollParent!==document){var u=n.state.isScrolling;u||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout(function(){n.updateState({isScrolling:!1,showSpotlight:!0});},50);}else Cr(l,"sticky")&&n.updateState({});}),k(ie(n),"handleResize",function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout(function(){n._isMounted&&n.forceUpdate();},100);}),n}return pt(r,[{key:"componentDidMount",value:function(){var o=this.props;o.debug,o.disableScrolling;var i=o.disableScrollParentFix,a=o.target,s=Mt(a);this.scrollParent=jo(s,i,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize);}},{key:"componentDidUpdate",value:function(o){var i=this,a=this.props,s=a.lifecycle,l=a.spotlightClicks,u=At(o,this.props),c=u.changed;c("lifecycle",j.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(function(){var f=i.state.isScrolling;f||i.updateState({showSpotlight:!0});},100)),(c("spotlightClicks")||c("disableOverlay")||c("lifecycle"))&&(l&&s===j.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):s!==j.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove));}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll);}},{key:"spotlightStyles",get:function(){var o=this.state.showSpotlight,i=this.props,a=i.disableScrollParentFix,s=i.spotlightClicks,l=i.spotlightPadding,u=i.styles,c=i.target,f=Mt(c),p=Lf(f),d=Cr(f),m=fS(f,l,a);return T(T({},Tf()?u.spotlightLegacy:u.spotlight),{},{height:Math.round(p.height+l*2),left:Math.round(p.left-l),opacity:o?1:0,pointerEvents:s?"none":"auto",position:d?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(p.width+l*2)})}},{key:"updateState",value:function(o){this._isMounted&&this.setState(o);}},{key:"render",value:function(){var o=this.state,i=o.mouseOverSpotlight,a=o.showSpotlight,s=this.props,l=s.disableOverlay,u=s.disableOverlayClose,c=s.lifecycle,f=s.onClickOverlay,p=s.placement,d=s.styles;if(l||c!==j.TOOLTIP)return null;var m=d.overlay;Tf()&&(m=p==="center"?d.overlayLegacyCenter:d.overlayLegacy);var h=T({cursor:u?"default":"pointer",height:sS(),pointerEvents:i?"none":"auto"},m),g=p!=="center"&&a&&O__default.createElement(xS,{styles:this.spotlightStyles});if(Df()==="safari"){h.mixBlendMode,h.zIndex;var b=Fo(h,SS);g=O__default.createElement("div",{style:T({},b)},g),delete h.backgroundColor;}return O__default.createElement("div",{className:"react-joyride__overlay",style:h,onClick:f},g)}}]),r}(O__default.Component),CS=["styles"],ES=["color","height","width"];TS=function(e){qt(r,e);var t=Kt(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"render",value:function(){var o=this.props,i=o.backProps,a=o.closeProps,s=o.continuous,l=o.index,u=o.isLastStep,c=o.primaryProps,f=o.size,p=o.skipProps,d=o.step,m=o.tooltipProps,h=d.content,g=d.hideBackButton,b=d.hideCloseButton,y=d.hideFooter,x=d.showProgress,w=d.showSkipButton,C=d.title,P=d.styles,D=d.locale,_=D.back,L=D.close,B=D.last,Y=D.next,ee=D.skip,J={primary:L};return s&&(J.primary=u?B:Y,x&&(J.primary=O__default.createElement("span",null,J.primary," (",l+1,"/",f,")"))),w&&!u&&(J.skip=O__default.createElement("button",Me({style:P.buttonSkip,type:"button","aria-live":"off"},p),ee)),!g&&l>0&&(J.back=O__default.createElement("button",Me({style:P.buttonBack,type:"button"},i),_)),J.close=!b&&O__default.createElement(PS,Me({styles:P.buttonClose},a)),O__default.createElement("div",Me({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:P.tooltip},m),O__default.createElement("div",{style:P.tooltipContainer},C&&O__default.createElement("h4",{style:P.tooltipTitle,"aria-label":C},C),O__default.createElement("div",{style:P.tooltipContent},h)),!y&&O__default.createElement("div",{style:P.tooltipFooter},O__default.createElement("div",{style:P.tooltipFooterSpacer},J.skip),J.back,O__default.createElement("button",Me({style:P.buttonNext,type:"button"},c),J.primary)),J.close)}}]),r}(O__default.Component),OS=["beaconComponent","tooltipComponent"],AS=function(e){qt(r,e);var t=Kt(r);function r(){var n;ft(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),k(ie(n),"handleClickBack",function(s){s.preventDefault();var l=n.props.helpers;l.prev();}),k(ie(n),"handleClickClose",function(s){s.preventDefault();var l=n.props.helpers;l.close();}),k(ie(n),"handleClickPrimary",function(s){s.preventDefault();var l=n.props,u=l.continuous,c=l.helpers;if(!u){c.close();return}c.next();}),k(ie(n),"handleClickSkip",function(s){s.preventDefault();var l=n.props.helpers;l.skip();}),k(ie(n),"getElementsProps",function(){var s=n.props,l=s.continuous,u=s.isLastStep,c=s.setTooltipRef,f=s.step,p=yn(f.locale.back),d=yn(f.locale.close),m=yn(f.locale.last),h=yn(f.locale.next),g=yn(f.locale.skip),b=l?h:d;return u&&(b=m),{backProps:{"aria-label":p,"data-action":"back",onClick:n.handleClickBack,role:"button",title:p},closeProps:{"aria-label":d,"data-action":"close",onClick:n.handleClickClose,role:"button",title:d},primaryProps:{"aria-label":b,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:b},skipProps:{"aria-label":g,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:g},tooltipProps:{"aria-modal":!0,ref:c,role:"alertdialog"}}}),n}return pt(r,[{key:"render",value:function(){var o=this.props,i=o.continuous,a=o.index,s=o.isLastStep,l=o.size,u=o.step;u.beaconComponent;var c=u.tooltipComponent,f=Fo(u,OS),p;if(c){var d=T(T({},this.getElementsProps()),{},{continuous:i,index:a,isLastStep:s,size:l,step:f}),m=c;p=O__default.createElement(m,d);}else p=O__default.createElement(TS,Me({},this.getElementsProps(),{continuous:i,index:a,isLastStep:s,size:l,step:u}));return p}}]),r}(O__default.Component),$S=function(e){qt(r,e);var t=Kt(r);function r(){return ft(this,r),t.apply(this,arguments)}return pt(r,[{key:"componentDidMount",value:function(){_t&&(gn||this.renderReact15());}},{key:"componentDidUpdate",value:function(){_t&&(gn||this.renderReact15());}},{key:"componentWillUnmount",value:function(){!_t||!this.node||(gn||Lo.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0));}},{key:"appendNode",value:function(){var o=this.props.id;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),document.body.appendChild(this.node));}},{key:"renderReact15",value:function(){if(!_t)return null;var o=this.props.children;return this.node||this.appendNode(),Lo.unstable_renderSubtreeIntoContainer(this,o,this.node),null}},{key:"renderReact16",value:function(){if(!_t||!gn)return null;var o=this.props.children;return this.node||this.appendNode(),Lo.createPortal(o,this.node)}},{key:"render",value:function(){return gn?this.renderReact16():null}}]),r}(O__default.Component),RS=function(e){qt(r,e);var t=Kt(r);function r(){var n;ft(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),k(ie(n),"scope",{removeScope:function(){}}),k(ie(n),"handleClickHoverBeacon",function(s){var l=n.props,u=l.step,c=l.update;s.type==="mouseenter"&&u.event!=="hover"||c({lifecycle:j.TOOLTIP});}),k(ie(n),"handleClickOverlay",function(){var s=n.props,l=s.helpers,u=s.step;u.disableOverlayClose||l.close();}),k(ie(n),"setTooltipRef",function(s){n.tooltip=s;}),k(ie(n),"setPopper",function(s,l){var u=n.props,c=u.action,f=u.setPopper,p=u.update;l==="wrapper"?n.beaconPopper=s:n.tooltipPopper=s,f(s,l),n.beaconPopper&&n.tooltipPopper&&p({action:c===q.CLOSE?q.CLOSE:c,lifecycle:j.READY});}),n}return pt(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.debug,a=o.index;Gt({title:"step:".concat(a),data:[{key:"props",value:this.props}],debug:i});}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.action,s=i.callback,l=i.continuous,u=i.controlled,c=i.debug,f=i.index,p=i.lifecycle,d=i.size,m=i.status,h=i.step,g=i.update,b=At(o,this.props),y=b.changed,x=b.changedFrom,w={action:a,controlled:u,index:f,lifecycle:p,size:d,status:m},C=l&&a!==q.CLOSE&&(f>0||a===q.PREV),P=y("action")||y("index")||y("lifecycle")||y("status"),D=x("lifecycle",[j.TOOLTIP,j.INIT],j.INIT),_=y("action",[q.NEXT,q.PREV,q.SKIP,q.CLOSE]);if(_&&(D||u)&&s(T(T({},w),{},{index:o.index,lifecycle:j.COMPLETE,step:o.step,type:ke.STEP_AFTER})),h.placement==="center"&&m===W.RUNNING&&y("index")&&a!==q.START&&p===j.INIT&&g({lifecycle:j.READY}),P){var L=Mt(h.target),B=!!L,Y=B&&cS(L);Y?(x("status",W.READY,W.RUNNING)||x("lifecycle",j.INIT,j.READY))&&s(T(T({},w),{},{step:h,type:ke.STEP_BEFORE})):(console.warn(B?"Target not visible":"Target not mounted",h),s(T(T({},w),{},{type:ke.TARGET_NOT_FOUND,step:h})),u||g({index:f+([q.PREV].indexOf(a)!==-1?-1:1)}));}x("lifecycle",j.INIT,j.READY)&&g({lifecycle:Pf(h)||C?j.TOOLTIP:j.BEACON}),y("index")&&Gt({title:"step:".concat(p),data:[{key:"props",value:this.props}],debug:c}),y("lifecycle",j.BEACON)&&s(T(T({},w),{},{step:h,type:ke.BEACON})),y("lifecycle",j.TOOLTIP)&&(s(T(T({},w),{},{step:h,type:ke.TOOLTIP})),this.scope=new yS(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),x("lifecycle",[j.TOOLTIP,j.INIT],j.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper);}},{key:"componentWillUnmount",value:function(){this.scope.removeScope();}},{key:"open",get:function(){var o=this.props,i=o.step,a=o.lifecycle;return !!(Pf(i)||a===j.TOOLTIP)}},{key:"render",value:function(){var o=this.props,i=o.continuous,a=o.debug,s=o.helpers,l=o.index,u=o.lifecycle,c=o.nonce,f=o.shouldScroll,p=o.size,d=o.step,m=Mt(d.target);return !If(d)||!oe.domElement(m)?null:O__default.createElement("div",{key:"JoyrideStep-".concat(l),className:"react-joyride__step"},O__default.createElement($S,{id:"react-joyride-portal"},O__default.createElement(wS,Me({},d,{debug:a,lifecycle:u,onClickOverlay:this.handleClickOverlay}))),O__default.createElement(No,Me({component:O__default.createElement(AS,{continuous:i,helpers:s,index:l,isLastStep:l+1===p,setTooltipRef:this.setTooltipRef,size:p,step:d}),debug:a,getPopper:this.setPopper,id:"react-joyride-step-".concat(l),isPositioned:d.isFixed||Cr(m),open:this.open,placement:d.placement,target:d.target},d.floaterProps),O__default.createElement(bS,{beaconComponent:d.beaconComponent,locale:d.locale,nonce:c,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:f,styles:d.styles})))}}]),r}(O__default.Component),ms=function(e){qt(r,e);var t=Kt(r);function r(n){var o;return ft(this,r),o=t.call(this,n),k(ie(o),"initStore",function(){var i=o.props,a=i.debug,s=i.getHelpers,l=i.run,u=i.stepIndex;o.store=new aS(T(T({},o.props),{},{controlled:l&&oe.number(u)})),o.helpers=o.store.getHelpers();var c=o.store.addListener;return Gt({title:"init",data:[{key:"props",value:o.props},{key:"state",value:o.state}],debug:a}),c(o.syncState),s(o.helpers),o.store.getState()}),k(ie(o),"callback",function(i){var a=o.props.callback;oe.function(a)&&a(i);}),k(ie(o),"handleKeyboard",function(i){var a=o.state,s=a.index,l=a.lifecycle,u=o.props.steps,c=u[s],f=window.Event?i.which:i.keyCode;l===j.TOOLTIP&&f===27&&c&&!c.disableCloseOnEsc&&o.store.close();}),k(ie(o),"syncState",function(i){o.setState(i);}),k(ie(o),"setPopper",function(i,a){a==="wrapper"?o.beaconPopper=i:o.tooltipPopper=i;}),k(ie(o),"shouldScroll",function(i,a,s,l,u,c,f){return !i&&(a!==0||s||l===j.TOOLTIP)&&u.placement!=="center"&&(!u.isFixed||!Cr(c))&&f.lifecycle!==l&&[j.BEACON,j.TOOLTIP].indexOf(l)!==-1}),o.state=o.initStore(),o}return pt(r,[{key:"componentDidMount",value:function(){if(_t){var o=this.props,i=o.disableCloseOnEsc,a=o.debug,s=o.run,l=o.steps,u=this.store.start;$f(l,a)&&s&&u(),i||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0});}}},{key:"componentDidUpdate",value:function(o,i){if(_t){var a=this.state,s=a.action,l=a.controlled,u=a.index,c=a.lifecycle,f=a.status,p=this.props,d=p.debug,m=p.run,h=p.stepIndex,g=p.steps,b=o.steps,y=o.stepIndex,x=this.store,w=x.reset,C=x.setSteps,P=x.start,D=x.stop,_=x.update,L=At(o,this.props),B=L.changed,Y=At(i,this.state),ee=Y.changed,J=Y.changedFrom,se=xn(g[u],this.props),$e=!fs(b,g),Ze=oe.number(h)&&B("stepIndex"),Pe=Mt(se?.target);if($e&&($f(g,d)?C(g):console.warn("Steps are not valid",g)),B("run")&&(m?P(h):D()),Ze){var Tt=y<h?q.NEXT:q.PREV;s===q.STOP&&(Tt=q.START),[W.FINISHED,W.SKIPPED].indexOf(f)===-1&&_({action:s===q.CLOSE?q.CLOSE:Tt,index:h,lifecycle:j.INIT});}!l&&f===W.RUNNING&&u===0&&!Pe&&(_({index:u+1}),this.callback(T(T({},this.state),{},{type:ke.TARGET_NOT_FOUND,step:se})));var Re=T(T({},this.state),{},{index:u,step:se}),mr=ee("action",[q.NEXT,q.PREV,q.SKIP,q.CLOSE]);if(mr&&ee("status",W.PAUSED)){var Ot=xn(g[i.index],this.props);this.callback(T(T({},Re),{},{index:i.index,lifecycle:j.COMPLETE,step:Ot,type:ke.STEP_AFTER}));}if(ee("status",[W.FINISHED,W.SKIPPED])){var he=xn(g[i.index],this.props);l||this.callback(T(T({},Re),{},{index:i.index,lifecycle:j.COMPLETE,step:he,type:ke.STEP_AFTER})),this.callback(T(T({},Re),{},{index:i.index,step:he,type:ke.TOUR_END})),w();}else J("status",[W.IDLE,W.READY],W.RUNNING)?this.callback(T(T({},Re),{},{type:ke.TOUR_START})):ee("status")?this.callback(T(T({},Re),{},{type:ke.TOUR_STATUS})):ee("action",q.RESET)&&this.callback(T(T({},Re),{},{type:ke.TOUR_STATUS}));se&&(this.scrollToStep(i),se.placement==="center"&&f===W.RUNNING&&s===q.START&&c===j.INIT&&_({lifecycle:j.READY}));}}},{key:"componentWillUnmount",value:function(){var o=this.props.disableCloseOnEsc;o||document.body.removeEventListener("keydown",this.handleKeyboard);}},{key:"scrollToStep",value:function(o){var i=this.state,a=i.index,s=i.lifecycle,l=i.status,u=this.props,c=u.debug,f=u.disableScrollParentFix,p=u.scrollToFirstStep,d=u.scrollOffset,m=u.scrollDuration,h=u.steps,g=xn(h[a],this.props);if(g){var b=Mt(g.target),y=this.shouldScroll(g.disableScrolling,a,p,s,g,b,o);if(l===W.RUNNING&&y){var x=Bo(b,f),w=jo(b,f),C=Math.floor(pS(b,d,f))||0;if(Gt({title:"scrollToStep",data:[{key:"index",value:a},{key:"lifecycle",value:s},{key:"status",value:l}],debug:c}),s===j.BEACON&&this.beaconPopper){var P=this.beaconPopper,D=P.placement,_=P.popper;["bottom"].indexOf(D)===-1&&!x&&(C=Math.floor(_.top-d));}else if(s===j.TOOLTIP&&this.tooltipPopper){var L=this.tooltipPopper,B=L.flipped,Y=L.placement,ee=L.popper;["top","right","left"].indexOf(Y)!==-1&&!B&&!x?C=Math.floor(ee.top-d):C-=g.spotlightPadding;}C=C>=0?C:0,l===W.RUNNING&&dS(C,w,m);}}}},{key:"render",value:function(){if(!_t)return null;var o=this.state,i=o.index,a=o.status,s=this.props,l=s.continuous,u=s.debug,c=s.nonce,f=s.scrollToFirstStep,p=s.steps,d=xn(p[i],this.props),m;return a===W.RUNNING&&d&&(m=O__default.createElement(RS,Me({},this.state,{callback:this.callback,continuous:l,debug:u,setPopper:this.setPopper,helpers:this.helpers,nonce:c,shouldScroll:!d.disableScrolling&&(i!==0||f),step:d,update:this.store.update}))),O__default.createElement("div",{className:"react-joyride"},m)}}]),r}(O__default.Component);k(ms,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});});function Nf({targetSelector:e}){return useEffect(()=>{let t=document.querySelector(e);if(t){t.style.animation="pulsate 3s infinite",t.style.transformOrigin="center",t.style.animationTimingFunction="ease-in-out";let r=`
|
|
37
|
+
`)),t.appendChild(r);}componentDidMount(){let{shouldFocus:e}=this.props;setTimeout(()=>{P.domElement(this.beacon)&&e&&this.beacon.focus();},0);}componentWillUnmount(){let e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e);}render(){let{beaconComponent:e,continuous:t,index:r,isLastStep:o,locale:n,onClickOrHover:i,size:s,step:a,styles:l}=this.props,c=P.string(n.open)?n.open:(0, _f.default)(n.open),u={"aria-label":c,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:c},f;return e?f=T.createElement(e,{continuous:t,index:r,isLastStep:o,size:s,step:a,...u}):f=T.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...u},T.createElement("span",{style:l.beaconInner}),T.createElement("span",{style:l.beaconOuter})),f}};Iw=Nw,Vw=class extends T.Component{constructor(){super(...arguments),R(this,"isActive",!1),R(this,"resizeTimeout"),R(this,"scrollTimeout"),R(this,"scrollParent"),R(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),R(this,"handleMouseMove",e=>{let{mouseOverSpotlight:t}=this.state,{height:r,left:o,position:n,top:i,width:s}=this.spotlightStyles,a=n==="fixed"?e.clientY:e.pageY,l=n==="fixed"?e.clientX:e.pageX,c=a>=i&&a<=i+r,f=l>=o&&l<=o+s&&c;f!==t&&this.updateState({mouseOverSpotlight:f});}),R(this,"handleScroll",()=>{let{target:e}=this.props,t=vt(e);if(this.scrollParent!==document){let{isScrolling:r}=this.state;r||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0});},50);}else Po(t,"sticky")&&this.updateState({});}),R(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate();},100);});}componentDidMount(){let{debug:e,disableScrolling:t,disableScrollParentFix:r=!1,target:o}=this.props,n=vt(o);this.scrollParent=kn(n??document.body,r,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize);}componentDidUpdate(e){var t;let{lifecycle:r,spotlightClicks:o}=this.props,{changed:n}=It(e,this.props);n("lifecycle",N.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{let{isScrolling:i}=this.state;i||this.updateState({showSpotlight:!0});},100)),(n("spotlightClicks")||n("disableOverlay")||n("lifecycle"))&&(o&&r===N.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==N.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove));}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll);}get spotlightStyles(){var e,t,r;let{showSpotlight:o}=this.state,{disableScrollParentFix:n=!1,spotlightClicks:i,spotlightPadding:s=0,styles:a,target:l}=this.props,c=vt(l),u=Vf(c),f=Po(c),p=gw(c,s,n);return {...Df()?a.spotlightLegacy:a.spotlight,height:Math.round(((e=u?.height)!=null?e:0)+s*2),left:Math.round(((t=u?.left)!=null?t:0)-s),opacity:o?1:0,pointerEvents:i?"none":"auto",position:f?"fixed":"absolute",top:p,transition:"opacity 0.2s",width:Math.round(((r=u?.width)!=null?r:0)+s*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}));}render(){let{mouseOverSpotlight:e,showSpotlight:t}=this.state,{disableOverlay:r,disableOverlayClose:o,lifecycle:n,onClickOverlay:i,placement:s,styles:a}=this.props;if(r||n!==N.TOOLTIP)return null;let l=a.overlay;Df()&&(l=s==="center"?a.overlayLegacyCenter:a.overlayLegacy);let c={cursor:o?"default":"pointer",height:pw(),pointerEvents:e?"none":"auto",...l},u=s!=="center"&&t&&T.createElement(Iw,{styles:this.spotlightStyles});if(Ff()==="safari"){let{mixBlendMode:f,zIndex:p,...d}=c;u=T.createElement("div",{style:{...d}},u),delete c.backgroundColor;}return T.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:i,role:"presentation",style:c},u)}},Fw=class extends T.Component{constructor(){super(...arguments),R(this,"node",null);}componentDidMount(){let{id:e}=this.props;gt()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),bo||this.renderReact15());}componentDidUpdate(){gt()&&(bo||this.renderReact15());}componentWillUnmount(){!gt()||!this.node||(bo||On.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null));}renderReact15(){if(!gt())return;let{children:e}=this.props;this.node&&On.unstable_renderSubtreeIntoContainer(this,e,this.node);}renderReact16(){if(!gt()||!bo)return null;let{children:e}=this.props;return this.node?On.createPortal(e,this.node):null}render(){return bo?this.renderReact16():null}};Bw=jw;Ww=_w,Uw=class extends T.Component{constructor(){super(...arguments),R(this,"handleClickBack",e=>{e.preventDefault();let{helpers:t}=this.props;t.prev();}),R(this,"handleClickClose",e=>{e.preventDefault();let{helpers:t}=this.props;t.close();}),R(this,"handleClickPrimary",e=>{e.preventDefault();let{continuous:t,helpers:r}=this.props;if(!t){r.close();return}r.next();}),R(this,"handleClickSkip",e=>{e.preventDefault();let{helpers:t}=this.props;t.skip();}),R(this,"getElementsProps",()=>{let{continuous:e,isLastStep:t,setTooltipRef:r,step:o}=this.props,n=yt(o.locale.back),i=yt(o.locale.close),s=yt(o.locale.last),a=yt(o.locale.next),l=yt(o.locale.skip),c=e?a:i;return t&&(c=s),{backProps:{"aria-label":n,"data-action":"back",onClick:this.handleClickBack,role:"button",title:n},closeProps:{"aria-label":i,"data-action":"close",onClick:this.handleClickClose,role:"button",title:i},primaryProps:{"aria-label":c,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:c},skipProps:{"aria-label":l,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:l},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}});}render(){let{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:n,step:i}=this.props,{beaconComponent:s,tooltipComponent:a,...l}=i,c;if(a){let u={...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:n,step:l,setTooltipRef:o};c=T.createElement(a,{...u});}else c=T.createElement(Ww,{...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:n,step:i});return c}},zw=class extends T.Component{constructor(){super(...arguments),R(this,"scope",null),R(this,"tooltip",null),R(this,"handleClickHoverBeacon",e=>{let{step:t,store:r}=this.props;e.type==="mouseenter"&&t.event!=="hover"||r.update({lifecycle:N.TOOLTIP});}),R(this,"handleClickOverlay",()=>{let{helpers:e,step:t}=this.props;t.disableOverlayClose||e.close();}),R(this,"setTooltipRef",e=>{this.tooltip=e;}),R(this,"setPopper",(e,t)=>{var r;let{action:o,step:n,store:i}=this.props;t==="wrapper"?i.setPopper("beacon",e):i.setPopper("tooltip",e),i.getPopper("beacon")&&i.getPopper("tooltip")&&i.update({action:o,lifecycle:N.READY}),(r=n.floaterProps)!=null&&r.getPopper&&n.floaterProps.getPopper(e,t);}),R(this,"renderTooltip",e=>{let{continuous:t,helpers:r,index:o,size:n,step:i}=this.props;return T.createElement(Uw,{continuous:t,helpers:r,index:o,isLastStep:o+1===n,setTooltipRef:this.setTooltipRef,size:n,step:i,...e})});}componentDidMount(){let{debug:e,index:t}=this.props;Bt({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e});}componentDidUpdate(e){var t;let{action:r,callback:o,continuous:n,controlled:i,debug:s,index:a,lifecycle:l,size:c,status:u,step:f,store:p}=this.props,{changed:d,changedFrom:g}=It(e,this.props),h={action:r,controlled:i,index:a,lifecycle:l,size:c,status:u},v=n&&r!==W.CLOSE&&(a>0||r===W.PREV),x=d("action")||d("index")||d("lifecycle")||d("status"),y=g("lifecycle",[N.TOOLTIP,N.INIT],N.INIT),b=d("action",[W.NEXT,W.PREV,W.SKIP,W.CLOSE]),w=i&&a===e.index;if(b&&(y||w)&&o({...h,index:e.index,lifecycle:N.COMPLETE,step:e.step,type:Ve.STEP_AFTER}),f.placement==="center"&&u===I.RUNNING&&d("index")&&r!==W.START&&l===N.INIT&&p.update({lifecycle:N.READY}),x){let C=vt(f.target),D=!!C;D&&hw(C)?(g("status",I.READY,I.RUNNING)||g("lifecycle",N.INIT,N.READY))&&o({...h,step:f,type:Ve.STEP_BEFORE}):(console.warn(D?"Target not visible":"Target not mounted",f),o({...h,type:Ve.TARGET_NOT_FOUND,step:f}),i||p.update({index:a+(r===W.PREV?-1:1)}));}g("lifecycle",N.INIT,N.READY)&&p.update({lifecycle:Mf(f)||v?N.TOOLTIP:N.BEACON}),d("index")&&Bt({title:`step:${l}`,data:[{key:"props",value:this.props}],debug:s}),d("lifecycle",N.BEACON)&&o({...h,step:f,type:Ve.BEACON}),d("lifecycle",N.TOOLTIP)&&(o({...h,step:f,type:Ve.TOOLTIP}),this.tooltip&&(this.scope=new kw(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),g("lifecycle",[N.TOOLTIP,N.INIT],N.INIT)&&((t=this.scope)==null||t.removeScope(),p.cleanupPoppers());}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope();}get open(){let{lifecycle:e,step:t}=this.props;return Mf(t)||e===N.TOOLTIP}render(){let{continuous:e,debug:t,index:r,lifecycle:o,nonce:n,shouldScroll:i,size:s,step:a}=this.props,l=vt(a.target);return !Bf(a)||!P.domElement(l)?null:T.createElement("div",{key:`JoyrideStep-${r}`,className:"react-joyride__step"},T.createElement(Fw,{id:"react-joyride-portal"},T.createElement(Vw,{...a,debug:t,lifecycle:o,onClickOverlay:this.handleClickOverlay})),T.createElement(Rn,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${r}`,open:this.open,placement:a.placement,target:a.target},T.createElement(Lw,{beaconComponent:a.beaconComponent,continuous:e,index:r,isLastStep:r+1===s,locale:a.locale,nonce:n,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:a,styles:a.styles})))}},zf=class extends T.Component{constructor(e){super(e),R(this,"helpers"),R(this,"store"),R(this,"callback",s=>{let{callback:a}=this.props;P.function(a)&&a(s);}),R(this,"handleKeyboard",s=>{let{index:a,lifecycle:l}=this.state,{steps:c}=this.props,u=c[a];l===N.TOOLTIP&&s.code==="Escape"&&u&&!u.disableCloseOnEsc&&this.store.close();}),R(this,"syncState",s=>{this.setState(s);});let{debug:t,getHelpers:r,run:o,stepIndex:n}=e;this.store=Dw({...e,controlled:o&&P.number(n)}),this.helpers=this.store.getHelpers();let{addListener:i}=this.store;Bt({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),i(this.syncState),r&&r(this.helpers),this.state=this.store.getState();}componentDidMount(){if(!gt())return;let{debug:e,disableCloseOnEsc:t,run:r,steps:o}=this.props,{start:n}=this.store;Lf(o,e)&&r&&n(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0});}componentDidUpdate(e,t){if(!gt())return;let{action:r,controlled:o,index:n,lifecycle:i,status:s}=this.state,{debug:a,run:l,stepIndex:c,steps:u}=this.props,{stepIndex:f,steps:p}=e,{reset:d,setSteps:g,start:h,stop:v,update:x}=this.store,{changed:y}=It(e,this.props),{changed:b,changedFrom:w}=It(t,this.state),C=wo(u[n],this.props),D=!ee(p,u),L=P.number(c)&&y("stepIndex"),A=vt(C.target);if(D&&(Lf(u,a)?g(u):console.warn("Steps are not valid",u)),y("run")&&(l?h(c):v()),L){let G=P.number(f)&&f<c?W.NEXT:W.PREV;r===W.STOP&&(G=W.START),[I.FINISHED,I.SKIPPED].includes(s)||x({action:r===W.CLOSE?W.CLOSE:G,index:c,lifecycle:N.INIT});}!o&&s===I.RUNNING&&n===0&&!A&&(this.store.update({index:n+1}),this.callback({...this.state,type:Ve.TARGET_NOT_FOUND,step:C}));let k={...this.state,index:n,step:C};if(b("action",[W.NEXT,W.PREV,W.SKIP,W.CLOSE])&&b("status",I.PAUSED)){let G=wo(u[t.index],this.props);this.callback({...k,index:t.index,lifecycle:N.COMPLETE,step:G,type:Ve.STEP_AFTER});}if(b("status",[I.FINISHED,I.SKIPPED])){let G=wo(u[t.index],this.props);o||this.callback({...k,index:t.index,lifecycle:N.COMPLETE,step:G,type:Ve.STEP_AFTER}),this.callback({...k,type:Ve.TOUR_END,step:G,index:t.index}),d();}else w("status",[I.IDLE,I.READY],I.RUNNING)?this.callback({...k,type:Ve.TOUR_START}):(b("status")||b("action",W.RESET))&&this.callback({...k,type:Ve.TOUR_STATUS});this.scrollToStep(t),C.placement==="center"&&s===I.RUNNING&&i===N.INIT&&this.store.update({lifecycle:N.READY});}componentWillUnmount(){let{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard);}scrollToStep(e){let{index:t,lifecycle:r,status:o}=this.state,{debug:n,disableScrollParentFix:i=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=wo(c[t],this.props),f=vt(u.target),p=Cw({isFirstStep:t===0,lifecycle:r,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:u,target:f});if(o===I.RUNNING&&p){let d=Ln(f,i),g=kn(f,i),h=Math.floor(yw(f,a,i))||0;Bt({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:r},{key:"status",value:o}],debug:n});let v=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(r===N.BEACON&&v){let{offsets:y,placement:b}=v;!["bottom"].includes(b)&&!d&&(h=Math.floor(y.popper.top-a));}else if(r===N.TOOLTIP&&x){let{flipped:y,offsets:b,placement:w}=x;["top","right","left"].includes(w)&&!y&&!d?h=Math.floor(b.popper.top-a):h-=u.spotlightPadding;}h=h>=0?h:0,o===I.RUNNING&&vw(h,{element:g,duration:s}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update();},10);});}}render(){if(!gt())return null;let{index:e,status:t}=this.state,{continuous:r=!1,debug:o=!1,nonce:n,scrollToFirstStep:i=!1,steps:s}=this.props,a;if(t===I.RUNNING&&s[e]){let l=wo(s[e],this.props);a=T.createElement(zw,{...this.state,callback:this.callback,continuous:r,debug:o,helpers:this.helpers,nonce:n,shouldScroll:!l.disableScrolling&&(e!==0||i),step:l,store:this.store});}return T.createElement("div",{className:"react-joyride"},a)}};R(zf,"defaultProps",Ew);Hf=zf;});function qf({targetSelector:e}){return useEffect(()=>{let t=document.querySelector(e);if(t){t.style.animation="pulsate 3s infinite",t.style.transformOrigin="center",t.style.animationTimingFunction="ease-in-out";let r=`
|
|
37
38
|
@keyframes pulsate {
|
|
38
39
|
0% {
|
|
39
40
|
box-shadow: 0 0 0 0 rgba(2, 156, 253, 0.7), 0 0 0 0 rgba(2, 156, 253, 0.4);
|
|
@@ -45,7 +46,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
45
46
|
box-shadow: 0 0 0 0 rgba(2, 156, 253, 0), 0 0 0 0 rgba(2, 156, 253, 0);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
`,
|
|
49
|
+
`,o=document.createElement("style");o.id="sb-onboarding-pulsating-effect",o.innerHTML=r,document.head.appendChild(o);}return ()=>{let r=document.querySelector("#sb-onboarding-pulsating-effect");r&&r.remove(),t&&(t.style.animation="auto");}},[e]),null}var Yf=m(()=>{});function Nn({top:e=0,left:t=0,width:r=window.innerWidth,height:o=window.innerHeight,colors:n=["#CA90FF","#FC521F","#66BF3C","#FF4785","#FFAE00","#1EA7FD"],...i}){let[s]=useState(()=>{let a=document.createElement("div");return a.setAttribute("id","confetti-container"),a.setAttribute("style","position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999;"),a});return useEffect(()=>(document.body.appendChild(s),()=>{document.body.removeChild(s);}),[]),createPortal(T__default.createElement(Zw,{top:e,left:t,width:r,height:o},T__default.createElement(Gw,{colors:n,drawShape:Jw,...i})),s)}function Qw(e,t){return Math.floor(Math.random()*(t-e))+e}function Jw(e){switch(this.shape=this.shape||Qw(1,6),this.shape){case 2:{let r=this.w/2,o=this.h/2;e.moveTo(-r+2,-o),e.lineTo(r-2,-o),e.arcTo(r,-o,r,-o+2,2),e.lineTo(r,o-2),e.arcTo(r,o,r-2,o,2),e.lineTo(-r+2,o),e.arcTo(-r,o,-r,o-2,2),e.lineTo(-r,-o+2),e.arcTo(-r,-o,-r+2,-o,2);break}case 3:{e.rect(-4,-4,8,16),e.rect(-12,-4,24,8);break}case 4:{e.rect(-4,-4,8,16),e.rect(-4,-4,24,8);break}case 1:{e.arc(0,0,this.radius,0,2*Math.PI);break}case 5:{e.moveTo(16,4),e.lineTo(4,24),e.lineTo(24,24);break}case 6:{e.arc(4,-4,4,-Math.PI/2,0),e.lineTo(4,0);break}}e.closePath(),e.fill();}var Zw,ba=m(()=>{Zw=styled.div(({width:e,height:t,left:r,top:o})=>({width:`${e}px`,height:`${t}px`,left:`${r}px`,top:`${o}px`,position:"relative",overflow:"hidden"}));});var o1,ue,In=m(()=>{o1=styled.button`
|
|
49
50
|
all: unset;
|
|
50
51
|
box-sizing: border-box;
|
|
51
52
|
border: 0;
|
|
@@ -74,32 +75,32 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
74
75
|
&:focus {
|
|
75
76
|
box-shadow: ${({variant:e})=>e==="primary"?"inset 0 0 0 1px rgba(0, 0, 0, 0.2)":e==="secondary"||e==="outline"?"inset 0 0 0 1px #0b94eb":"inset 0 0 0 2px rgba(0, 0, 0, 0.1)"};
|
|
76
77
|
}
|
|
77
|
-
`,
|
|
78
|
+
`,ue=forwardRef(({children:e,onClick:t,variant:r="primary",...o},n)=>T__default.createElement(o1,{ref:n,onClick:t,variant:r,...o},e));});var n1,i1,s1,a1,l1,Xf,Zf=m(()=>{In();n1=styled.div`
|
|
78
79
|
background: ${({theme:e})=>e.base==="dark"?"#292A2C":e.color.lightest};
|
|
79
80
|
width: 260px;
|
|
80
81
|
padding: 15px;
|
|
81
82
|
border-radius: 5px;
|
|
82
|
-
`,
|
|
83
|
+
`,i1=styled.div`
|
|
83
84
|
display: flex;
|
|
84
85
|
flex-direction: column;
|
|
85
86
|
align-items: flex-start;
|
|
86
|
-
`,
|
|
87
|
+
`,s1=styled.div`
|
|
87
88
|
font-size: 13px;
|
|
88
89
|
line-height: 18px;
|
|
89
90
|
font-weight: 700;
|
|
90
91
|
color: ${({theme:e})=>e.color.defaultText};
|
|
91
|
-
`,
|
|
92
|
+
`,a1=styled.p`
|
|
92
93
|
font-size: 13px;
|
|
93
94
|
line-height: 18px;
|
|
94
95
|
text-align: start;
|
|
95
96
|
color: ${({theme:e})=>e.color.defaultText};
|
|
96
97
|
margin: 0;
|
|
97
98
|
margin-top: 5px;
|
|
98
|
-
`,
|
|
99
|
+
`,l1=styled.div`
|
|
99
100
|
display: flex;
|
|
100
101
|
justify-content: flex-end;
|
|
101
102
|
margin-top: 15px;
|
|
102
|
-
`,
|
|
103
|
+
`,Xf=({step:e,primaryProps:t,tooltipProps:r})=>T__default.createElement(n1,{...r},T__default.createElement(i1,null,e.title&&T__default.createElement(s1,null,e.title),T__default.createElement(a1,null,e.content)),!e.hideNextButton&&T__default.createElement(l1,{id:"buttonNext"},T__default.createElement(ue,{...t,...e.onNextButtonClick?{onClick:e.onNextButtonClick}:{}},"Next")));});var Qf,Jf,ep,tp,rp,br,Vn,op,c1,np,u1,ip,f1,sp,Oo,ap,wa=m(()=>{Qf=styled.div`
|
|
103
104
|
display: flex;
|
|
104
105
|
flex-direction: row;
|
|
105
106
|
height: 100%;
|
|
@@ -108,13 +109,13 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
108
109
|
&:focus-visible {
|
|
109
110
|
outline: none;
|
|
110
111
|
}
|
|
111
|
-
`,
|
|
112
|
+
`,Jf=styled.div`
|
|
112
113
|
position: relative;
|
|
113
114
|
flex: 1;
|
|
114
115
|
display: flex;
|
|
115
116
|
flex-direction: column;
|
|
116
117
|
font-family: ${({theme:e})=>e.typography.fonts.base};
|
|
117
|
-
`,
|
|
118
|
+
`,ep=styled.div`
|
|
118
119
|
box-sizing: border-box;
|
|
119
120
|
display: flex;
|
|
120
121
|
justify-content: space-between;
|
|
@@ -122,7 +123,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
122
123
|
padding: 0 15px;
|
|
123
124
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
124
125
|
height: 44px;
|
|
125
|
-
`,
|
|
126
|
+
`,tp=styled.div`
|
|
126
127
|
display: flex;
|
|
127
128
|
align-items: center;
|
|
128
129
|
gap: 5px;
|
|
@@ -130,7 +131,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
130
131
|
line-height: 18px;
|
|
131
132
|
font-weight: bold;
|
|
132
133
|
color: ${({theme:e})=>e.color.darkest};
|
|
133
|
-
`,
|
|
134
|
+
`,rp=styled.div`
|
|
134
135
|
font-size: 13px;
|
|
135
136
|
line-height: 18px;
|
|
136
137
|
padding: 15px;
|
|
@@ -148,7 +149,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
148
149
|
padding: 0;
|
|
149
150
|
margin: 0;
|
|
150
151
|
}
|
|
151
|
-
`,
|
|
152
|
+
`,br=styled.span`
|
|
152
153
|
display: inline-flex;
|
|
153
154
|
border-radius: 3px;
|
|
154
155
|
padding: 0 5px;
|
|
@@ -161,10 +162,10 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
161
162
|
background-color: #f7fafc;
|
|
162
163
|
box-sizing: border-box;
|
|
163
164
|
line-height: 17px;
|
|
164
|
-
`,
|
|
165
|
+
`,Vn=styled.img`
|
|
165
166
|
max-width: 100%;
|
|
166
167
|
margin-top: 1em;
|
|
167
|
-
`,
|
|
168
|
+
`,op=styled.div`
|
|
168
169
|
position: absolute;
|
|
169
170
|
top: 0;
|
|
170
171
|
left: 0;
|
|
@@ -172,11 +173,11 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
172
173
|
height: 100%;
|
|
173
174
|
z-index: -1;
|
|
174
175
|
overflow: hidden;
|
|
175
|
-
`,
|
|
176
|
+
`,c1=keyframes`
|
|
176
177
|
0% { transform: translate(0px, 0px) }
|
|
177
178
|
50% { transform: translate(120px, 0px) }
|
|
178
179
|
100% { transform: translate(0px, 0px) }
|
|
179
|
-
`,
|
|
180
|
+
`,np=styled.div`
|
|
180
181
|
position: absolute;
|
|
181
182
|
width: 350px;
|
|
182
183
|
height: 350px;
|
|
@@ -187,15 +188,15 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
187
188
|
rgba(255, 119, 119, 1) 0%,
|
|
188
189
|
rgba(255, 119, 119, 0) 70%
|
|
189
190
|
);
|
|
190
|
-
animation: ${
|
|
191
|
+
animation: ${c1} 8s linear infinite;
|
|
191
192
|
animation-timing-function: ease-in-out;
|
|
192
193
|
z-index: 2;
|
|
193
|
-
`,
|
|
194
|
+
`,u1=keyframes`
|
|
194
195
|
0% { transform: translate(0px, 0px) }
|
|
195
196
|
33% { transform: translate(-64px, 0px) }
|
|
196
197
|
66% { transform: translate(120px, 0px) }
|
|
197
198
|
100% { transform: translate(0px, 0px) }
|
|
198
|
-
`,
|
|
199
|
+
`,ip=styled.div`
|
|
199
200
|
position: absolute;
|
|
200
201
|
width: 350px;
|
|
201
202
|
height: 350px;
|
|
@@ -206,14 +207,14 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
206
207
|
rgba(253, 255, 147, 1) 0%,
|
|
207
208
|
rgba(253, 255, 147, 0) 70%
|
|
208
209
|
);
|
|
209
|
-
animation: ${
|
|
210
|
+
animation: ${u1} 12s linear infinite;
|
|
210
211
|
animation-timing-function: ease-in-out;
|
|
211
212
|
z-index: 3;
|
|
212
|
-
`,
|
|
213
|
+
`,f1=keyframes`
|
|
213
214
|
0% { transform: translate(0px, 0px) }
|
|
214
215
|
50% { transform: translate(-120px, 0px) }
|
|
215
216
|
100% { transform: translate(0px, 0px) }
|
|
216
|
-
`,
|
|
217
|
+
`,sp=styled.div`
|
|
217
218
|
position: absolute;
|
|
218
219
|
width: 350px;
|
|
219
220
|
height: 350px;
|
|
@@ -224,66 +225,66 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
224
225
|
rgba(119, 255, 247, 0.8) 0%,
|
|
225
226
|
rgba(119, 255, 247, 0) 70%
|
|
226
227
|
);
|
|
227
|
-
animation: ${
|
|
228
|
+
animation: ${f1} 4s linear infinite;
|
|
228
229
|
animation-timing-function: ease-in-out;
|
|
229
230
|
z-index: 4;
|
|
230
|
-
`,
|
|
231
|
+
`,Oo=styled.div`
|
|
231
232
|
box-sizing: border-box;
|
|
232
233
|
display: flex;
|
|
233
234
|
justify-content: space-between;
|
|
234
235
|
align-items: center;
|
|
235
236
|
width: 100%;
|
|
236
237
|
margin-top: 4px;
|
|
237
|
-
`,
|
|
238
|
+
`,ap=styled.div`
|
|
238
239
|
margin-bottom: 4px;
|
|
239
|
-
`;});function Qf({api:e,isFinalStep:t,onFirstTourDone:r,onLastTourDone:n,codeSnippets:o}){let[i,a]=useState(),s=useTheme();useEffect(()=>{e.once(UPDATE_STORY_ARGS,()=>{a(3);});},[]);let l=useMemo(()=>document.querySelector("#root div[role=main]")||document.querySelector("#storybook-panel-root"),[]),u=t?[{target:"#example-button--warning",title:"Congratulations!",content:O__default.createElement(O__default.Fragment,null,"You just created your first story. Continue setting up your project to write stories for your own components."),placement:"right",disableOverlay:!0,disableBeacon:!0,floaterProps:{disableAnimation:!0},onNextButtonClick(){n();}}]:[{target:"#storybook-explorer-tree > div",title:"Storybook is built from stories",content:O__default.createElement(O__default.Fragment,null,"Storybook stories represent the key states of each of your components.",O__default.createElement("br",null),O__default.createElement("br",null),o?.filename&&O__default.createElement(O__default.Fragment,null,"We automatically added four stories for this Button component in this example file:",O__default.createElement("br",null),O__default.createElement(Pr,null,o.filename))),placement:"right",disableBeacon:!0,styles:{spotlight:{transform:"translateY(30px)"}},floaterProps:{disableAnimation:!0}},{target:"#storybook-preview-iframe",title:"Storybook previews are interactive",content:"Whenever you modify code or stories, Storybook automatically updates how it previews your components.",placement:"bottom",styles:{spotlight:{borderRadius:0}}},{target:l,title:"Interactive story playground",content:O__default.createElement(O__default.Fragment,null,"See how a story renders with different data and state without touching code.",O__default.createElement("br",null),O__default.createElement("br",null),"Try it out by pressing this button.",O__default.createElement(Nf,{targetSelector:"#control-primary"})),placement:"right",spotlightClicks:!0,floaterProps:{target:"#control-primary",options:{preventOverflow:{boundariesElement:"window"}}},hideNextButton:!0},{target:"#control-primary",title:"Congratulations!",content:O__default.createElement(O__default.Fragment,null,"You learned how to control your stories interactively. Now let's explore how to write your first story.",O__default.createElement(Wo,{numberOfPieces:800,recycle:!1,tweenDuration:2e4})),placement:"right",floaterProps:{options:{preventOverflow:{boundariesElement:"window"}}},disableOverlay:!0}];return O__default.createElement(ms,{steps:u,continuous:!0,stepIndex:i,spotlightPadding:0,hideBackButton:!0,disableCloseOnEsc:!0,disableOverlayClose:!0,disableScrolling:!0,hideCloseButton:!0,callback:c=>{!t&&c.status===W.FINISHED&&r();},floaterProps:{options:{offset:{offset:"0, 6"}},styles:{floater:{padding:0,paddingLeft:8,paddingTop:8,filter:s.base==="light"?"drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1))":"drop-shadow(#fff5 0px 0px 0.5px) drop-shadow(#fff5 0px 0px 0.5px)"}}},tooltipComponent:jf,styles:{overlay:{mixBlendMode:"unset",backgroundColor:"none"},spotlight:{backgroundColor:"none",border:`solid 2px ${s.color.secondary}`,boxShadow:"0px 0px 0px 9999px rgba(0,0,0,0.4)"},options:{zIndex:1e4,primaryColor:s.color.secondary,arrowColor:s.base==="dark"?"#292A2C":s.color.lightest}}})}var Jf=v(()=>{kf();Vf();hs();Bf();gs();});function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},te.apply(this,arguments)}var Yt=v(()=>{});function dt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var ys=v(()=>{});function o1(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t);}function bs(...e){return t=>e.forEach(r=>o1(r,t))}function mt(...e){return useCallback(bs(...e),e)}var Tr=v(()=>{});function rp(e,t){let r=createContext(t);function n(i){let{children:a,...s}=i,l=useMemo(()=>s,Object.values(s));return createElement(r.Provider,{value:l},a)}function o(i){let a=useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function np(e,t=[]){let r=[];function n(i,a){let s=createContext(a),l=r.length;r=[...r,a];function u(f){let{scope:p,children:d,...m}=f,h=p?.[e][l]||s,g=useMemo(()=>m,Object.values(m));return createElement(h.Provider,{value:g},d)}function c(f,p){let d=p?.[e][l]||s,m=useContext(d);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>createContext(a));return function(s){let l=s?.[e]||i;return useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,i1(o,...t)]}function i1(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){let a=n.reduce((s,{useScope:l,scopeName:u})=>{let f=l(i)[`__scope${u}`];return {...s,...f}},{});return useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var op=v(()=>{});var En,Ss=v(()=>{En=globalThis?.document?useLayoutEffect:()=>{};});function Go(e){let[t,r]=O.useState(s1());return En(()=>{e||r(n=>n??String(l1++));},[e]),e||(t?`radix-${t}`:"")}var s1,l1,ip=v(()=>{Ss();s1=O["useId".toString()]||(()=>{}),l1=0;});function Ge(e){let t=useRef(e);return useEffect(()=>{t.current=e;}),useMemo(()=>(...r)=>{var n;return (n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}var Pn=v(()=>{});function ap({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=v1({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,s=Ge(r),l=useCallback(u=>{if(i){let f=typeof u=="function"?u(e):u;f!==e&&s(f);}else o(u);},[i,e,o,s]);return [a,l]}function v1({defaultProp:e,onChange:t}){let r=useState(e),[n]=r,o=useRef(n),i=Ge(t);return useEffect(()=>{o.current!==n&&(i(n),o.current=n);},[n,o,i]),r}var sp=v(()=>{Pn();});function b1(e){return isValidElement(e)&&e.type===y1}function x1(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s);}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "));}return {...e,...r}}var On,Es,y1,Ps=v(()=>{Yt();Tr();On=forwardRef((e,t)=>{let{children:r,...n}=e,o=Children.toArray(r),i=o.find(b1);if(i){let a=i.props.children,s=o.map(l=>l===i?Children.count(a)>1?Children.only(null):isValidElement(a)?a.props.children:null:l);return createElement(Es,te({},n,{ref:t}),isValidElement(a)?cloneElement(a,void 0,s):null)}return createElement(Es,te({},n,{ref:t}),r)});On.displayName="Slot";Es=forwardRef((e,t)=>{let{children:r,...n}=e;return isValidElement(r)?cloneElement(r,{...x1(n,r.props),ref:t?bs(t,r.ref):r.ref}):Children.count(r)>1?Children.only(null):null});Es.displayName="SlotClone";y1=({children:e})=>createElement(Fragment,null,e);});function cp(e,t){e&&flushSync(()=>e.dispatchEvent(t));}var P1,qe,An=v(()=>{Yt();Ps();P1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],qe=P1.reduce((e,t)=>{let r=forwardRef((n,o)=>{let{asChild:i,...a}=n,s=i?On:t;return useEffect(()=>{window[Symbol.for("radix-ui")]=!0;},[]),createElement(s,te({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});});function fp(e,t=globalThis?.document){let r=Ge(e);useEffect(()=>{let n=o=>{o.key==="Escape"&&r(o);};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t]);}var pp=v(()=>{Pn();});function L1(e,t=globalThis?.document){let r=Ge(e),n=useRef(!1),o=useRef(()=>{});return useEffect(()=>{let i=s=>{if(s.target&&!n.current){let u=function(){gp(_1,r,l,{discrete:!0});},l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u();}n.current=!1;},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i);},0);return ()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current);}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function I1(e,t=globalThis?.document){let r=Ge(e),n=useRef(!1);return useEffect(()=>{let o=i=>{i.target&&!n.current&&gp(M1,r,{originalEvent:i},{discrete:!1});};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hp(){let e=new CustomEvent(Os);document.dispatchEvent(e);}function gp(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?cp(o,i):o.dispatchEvent(i);}var Os,_1,M1,mp,D1,vp,yp=v(()=>{Yt();ys();An();Tr();Pn();pp();Os="dismissableLayer.update",_1="dismissableLayer.pointerDownOutside",M1="dismissableLayer.focusOutside",D1=createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vp=forwardRef((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=useContext(D1),[f,p]=useState(null),d=(r=f?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,m]=useState({}),h=mt(t,_=>p(_)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=f?g.indexOf(f):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,P=L1(_=>{let L=_.target,B=[...c.branches].some(Y=>Y.contains(L));!C||B||(i?.(_),s?.(_),_.defaultPrevented||l?.());},d),D=I1(_=>{let L=_.target;[...c.branches].some(Y=>Y.contains(L))||(a?.(_),s?.(_),_.defaultPrevented||l?.());},d);return fp(_=>{x===c.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()));},d),useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(mp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),hp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=mp);}},[f,d,n,c]),useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),hp());},[f,c]),useEffect(()=>{let _=()=>m({});return document.addEventListener(Os,_),()=>document.removeEventListener(Os,_)},[]),createElement(qe.div,te({},u,{ref:h,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:dt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:dt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:dt(e.onPointerDownCapture,P.onPointerDownCapture)}))});});function j1(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Dt(n,{select:t}),document.activeElement!==r)return}function B1(e){let t=Tp(e),r=wp(t,e),n=wp(t.reverse(),e);return [r,n]}function Tp(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function wp(e,t){for(let r of e)if(!W1(r,{upTo:t}))return r}function W1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return !0;for(;e;){if(t!==void 0&&e===t)return !1;if(getComputedStyle(e).display==="none")return !0;e=e.parentElement;}return !1}function U1(e){return e instanceof HTMLInputElement&&"select"in e}function Dt(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&U1(e)&&t&&e.select();}}function H1(){let e=[];return {add(t){let r=e[0];t!==r&&r?.pause(),e=Ep(e,t),e.unshift(t);},remove(t){var r;e=Ep(e,t),(r=e[0])===null||r===void 0||r.resume();}}}function Ep(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function z1(e){return e.filter(t=>t.tagName!=="A")}var As,$s,Sp,Pp,Cp,Op=v(()=>{Yt();Tr();An();Pn();As="focusScope.autoFocusOnMount",$s="focusScope.autoFocusOnUnmount",Sp={bubbles:!1,cancelable:!0},Pp=forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=useState(null),u=Ge(o),c=Ge(i),f=useRef(null),p=mt(t,h=>l(h)),d=useRef({paused:!1,pause(){this.paused=!0;},resume(){this.paused=!1;}}).current;useEffect(()=>{if(n){let h=function(x){if(d.paused||!s)return;let w=x.target;s.contains(w)?f.current=w:Dt(f.current,{select:!0});},g=function(x){if(d.paused||!s)return;let w=x.relatedTarget;w!==null&&(s.contains(w)||Dt(f.current,{select:!0}));},b=function(x){let w=document.activeElement;for(let C of x)C.removedNodes.length>0&&(s!=null&&s.contains(w)||Dt(s));};document.addEventListener("focusin",h),document.addEventListener("focusout",g);let y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),y.disconnect();}}},[n,s,d.paused]),useEffect(()=>{if(s){Cp.add(d);let h=document.activeElement;if(!s.contains(h)){let b=new CustomEvent(As,Sp);s.addEventListener(As,u),s.dispatchEvent(b),b.defaultPrevented||(j1(z1(Tp(s)),{select:!0}),document.activeElement===h&&Dt(s));}return ()=>{s.removeEventListener(As,u),setTimeout(()=>{let b=new CustomEvent($s,Sp);s.addEventListener($s,c),s.dispatchEvent(b),b.defaultPrevented||Dt(h??document.body,{select:!0}),s.removeEventListener($s,c),Cp.remove(d);},0);}}},[s,u,c,d]);let m=useCallback(h=>{if(!r&&!n||d.paused)return;let g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(g&&b){let y=h.currentTarget,[x,w]=B1(y);x&&w?!h.shiftKey&&b===w?(h.preventDefault(),r&&Dt(x,{select:!0})):h.shiftKey&&b===x&&(h.preventDefault(),r&&Dt(w,{select:!0})):b===y&&h.preventDefault();}},[r,n,d.paused]);return createElement(qe.div,te({tabIndex:-1},a,{ref:p,onKeyDown:m}))});Cp=H1();});var Ap,$p=v(()=>{Yt();An();Ap=forwardRef((e,t)=>{var r;let{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?Lo.createPortal(createElement(qe.div,te({},o,{ref:t})),n):null});});function rw(e,t){return useReducer((r,n)=>{let o=t[r][n];return o??r},e)}function nw(e){let[t,r]=useState(),n=useRef({}),o=useRef(e),i=useRef("none"),a=e?"mounted":"unmounted",[s,l]=rw(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return useEffect(()=>{let u=Ko(n.current);i.current=s==="mounted"?u:"none";},[s]),En(()=>{let u=n.current,c=o.current;if(c!==e){let p=i.current,d=Ko(u);e?l("MOUNT"):d==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&p!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e;}},[e,l]),En(()=>{if(t){let u=f=>{let d=Ko(n.current).includes(f.animationName);f.target===t&&d&&flushSync(()=>l("ANIMATION_END"));},c=f=>{f.target===t&&(i.current=Ko(n.current));};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u);}}else l("ANIMATION_END");},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u);},[])}}function Ko(e){return e?.animationName||"none"}var Rn,Rp=v(()=>{Tr();Ss();Rn=e=>{let{present:t,children:r}=e,n=nw(t),o=typeof r=="function"?r({present:n.isPresent}):Children.only(r),i=mt(n.ref,o.ref);return typeof r=="function"||n.isPresent?cloneElement(o,{ref:i}):null};Rn.displayName="Presence";});function Mp(){useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:_p()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_p()),_s++,()=>{_s===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),_s--;}},[]);}function _p(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var _s,Dp=v(()=>{_s=0;});function Yo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ms(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}function Q(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function H(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return i}function ce(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Ms,S,V=v(()=>{Ms=function(e,t){return Ms=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o]);},Ms(e,t)};S=function(){return S=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);}return t},S.apply(this,arguments)};});var Xt,Zt,Ds,Ls,Xo=v(()=>{Xt="right-scroll-bar-position",Zt="width-before-scroll-bar",Ds="with-scroll-bars-hidden",Ls="--removed-body-scroll-bar-size";});function Lp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Ip=v(()=>{});function kp(e,t){var r=useState(function(){return {value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o));}}}})[0];return r.callback=t,r.facade}var Np=v(()=>{});function Is(e,t){return kp(t||null,function(r){return e.forEach(function(n){return Lp(n,r)})})}var Vp=v(()=>{Ip();Np();});var Fp=v(()=>{Vp();});function aw(e){return e}function sw(e,t){t===void 0&&(t=aw);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a});}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i);}r={push:function(s){return i(s)},filter:function(){return r}};},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r;}var l=function(){var c=a;a=[],c.forEach(i);},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){a.push(c),u();},filter:function(c){return a=a.filter(c),r}};}};return o}function ks(e){e===void 0&&(e={});var t=sw(null);return t.options=S({async:!0,ssr:!1},e),t}var jp=v(()=>{V();});function Ns(e,t){return e.useMedium(t),Wp}var Wp,Up=v(()=>{V();Wp=function(e){var t=e.sideCar,r=Q(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return O.createElement(n,S({},r))};Wp.isSideCarExport=!0;});var Vs=v(()=>{jp();Up();});var Zo,Fs=v(()=>{Vs();Zo=ks();});var js,_n,Hp=v(()=>{V();Xo();Fp();Fs();js=function(){},_n=O.forwardRef(function(e,t){var r=O.useRef(null),n=O.useState({onScrollCapture:js,onWheelCapture:js,onTouchMoveCapture:js}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,p=e.sideCar,d=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,y=Q(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=p,w=Is([r,t]),C=S(S({},y),o);return O.createElement(O.Fragment,null,c&&O.createElement(x,{sideCar:Zo,removeScrollBar:u,shards:f,noIsolation:d,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r}),a?O.cloneElement(O.Children.only(s),S(S({},C),{ref:w})):O.createElement(b,S({},C,{className:l,ref:w}),s))});_n.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_n.classNames={fullWidth:Zt,zeroRight:Xt};});var Gp,qp=v(()=>{Gp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};});function lw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gp();return t&&e.setAttribute("nonce",t),e}function uw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t));}function cw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e);}var Bs,Ws=v(()=>{qp();Bs=function(){var e=0,t=null;return {add:function(r){e==0&&(t=lw())&&(uw(t,r),cw(t)),e++;},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);}}};});var Us,Hs=v(()=>{Ws();Us=function(){var e=Bs();return function(t,r){O.useEffect(function(){return e.add(t),function(){e.remove();}},[t&&r]);}};});var Mn,Yp=v(()=>{Hs();Mn=function(){var e=Us(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};});var zs=v(()=>{Yp();Ws();Hs();});var fw,Gs,pw,qs,Ks=v(()=>{fw={left:0,top:0,right:0,gap:0},Gs=function(e){return parseInt(e||"",10)||0},pw=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return [Gs(r),Gs(n),Gs(o)]},qs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fw;var t=pw(e),r=document.documentElement.clientWidth,n=window.innerWidth;return {left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};});var dw,mw,Ys,Xp=v(()=>{zs();Xo();Ks();dw=Mn(),mw=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
240
|
-
.`.concat(
|
|
241
|
-
overflow: hidden `).concat(
|
|
242
|
-
padding-right: `).concat(
|
|
240
|
+
`;});function lp({api:e,isFinalStep:t,onFirstTourDone:r,onLastTourDone:o,codeSnippets:n}){let[i,s]=useState(),a=useTheme();useEffect(()=>{e.once(UPDATE_STORY_ARGS,()=>{s(3);});},[]);let l=useMemo(()=>document.querySelector("#root div[role=main]")||document.querySelector("#storybook-panel-root"),[]),c=t?[{target:"#example-button--warning",title:"Congratulations!",content:T__default.createElement(T__default.Fragment,null,"You just created your first story. Continue setting up your project to write stories for your own components."),placement:"right",disableOverlay:!0,disableBeacon:!0,floaterProps:{disableAnimation:!0},onNextButtonClick(){o();}}]:[{target:"#storybook-explorer-tree > div",title:"Storybook is built from stories",content:T__default.createElement(T__default.Fragment,null,"Storybook stories represent the key states of each of your components.",T__default.createElement("br",null),T__default.createElement("br",null),n?.filename&&T__default.createElement(T__default.Fragment,null,"We automatically added four stories for this Button component in this example file:",T__default.createElement("br",null),T__default.createElement(br,null,n.filename))),placement:"right",disableBeacon:!0,styles:{spotlight:{transform:"translateY(30px)"}},floaterProps:{disableAnimation:!0}},{target:"#storybook-preview-iframe",title:"Storybook previews are interactive",content:"Whenever you modify code or stories, Storybook automatically updates how it previews your components.",placement:"bottom",styles:{spotlight:{borderRadius:0}}},{target:l,title:"Interactive story playground",content:T__default.createElement(T__default.Fragment,null,"See how a story renders with different data and state without touching code.",T__default.createElement("br",null),T__default.createElement("br",null),"Try it out by pressing this button.",T__default.createElement(qf,{targetSelector:"#control-primary"})),placement:"right",spotlightClicks:!0,floaterProps:{target:"#control-primary",options:{preventOverflow:{boundariesElement:"window"}}},hideNextButton:!0},{target:"#control-primary",title:"Congratulations!",content:T__default.createElement(T__default.Fragment,null,"You learned how to control your stories interactively. Now let's explore how to write your first story.",T__default.createElement(Nn,{numberOfPieces:800,recycle:!1,tweenDuration:2e4})),placement:"right",floaterProps:{options:{preventOverflow:{boundariesElement:"window"}}},disableOverlay:!0}];return T__default.createElement(Hf,{steps:c,continuous:!0,stepIndex:i,spotlightPadding:0,hideBackButton:!0,disableCloseOnEsc:!0,disableOverlayClose:!0,disableScrolling:!0,hideCloseButton:!0,callback:u=>{!t&&u.status===I.FINISHED&&r();},floaterProps:{options:{offset:{offset:"0, 6"}},styles:{floater:{padding:0,paddingLeft:8,paddingTop:8,filter:a.base==="light"?"drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1))":"drop-shadow(#fff5 0px 0px 0.5px) drop-shadow(#fff5 0px 0px 0.5px)"}}},tooltipComponent:Xf,styles:{overlay:{mixBlendMode:"unset",backgroundColor:"none"},spotlight:{backgroundColor:"none",border:`solid 2px ${a.color.secondary}`,boxShadow:"0px 0px 0px 9999px rgba(0,0,0,0.4)"},options:{zIndex:1e4,primaryColor:a.color.secondary,arrowColor:a.base==="dark"?"#292A2C":a.color.lightest}}})}var cp=m(()=>{Gf();Yf();ba();Zf();wa();});function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},U.apply(this,arguments)}var _t=m(()=>{});function ot(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Sa=m(()=>{});function v1(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t);}function Ca(...e){return t=>e.forEach(r=>v1(r,t))}function nt(...e){return useCallback(Ca(...e),e)}var xr=m(()=>{});function pp(e,t){let r=createContext(t);function o(i){let{children:s,...a}=i,l=useMemo(()=>a,Object.values(a));return createElement(r.Provider,{value:l},s)}function n(i){let s=useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,n]}function dp(e,t=[]){let r=[];function o(i,s){let a=createContext(s),l=r.length;r=[...r,s];function c(f){let{scope:p,children:d,...g}=f,h=p?.[e][l]||a,v=useMemo(()=>g,Object.values(g));return createElement(h.Provider,{value:v},d)}function u(f,p){let d=p?.[e][l]||a,g=useContext(d);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,u]}let n=()=>{let i=r.map(s=>createContext(s));return function(a){let l=a?.[e]||i;return useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return n.scopeName=e,[o,b1(n,...t)]}function b1(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){let s=o.reduce((a,{useScope:l,scopeName:c})=>{let f=l(i)[`__scope${c}`];return {...a,...f}},{});return useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var mp=m(()=>{});var Ao,Ta=m(()=>{Ao=globalThis?.document?useLayoutEffect:()=>{};});function Bn(e){let[t,r]=T.useState(w1());return Ao(()=>{e||r(o=>o??String(S1++));},[e]),e||(t?`radix-${t}`:"")}var w1,S1,hp=m(()=>{Ta();w1=T.useId||(()=>{}),S1=0;});function Fe(e){let t=useRef(e);return useEffect(()=>{t.current=e;}),useMemo(()=>(...r)=>{var o;return (o=t.current)===null||o===void 0?void 0:o.call(t,...r)},[])}var $o=m(()=>{});function gp({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,n]=R1({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,a=Fe(r),l=useCallback(c=>{if(i){let f=typeof c=="function"?c(e):c;f!==e&&a(f);}else n(c);},[i,e,n,a]);return [s,l]}function R1({defaultProp:e,onChange:t}){let r=useState(e),[o]=r,n=useRef(o),i=Fe(t);return useEffect(()=>{n.current!==o&&(i(o),n.current=o);},[o,n,i]),r}var yp=m(()=>{$o();});function k1(e){return isValidElement(e)&&e.type===D1}function L1(e,t){let r={...t};for(let o in t){let n=e[o],i=t[o];/^on[A-Z]/.test(o)?n&&i?r[o]=(...a)=>{i(...a),n(...a);}:n&&(r[o]=n):o==="style"?r[o]={...n,...i}:o==="className"&&(r[o]=[n,i].filter(Boolean).join(" "));}return {...e,...r}}var Mo,Oa,D1,Aa=m(()=>{_t();xr();Mo=forwardRef((e,t)=>{let{children:r,...o}=e,n=Children.toArray(r),i=n.find(k1);if(i){let s=i.props.children,a=n.map(l=>l===i?Children.count(s)>1?Children.only(null):isValidElement(s)?s.props.children:null:l);return createElement(Oa,U({},o,{ref:t}),isValidElement(s)?cloneElement(s,void 0,a):null)}return createElement(Oa,U({},o,{ref:t}),r)});Mo.displayName="Slot";Oa=forwardRef((e,t)=>{let{children:r,...o}=e;return isValidElement(r)?cloneElement(r,{...L1(o,r.props),ref:t?Ca(t,r.ref):r.ref}):Children.count(r)>1?Children.only(null):null});Oa.displayName="SlotClone";D1=({children:e})=>createElement(Fragment,null,e);});function xp(e,t){e&&flushSync(()=>e.dispatchEvent(t));}var j1,je,Do=m(()=>{_t();Aa();j1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],je=j1.reduce((e,t)=>{let r=forwardRef((o,n)=>{let{asChild:i,...s}=o,a=i?Mo:t;return useEffect(()=>{window[Symbol.for("radix-ui")]=!0;},[]),createElement(a,U({},s,{ref:n}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});});function wp(e,t=globalThis?.document){let r=Fe(e);useEffect(()=>{let o=n=>{n.key==="Escape"&&r(n);};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[r,t]);}var Sp=m(()=>{$o();});function Y1(e,t=globalThis?.document){let r=Fe(e),o=useRef(!1),n=useRef(()=>{});return useEffect(()=>{let i=a=>{if(a.target&&!o.current){let c=function(){Op(H1,r,l,{discrete:!0});},l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c();}else t.removeEventListener("click",n.current);o.current=!1;},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i);},0);return ()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",n.current);}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function K1(e,t=globalThis?.document){let r=Fe(e),o=useRef(!1);return useEffect(()=>{let n=i=>{i.target&&!o.current&&Op(G1,r,{originalEvent:i},{discrete:!1});};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Tp(){let e=new CustomEvent(Ra);document.dispatchEvent(e);}function Op(e,t,r,{discrete:o}){let n=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),o?xp(n,i):n.dispatchEvent(i);}var Ra,H1,G1,Pp,q1,Ep,Ap=m(()=>{_t();Sa();Do();xr();$o();Sp();Ra="dismissableLayer.update",H1="dismissableLayer.pointerDownOutside",G1="dismissableLayer.focusOutside",q1=createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ep=forwardRef((e,t)=>{var r;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,u=useContext(q1),[f,p]=useState(null),d=(r=f?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,g]=useState({}),h=nt(t,A=>p(A)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),b=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,D=Y1(A=>{let k=A.target,le=[...u.branches].some(G=>G.contains(k));!C||le||(i?.(A),a?.(A),A.defaultPrevented||l?.());},d),L=K1(A=>{let k=A.target;[...u.branches].some(G=>G.contains(k))||(s?.(A),a?.(A),A.defaultPrevented||l?.());},d);return wp(A=>{b===u.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()));},d),useEffect(()=>{if(f)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Tp(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Pp);}},[f,d,o,u]),useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Tp());},[f,u]),useEffect(()=>{let A=()=>g({});return document.addEventListener(Ra,A),()=>document.removeEventListener(Ra,A)},[]),createElement(je.div,U({},c,{ref:h,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,L.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,D.onPointerDownCapture)}))});});function eS(e,{select:t=!1}={}){let r=document.activeElement;for(let o of e)if(bt(o,{select:t}),document.activeElement!==r)return}function tS(e){let t=Ip(e),r=Dp(t,e),o=Dp(t.reverse(),e);return [r,o]}function Ip(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Dp(e,t){for(let r of e)if(!rS(r,{upTo:t}))return r}function rS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return !0;for(;e;){if(t!==void 0&&e===t)return !1;if(getComputedStyle(e).display==="none")return !0;e=e.parentElement;}return !1}function oS(e){return e instanceof HTMLInputElement&&"select"in e}function bt(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&oS(e)&&t&&e.select();}}function nS(){let e=[];return {add(t){let r=e[0];t!==r&&r?.pause(),e=Lp(e,t),e.unshift(t);},remove(t){var r;e=Lp(e,t),(r=e[0])===null||r===void 0||r.resume();}}}function Lp(e,t){let r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function iS(e){return e.filter(t=>t.tagName!=="A")}var Ma,Da,Mp,Np,kp,Vp=m(()=>{_t();xr();Do();$o();Ma="focusScope.autoFocusOnMount",Da="focusScope.autoFocusOnUnmount",Mp={bubbles:!1,cancelable:!0},Np=forwardRef((e,t)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:i,...s}=e,[a,l]=useState(null),c=Fe(n),u=Fe(i),f=useRef(null),p=nt(t,h=>l(h)),d=useRef({paused:!1,pause(){this.paused=!0;},resume(){this.paused=!1;}}).current;useEffect(()=>{if(o){let h=function(b){if(d.paused||!a)return;let w=b.target;a.contains(w)?f.current=w:bt(f.current,{select:!0});},v=function(b){if(d.paused||!a)return;let w=b.relatedTarget;w!==null&&(a.contains(w)||bt(f.current,{select:!0}));},x=function(b){if(document.activeElement===document.body)for(let C of b)C.removedNodes.length>0&&bt(a);};document.addEventListener("focusin",h),document.addEventListener("focusout",v);let y=new MutationObserver(x);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),y.disconnect();}}},[o,a,d.paused]),useEffect(()=>{if(a){kp.add(d);let h=document.activeElement;if(!a.contains(h)){let x=new CustomEvent(Ma,Mp);a.addEventListener(Ma,c),a.dispatchEvent(x),x.defaultPrevented||(eS(iS(Ip(a)),{select:!0}),document.activeElement===h&&bt(a));}return ()=>{a.removeEventListener(Ma,c),setTimeout(()=>{let x=new CustomEvent(Da,Mp);a.addEventListener(Da,u),a.dispatchEvent(x),x.defaultPrevented||bt(h??document.body,{select:!0}),a.removeEventListener(Da,u),kp.remove(d);},0);}}},[a,c,u,d]);let g=useCallback(h=>{if(!r&&!o||d.paused)return;let v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(v&&x){let y=h.currentTarget,[b,w]=tS(y);b&&w?!h.shiftKey&&x===w?(h.preventDefault(),r&&bt(b,{select:!0})):h.shiftKey&&x===b&&(h.preventDefault(),r&&bt(w,{select:!0})):x===y&&h.preventDefault();}},[r,o,d.paused]);return createElement(je.div,U({tabIndex:-1},s,{ref:p,onKeyDown:g}))});kp=nS();});var Fp,jp=m(()=>{_t();Do();Fp=forwardRef((e,t)=>{var r;let{container:o=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...n}=e;return o?On__default.createPortal(createElement(je.div,U({},n,{ref:t})),o):null});});function gS(e,t){return useReducer((r,o)=>{let n=t[r][o];return n??r},e)}function yS(e){let[t,r]=useState(),o=useRef({}),n=useRef(e),i=useRef("none"),s=e?"mounted":"unmounted",[a,l]=gS(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return useEffect(()=>{let c=Wn(o.current);i.current=a==="mounted"?c:"none";},[a]),Ao(()=>{let c=o.current,u=n.current;if(u!==e){let p=i.current,d=Wn(c);e?l("MOUNT"):d==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==d?"ANIMATION_OUT":"UNMOUNT"),n.current=e;}},[e,l]),Ao(()=>{if(t){let c=f=>{let d=Wn(o.current).includes(f.animationName);f.target===t&&d&&flushSync(()=>l("ANIMATION_END"));},u=f=>{f.target===t&&(i.current=Wn(o.current));};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c);}}else l("ANIMATION_END");},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:useCallback(c=>{c&&(o.current=getComputedStyle(c)),r(c);},[])}}function Wn(e){return e?.animationName||"none"}var Lo,Bp=m(()=>{xr();Ta();Lo=e=>{let{present:t,children:r}=e,o=yS(t),n=typeof r=="function"?r({present:o.isPresent}):Children.only(r),i=nt(o.ref,n.ref);return typeof r=="function"||o.isPresent?cloneElement(n,{ref:i}):null};Lo.displayName="Presence";});function Wp(){useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:_p()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_p()),La++,()=>{La===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),La--;}},[]);}function _p(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var La,Up=m(()=>{La=0;});function Un(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function zp(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var he,wr=m(()=>{he=function(){return he=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);}return t},he.apply(this,arguments)};});var Wt,Ut,Na,Ia,zn=m(()=>{Wt="right-scroll-bar-position",Ut="width-before-scroll-bar",Na="with-scroll-bars-hidden",Ia="--removed-body-scroll-bar-size";});function Hn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Hp=m(()=>{});function Gp(e,t){var r=useState(function(){return {value:e,callback:t,facade:{get current(){return r.value},set current(o){var n=r.value;n!==o&&(r.value=o,r.callback(o,n));}}}})[0];return r.callback=t,r.facade}var qp=m(()=>{});function Va(e,t){var r=Gp(t||null,function(o){return e.forEach(function(n){return Hn(n,o)})});return T.useLayoutEffect(function(){var o=Yp.get(r);if(o){var n=new Set(o),i=new Set(e),s=r.current;n.forEach(function(a){i.has(a)||Hn(a,null);}),i.forEach(function(a){n.has(a)||Hn(a,s);});}Yp.set(r,e);},[e]),r}var Yp,Xp=m(()=>{Hp();qp();Yp=new WeakMap;});var Zp=m(()=>{Xp();});function xS(e){return e}function wS(e,t){t===void 0&&(t=xS);var r=[],o=!1,n={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,o);return r.push(s),function(){r=r.filter(function(a){return a!==s});}},assignSyncMedium:function(i){for(o=!0;r.length;){var s=r;r=[],s.forEach(i);}r={push:function(a){return i(a)},filter:function(){return r}};},assignMedium:function(i){o=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r;}var l=function(){var u=s;s=[],u.forEach(i);},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){s.push(u),c();},filter:function(u){return s=s.filter(u),r}};}};return n}function Fa(e){e===void 0&&(e={});var t=wS(null);return t.options=he({async:!0,ssr:!1},e),t}var Qp=m(()=>{wr();});function ja(e,t){return e.useMedium(t),ed}var ed,td=m(()=>{wr();ed=function(e){var t=e.sideCar,r=Un(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return T.createElement(o,he({},r))};ed.isSideCarExport=!0;});var Ba=m(()=>{Qp();td();});var Gn,_a=m(()=>{Ba();Gn=Fa();});var Wa,No,rd=m(()=>{wr();zn();Zp();_a();Wa=function(){},No=T.forwardRef(function(e,t){var r=T.useRef(null),o=T.useState({onScrollCapture:Wa,onWheelCapture:Wa,onTouchMoveCapture:Wa}),n=o[0],i=o[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,d=e.noIsolation,g=e.inert,h=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,y=Un(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=p,w=Va([r,t]),C=he(he({},y),n);return T.createElement(T.Fragment,null,u&&T.createElement(b,{sideCar:Gn,removeScrollBar:c,shards:f,noIsolation:d,inert:g,setCallbacks:i,allowPinchZoom:!!h,lockRef:r}),s?T.cloneElement(T.Children.only(a),he(he({},C),{ref:w})):T.createElement(x,he({},C,{className:l,ref:w}),a))});No.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};No.classNames={fullWidth:Ut,zeroRight:Wt};});var nd,id=m(()=>{nd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};});function SS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nd();return t&&e.setAttribute("nonce",t),e}function CS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t));}function PS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e);}var Ua,za=m(()=>{id();Ua=function(){var e=0,t=null;return {add:function(r){e==0&&(t=SS())&&(CS(t,r),PS(t)),e++;},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);}}};});var Ha,Ga=m(()=>{za();Ha=function(){var e=Ua();return function(t,r){T.useEffect(function(){return e.add(t),function(){e.remove();}},[t&&r]);}};});var Io,ad=m(()=>{Ga();Io=function(){var e=Ha(),t=function(r){var o=r.styles,n=r.dynamic;return e(o,n),null};return t};});var qa=m(()=>{ad();za();Ga();});var TS,Ya,ES,Ka,Xa=m(()=>{TS={left:0,top:0,right:0,gap:0},Ya=function(e){return parseInt(e||"",10)||0},ES=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return [Ya(r),Ya(o),Ya(n)]},Ka=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return TS;var t=ES(e),r=document.documentElement.clientWidth,o=window.innerWidth;return {left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}};});var OS,AS,Za,ld=m(()=>{qa();zn();Xa();OS=Io(),AS=function(e,t,r,o){var n=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
241
|
+
.`.concat(Na,` {
|
|
242
|
+
overflow: hidden `).concat(o,`;
|
|
243
|
+
padding-right: `).concat(a,"px ").concat(o,`;
|
|
243
244
|
}
|
|
244
245
|
body {
|
|
245
|
-
overflow: hidden `).concat(
|
|
246
|
+
overflow: hidden `).concat(o,`;
|
|
246
247
|
overscroll-behavior: contain;
|
|
247
|
-
`).concat([t&&"position: relative ".concat(
|
|
248
|
-
padding-left: `.concat(
|
|
248
|
+
`).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
|
|
249
|
+
padding-left: `.concat(n,`px;
|
|
249
250
|
padding-top: `).concat(i,`px;
|
|
250
|
-
padding-right: `).concat(
|
|
251
|
+
padding-right: `).concat(s,`px;
|
|
251
252
|
margin-left:0;
|
|
252
253
|
margin-top:0;
|
|
253
|
-
margin-right: `).concat(
|
|
254
|
-
`),r==="padding"&&"padding-right: ".concat(
|
|
254
|
+
margin-right: `).concat(a,"px ").concat(o,`;
|
|
255
|
+
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
255
256
|
}
|
|
256
257
|
|
|
257
|
-
.`).concat(
|
|
258
|
-
right: `).concat(
|
|
258
|
+
.`).concat(Wt,` {
|
|
259
|
+
right: `).concat(a,"px ").concat(o,`;
|
|
259
260
|
}
|
|
260
261
|
|
|
261
|
-
.`).concat(
|
|
262
|
-
margin-right: `).concat(
|
|
262
|
+
.`).concat(Ut,` {
|
|
263
|
+
margin-right: `).concat(a,"px ").concat(o,`;
|
|
263
264
|
}
|
|
264
265
|
|
|
265
|
-
.`).concat(
|
|
266
|
-
right: 0 `).concat(
|
|
266
|
+
.`).concat(Wt," .").concat(Wt,` {
|
|
267
|
+
right: 0 `).concat(o,`;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
|
-
.`).concat(
|
|
270
|
-
margin-right: 0 `).concat(
|
|
270
|
+
.`).concat(Ut," .").concat(Ut,` {
|
|
271
|
+
margin-right: 0 `).concat(o,`;
|
|
271
272
|
}
|
|
272
273
|
|
|
273
274
|
body {
|
|
274
|
-
`).concat(
|
|
275
|
+
`).concat(Ia,": ").concat(a,`px;
|
|
275
276
|
}
|
|
276
|
-
`)},
|
|
277
|
+
`)},Za=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,n=o===void 0?"margin":o,i=T.useMemo(function(){return Ka(n)},[n]);return T.createElement(OS,{styles:AS(i,!t,n,r?"":"!important")})};});var cd=m(()=>{ld();zn();Xa();});var Qa,Vo,zt,ud=m(()=>{Qa=!1;if(typeof window<"u")try{Vo=Object.defineProperty({},"passive",{get:function(){return Qa=!0,!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo);}catch{Qa=!1;}zt=Qa?{passive:!1}:!1;});var $S,fd,RS,MS,Ja,DS,kS,pd,dd,LS,md,hd=m(()=>{$S=function(e){return e.tagName==="TEXTAREA"},fd=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!$S(e)&&r[t]==="visible")},RS=function(e){return fd(e,"overflowY")},MS=function(e){return fd(e,"overflowX")},Ja=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=pd(e,r);if(o){var n=dd(e,r),i=n[1],s=n[2];if(i>s)return !0}r=r.parentNode;}while(r&&r!==document.body);return !1},DS=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return [t,r,o]},kS=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return [t,r,o]},pd=function(e,t){return e==="v"?RS(t):MS(t)},dd=function(e,t){return e==="v"?DS(t):kS(t)},LS=function(e,t){return e==="h"&&t==="rtl"?-1:1},md=function(e,t,r,o,n){var i=LS(e,window.getComputedStyle(t).direction),s=i*o,a=r.target,l=t.contains(a),c=!1,u=s>0,f=0,p=0;do{var d=dd(e,a),g=d[0],h=d[1],v=d[2],x=h-v-i*g;(g||x)&&pd(e,a)&&(f+=x,p+=g),a=a.parentNode;}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return (u&&(n&&f===0||!n&&s>f)||!u&&(n&&p===0||!n&&-s>p))&&(c=!0),c};});function vd(e){var t=T.useRef([]),r=T.useRef([0,0]),o=T.useRef(),n=T.useState(VS++)[0],i=T.useState(function(){return Io()})[0],s=T.useRef(e);T.useEffect(function(){s.current=e;},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var h=zp([e.lockRef.current],(e.shards||[]).map(yd),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(n))});}}},[e.inert,e.lockRef.current,e.shards]);var a=T.useCallback(function(h,v){if("touches"in h&&h.touches.length===2)return !s.current.allowPinchZoom;var x=Yn(h),y=r.current,b="deltaX"in h?h.deltaX:y[0]-x[0],w="deltaY"in h?h.deltaY:y[1]-x[1],C,D=h.target,L=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in h&&L==="h"&&D.type==="range")return !1;var A=Ja(L,D);if(!A)return !0;if(A?C=L:(C=L==="v"?"h":"v",A=Ja(L,D)),!A)return !1;if(!o.current&&"changedTouches"in h&&(b||w)&&(o.current=C),!C)return !0;var k=o.current||C;return md(k,v,h,k==="h"?b:w,!0)},[]),l=T.useCallback(function(h){var v=h;if(!(!Sr.length||Sr[Sr.length-1]!==i)){var x="deltaY"in v?gd(v):Yn(v),y=t.current.filter(function(C){return C.name===v.type&&C.target===v.target&&NS(C.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(yd).filter(Boolean).filter(function(C){return C.contains(v.target)}),w=b.length>0?a(v,b[0]):!s.current.noIsolation;w&&v.cancelable&&v.preventDefault();}}},[]),c=T.useCallback(function(h,v,x,y){var b={name:h,delta:v,target:x,should:y};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b});},1);},[]),u=T.useCallback(function(h){r.current=Yn(h),o.current=void 0;},[]),f=T.useCallback(function(h){c(h.type,gd(h),h.target,a(h,e.lockRef.current));},[]),p=T.useCallback(function(h){c(h.type,Yn(h),h.target,a(h,e.lockRef.current));},[]);T.useEffect(function(){return Sr.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,zt),document.addEventListener("touchmove",l,zt),document.addEventListener("touchstart",u,zt),function(){Sr=Sr.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,zt),document.removeEventListener("touchmove",l,zt),document.removeEventListener("touchstart",u,zt);}},[]);var d=e.removeScrollBar,g=e.inert;return T.createElement(T.Fragment,null,g?T.createElement(i,{styles:IS(n)}):null,d?T.createElement(Za,{gapMode:"margin"}):null)}var Yn,gd,yd,NS,IS,VS,Sr,bd=m(()=>{wr();cd();qa();ud();hd();Yn=function(e){return "changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gd=function(e){return [e.deltaX,e.deltaY]},yd=function(e){return e&&"current"in e?e.current:e},NS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},IS=function(e){return `
|
|
277
278
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
278
279
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
279
|
-
`)},
|
|
280
|
+
`)},VS=0,Sr=[];});var xd,wd=m(()=>{Ba();bd();_a();xd=ja(Gn,vd);});var Sd,el,Cd=m(()=>{wr();rd();wd();Sd=T.forwardRef(function(e,t){return T.createElement(No,he({},e,{ref:t,sideCar:xd}))});Sd.classNames=No.classNames;el=Sd;});var Pd=m(()=>{Cd();});var FS,Cr,Xn,Zn,tl,Td,jS,BS,Ed,Od=m(()=>{FS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cr=new WeakMap,Xn=new WeakMap,Zn={},tl=0,Td=function(e){return e&&(e.host||Td(e.parentNode))},jS=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=Td(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return !!r})},BS=function(e,t,r,o){var n=jS(t,Array.isArray(e)?e:[e]);Zn[r]||(Zn[r]=new WeakMap);var i=Zn[r],s=[],a=new Set,l=new Set(n),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode));};n.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))u(p);else {var d=p.getAttribute(o),g=d!==null&&d!=="false",h=(Cr.get(p)||0)+1,v=(i.get(p)||0)+1;Cr.set(p,h),i.set(p,v),s.push(p),h===1&&g&&Xn.set(p,!0),v===1&&p.setAttribute(r,"true"),g||p.setAttribute(o,"true");}});};return u(t),a.clear(),tl++,function(){s.forEach(function(f){var p=Cr.get(f)-1,d=i.get(f)-1;Cr.set(f,p),i.set(f,d),p||(Xn.has(f)||f.removeAttribute(o),Xn.delete(f)),d||f.removeAttribute(r);}),tl--,tl||(Cr=new WeakMap,Cr=new WeakMap,Xn=new WeakMap,Zn={});}},Ed=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),n=t||FS(e);return n?(o.push.apply(o,Array.from(n.querySelectorAll("[aria-live]"))),BS(o,n,r,"aria-hidden")):function(){return null}};});function Ld(e){return e?"open":"closed"}var Ad,$d,eM,HS,qe,GS,Rd,qS,Md,YS,rl,KS,XS,Tr,ZS,QS,JS,Dd,kd,eC,tC,rC,oC,nC,iC,Nd,Id,Vd,Fd,jd,Bd,_d,ol=m(()=>{_t();Sa();xr();mp();hp();yp();Ap();Vp();jp();Bp();Do();Up();Pd();Od();Aa();Ad="Dialog",[$d,eM]=dp(Ad),[HS,qe]=$d(Ad),GS=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:n,onOpenChange:i,modal:s=!0}=e,a=useRef(null),l=useRef(null),[c=!1,u]=gp({prop:o,defaultProp:n,onChange:i});return createElement(HS,{scope:t,triggerRef:a,contentRef:l,contentId:Bn(),titleId:Bn(),descriptionId:Bn(),open:c,onOpenChange:u,onOpenToggle:useCallback(()=>u(f=>!f),[u]),modal:s},r)},Rd="DialogPortal",[qS,Md]=$d(Rd,{forceMount:void 0}),YS=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:n}=e,i=qe(Rd,t);return createElement(qS,{scope:t,forceMount:r},Children.map(o,s=>createElement(Lo,{present:r||i.open},createElement(Fp,{asChild:!0,container:n},s))))},rl="DialogOverlay",KS=forwardRef((e,t)=>{let r=Md(rl,e.__scopeDialog),{forceMount:o=r.forceMount,...n}=e,i=qe(rl,e.__scopeDialog);return i.modal?createElement(Lo,{present:o||i.open},createElement(XS,U({},n,{ref:t}))):null}),XS=forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=qe(rl,r);return createElement(el,{as:Mo,allowPinchZoom:!0,shards:[n.contentRef]},createElement(je.div,U({"data-state":Ld(n.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),Tr="DialogContent",ZS=forwardRef((e,t)=>{let r=Md(Tr,e.__scopeDialog),{forceMount:o=r.forceMount,...n}=e,i=qe(Tr,e.__scopeDialog);return createElement(Lo,{present:o||i.open},i.modal?createElement(QS,U({},n,{ref:t})):createElement(JS,U({},n,{ref:t})))}),QS=forwardRef((e,t)=>{let r=qe(Tr,e.__scopeDialog),o=useRef(null),n=nt(t,r.contentRef,o);return useEffect(()=>{let i=o.current;if(i)return Ed(i)},[]),createElement(Dd,U({},e,{ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus();}),onPointerDownOutside:ot(e.onPointerDownOutside,i=>{let s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault();}),onFocusOutside:ot(e.onFocusOutside,i=>i.preventDefault())}))}),JS=forwardRef((e,t)=>{let r=qe(Tr,e.__scopeDialog),o=useRef(!1),n=useRef(!1);return createElement(Dd,U({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,i),!i.defaultPrevented){var a;o.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault();}o.current=!1,n.current=!1;},onInteractOutside:i=>{var s,a;(s=e.onInteractOutside)===null||s===void 0||s.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let l=i.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&n.current&&i.preventDefault();}}))}),Dd=forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:i,...s}=e,a=qe(Tr,r),l=useRef(null),c=nt(t,l);return Wp(),createElement(Fragment,null,createElement(Np,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:i},createElement(Ep,U({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ld(a.open)},s,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),kd="DialogTitle",eC=forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=qe(kd,r);return createElement(je.h2,U({id:n.titleId},o,{ref:t}))}),tC="DialogDescription",rC=forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=qe(tC,r);return createElement(je.p,U({id:n.descriptionId},o,{ref:t}))}),oC="DialogClose",nC=forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,n=qe(oC,r);return createElement(je.button,U({type:"button"},o,{ref:t,onClick:ot(e.onClick,()=>n.onOpenChange(!1))}))});iC="DialogTitleWarning",pp(iC,{contentName:Tr,titleName:kd,docsSlug:"dialog"}),Nd=GS,Id=YS,Vd=KS,Fd=ZS,jd=eC,Bd=rC,_d=nC;});var zd,aC,Hd,Gd=m(()=>{ol();zd=styled.div`
|
|
280
281
|
background-color: rgba(27, 28, 29, 0.48);
|
|
281
282
|
position: fixed;
|
|
282
283
|
inset: 0px;
|
|
283
284
|
width: 100%;
|
|
284
285
|
height: 100%;
|
|
285
286
|
z-index: 10;
|
|
286
|
-
`,
|
|
287
|
+
`,aC=styled.div(({width:e,height:t})=>css`
|
|
287
288
|
background-color: white;
|
|
288
289
|
border-radius: 6px;
|
|
289
290
|
box-shadow: rgba(14, 18, 22, 0.35) 0px 10px 38px -10px;
|
|
@@ -301,20 +302,20 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
301
302
|
&:focus-visible {
|
|
302
303
|
outline: none;
|
|
303
304
|
}
|
|
304
|
-
`),
|
|
305
|
+
`),Hd=T__default.forwardRef(({width:e,height:t,children:r,...o},n)=>T__default.createElement(Fd,{ref:n,asChild:!0,...o},T__default.createElement(aC,{width:e,height:t},r)));});function Qn({children:e,width:t,height:r,onEscapeKeyDown:o,onInteractOutside:n=s=>s.preventDefault(),...i}){return T__default.createElement(Nd,{...i},T__default.createElement(Id,null,T__default.createElement(Vd,{asChild:!0},T__default.createElement(zd,null)),T__default.createElement(Hd,{width:t,height:r,onInteractOutside:n,onEscapeKeyDown:o},e({Title:jd,Description:Bd,Close:_d}))))}var il=m(()=>{ol();Gd();});function qd(){return T__default.createElement("svg",{width:"32px",height:"40px",viewBox:"0 0 256 319",preserveAspectRatio:"xMidYMid"},T__default.createElement("defs",null,T__default.createElement("path",{d:"M9.87245893,293.324145 L0.0114611411,30.5732167 C-0.314208957,21.8955842 6.33948896,14.5413918 15.0063196,13.9997149 L238.494389,0.0317105427 C247.316188,-0.519651867 254.914637,6.18486163 255.466,15.0066607 C255.486773,15.339032 255.497167,15.6719708 255.497167,16.0049907 L255.497167,302.318596 C255.497167,311.157608 248.331732,318.323043 239.492719,318.323043 C239.253266,318.323043 239.013844,318.317669 238.774632,318.306926 L25.1475605,308.712253 C16.8276309,308.338578 10.1847994,301.646603 9.87245893,293.324145 L9.87245893,293.324145 Z",id:"path-1"})),T__default.createElement("g",null,T__default.createElement("mask",{id:"mask-2",fill:"white"},T__default.createElement("use",{xlinkHref:"#path-1"})),T__default.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#path-1"}),T__default.createElement("path",{d:"M188.665358,39.126973 L190.191903,2.41148534 L220.883535,0 L222.205755,37.8634126 C222.251771,39.1811466 221.22084,40.2866846 219.903106,40.3327009 C219.338869,40.3524045 218.785907,40.1715096 218.342409,39.8221376 L206.506729,30.4984116 L192.493574,41.1282444 C191.443077,41.9251106 189.945493,41.7195021 189.148627,40.6690048 C188.813185,40.2267976 188.6423,39.6815326 188.665358,39.126973 Z M149.413703,119.980309 C149.413703,126.206975 191.355678,123.222696 196.986019,118.848893 C196.986019,76.4467826 174.234041,54.1651411 132.57133,54.1651411 C90.9086182,54.1651411 67.5656805,76.7934542 67.5656805,110.735941 C67.5656805,169.85244 147.345341,170.983856 147.345341,203.229219 C147.345341,212.280549 142.913138,217.654777 133.162291,217.654777 C120.456641,217.654777 115.433477,211.165914 116.024438,189.103298 C116.024438,184.317101 67.5656805,182.824962 66.0882793,189.103298 C62.3262146,242.56887 95.6363019,257.990394 133.753251,257.990394 C170.688279,257.990394 199.645341,238.303123 199.645341,202.663511 C199.645341,139.304202 118.683759,141.001326 118.683759,109.604526 C118.683759,96.8760922 128.139127,95.178968 133.753251,95.178968 C139.662855,95.178968 150.300143,96.2205679 149.413703,119.980309 Z",fill:"#FFFFFF",fillRule:"nonzero",mask:"url(#mask-2)"})))}var Yd=m(()=>{});var Kd,Xd,Zd,Qd,Jd,em,tm,cC,rm,uC,om,fC,nm,im=m(()=>{Kd=styled.div`
|
|
305
306
|
border-radius: 5px;
|
|
306
307
|
display: flex;
|
|
307
308
|
flex-direction: column;
|
|
308
309
|
align-items: center;
|
|
309
310
|
height: 100%;
|
|
310
311
|
justify-content: space-between;
|
|
311
|
-
`,
|
|
312
|
+
`,Xd=styled.div`
|
|
312
313
|
display: flex;
|
|
313
314
|
flex: 1;
|
|
314
315
|
flex-direction: column;
|
|
315
316
|
align-items: center;
|
|
316
317
|
justify-content: center;
|
|
317
|
-
`,
|
|
318
|
+
`,Zd=styled.h1`
|
|
318
319
|
margin: 0;
|
|
319
320
|
margin-top: 20px;
|
|
320
321
|
margin-bottom: 5px;
|
|
@@ -322,7 +323,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
322
323
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
323
324
|
font-size: ${({theme:e})=>e.typography.size.m1}px;
|
|
324
325
|
line-height: ${({theme:e})=>e.typography.size.m3}px;
|
|
325
|
-
`,
|
|
326
|
+
`,Qd=styled.p`
|
|
326
327
|
margin: 0;
|
|
327
328
|
margin-bottom: 20px;
|
|
328
329
|
max-width: 320px;
|
|
@@ -331,7 +332,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
331
332
|
font-weight: ${({theme:e})=>e.typography.weight.regular};
|
|
332
333
|
line-height: ${({theme:e})=>e.typography.size.m1}px;
|
|
333
334
|
color: ${({theme:e})=>e.color.darker};
|
|
334
|
-
`,
|
|
335
|
+
`,Jd=styled.button`
|
|
335
336
|
all: unset;
|
|
336
337
|
cursor: pointer;
|
|
337
338
|
font-size: 13px;
|
|
@@ -341,10 +342,10 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
341
342
|
&:focus-visible {
|
|
342
343
|
outline: auto;
|
|
343
344
|
}
|
|
344
|
-
`,
|
|
345
|
+
`,em=styled(Icons)`
|
|
345
346
|
margin-left: 2px;
|
|
346
347
|
height: 10px;
|
|
347
|
-
`,
|
|
348
|
+
`,tm=styled.div`
|
|
348
349
|
position: absolute;
|
|
349
350
|
top: 0;
|
|
350
351
|
left: 0;
|
|
@@ -352,11 +353,11 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
352
353
|
height: 100%;
|
|
353
354
|
z-index: -1;
|
|
354
355
|
overflow: hidden;
|
|
355
|
-
`,
|
|
356
|
+
`,cC=keyframes`
|
|
356
357
|
0% { transform: translate(0px, 0px) }
|
|
357
358
|
50% { transform: translate(-200px, 0px) }
|
|
358
359
|
100% { transform: translate(0px, 0px) }
|
|
359
|
-
`,
|
|
360
|
+
`,rm=styled.div`
|
|
360
361
|
position: absolute;
|
|
361
362
|
width: 1200px;
|
|
362
363
|
height: 1200px;
|
|
@@ -367,14 +368,14 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
367
368
|
rgba(253, 255, 147, 1) 0%,
|
|
368
369
|
rgba(253, 255, 147, 0) 70%
|
|
369
370
|
);
|
|
370
|
-
animation: ${
|
|
371
|
+
animation: ${cC} 4s linear infinite;
|
|
371
372
|
animation-timing-function: ease-in-out;
|
|
372
373
|
z-index: 3;
|
|
373
|
-
`,
|
|
374
|
+
`,uC=keyframes`
|
|
374
375
|
0% { transform: translate(0px, 0px) }
|
|
375
376
|
50% { transform: translate(400px, 0px) }
|
|
376
377
|
100% { transform: translate(0px, 0px) }
|
|
377
|
-
`,
|
|
378
|
+
`,om=styled.div`
|
|
378
379
|
position: absolute;
|
|
379
380
|
width: 1200px;
|
|
380
381
|
height: 1200px;
|
|
@@ -385,14 +386,14 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
385
386
|
rgba(255, 119, 119, 1) 0%,
|
|
386
387
|
rgba(255, 119, 119, 0) 70%
|
|
387
388
|
);
|
|
388
|
-
animation: ${
|
|
389
|
+
animation: ${uC} 6s linear infinite;
|
|
389
390
|
animation-timing-function: ease-in-out;
|
|
390
391
|
z-index: 2;
|
|
391
|
-
`,
|
|
392
|
+
`,fC=keyframes`
|
|
392
393
|
0% { transform: translate(600px, -40px) }
|
|
393
394
|
50% { transform: translate(600px, -200px) }
|
|
394
395
|
100% { transform: translate(600px, -40px) }
|
|
395
|
-
`,
|
|
396
|
+
`,nm=styled.div`
|
|
396
397
|
position: absolute;
|
|
397
398
|
width: 1200px;
|
|
398
399
|
height: 1200px;
|
|
@@ -403,7 +404,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
403
404
|
rgba(119, 255, 247, 0.8) 0%,
|
|
404
405
|
rgba(119, 255, 247, 0) 70%
|
|
405
406
|
);
|
|
406
|
-
animation: ${
|
|
407
|
+
animation: ${fC} 4s linear infinite;
|
|
407
408
|
animation-timing-function: ease-in-out;
|
|
408
409
|
z-index: 4;
|
|
409
410
|
`,styled.h2`
|
|
@@ -416,18 +417,18 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
416
417
|
font-weight: 400;
|
|
417
418
|
line-height: 20px;
|
|
418
419
|
color: #454e54;
|
|
419
|
-
`;});var Kd,Yd=v(()=>{Uo();nl();kd();qd();Kd=({onProceed:e,skipOnboarding:t})=>O__default.createElement("div",{style:{zIndex:10}},O__default.createElement(ni,{width:540,height:430,defaultOpen:!0},({Close:r})=>O__default.createElement(Nd,{"data-chromatic":"ignore"},O__default.createElement(Vd,null,O__default.createElement(Id,null),O__default.createElement(Fd,null,"Welcome to Storybook"),O__default.createElement(jd,null,"Storybook helps you develop UI components faster. Learn the basics in a few simple steps."),O__default.createElement(Ee,{style:{marginTop:4},onClick:e},"Start your 3 minute tour")),O__default.createElement(Bd,{onClick:t},"Skip tour",O__default.createElement(Wd,{icon:"arrowright"})),O__default.createElement(Ud,null,O__default.createElement(Hd,null),O__default.createElement(zd,null),O__default.createElement(Gd,null)))));});var Zd=We((y_,Xd)=>{function il(e,t,r){var n,o,i,a,s;t==null&&(t=100);function l(){var c=Date.now()-a;c<t&&c>=0?n=setTimeout(l,t-c):(n=null,r||(s=e.apply(i,o),i=o=null));}var u=function(){i=this,o=arguments,a=Date.now();var c=r&&!n;return n||(n=setTimeout(l,t)),c&&(s=e.apply(i,o),i=o=null),s};return u.clear=function(){n&&(clearTimeout(n),n=null);},u.flush=function(){n&&(s=e.apply(i,o),i=o=null,clearTimeout(n),n=null);},u}il.debounce=il;Xd.exports=il;});function Jd(e){let{debounce:t,scroll:r,polyfill:n,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e,i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[a,s]=useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),u=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,f=useRef(!1);useEffect(()=>(f.current=!0,()=>void(f.current=!1)));let[p,d,m]=useMemo(()=>{let y=()=>{if(!l.current.element)return;let{left:x,top:w,width:C,height:P,bottom:D,right:_,x:L,y:B}=l.current.element.getBoundingClientRect(),Y={left:x,top:w,width:C,height:P,bottom:D,right:_,x:L,y:B};l.current.element instanceof HTMLElement&&o&&(Y.height=l.current.element.offsetHeight,Y.width=l.current.element.offsetWidth),Object.freeze(Y),f.current&&!nC(l.current.lastBounds,Y)&&s(l.current.lastBounds=Y);};return [y,c?(0, al.default)(y,c):y,u?(0, al.default)(y,u):y]},[s,o,u,c]);function h(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(y=>y.removeEventListener("scroll",m,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null);}function g(){l.current.element&&(l.current.resizeObserver=new i(m),l.current.resizeObserver.observe(l.current.element),r&&l.current.scrollContainers&&l.current.scrollContainers.forEach(y=>y.addEventListener("scroll",m,{capture:!0,passive:!0})));}let b=y=>{!y||y===l.current.element||(h(),l.current.element=y,l.current.scrollContainers=em(y),g());};return tC(m,!!r),eC(d),useEffect(()=>{h(),g();},[r,m,d]),useEffect(()=>h,[]),[b,a,p]}function eC(e){useEffect(()=>{let t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e]);}function tC(e,t){useEffect(()=>{if(t){let r=e;return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)}},[e,t]);}function em(e){let t=[];if(!e||e===document.body)return t;let{overflow:r,overflowX:n,overflowY:o}=window.getComputedStyle(e);return [r,n,o].some(i=>i==="auto"||i==="scroll")&&t.push(e),[...t,...em(e.parentElement)]}var al,rC,nC,tm=v(()=>{al=Qe(Zd());rC=["x","y","top","bottom","left","right","width","height"],nC=(e,t)=>rC.every(r=>e[r]===t[r]);});var oC,oi,sl=v(()=>{oC="production",oi=typeof process>"u"||process.env===void 0?oC:"production";});function rm(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Jt.projectionNodeConstructor=e[t]:Jt[t].Component=e[t]);}var vt,Jt,ll=v(()=>{vt=function(e){return {isEnabled:function(t){return e.some(function(r){return !!t[r]})}}},Jt={measureLayout:vt(["layout","layoutId","drag"]),animation:vt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:vt(["exit"]),drag:vt(["drag","dragControls"]),focus:vt(["whileFocus"]),hover:vt(["whileHover","onHoverStart","onHoverEnd"]),tap:vt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:vt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:vt(["whileInView","onViewportEnter","onViewportLeave"])};});var er,de,Ke=v(()=>{er=function(){},de=function(){};});var ii,ul=v(()=>{ii=createContext({strict:!1});});function im(e,t,r){var n=[],o=useContext(ii);if(!t)return null;oi!=="production"&&r&&o.strict&&de(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var i=0;i<sC;i++){var a=om[i],s=Jt[a],l=s.isEnabled,u=s.Component;l(e)&&u&&n.push(O.createElement(u,S({key:a},e,{visualElement:t})));}return n}var om,sC,am=v(()=>{V();sl();ll();Ke();ul();om=Object.keys(Jt),sC=om.length;});var _r,ai=v(()=>{_r=createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"});});function sm(){return useContext(tr).visualElement}var tr,kn=v(()=>{tr=createContext({});});var It,Nn=v(()=>{It=createContext(null);});var et,Vn=v(()=>{et=typeof document<"u";});var cl,lm=v(()=>{Vn();cl=et?useLayoutEffect:useEffect;});function vC(){if(um=!0,!!et)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return fl.current=e.matches};e.addListener(t),t();}else fl.current=!1;}function gC(){!um&&vC();var e=H(useState(fl.current),1),t=e[0];return t}function cm(){var e=gC(),t=useContext(_r).reducedMotion;return t==="never"?!1:t==="always"?!0:e}var fl,um,fm=v(()=>{V();ai();Vn();fl={current:null},um=!1;});function dm(e,t,r,n){var o=useContext(ii),i=sm(),a=useContext(It),s=cm(),l=useRef(void 0);n||(n=o.renderer),!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceId:a?.id,blockInitialAnimation:a?.initial===!1,shouldReduceMotion:s}));var u=l.current;return cl(function(){u?.syncRender();}),useEffect(function(){var c;(c=u?.animationState)===null||c===void 0||c.animateChanges();}),cl(function(){return function(){return u?.notifyUnmount()}},[]),u}var mm=v(()=>{Nn();kn();lm();ul();fm();});function gt(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}var si=v(()=>{});function hm(e,t,r){return useCallback(function(n){var o;n&&((o=e.mount)===null||o===void 0||o.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):gt(r)&&(r.current=n));},[t])}var vm=v(()=>{si();});function pl(e){return Array.isArray(e)}function Oe(e){return typeof e=="string"||pl(e)}function SC(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.get()}),t}function wC(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.getVelocity()}),t}function dl(e,t,r,n,o){var i;return n===void 0&&(n={}),o===void 0&&(o={}),typeof t=="function"&&(t=t(r??e.custom,n,o)),typeof t=="string"&&(t=(i=e.variants)===null||i===void 0?void 0:i[t]),typeof t=="function"&&(t=t(r??e.custom,n,o)),t}function rr(e,t,r){var n=e.getProps();return dl(n,t,r??n.custom,SC(e),wC(e))}function nr(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Oe(e.initial)||Oe(e.animate)||Oe(e.whileHover)||Oe(e.whileDrag)||Oe(e.whileTap)||Oe(e.whileFocus)||Oe(e.exit)}function li(e){return !!(nr(e)||e.variants)}var or=v(()=>{});function gm(e,t){if(nr(e)){var r=e.initial,n=e.animate;return {initial:r===!1||Oe(r)?r:void 0,animate:Oe(n)?n:void 0}}return e.inherit!==!1?t:{}}var ym=v(()=>{or();});function xm(e){var t=gm(e,useContext(tr)),r=t.initial,n=t.animate;return useMemo(function(){return {initial:r,animate:n}},[bm(r),bm(n)])}function bm(e){return Array.isArray(e)?e.join(" "):e}var Sm=v(()=>{kn();ym();});function kt(e){var t=useRef(null);return t.current===null&&(t.current=e()),t.current}var Fn=v(()=>{});var Nt,ui=v(()=>{Nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};});function wm(){return kt(function(){if(Nt.hasEverUpdated)return TC++})}var TC,Cm=v(()=>{Fn();ui();TC=1;});var ci,ml=v(()=>{ci=createContext({});});var fi,hl=v(()=>{fi=createContext({});});function Em(e,t,r,n){var o,i=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,u=t.layoutScroll,c=useContext(fi);!n||!r||r?.projection||(r.projection=new n(e,r.getLatestValues(),(o=r.parent)===null||o===void 0?void 0:o.projection),r.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||l&>(l),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:c,layoutScroll:u}));}var Pm=v(()=>{si();hl();});var Tm,Om=v(()=>{V();Tm=function(e){Yo(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var r=this.props,n=r.visualElement,o=r.props;n&&n.setProps(o);},t.prototype.render=function(){return this.props.children},t}(O__default.Component);});function $m(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,o=e.useRender,i=e.useVisualState,a=e.Component;t&&rm(t);function s(l,u){var c=MC(l);l=S(S({},l),{layoutId:c});var f=useContext(_r),p=null,d=xm(l),m=f.isStatic?void 0:wm(),h=i(l,f.isStatic);return !f.isStatic&&et&&(d.visualElement=dm(a,h,S(S({},f),l),r),Em(m,l,d.visualElement,n||Jt.projectionNodeConstructor),p=im(l,d.visualElement,t)),O.createElement(Tm,{visualElement:d.visualElement,props:S(S({},f),l)},p,O.createElement(tr.Provider,{value:d},o(a,l,m,hm(h,d.visualElement,u),h,f.isStatic,d.visualElement)))}return forwardRef(s)}function MC(e){var t,r=e.layoutId,n=(t=useContext(ci))===null||t===void 0?void 0:t.id;return n&&r!==void 0?n+"-"+r:r}var Rm=v(()=>{V();am();ai();kn();mm();vm();Sm();ll();Vn();Cm();ml();Pm();Om();});function _m(e){function t(n,o){return o===void 0&&(o={}),$m(e(n,o))}if(typeof Proxy>"u")return t;var r=new Map;return new Proxy(t,{get:function(n,o){return r.has(o)||r.set(o,t(o)),r.get(o)}})}var Mm=v(()=>{Rm();});var Dm,Lm=v(()=>{Dm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];});function Mr(e){return typeof e!="string"||e.includes("-")?!1:!!(Dm.indexOf(e)>-1||/[A-Z]/.test(e))}var pi=v(()=>{Lm();});function Im(e){Object.assign(Dr,e);}var Dr,di=v(()=>{Dr={};});function km(e,t){return Lr.indexOf(e)-Lr.indexOf(t)}function tt(e){return LC.has(e)}function hi(e){return IC.has(e)}var mi,DC,Lr,LC,IC,yt=v(()=>{mi=["","X","Y","Z"],DC=["translate","scale","rotate","skew"],Lr=["transformPerspective","x","y","z"];DC.forEach(function(e){return mi.forEach(function(t){return Lr.push(e+t)})});LC=new Set(Lr);IC=new Set(["originX","originY","originZ"]);});function vi(e,t){var r=t.layout,n=t.layoutId;return tt(e)||hi(e)||(r||n!==void 0)&&(!!Dr[e]||e==="opacity")}var gl=v(()=>{di();yt();});var xe,Vt=v(()=>{xe=function(e){return !!(e!==null&&typeof e=="object"&&e.getVelocity)};});function Nm(e,t,r,n){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,l=t.allowTransformNone,u=l===void 0?!0:l,c="";i.sort(km);for(var f=!1,p=i.length,d=0;d<p;d++){var m=i[d];c+="".concat(kC[m]||m,"(").concat(o[m],") "),m==="z"&&(f=!0);}return !f&&s?c+="translateZ(0)":c=c.trim(),n?c=n(o,r?"":c):u&&r&&(c="none"),c}function Vm(e){var t=e.originX,r=t===void 0?"50%":t,n=e.originY,o=n===void 0?"50%":n,i=e.originZ,a=i===void 0?0:i;return "".concat(r," ").concat(o," ").concat(a)}var kC,Fm=v(()=>{yt();kC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};});function gi(e){return e.startsWith("--")}var yl=v(()=>{});var jm,Bm=v(()=>{jm=function(e,t){return t&&typeof e=="number"?t.transform(e):e};});function bt(e){return typeof e=="string"}var yi,Ft,jt,bi,Wm,xt=v(()=>{yi=(e,t)=>r=>Math.max(Math.min(r,t),e),Ft=e=>e%1?Number(e.toFixed(5)):e,jt=/(-)?([\d]*\.?[\d])+/g,bi=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Wm=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;});var Le,St,Ir,jn=v(()=>{xt();Le={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},St=Object.assign(Object.assign({},Le),{transform:yi(0,1)}),Ir=Object.assign(Object.assign({},Le),{default:1});});var Bn,Ye,Se,I,bl,xl,xi,Sl=v(()=>{xt();Bn=e=>({test:t=>bt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Bn("deg"),Se=Bn("%"),I=Bn("px"),bl=Bn("vh"),xl=Bn("vw"),xi=Object.assign(Object.assign({},Se),{parse:e=>Se.parse(e)/100,transform:e=>Se.transform(e*100)});});var kr,Si,wi=v(()=>{xt();kr=(e,t)=>r=>!!(bt(r)&&Wm.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Si=(e,t,r)=>n=>{if(!bt(n))return n;let[o,i,a,s]=n.match(jt);return {[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};});var rt,wl=v(()=>{jn();Sl();xt();wi();rt={test:kr("hsl","hue"),parse:Si("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Se.transform(Ft(t))+", "+Se.transform(Ft(r))+", "+Ft(St.transform(n))+")"};});var NC,Ci,Ve,Ei=v(()=>{jn();xt();wi();NC=yi(0,255),Ci=Object.assign(Object.assign({},Le),{transform:e=>Math.round(NC(e))}),Ve={test:kr("rgb","red"),parse:Si("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ci.transform(e)+", "+Ci.transform(t)+", "+Ci.transform(r)+", "+Ft(St.transform(n))+")"};});function VC(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var Nr,Cl=v(()=>{Ei();wi();Nr={test:kr("#"),parse:VC,transform:Ve.transform};});var ae,El=v(()=>{xt();Cl();wl();Ei();ae={test:e=>Ve.test(e)||Nr.test(e)||rt.test(e),parse:e=>Ve.test(e)?Ve.parse(e):rt.test(e)?rt.parse(e):Nr.parse(e),transform:e=>bt(e)?e:e.hasOwnProperty("red")?Ve.transform(e):rt.transform(e)};});function FC(e){var t,r,n,o;return isNaN(e)&&bt(e)&&((r=(t=e.match(jt))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(bi))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function zm(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(bi);n&&(r=n.length,e=e.replace(bi,Um),t.push(...n.map(ae.parse)));let o=e.match(jt);return o&&(e=e.replace(jt,Hm),t.push(...o.map(Le.parse))),{values:t,numColors:r,tokenised:e}}function Gm(e){return zm(e).values}function qm(e){let{values:t,numColors:r,tokenised:n}=zm(e),o=t.length;return i=>{let a=n;for(let s=0;s<o;s++)a=a.replace(s<r?Um:Hm,s<r?ae.transform(i[s]):Ft(i[s]));return a}}function BC(e){let t=Gm(e);return qm(e)(t.map(jC))}var Um,Hm,jC,ge,Pl=v(()=>{El();jn();xt();Um="${c}",Hm="${n}";jC=e=>typeof e=="number"?0:e;ge={test:FC,parse:Gm,createTransformer:qm,getAnimatableNone:BC};});function UC(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(jt)||[];if(!n)return e;let o=r.replace(n,""),i=WC.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var WC,HC,Vr,Km=v(()=>{Pl();xt();WC=new Set(["brightness","contrast","saturate","opacity"]);HC=/([a-z-]*)\(.*?\)/g,Vr=Object.assign(Object.assign({},ge),{getAnimatableNone:e=>{let t=e.match(HC);return t?t.map(UC).join(" "):e}});});var le=v(()=>{jn();Sl();wl();Ei();Cl();El();Pl();Km();});var Tl,Ym=v(()=>{V();le();Tl=S(S({},Le),{transform:Math.round});});var Pi,Ol=v(()=>{le();Ym();Pi={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Ir,scaleX:Ir,scaleY:Ir,scaleZ:Ir,skew:Ye,skewX:Ye,skewY:Ye,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:St,originX:xi,originY:xi,originZ:I,zIndex:Tl,fillOpacity:St,strokeOpacity:St,numOctaves:Tl};});function Fr(e,t,r,n){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,f=!1,p=!0;for(var d in t){var m=t[d];if(gi(d)){a[d]=m;continue}var h=Pi[d],g=jm(m,h);if(tt(d)){if(c=!0,s[d]=g,l.push(d),!p)continue;m!==((o=h.default)!==null&&o!==void 0?o:0)&&(p=!1);}else hi(d)?(u[d]=g,f=!0):i[d]=g;}c?i.transform=Nm(e,r,p,n):n?i.transform=n({},""):!t.transform&&i.transform&&(i.transform="none"),f&&(i.transformOrigin=Vm(u));}var Ti=v(()=>{Fm();yl();yt();Bm();Ol();});var jr,Oi=v(()=>{jr=function(){return {style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};});function Al(e,t,r){for(var n in t)!xe(t[n])&&!vi(n,r)&&(e[n]=t[n]);}function GC(e,t,r){var n=e.transformTemplate;return useMemo(function(){var o=jr();Fr(o,t,{enableHardwareAcceleration:!r},n);var i=o.vars,a=o.style;return S(S({},i),a)},[t])}function qC(e,t,r){var n=e.style||{},o={};return Al(o,n,e),Object.assign(o,GC(e,t,r)),e.transformValues&&(o=e.transformValues(o)),o}function Xm(e,t,r){var n={},o=qC(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),n.style=o,n}var $l=v(()=>{V();gl();Vt();Ti();Oi();});function Wn(e){return KC.has(e)}var KC,Zm=v(()=>{KC=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);});function YC(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qm,Jm=v(()=>{Qm=YC;});var eh={};lc(eh,{default:()=>QC});var XC,ZC,QC,th=v(()=>{Jm();XC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZC=Qm(function(e){return XC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),QC=ZC;});function JC(e){e&&(rh=function(t){return t.startsWith("on")?!Wn(t):e(t)});}function nh(e,t,r){var n={};for(var o in e)(rh(o)||r===!0&&Wn(o)||!t&&!Wn(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}var rh,oh=v(()=>{Zm();rh=function(e){return !Wn(e)};try{JC((th(),ob(eh)).default);}catch{}});function ih(e,t,r){return typeof e=="string"?e:I.transform(t+r*e)}function ah(e,t,r){var n=ih(t,e.x,e.width),o=ih(r,e.y,e.height);return "".concat(n," ").concat(o)}var sh=v(()=>{le();});function lh(e,t,r,n,o){r===void 0&&(r=1),n===void 0&&(n=0),o===void 0&&(o=!0),e.pathLength=1;var i=o?eE:tE;e[i.offset]=I.transform(-n);var a=I.transform(t),s=I.transform(r);e[i.array]="".concat(a," ").concat(s);}var eE,tE,uh=v(()=>{le();eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},tE={offset:"strokeDashoffset",array:"strokeDasharray"};});function Br(e,t,r,n){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=u===void 0?1:u,f=t.pathOffset,p=f===void 0?0:f,d=Q(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Fr(e,d,r,n),e.attrs=e.style,e.style={};var m=e.attrs,h=e.style,g=e.dimensions;m.transform&&(g&&(h.transform=m.transform),delete m.transform),g&&(a!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=ah(g,a!==void 0?a:.5,s!==void 0?s:.5)),o!==void 0&&(m.x=o),i!==void 0&&(m.y=i),l!==void 0&&lh(m,l,c,p,!1);}var Ai=v(()=>{V();Ti();sh();uh();});var $i,Rl=v(()=>{V();Oi();$i=function(){return S(S({},jr()),{attrs:{}})};});function ch(e,t){var r=useMemo(function(){var o=$i();return Br(o,t,{enableHardwareAcceleration:!1},e.transformTemplate),S(S({},o.attrs),{style:S({},o.style)})},[t]);if(e.style){var n={};Al(n,e.style,e),r.style=S(S({},n),r.style);}return r}var fh=v(()=>{V();$l();Ai();Rl();});function ph(e){e===void 0&&(e=!1);var t=function(r,n,o,i,a,s){var l=a.latestValues,u=Mr(r)?ch:Xm,c=u(n,l,s),f=nh(n,typeof r=="string",e),p=S(S(S({},f),c),{ref:i});return o&&(p["data-projection-id"]=o),createElement(r,p)};return t}var dh=v(()=>{V();$l();oh();pi();fh();});var oE,iE,Ri,_l=v(()=>{oE=/([a-z])([A-Z])/g,iE="$1-$2",Ri=function(e){return e.replace(oE,iE).toLowerCase()};});function _i(e,t,r,n){var o=t.style,i=t.vars;Object.assign(e.style,o,n&&n.getProjectionStyles(r));for(var a in i)e.style.setProperty(a,i[a]);}var Ml=v(()=>{});var Mi,Dl=v(()=>{Mi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);});function Di(e,t,r,n){_i(e,t,void 0,n);for(var o in t.attrs)e.setAttribute(Mi.has(o)?o:Ri(o),t.attrs[o]);}var Ll=v(()=>{_l();Ml();Dl();});function Wr(e){var t=e.style,r={};for(var n in t)(xe(t[n])||vi(n,e))&&(r[n]=t[n]);return r}var Li=v(()=>{gl();Vt();});function Ii(e){var t=Wr(e);for(var r in e)if(xe(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r];}return t}var Il=v(()=>{Vt();Li();});function Ur(e){return typeof e=="object"&&typeof e.start=="function"}var ki=v(()=>{});var wt,Un=v(()=>{wt=function(e){return Array.isArray(e)};});var mh,Ni,Vi=v(()=>{Un();mh=function(e){return !!(e&&typeof e=="object"&&e.mix&&e.toValue)},Ni=function(e){return wt(e)?e[e.length-1]||0:e};});function Hr(e){var t=xe(e)?e.get():e;return mh(t)?t.toValue():t}var kl=v(()=>{Vi();Vt();});function vh(e,t,r,n){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:aE(t,r,n,o),renderState:i()};return a&&(s.mount=function(l){return a(t,l,s)}),s}function aE(e,t,r,n){var o={},i=r?.initial===!1,a=n(e);for(var s in a)o[s]=Hr(a[s]);var l=e.initial,u=e.animate,c=nr(e),f=li(e);t&&f&&!c&&e.inherit!==!1&&(l??(l=t.initial),u??(u=t.animate));var p=i||l===!1,d=p?u:l;if(d&&typeof d!="boolean"&&!Ur(d)){var m=Array.isArray(d)?d:[d];m.forEach(function(h){var g=dl(e,h);if(g){var b=g.transitionEnd;g.transition;var y=Q(g,["transitionEnd","transition"]);for(var x in y){var w=y[x];if(Array.isArray(w)){var C=p?w.length-1:0;w=w[C];}w!==null&&(o[x]=w);}for(var x in b)o[x]=b[x];}});}return o}var Fi,Nl=v(()=>{V();ki();Nn();or();Fn();kl();kn();Fi=function(e){return function(t,r){var n=useContext(tr),o=useContext(It);return r?vh(e,t,n,o):kt(function(){return vh(e,t,n,o)})}};});var gh,yh=v(()=>{Ll();Il();Nl();Rl();Ai();gh={useVisualState:Fi({scrapeMotionValuesFromProps:Ii,createRenderState:$i,onMount:function(e,t,r){var n=r.renderState,o=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch{n.dimensions={x:0,y:0,width:0,height:0};}Br(n,o,{enableHardwareAcceleration:!1},e.transformTemplate),Di(t,n);}})};});var bh,xh=v(()=>{Nl();Li();Oi();bh={useVisualState:Fi({scrapeMotionValuesFromProps:Wr,createRenderState:jr})};});function Sh(e,t,r,n,o){var i=t.forwardMotionProps,a=i===void 0?!1:i,s=Mr(e)?gh:bh;return S(S({},s),{preloadedFeatures:r,useRender:ph(a),createVisualElement:n,projectionNodeConstructor:o,Component:e})}var wh=v(()=>{V();pi();dh();yh();xh();});var K,Bt=v(()=>{(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit";})(K||(K={}));});function ir(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function Hn(e,t,r,n){useEffect(function(){var o=e.current;if(r&&o)return ir(o,t,r,n)},[e,t,r,n]);}var zn=v(()=>{});function Ch(e){var t=e.whileFocus,r=e.visualElement,n=function(){var i;(i=r.animationState)===null||i===void 0||i.setActive(K.Focus,!0);},o=function(){var i;(i=r.animationState)===null||i===void 0||i.setActive(K.Focus,!1);};Hn(r,"focus",t?n:void 0),Hn(r,"blur",t?o:void 0);}var Eh=v(()=>{Bt();zn();});function ji(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Bi(e){var t=!!e.touches;return t}var Wi=v(()=>{});function lE(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t);}}function cE(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||uE;return {x:n[t+"X"],y:n[t+"Y"]}}function fE(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Gn(e,t){return t===void 0&&(t="page"),{point:Bi(e)?cE(e,t):fE(e,t)}}var uE,Vl,Ui=v(()=>{Wi();uE={pageX:0,pageY:0};Vl=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,Gn(n))};return t?lE(r):r};});var Ph,Th,Oh,Ah=v(()=>{Vn();Ph=function(){return et&&window.onpointerdown===null},Th=function(){return et&&window.ontouchstart===null},Oh=function(){return et&&window.onmousedown===null};});function $h(e){return Ph()?e:Th()?dE[e]:Oh()?pE[e]:e}function Ct(e,t,r,n){return ir(e,$h(t),Vl(r,t==="pointerdown"),n)}function ar(e,t,r,n){return Hn(e,$h(t),r&&Vl(r,t==="pointerdown"),n)}var pE,dE,zr=v(()=>{zn();Ui();Ah();pE={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},dE={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};});function Mh(e){var t=null;return function(){var r=function(){t=null;};return t===null?(t=e,r):!1}}function Fl(e){var t=!1;if(e==="y")t=_h();else if(e==="x")t=Rh();else {var r=Rh(),n=_h();r&&n?t=function(){r(),n();}:(r&&r(),n&&n());}return t}function Hi(){var e=Fl(!0);return e?(e(),!1):!0}var Rh,_h,zi=v(()=>{Rh=Mh("dragHorizontal"),_h=Mh("dragVertical");});function Dh(e,t,r){return function(n,o){var i;!ji(n)||Hi()||((i=e.animationState)===null||i===void 0||i.setActive(K.Hover,t),r?.(n,o));}}function Lh(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,o=e.visualElement;ar(o,"pointerenter",t||n?Dh(o,!0,t):void 0,{passive:!t}),ar(o,"pointerleave",r||n?Dh(o,!1,r):void 0,{passive:!r});}var Ih=v(()=>{Wi();Bt();zr();zi();});var jl,kh=v(()=>{jl=function(e,t){return t?e===t?!0:jl(e,t.parentElement):!1};});function Gi(e){return useEffect(function(){return function(){return e()}},[])}var Bl=v(()=>{});var Wt,qi=v(()=>{Wt=(e,t,r)=>Math.min(Math.max(r,e),t);});function Vh({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;er(e<=Nh*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=Wt(vE,gE,a),e=Wt(hE,Nh,e/1e3),a<1?(o=u=>{let c=u*a,f=c*e,p=c-r,d=Ki(u,a),m=Math.exp(-f);return Wl-p/d*m},i=u=>{let f=u*a*e,p=f*r+r,d=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-f),h=Ki(Math.pow(u,2),a);return (-o(u)+Wl>0?-1:1)*((p-d)*m)/h}):(o=u=>{let c=Math.exp(-u*e),f=(u-r)*e+1;return -Wl+c*f},i=u=>{let c=Math.exp(-u*e),f=(r-u)*(e*e);return c*f});let s=5/e,l=bE(o,i,s);if(e=e*1e3,isNaN(l))return {stiffness:100,damping:10,duration:e};{let u=Math.pow(l,2)*n;return {stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}function bE(e,t,r){let n=r;for(let o=1;o<yE;o++)n=n-e(n)/t(n);return n}function Ki(e,t){return e*Math.sqrt(1-t*t)}var Wl,hE,Nh,vE,gE,yE,Fh=v(()=>{Ke();qi();Wl=.001,hE=.01,Nh=10,vE=.05,gE=1;yE=12;});function jh(e,t){return t.some(r=>e[r]!==void 0)}function wE(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!jh(e,SE)&&jh(e,xE)){let r=Vh(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0;}return t}function Yi(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=Q(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:p}=wE(i),d=Bh,m=Bh;function h(){let g=c?-(c/1e3):0,b=r-t,y=l/(2*Math.sqrt(s*u)),x=Math.sqrt(s/u)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),y<1){let w=Ki(x,y);d=C=>{let P=Math.exp(-y*x*C);return r-P*((g+y*x*b)/w*Math.sin(w*C)+b*Math.cos(w*C))},m=C=>{let P=Math.exp(-y*x*C);return y*x*P*(Math.sin(w*C)*(g+y*x*b)/w+b*Math.cos(w*C))-P*(Math.cos(w*C)*(g+y*x*b)-w*b*Math.sin(w*C))};}else if(y===1)d=w=>r-Math.exp(-x*w)*(b+(g+x*b)*w);else {let w=x*Math.sqrt(y*y-1);d=C=>{let P=Math.exp(-y*x*C),D=Math.min(w*C,300);return r-P*((g+y*x*b)*Math.sinh(D)+w*b*Math.cosh(D))/w};}}return h(),{next:g=>{let b=d(g);if(p)a.done=g>=f;else {let y=m(g)*1e3,x=Math.abs(y)<=n,w=Math.abs(r-b)<=o;a.done=x&&w;}return a.value=a.done?r:b,a},flipTarget:()=>{c=-c,[t,r]=[r,t],h();}}}var xE,SE,Bh,Wh=v(()=>{V();Fh();xE=["duration","bounce"],SE=["stiffness","damping","mass"];Yi.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";Bh=e=>0;});var Et,Ul=v(()=>{Et=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};});var G,qn=v(()=>{G=(e,t,r)=>-r*e+r*t+e;});function Hl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function zl({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else {let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=Hl(l,s,e+1/3),i=Hl(l,s,e),a=Hl(l,s,e-1/3);}return {red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}var Uh=v(()=>{});var CE,EE,Hh,zh,Xi,Gl=v(()=>{qn();le();Ke();Uh();CE=(e,t,r)=>{let n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},EE=[Nr,Ve,rt],Hh=e=>EE.find(t=>t.test(e)),zh=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Xi=(e,t)=>{let r=Hh(e),n=Hh(t);de(!!r,zh(e)),de(!!n,zh(t));let o=r.parse(e),i=n.parse(t);r===rt&&(o=zl(o),r=Ve),n===rt&&(i=zl(i),n=Ve);let a=Object.assign({},o);return s=>{for(let l in a)l!=="alpha"&&(a[l]=CE(o[l],i[l],s));return a.alpha=G(o.alpha,i.alpha,s),r.transform(a)}};});var Kn,ql=v(()=>{Kn=e=>typeof e=="number";});var PE,Pt,Zi=v(()=>{PE=(e,t)=>r=>t(e(r)),Pt=(...e)=>e.reduce(PE);});function qh(e,t){return Kn(e)?r=>G(e,t,r):ae.test(e)?Xi(e,t):Yl(e,t)}function Gh(e){let t=ge.parse(e),r=t.length,n=0,o=0,i=0;for(let a=0;a<r;a++)n||typeof t[a]=="number"?n++:t[a].hue!==void 0?i++:o++;return {parsed:t,numNumbers:n,numRGB:o,numHSL:i}}var Kl,Kh,Yl,Yh=v(()=>{le();qn();Gl();ql();Zi();Ke();Kl=(e,t)=>{let r=[...e],n=r.length,o=e.map((i,a)=>qh(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}},Kh=(e,t)=>{let r=Object.assign(Object.assign({},e),t),n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=qh(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}};Yl=(e,t)=>{let r=ge.createTransformer(t),n=Gh(e),o=Gh(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?Pt(Kl(n.parsed,o.parsed),r):(er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)};});function OE(e){if(typeof e=="number")return TE;if(typeof e=="string")return ae.test(e)?Xi:Yl;if(Array.isArray(e))return Kl;if(typeof e=="object")return Kh}function AE(e,t,r){let n=[],o=r||OE(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]:t;s=Pt(l,s);}n.push(s);}return n}function $E([e,t],[r]){return n=>r(Et(e,t,n))}function RE(e,t){let r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let l=1;for(;l<r&&!(e[l]>o||l===n);l++);i=l-1;}let s=Et(e[i],e[i+1],o);return t[i](s)}}function Qi(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;de(i===t.length,"Both input and output ranges must be the same length"),de(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=AE(t,n,o),s=i===2?$E(e,a):RE(e,a);return r?l=>s(Wt(e[0],e[i-1],l)):s}var TE,Xl=v(()=>{Ul();qn();Gl();Yh();le();qi();Zi();Ke();TE=(e,t)=>r=>G(e,t,r);});var Yn,Ji,Xh,Zl,Zh,Qh=v(()=>{Yn=e=>t=>1-e(1-t),Ji=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xh=e=>t=>Math.pow(t,e),Zl=e=>t=>t*t*((e+1)*t-e),Zh=e=>{let t=Zl(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))};});var Jh,_E,ME,DE,sr,Xn,Ql,Zn,ea,qr,Jl,Qn,eu,tu,ru,LE,IE,kE,Gr,nu,ou,ta=v(()=>{Qh();Jh=1.525,_E=4/11,ME=8/11,DE=9/10,sr=e=>e,Xn=Xh(2),Ql=Yn(Xn),Zn=Ji(Xn),ea=e=>1-Math.sin(Math.acos(e)),qr=Yn(ea),Jl=Ji(qr),Qn=Zl(Jh),eu=Yn(Qn),tu=Ji(Qn),ru=Zh(Jh),LE=4356/361,IE=35442/1805,kE=16061/1805,Gr=e=>{if(e===1||e===0)return e;let t=e*e;return e<_E?7.5625*t:e<ME?9.075*t-9.9*e+3.4:e<DE?LE*t-IE*e+kE:10.8*e*e-20.52*e+10.72},nu=Yn(Gr),ou=e=>e<.5?.5*(1-Gr(1-e*2)):.5*Gr(e*2-1)+.5;});function NE(e,t){return e.map(()=>t||Zn).splice(0,e.length-1)}function VE(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function FE(e,t){return e.map(r=>r*t)}function Jn({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){let i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=FE(n&&n.length===a.length?n:VE(a),o);function l(){return Qi(s,a,{ease:Array.isArray(r)?r:NE(a,r)})}let u=l();return {next:c=>(i.value=u(c),i.done=c>=o,i),flipTarget:()=>{a.reverse(),u=l();}}}var ev=v(()=>{Xl();ta();});function tv({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){let a={done:!1,value:t},s=r*e,l=t+s,u=i===void 0?l:i(l);return u!==l&&(s=u-t),{next:c=>{let f=-s*Math.exp(-c/n);return a.done=!(f>o||f<-o),a.value=a.done?u:u+f,a},flipTarget:()=>{}}}var rv=v(()=>{});function ov(e){if(Array.isArray(e.to))return Jn;if(nv[e.type])return nv[e.type];let t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Jn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Yi:Jn}var nv,iv=v(()=>{Wh();ev();rv();nv={keyframes:Jn,spring:Yi,decay:tv};});var iu,jE,au,av=v(()=>{iu=16.666666666666668,jE=typeof performance<"u"?()=>performance.now():()=>Date.now(),au=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(jE()),iu);});function sv(e){let t=[],r=[],n=0,o=!1,i=!1,a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{let f=c&&o,p=f?t:r;return u&&a.add(l),p.indexOf(l)===-1&&(p.push(l),f&&o&&(n=t.length)),l},cancel:l=>{let u=r.indexOf(l);u!==-1&&r.splice(u,1),a.delete(l);},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let u=0;u<n;u++){let c=t[u];c(l),a.has(c)&&(s.schedule(c),e());}o=!1,i&&(i=!1,s.process(l));}};return s}var lv=v(()=>{});var BE,su,eo,lu,Kr,to,ra,WE,nt,na,UE,uv,HE,lr,we,Ut=v(()=>{av();lv();BE=40,su=!0,eo=!1,lu=!1,Kr={delta:0,timestamp:0},to=["read","update","preRender","render","postRender"],ra=to.reduce((e,t)=>(e[t]=sv(()=>eo=!0),e),{}),WE=to.reduce((e,t)=>{let r=ra[t];return e[t]=(n,o=!1,i=!1)=>(eo||HE(),r.schedule(n,o,i)),e},{}),nt=to.reduce((e,t)=>(e[t]=ra[t].cancel,e),{}),na=to.reduce((e,t)=>(e[t]=()=>ra[t].process(Kr),e),{}),UE=e=>ra[e].process(Kr),uv=e=>{eo=!1,Kr.delta=su?iu:Math.max(Math.min(e-Kr.timestamp,BE),1),Kr.timestamp=e,lu=!0,to.forEach(UE),lu=!1,eo&&(su=!1,au(uv));},HE=()=>{eo=!0,su=!0,lu||au(uv);},lr=()=>Kr,we=WE;});function uu(e,t,r=0){return e-t-r}function cv(e,t,r=0,n=!0){return n?uu(t+-e,t,r):t-(e-t)+r}function fv(e,t,r,n){return n?e>=t+r:e<=-r}var pv=v(()=>{});function ro(e){var t,r,{from:n,autoplay:o=!0,driver:i=zE,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:f,onComplete:p,onRepeat:d,onUpdate:m}=e,h=Q(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:g}=h,b,y=0,x=h.duration,w,C=!1,P=!0,D,_=ov(h);!((r=(t=_).needsInterpolation)===null||r===void 0)&&r.call(t,n,g)&&(D=Qi([0,100],[n,g],{clamp:!1}),n=0,g=100);let L=_(Object.assign(Object.assign({},h),{from:n,to:g}));function B(){y++,l==="reverse"?(P=y%2===0,a=cv(a,x,u,P)):(a=uu(a,x,u),l==="mirror"&&L.flipTarget()),C=!1,d&&d();}function Y(){b.stop(),p&&p();}function ee(se){if(P||(se=-se),a+=se,!C){let $e=L.next(Math.max(0,a));w=$e.value,D&&(w=D(w)),C=P?$e.done:a<=0;}m?.(w),C&&(y===0&&(x??(x=a)),y<s?fv(a,x,u,P)&&B():Y());}function J(){c?.(),b=i(ee),b.start();}return o&&J(),{stop:()=>{f?.(),b.stop();}}}var zE,cu=v(()=>{V();iv();Ut();Xl();pv();zE=e=>{let t=({delta:r})=>e(r);return {start:()=>we.update(t,!0),stop:()=>nt.update(t)}};});function no(e,t){return t?e*(1e3/t):0}var fu=v(()=>{});function pu({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:f,onComplete:p,onStop:d}){let m;function h(x){return r!==void 0&&x<r||n!==void 0&&x>n}function g(x){return r===void 0?n:n===void 0||Math.abs(r-x)<Math.abs(n-x)?r:n}function b(x){m?.stop(),m=ro(Object.assign(Object.assign({},x),{driver:c,onUpdate:w=>{var C;f?.(w),(C=x.onUpdate)===null||C===void 0||C.call(x,w);},onComplete:p,onStop:d}));}function y(x){b(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},x));}if(h(e))y({from:e,velocity:t,to:g(e)});else {let x=o*t+e;typeof u<"u"&&(x=u(x));let w=g(x),C=w===r?-1:1,P,D,_=L=>{P=D,D=L,t=no(L-P,lr().delta),(C===1&&L>w||C===-1&&L<w)&&y({from:L,to:w,velocity:t});};b({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:u,onUpdate:h(x)?_:void 0});}return {stop:()=>m?.stop()}}var dv=v(()=>{cu();fu();Ut();});var oo,du=v(()=>{oo=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y");});var mu,mv=v(()=>{du();mu=e=>oo(e)&&e.hasOwnProperty("z");});function io(e,t){if(Kn(e)&&Kn(t))return oa(e,t);if(oo(e)&&oo(t)){let r=oa(e.x,t.x),n=oa(e.y,t.y),o=mu(e)&&mu(t)?oa(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}var oa,hv=v(()=>{du();mv();ql();oa=(e,t)=>Math.abs(e-t);});function KE(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=sa(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>GE&&++s<qE);return a}function ZE(e,t,r,n){for(let o=0;o<YE;++o){let i=bv(t,r,n);if(i===0)return t;let a=sa(t,r,n)-e;t-=a/i;}return t}function hu(e,t,r,n){if(e===t&&r===n)return sr;let o=new Float32Array(aa);for(let a=0;a<aa;++a)o[a]=sa(a*ia,e,r);function i(a){let s=0,l=1,u=aa-1;for(;l!==u&&o[l]<=a;++l)s+=ia;--l;let c=(a-o[l])/(o[l+1]-o[l]),f=s+c*ia,p=bv(f,e,r);return p>=XE?ZE(a,f,e,r):p===0?f:KE(a,s,s+ia,e,r)}return a=>a===0||a===1?a:sa(i(a),t,n)}var vv,gv,yv,sa,bv,GE,qE,YE,XE,aa,ia,xv=v(()=>{ta();vv=(e,t)=>1-3*t+3*e,gv=(e,t)=>3*t-6*e,yv=e=>3*e,sa=(e,t,r)=>((vv(t,r)*e+gv(t,r))*e+yv(t))*e,bv=(e,t,r)=>3*vv(t,r)*e*e+2*gv(t,r)*e+yv(t),GE=1e-7,qE=10;YE=8,XE=.001;aa=11,ia=1/(aa-1);});var Ae=v(()=>{cu();dv();qi();hv();qn();Zi();Ul();fu();ta();xv();});function wv(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||r||n||o,s=useRef(!1),l=useRef(null),u={passive:!(r||t||n||m)};function c(){var h;(h=l.current)===null||h===void 0||h.call(l),l.current=null;}function f(){var h;return c(),s.current=!1,(h=i.animationState)===null||h===void 0||h.setActive(K.Tap,!1),!Hi()}function p(h,g){f()&&(jl(i.getInstance(),h.target)?t?.(h,g):n?.(h,g));}function d(h,g){f()&&n?.(h,g);}function m(h,g){var b;c(),!s.current&&(s.current=!0,l.current=Pt(Ct(window,"pointerup",p,u),Ct(window,"pointercancel",d,u)),(b=i.animationState)===null||b===void 0||b.setActive(K.Tap,!0),r?.(h,g));}ar(i,"pointerdown",a?m:void 0,u),Gi(c);}var Cv=v(()=>{kh();zr();Bl();Ae();Bt();zi();});function Pv(e,t,r){e||Ev.has(t)||(console.warn(t),r&&console.warn(r),Ev.add(t));}var Ev,Tv=v(()=>{Ev=new Set;});function eP(e){var t=e.root,r=Q(e,["root"]),n=t||document;vu.has(n)||vu.set(n,{});var o=vu.get(n),i=JSON.stringify(r);return o[i]||(o[i]=new IntersectionObserver(JE,S({root:t},r))),o[i]}function Ov(e,t,r){var n=eP(t);return gu.set(e,r),n.observe(e),function(){gu.delete(e),n.unobserve(e);}}var gu,vu,QE,JE,Av=v(()=>{V();gu=new WeakMap,vu=new WeakMap,QE=function(e){var t;(t=gu.get(e.target))===null||t===void 0||t(e);},JE=function(e){e.forEach(QE);};});function Rv(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=i===void 0?{}:i,s=useRef({hasEnteredView:!1,isInView:!1}),l=!!(r||n||o);a.once&&s.current.hasEnteredView&&(l=!1);var u=typeof IntersectionObserver>"u"?oP:nP;u(l,s.current,t,a);}function nP(e,t,r,n){var o=n.root,i=n.margin,a=n.amount,s=a===void 0?"some":a,l=n.once;useEffect(function(){if(e){var u={root:o?.current,rootMargin:i,threshold:typeof s=="number"?s:rP[s]},c=function(f){var p,d=f.isIntersecting;if(t.isInView!==d&&(t.isInView=d,!(l&&!d&&t.hasEnteredView))){d&&(t.hasEnteredView=!0),(p=r.animationState)===null||p===void 0||p.setActive(K.InView,d);var m=r.getProps(),h=d?m.onViewportEnter:m.onViewportLeave;h?.(f);}};return Ov(r.getInstance(),u,c)}},[e,o,i,s]);}function oP(e,t,r,n){var o=n.fallback,i=o===void 0?!0:o;useEffect(function(){!e||!i||(oi!=="production"&&Pv(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=r.getProps().onViewportEnter;s?.(null),(a=r.animationState)===null||a===void 0||a.setActive(K.InView,!0);}));},[e]);}var rP,_v=v(()=>{sl();Bt();Tv();Av();rP={some:0,all:1};});var Xe,la=v(()=>{Xe=function(e){return function(t){return e(t),null}};});var Mv,Dv=v(()=>{Eh();Ih();Cv();_v();la();Mv={inView:Xe(Rv),tap:Xe(wv),focus:Xe(Ch),hover:Xe(Lh)};});var iP,aP,Lv,Iv=v(()=>{Fn();iP=0,aP=function(){return iP++},Lv=function(){return kt(aP)};});function ua(){var e=useContext(It);if(e===null)return [!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,o=Lv();useEffect(function(){return n(o)},[]);var i=function(){return r?.(o)};return !t&&r?[!1,i]:[!0]}var yu=v(()=>{Nn();Iv();});function bu(e,t){if(!Array.isArray(t))return !1;var r=t.length;if(r!==e.length)return !1;for(var n=0;n<r;n++)if(t[n]!==e[n])return !1;return !0}var kv=v(()=>{});var Yr,xu=v(()=>{Yr=function(e){return e*1e3};});var Nv,Su,Vv,Fv=v(()=>{V();Ke();Ae();Nv={linear:sr,easeIn:Xn,easeInOut:Zn,easeOut:Ql,circIn:ea,circInOut:Jl,circOut:qr,backIn:Qn,backInOut:tu,backOut:eu,anticipate:ru,bounceIn:nu,bounceInOut:ou,bounceOut:Gr},Su=function(e){if(Array.isArray(e)){de(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=H(e,4),r=t[0],n=t[1],o=t[2],i=t[3];return hu(r,n,o,i)}else if(typeof e=="string")return de(Nv[e]!==void 0,"Invalid easing type '".concat(e,"'")),Nv[e];return e},Vv=function(e){return Array.isArray(e)&&typeof e[0]!="number"};});var wu,jv=v(()=>{le();wu=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&ge.test(t)&&!t.startsWith("url("))};});var ur,ca,Cu,uP,Bv,Wv,Uv=v(()=>{V();Un();ur=function(){return {type:"spring",stiffness:500,damping:25,restSpeed:10}},ca=function(e){return {type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Cu=function(){return {type:"keyframes",ease:"linear",duration:.3}},uP=function(e){return {type:"keyframes",duration:.8,values:e}},Bv={x:ur,y:ur,z:ur,rotate:ur,rotateX:ur,rotateY:ur,rotateZ:ur,scaleX:ca,scaleY:ca,scale:ca,opacity:Cu,backgroundColor:Cu,color:Cu,default:ca},Wv=function(e,t){var r;return wt(t)?r=uP:r=Bv[e]||Bv.default,S({to:t},r(t))};});var cP,Xr,fa=v(()=>{V();le();Ol();cP=S(S({},Pi),{color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:Vr,WebkitFilter:Vr}),Xr=function(e){return cP[e]};});function ao(e,t){var r,n=Xr(e);return n!==Vr&&(n=ge),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}var Eu=v(()=>{le();fa();});var Hv,zv=v(()=>{Hv={current:!1};});function fP(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Q(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return !!Object.keys(t).length}function pP(e){var t=e.ease,r=e.times,n=e.yoyo,o=e.flip,i=e.loop,a=Q(e,["ease","times","yoyo","flip","loop"]),s=S({},a);return r&&(s.offset=r),a.duration&&(s.duration=Yr(a.duration)),a.repeatDelay&&(s.repeatDelay=Yr(a.repeatDelay)),t&&(s.ease=Vv(t)?t.map(Su):Su(t)),a.type==="tween"&&(s.type="keyframes"),(n||i||o)&&(er(!Gv,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Gv=!0,n?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||n||o||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function dP(e,t){var r,n,o=pa(e,t)||{};return (n=(r=o.delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function mP(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=ce([],H(e.to),!1),e.to[0]=e.from),e}function hP(e,t,r){var n;return Array.isArray(t.to)&&((n=e.duration)!==null&&n!==void 0||(e.duration=.8)),mP(t),fP(e)||(e=S(S({},e),Wv(r,t.to))),S(S({},t),pP(e))}function vP(e,t,r,n,o){var i,a=pa(n,e),s=(i=a.from)!==null&&i!==void 0?i:t.get(),l=wu(e,r);s==="none"&&l&&typeof r=="string"?s=ao(e,r):qv(s)&&typeof r=="string"?s=Kv(r):!Array.isArray(r)&&qv(r)&&typeof s=="string"&&(r=Kv(s));var u=wu(e,s);er(u===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(r," via the `style` property."));function c(){var p={from:s,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:function(d){return t.set(d)}};return a.type==="inertia"||a.type==="decay"?pu(S(S({},p),a)):ro(S(S({},hP(a,p,e)),{onUpdate:function(d){var m;p.onUpdate(d),(m=a.onUpdate)===null||m===void 0||m.call(a,d);},onComplete:function(){var d;p.onComplete(),(d=a.onComplete)===null||d===void 0||d.call(a);}}))}function f(){var p,d,m=Ni(r);return t.set(m),o(),(p=a?.onUpdate)===null||p===void 0||p.call(a,m),(d=a?.onComplete)===null||d===void 0||d.call(a),{stop:function(){}}}return !u||!l||a.type===!1?f:c}function qv(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Kv(e){return typeof e=="number"?0:ao("",e)}function pa(e,t){return e[t]||e.default||e}function Zr(e,t,r,n){return n===void 0&&(n={}),Hv.current&&(n={type:!1}),t.start(function(o){var i,a,s=vP(e,t,r,n,o),l=dP(n,e),u=function(){return a=s()};return l?i=window.setTimeout(u,Yr(l)):u(),function(){clearTimeout(i),a?.stop();}})}var Gv,so=v(()=>{V();Ae();xu();Fv();jv();Uv();Ke();Eu();zv();Vi();Gv=!1;});var Yv,Xv=v(()=>{Yv=function(e){return /^\-?\d*\.?\d+$/.test(e)};});var Zv,Qv=v(()=>{Zv=function(e){return /^0[^.\s]+$/.test(e)};});function Qr(e,t){e.indexOf(t)===-1&&e.push(t);}function Jr(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1);}var da=v(()=>{});var Ht,ma=v(()=>{da();Ht=function(){function e(){this.subscriptions=[];}return e.prototype.add=function(t){var r=this;return Qr(this.subscriptions,t),function(){return Jr(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(var i=0;i<o;i++){var a=this.subscriptions[i];a&&a(t,r,n);}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0;},e}();});function ot(e){return new yP(e)}var gP,yP,lo=v(()=>{Ut();Ae();ma();gP=function(e){return !isNaN(parseFloat(e))},yP=function(){function e(t){var r=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ht,this.velocityUpdateSubscribers=new Ht,this.renderSubscribers=new Ht,this.canTrackVelocity=!1,this.updateAndNotify=function(n,o){o===void 0&&(o=!0),r.prev=r.current,r.current=n;var i=lr(),a=i.delta,s=i.timestamp;r.lastUpdated!==s&&(r.timeDelta=a,r.lastUpdated=s,we.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),o&&r.renderSubscribers.notify(r.current);},this.scheduleVelocityCheck=function(){return we.postRender(r.velocityCheck)},this.velocityCheck=function(n){var o=n.timestamp;o!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()));},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=gP(this.current);}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear();},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t;},e.prototype.set=function(t,r){r===void 0&&(r=!0),!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify);},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?no(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var r=this;return this.stop(),new Promise(function(n){r.hasAnimated=!0,r.stopAnimation=t(n);}).then(function(){return r.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation();},e.prototype.isAnimating=function(){return !!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null;},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop();},e}();});var ha,Pu=v(()=>{ha=function(e){return function(t){return t.test(e)}};});var Jv,eg=v(()=>{Jv={test:function(e){return e==="auto"},parse:function(e){return e}};});var Tu,en,Ou=v(()=>{le();Pu();eg();Tu=[Le,I,Se,Ye,xl,bl,Jv],en=function(e){return Tu.find(ha(e))};});var bP,tg,rg=v(()=>{V();le();Ou();Pu();bP=ce(ce([],H(Tu),!1),[ae,ge],!1),tg=function(e){return bP.find(ha(e))};});function xP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ot(r));}function ng(e,t){var r=rr(e,t),n=r?e.makeTargetAnimatable(r,!1):{},o=n.transitionEnd,i=o===void 0?{}:o;n.transition;var a=Q(n,["transitionEnd","transition"]);a=S(S({},a),i);for(var s in a){var l=Ni(a[s]);xP(e,s,l);}}function og(e,t,r){var n,o,i,a,s=Object.keys(t).filter(function(d){return !e.hasValue(d)}),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],f=t[c],p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(o=(n=r[c])!==null&&n!==void 0?n:e.readValue(c))!==null&&o!==void 0?o:t[c]),p!=null&&(typeof p=="string"&&(Yv(p)||Zv(p))?p=parseFloat(p):!tg(p)&&ge.test(f)&&(p=ao(c,f)),e.addValue(c,ot(p)),(i=(a=r)[c])!==null&&i!==void 0||(a[c]=p),e.setBaseTarget(c,p));}}function SP(e,t){if(t){var r=t[e]||t.default||t;return r.from}}function ig(e,t,r){var n,o,i={};for(var a in e)i[a]=(n=SP(a,t))!==null&&n!==void 0?n:(o=r.getValue(a))===null||o===void 0?void 0:o.get();return i}var Au=v(()=>{V();le();Xv();Qv();Vi();lo();Eu();rg();or();});function ag(e,t,r){r===void 0&&(r={}),e.notifyAnimationStart(t);var n;if(Array.isArray(t)){var o=t.map(function(a){return $u(e,a,r)});n=Promise.all(o);}else if(typeof t=="string")n=$u(e,t,r);else {var i=typeof t=="function"?rr(e,t,r.custom):t;n=sg(e,i,r);}return n.then(function(){return e.notifyAnimationComplete(t)})}function $u(e,t,r){var n;r===void 0&&(r={});var o=rr(e,t,r.custom),i=(o||{}).transition,a=i===void 0?e.getDefaultTransition()||{}:i;r.transitionOverride&&(a=r.transitionOverride);var s=o?function(){return sg(e,o,r)}:function(){return Promise.resolve()},l=!((n=e.variantChildren)===null||n===void 0)&&n.size?function(d){d===void 0&&(d=0);var m=a.delayChildren,h=m===void 0?0:m,g=a.staggerChildren,b=a.staggerDirection;return wP(e,t,h+d,g,b,r)}:function(){return Promise.resolve()},u=a.when;if(u){var c=H(u==="beforeChildren"?[s,l]:[l,s],2),f=c[0],p=c[1];return f().then(p)}else return Promise.all([s(),l(r.delay)])}function sg(e,t,r){var n,o=r===void 0?{}:r,i=o.delay,a=i===void 0?0:i,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,f=c===void 0?e.getDefaultTransition():c,p=u.transitionEnd,d=Q(u,["transition","transitionEnd"]);s&&(f=s);var m=[],h=l&&((n=e.animationState)===null||n===void 0?void 0:n.getState()[l]);for(var g in d){var b=e.getValue(g),y=d[g];if(!(!b||y===void 0||h&&EP(h,g))){var x=S({delay:a},f);e.shouldReduceMotion&&tt(g)&&(x=S(S({},x),{type:!1,delay:0}));var w=Zr(g,b,y,x);m.push(w);}}return Promise.all(m).then(function(){p&&ng(e,p);})}function wP(e,t,r,n,o,i){r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=1);var a=[],s=(e.variantChildren.size-1)*n,l=o===1?function(u){return u===void 0&&(u=0),u*n}:function(u){return u===void 0&&(u=0),s-u*n};return Array.from(e.variantChildren).sort(CP).forEach(function(u,c){a.push($u(u,t,S(S({},i),{delay:r+l(c)})).then(function(){return u.notifyAnimationComplete(t)}));}),Promise.all(a)}function CP(e,t){return e.sortNodePosition(t)}function EP(e,t){var r=e.protectedKeys,n=e.needsAnimating,o=r.hasOwnProperty(t)&&n[t]!==!0;return n[t]=!1,o}var lg=v(()=>{V();so();Au();or();yt();});function OP(e){return function(t){return Promise.all(t.map(function(r){var n=r.animation,o=r.options;return ag(e,n,o)}))}}function ug(e){var t=OP(e),r=$P(),n={},o=!0,i=function(c,f){var p=rr(e,f);if(p){p.transition;var d=p.transitionEnd,m=Q(p,["transition","transitionEnd"]);c=S(S(S({},c),m),d);}return c};function a(c){return n[c]!==void 0}function s(c){t=c(e);}function l(c,f){for(var p,d=e.getProps(),m=e.getVariantContext(!0)||{},h=[],g=new Set,b={},y=1/0,x=function(D){var _=PP[D],L=r[_],B=(p=d[_])!==null&&p!==void 0?p:m[_],Y=Oe(B),ee=_===f?L.isActive:null;ee===!1&&(y=D);var J=B===m[_]&&B!==d[_]&&Y;if(J&&o&&e.manuallyAnimateOnMount&&(J=!1),L.protectedKeys=S({},b),!L.isActive&&ee===null||!B&&!L.prevProp||Ur(B)||typeof B=="boolean")return "continue";var se=AP(L.prevProp,B),$e=se||_===f&&L.isActive&&!J&&Y||D>y&&Y,Ze=Array.isArray(B)?B:[B],Pe=Ze.reduce(i,{});ee===!1&&(Pe={});var Tt=L.prevResolvedValues,Re=Tt===void 0?{}:Tt,mr=S(S({},Re),Pe),Ot=function(N){$e=!0,g.delete(N),L.needsAnimating[N]=!0;};for(var he in mr){var X=Pe[he],R=Re[he];b.hasOwnProperty(he)||(X!==R?wt(X)&&wt(R)?!bu(X,R)||se?Ot(he):L.protectedKeys[he]=!0:X!==void 0?Ot(he):g.add(he):X!==void 0&&g.has(he)?Ot(he):L.protectedKeys[he]=!0);}L.prevProp=B,L.prevResolvedValues=Pe,L.isActive&&(b=S(S({},b),Pe)),o&&e.blockInitialAnimation&&($e=!1),$e&&!J&&h.push.apply(h,ce([],H(Ze.map(function(N){return {animation:N,options:S({type:_},c)}})),!1));},w=0;w<TP;w++)x(w);if(n=S({},b),g.size){var C={};g.forEach(function(D){var _=e.getBaseTarget(D);_!==void 0&&(C[D]=_);}),h.push({animation:C});}var P=!!h.length;return o&&d.initial===!1&&!e.manuallyAnimateOnMount&&(P=!1),o=!1,P?t(h):Promise.resolve()}function u(c,f,p){var d;if(r[c].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(function(g){var b;return (b=g.animationState)===null||b===void 0?void 0:b.setActive(c,f)}),r[c].isActive=f;var m=l(p,c);for(var h in r)r[h].protectedKeys={};return m}return {isAnimated:a,animateChanges:l,setActive:u,setAnimateFunction:s,getState:function(){return r}}}function AP(e,t){return typeof t=="string"?t!==e:pl(t)?!bu(t,e):!1}function cr(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $P(){var e;return e={},e[K.Animate]=cr(!0),e[K.InView]=cr(),e[K.Hover]=cr(),e[K.Tap]=cr(),e[K.Drag]=cr(),e[K.Focus]=cr(),e[K.Exit]=cr(),e}var va,PP,TP,Ru=v(()=>{V();ki();Un();kv();lg();Bt();or();va=[K.Animate,K.InView,K.Focus,K.Hover,K.Tap,K.Drag,K.Exit],PP=ce([],H(va),!1).reverse(),TP=va.length;});var fg,pg=v(()=>{V();ki();yu();Nn();Ru();Bt();la();fg={animation:Xe(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=ug(t)),Ur(r)&&useEffect(function(){return r.subscribe(t)},[r]);}),exit:Xe(function(e){var t=e.custom,r=e.visualElement,n=H(ua(),2),o=n[0],i=n[1],a=useContext(It);useEffect(function(){var s,l;r.isPresent=o;var u=(s=r.animationState)===null||s===void 0?void 0:s.setActive(K.Exit,!o,{custom:(l=a?.custom)!==null&&l!==void 0?l:t});!o&&u?.then(i);},[o]);})};});function _u(e,t){return t?{point:t(e.point)}:e}function dg(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Mu(e,t){var r=e.point;return {point:r,delta:dg(r,mg(t)),offset:dg(r,_P(t)),velocity:MP(t,.1)}}function _P(e){return e[0]}function mg(e){return e[e.length-1]}function MP(e,t){if(e.length<2)return {x:0,y:0};for(var r=e.length-1,n=null,o=mg(e);r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Yr(t)));)r--;if(!n)return {x:0,y:0};var i=(o.timestamp-n.timestamp)/1e3;if(i===0)return {x:0,y:0};var a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var ga,Du=v(()=>{V();Wi();Ui();Ut();xu();zr();Ae();ga=function(){function e(t,r,n){var o=this,i=n===void 0?{}:n,a=i.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var p=Mu(o.lastMoveEventInfo,o.history),d=o.startEvent!==null,m=io(p.offset,{x:0,y:0})>=3;if(!(!d&&!m)){var h=p.point,g=lr().timestamp;o.history.push(S(S({},h),{timestamp:g}));var b=o.handlers,y=b.onStart,x=b.onMove;d||(y&&y(o.lastMoveEvent,p),o.startEvent=o.lastMoveEvent),x&&x(o.lastMoveEvent,p);}}},this.handlePointerMove=function(p,d){if(o.lastMoveEvent=p,o.lastMoveEventInfo=_u(d,o.transformPagePoint),ji(p)&&p.buttons===0){o.handlePointerUp(p,d);return}we.update(o.updatePoint,!0);},this.handlePointerUp=function(p,d){o.end();var m=o.handlers,h=m.onEnd,g=m.onSessionEnd,b=Mu(_u(d,o.transformPagePoint),o.history);o.startEvent&&h&&h(p,b),g&&g(p,b);},!(Bi(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=a;var s=Gn(t),l=_u(s,this.transformPagePoint),u=l.point,c=lr().timestamp;this.history=[S(S({},u),{timestamp:c})];var f=r.onSessionStart;f&&f(t,Mu(l,this.history)),this.removeListeners=Pt(Ct(window,"pointermove",this.handlePointerMove),Ct(window,"pointerup",this.handlePointerUp),Ct(window,"pointercancel",this.handlePointerUp));}}return e.prototype.updateHandlers=function(t){this.handlers=t;},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),nt.update(this.updatePoint);},e}();});function Fe(e){return e.max-e.min}function hg(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),io(e,t)<r}function vg(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=G(t.min,t.max,e.origin),e.scale=Fe(r)/Fe(t),(hg(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=G(r.min,r.max,e.origin)-e.originPoint,(hg(e.translate)||isNaN(e.translate))&&(e.translate=0);}function tn(e,t,r,n){vg(e.x,t.x,r.x,n?.originX),vg(e.y,t.y,r.y,n?.originY);}function gg(e,t,r){e.min=r.min+t.min,e.max=e.min+Fe(t);}function bg(e,t,r){gg(e.x,t.x,r.x),gg(e.y,t.y,r.y);}function yg(e,t,r){e.min=t.min-r.min,e.max=e.min+Fe(t);}function rn(e,t,r){yg(e.x,t.x,r.x),yg(e.y,t.y,r.y);}var ya=v(()=>{Ae();});function Eg(e,t,r){var n=t.min,o=t.max;return n!==void 0&&e<n?e=r?G(n,e,r.min):Math.max(e,n):o!==void 0&&e>o&&(e=r?G(o,e,r.max):Math.min(e,o)),e}function xg(e,t,r){return {min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Pg(e,t){var r=t.top,n=t.left,o=t.bottom,i=t.right;return {x:xg(e.x,n,i),y:xg(e.y,r,o)}}function Sg(e,t){var r,n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=H([o,n],2),n=r[0],o=r[1]),{min:n,max:o}}function Tg(e,t){return {x:Sg(e.x,t.x),y:Sg(e.y,t.y)}}function Og(e,t){var r=.5,n=Fe(e),o=Fe(t);return o>n?r=Et(t.min,t.max-n,e.min):n>o&&(r=Et(e.min,e.max-o,t.min)),Wt(0,1,r)}function Ag(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}function $g(e){return e===void 0&&(e=ba),e===!1?e=0:e===!0&&(e=ba),{x:wg(e,"left","right"),y:wg(e,"top","bottom")}}function wg(e,t,r){return {min:Cg(e,t),max:Cg(e,r)}}function Cg(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}var ba,Rg=v(()=>{V();Ae();ya();ba=.35;});var _g,nn,Mg,me,Lu=v(()=>{_g=function(){return {translate:0,scale:1,origin:0,originPoint:0}},nn=function(){return {x:_g(),y:_g()}},Mg=function(){return {min:0,max:0}},me=function(){return {x:Mg(),y:Mg()}};});function je(e){return [e("x"),e("y")]}var Iu=v(()=>{});function xa(e){var t=e.top,r=e.left,n=e.right,o=e.bottom;return {x:{min:r,max:n},y:{min:t,max:o}}}function Dg(e){var t=e.x,r=e.y;return {top:r.min,right:t.max,bottom:r.max,left:t.min}}function Lg(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return {top:r.y,left:r.x,bottom:n.y,right:n.x}}var ku=v(()=>{});function Nu(e){return e===void 0||e===1}function Vu(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return !Nu(t)||!Nu(r)||!Nu(n)}function it(e){return Vu(e)||Ig(e.x)||Ig(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Ig(e){return e&&e!=="0%"}var Fu=v(()=>{});function uo(e,t,r){var n=e-r,o=t*n;return r+o}function kg(e,t,r,n,o){return o!==void 0&&(e=uo(e,o,n)),uo(e,r,n)+t}function ju(e,t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=1),e.min=kg(e.min,t,r,n,o),e.max=kg(e.max,t,r,n,o);}function Bu(e,t){var r=t.x,n=t.y;ju(e.x,r.translate,r.scale,r.originPoint),ju(e.y,n.translate,n.scale,n.originPoint);}function Vg(e,t,r,n){var o,i;n===void 0&&(n=!1);var a=r.length;if(a){t.x=t.y=1;for(var s,l,u=0;u<a;u++)s=r[u],l=s.projectionDelta,((i=(o=s.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&fr(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Bu(e,l)),n&&it(s.latestValues)&&fr(e,s.latestValues));}}function at(e,t){e.min=e.min+t,e.max=e.max+t;}function Ng(e,t,r){var n=H(r,3),o=n[0],i=n[1],a=n[2],s=t[a]!==void 0?t[a]:.5,l=G(e.min,e.max,s);ju(e,t[o],t[i],l,t.scale);}function fr(e,t){Ng(e.x,t,DP),Ng(e.y,t,LP);}var DP,LP,Sa=v(()=>{V();Ae();Fu();DP=["x","scaleX","originX"],LP=["y","scaleY","originY"];});function Wu(e,t){return xa(Lg(e.getBoundingClientRect(),t))}function Fg(e,t,r){var n=Wu(e,r),o=t.scroll;return o&&(at(n.x,o.x),at(n.y,o.y)),n}var Uu=v(()=>{ku();Sa();});function wa(e,t,r){return (t===!0||t===e)&&(r===null||r===e)}function kP(e,t){t===void 0&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var IP,jg,Bg=v(()=>{V();Ke();Du();zi();si();zr();Rg();Bt();Lu();Iu();Uu();Ui();so();ku();zn();Ae();le();ya();IP=new WeakMap,jg=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=me(),this.visualElement=t;}return e.prototype.start=function(t,r){var n=this,o=r===void 0?{}:r,i=o.snapToCursor,a=i===void 0?!1:i;if(this.visualElement.isPresent!==!1){var s=function(f){n.stopAnimation(),a&&n.snapToCursor(Gn(f,"page").point);},l=function(f,p){var d,m=n.getProps(),h=m.drag,g=m.dragPropagation,b=m.onDragStart;h&&!g&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Fl(h),!n.openGlobalLock)||(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),je(function(y){var x,w,C=n.getAxisMotionValue(y).get()||0;if(Se.test(C)){var P=(w=(x=n.visualElement.projection)===null||x===void 0?void 0:x.layout)===null||w===void 0?void 0:w.actual[y];if(P){var D=Fe(P);C=D*(parseFloat(C)/100);}}n.originPoint[y]=C;}),b?.(f,p),(d=n.visualElement.animationState)===null||d===void 0||d.setActive(K.Drag,!0));},u=function(f,p){var d=n.getProps(),m=d.dragPropagation,h=d.dragDirectionLock,g=d.onDirectionLock,b=d.onDrag;if(!(!m&&!n.openGlobalLock)){var y=p.offset;if(h&&n.currentDirection===null){n.currentDirection=kP(y),n.currentDirection!==null&&g?.(n.currentDirection);return}n.updateAxis("x",p.point,y),n.updateAxis("y",p.point,y),n.visualElement.syncRender(),b?.(f,p);}},c=function(f,p){return n.stop(f,p)};this.panSession=new ga(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()});}},e.prototype.stop=function(t,r){var n=this.isDragging;if(this.cancel(),!!n){var o=r.velocity;this.startAnimation(o);var i=this.getProps().onDragEnd;i?.(t,r);}},e.prototype.cancel=function(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var n=this.getProps().dragPropagation;!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(K.Drag,!1);},e.prototype.updateAxis=function(t,r,n){var o=this.getProps().drag;if(!(!n||!wa(t,o,this.currentDirection))){var i=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=Eg(a,this.constraints[t],this.elastic[t])),i.set(a);}},e.prototype.resolveConstraints=function(){var t=this,r=this.getProps(),n=r.dragConstraints,o=r.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&>(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Pg(i.actual,n):this.constraints=!1,this.elastic=$g(o),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&je(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=Ag(i.actual[s],t.constraints[s]));});},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),r=t.dragConstraints,n=t.onMeasureDragConstraints;if(!r||!gt(r))return !1;var o=r.current;de(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return !1;var a=Fg(o,i.root,this.visualElement.getTransformPagePoint()),s=Tg(i.layout.actual,a);if(n){var l=n(Dg(s));this.hasMutatedConstraints=!!l,l&&(s=xa(l));}return s},e.prototype.startAnimation=function(t){var r=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,l=n.dragSnapToOrigin,u=n.onDragTransitionEnd,c=this.constraints||{},f=je(function(p){var d;if(wa(p,o,r.currentDirection)){var m=(d=c?.[p])!==null&&d!==void 0?d:{};l&&(m={min:0,max:0});var h=a?200:1e6,g=a?40:1e7,b=S(S({type:"inertia",velocity:i?t[p]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10},s),m);return r.startAxisValueAnimation(p,b)}});return Promise.all(f).then(u)},e.prototype.startAxisValueAnimation=function(t,r){var n=this.getAxisMotionValue(t);return Zr(t,n,0,r)},e.prototype.stopAnimation=function(){var t=this;je(function(r){return t.getAxisMotionValue(r).stop()});},e.prototype.getAxisMotionValue=function(t){var r,n,o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)},e.prototype.snapToCursor=function(t){var r=this;je(function(n){var o=r.getProps().drag;if(wa(n,o,r.currentDirection)){var i=r.visualElement.projection,a=r.getAxisMotionValue(n);if(i&&i.layout){var s=i.layout.actual[n],l=s.min,u=s.max;a.set(t[n]-G(l,u,.5));}}});},e.prototype.scalePositionWithinConstraints=function(){var t=this,r,n=this.getProps(),o=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(!(!gt(i)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};je(function(u){var c=t.getAxisMotionValue(u);if(c){var f=c.get();s[u]=Og({min:f,max:f},t.constraints[u]);}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout(),this.resolveConstraints(),je(function(u){if(wa(u,o,null)){var c=t.getAxisMotionValue(u),f=t.constraints[u],p=f.min,d=f.max;c.set(G(p,d,s[u]));}});}},e.prototype.addListeners=function(){var t=this,r;IP.set(this.visualElement,this);var n=this.visualElement.getInstance(),o=Ct(n,"pointerdown",function(u){var c=t.getProps(),f=c.drag,p=c.dragListener,d=p===void 0?!0:p;f&&d&&t.start(u);}),i=function(){var u=t.getProps().dragConstraints;gt(u)&&(t.constraints=t.resolveRefConstraints());},a=this.visualElement.projection,s=a.addEventListener("measure",i);a&&!a.layout&&((r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout()),i();var l=ir(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(u){var c=u.delta,f=u.hasLayoutChanged;t.isDragging&&f&&(je(function(p){var d=t.getAxisMotionValue(p);d&&(t.originPoint[p]+=c[p].translate,d.set(d.get()+c[p].translate));}),t.visualElement.syncRender());}),function(){l(),o(),s();}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),r=t.drag,n=r===void 0?!1:r,o=t.dragDirectionLock,i=o===void 0?!1:o,a=t.dragPropagation,s=a===void 0?!1:a,l=t.dragConstraints,u=l===void 0?!1:l,c=t.dragElastic,f=c===void 0?ba:c,p=t.dragMomentum,d=p===void 0?!0:p;return S(S({},t),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:f,dragMomentum:d})},e}();});function Ug(e){var t=e.dragControls,r=e.visualElement,n=kt(function(){return new jg(r)});useEffect(function(){return t&&t.subscribe(n)},[n,t]),useEffect(function(){return n.addListeners()},[n]);}var Hg=v(()=>{Bg();Fn();});function zg(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||r||n||o,s=useRef(null),l=useContext(_r).transformPagePoint,u={onSessionStart:o,onStart:r,onMove:t,onEnd:function(f,p){s.current=null,n&&n(f,p);}};useEffect(function(){s.current!==null&&s.current.updateHandlers(u);});function c(f){s.current=new ga(f,u,{transformPagePoint:l});}ar(i,"pointerdown",a&&c),Gi(function(){return s.current&&s.current.end()});}var Gg=v(()=>{ai();Bl();zr();Du();});var qg,Kg=v(()=>{Hg();Gg();la();qg={pan:Xe(zg),drag:Xe(Ug)};});function Yg(){var e=Ca.map(function(){return new Ht}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){Ca.forEach(function(o){var i,a="on"+o,s=n[a];(i=t[o])===null||i===void 0||i.call(t),s&&(t[o]=r[a](s));});}};return e.forEach(function(n,o){r["on"+Ca[o]]=function(i){return n.add(i)},r["notify"+Ca[o]]=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return n.notify.apply(n,ce([],H(i),!1))};}),r}var Ca,Xg=v(()=>{V();ma();Ca=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];});function Zg(e,t,r){var n;for(var o in t){var i=t[o],a=r[o];if(xe(i))e.addValue(o,i);else if(xe(a))e.addValue(o,ot(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i);}else e.addValue(o,ot((n=e.getStaticValue(o))!==null&&n!==void 0?n:i));}for(var o in r)t[o]===void 0&&e.removeValue(o);return t}var Qg=v(()=>{lo();Vt();});var Ea,Jg,jP,Hu=v(()=>{V();Ut();lo();Vt();Ru();Xg();Qg();or();Ea=function(e){var t=e.treeType,r=t===void 0?"":t,n=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(p,d){var m=p.parent,h=p.props,g=p.presenceId,b=p.blockInitialAnimation,y=p.visualState,x=p.shouldReduceMotion;d===void 0&&(d={});var w=!1,C=y.latestValues,P=y.renderState,D,_=Yg(),L=new Map,B=new Map,Y={},ee=S({},C),J;function se(){!D||!w||($e(),s(D,P,h.style,X.projection));}function $e(){n(X,P,C,d,h);}function Ze(){_.notifyUpdate(C);}function Pe(R,N){var Ce=N.onChange(function(po){C[R]=po,h.onUpdate&&we.update(Ze,!1,!0);}),sn=N.onRenderRequest(X.scheduleRender);B.set(R,function(){Ce(),sn();});}var Tt=f(h);for(var Re in Tt){var mr=Tt[Re];C[Re]!==void 0&&xe(mr)&&mr.set(C[Re],!1);}var Ot=nr(h),he=li(h),X=S(S({treeType:r,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,presenceId:g,shouldReduceMotion:x,variantChildren:he?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!m?.isMounted(),blockInitialAnimation:b,isMounted:function(){return !!D},mount:function(R){w=!0,D=X.current=R,X.projection&&X.projection.mount(R),he&&m&&!Ot&&(J=m?.addVariantChild(X)),L.forEach(function(N,Ce){return Pe(Ce,N)}),m?.children.add(X),X.setProps(h);},unmount:function(){var R;(R=X.projection)===null||R===void 0||R.unmount(),nt.update(Ze),nt.render(se),B.forEach(function(N){return N()}),J?.(),m?.children.delete(X),_.clearAllListeners(),D=void 0,w=!1;},addVariantChild:function(R){var N,Ce=X.getClosestVariantNode();if(Ce)return (N=Ce.variantChildren)===null||N===void 0||N.add(R),function(){return Ce.variantChildren.delete(R)}},sortNodePosition:function(R){return !c||r!==R.treeType?0:c(X.getInstance(),R.getInstance())},getClosestVariantNode:function(){return he?X:m?.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return D},getStaticValue:function(R){return C[R]},setStaticValue:function(R,N){return C[R]=N},getLatestValues:function(){return C},setVisibility:function(R){X.isVisible!==R&&(X.isVisible=R,X.scheduleRender());},makeTargetAnimatable:function(R,N){return N===void 0&&(N=!0),i(X,R,h,N)},measureViewportBox:function(){return a(D,h)},addValue:function(R,N){X.hasValue(R)&&X.removeValue(R),L.set(R,N),C[R]=N.get(),Pe(R,N);},removeValue:function(R){var N;L.delete(R),(N=B.get(R))===null||N===void 0||N(),B.delete(R),delete C[R],u(R,P);},hasValue:function(R){return L.has(R)},getValue:function(R,N){var Ce=L.get(R);return Ce===void 0&&N!==void 0&&(Ce=ot(N),X.addValue(R,Ce)),Ce},forEachValue:function(R){return L.forEach(R)},readValue:function(R){var N;return (N=C[R])!==null&&N!==void 0?N:l(D,R,d)},setBaseTarget:function(R,N){ee[R]=N;},getBaseTarget:function(R){if(o){var N=o(h,R);if(N!==void 0&&!xe(N))return N}return ee[R]}},_),{build:function(){return $e(),P},scheduleRender:function(){we.render(se,!1,!0);},syncRender:se,setProps:function(R){(R.transformTemplate||h.transformTemplate)&&X.scheduleRender(),h=R,_.updatePropListeners(R),Y=Zg(X,f(h),Y);},getProps:function(){return h},getVariant:function(R){var N;return (N=h.variants)===null||N===void 0?void 0:N[R]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(R){if(R===void 0&&(R=!1),R)return m?.getVariantContext();if(!Ot){var N=m?.getVariantContext()||{};return h.initial!==void 0&&(N.initial=h.initial),N}for(var Ce={},sn=0;sn<jP;sn++){var po=Jg[sn],_a=h[po];(Oe(_a)||_a===!1)&&(Ce[po]=_a);}return Ce}});return X}},Jg=ce(["initial"],H(va),!1),jP=Jg.length;});function zu(e){return typeof e=="string"&&e.startsWith("var(--")}function BP(e){var t=qu.exec(e);if(!t)return [,];var r=H(t,3),n=r[1],o=r[2];return [n,o]}function Gu(e,t,r){r===void 0&&(r=1),de(r<=WP,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=H(BP(e),2),o=n[0],i=n[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():zu(i)?Gu(i,t,r+1):i}}function ey(e,t,r){var n,o=Q(t,[]),i=e.getInstance();if(!(i instanceof Element))return {target:o,transitionEnd:r};r&&(r=S({},r)),e.forEachValue(function(u){var c=u.get();if(zu(c)){var f=Gu(c,i);f&&u.set(f);}});for(var a in o){var s=o[a];if(zu(s)){var l=Gu(s,i);l&&(o[a]=l,r&&((n=r[a])!==null&&n!==void 0||(r[a]=s)));}}return {target:o,transitionEnd:r}}var qu,WP,Ku=v(()=>{V();Ke();qu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;WP=4;});function qP(e){var t=[];return GP.forEach(function(r){var n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0));}),t.length&&e.syncRender(),t}function sy(e,t,r,n){return HP(t)?YP(e,t,r,n):{target:t,transitionEnd:n}}var UP,iy,HP,ay,Pa,ty,ry,ny,zP,GP,oy,KP,YP,ly=v(()=>{V();le();Un();Ke();yt();Ou();UP=new Set(["width","height","top","left","right","bottom","x","y"]),iy=function(e){return UP.has(e)},HP=function(e){return Object.keys(e).some(iy)},ay=function(e,t){e.set(t,!1),e.set(t);},Pa=function(e){return e===Le||e===I};(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom";})(ty||(ty={}));ry=function(e,t){return parseFloat(e.split(", ")[t])},ny=function(e,t){return function(r,n){var o=n.transform;if(o==="none"||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return ry(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?ry(a[1],e):0}},zP=new Set(["x","y","z"]),GP=Lr.filter(function(e){return !zP.has(e)});oy={width:function(e,t){var r=e.x,n=t.paddingLeft,o=n===void 0?"0":n,i=t.paddingRight,a=i===void 0?"0":i;return r.max-r.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,o=n===void 0?"0":n,i=t.paddingBottom,a=i===void 0?"0":i;return r.max-r.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:ny(4,13),y:ny(5,14)},KP=function(e,t,r){var n=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(function(u){s[u]=oy[u](n,i);}),t.syncRender();var l=t.measureViewportBox();return r.forEach(function(u){var c=t.getValue(u);ay(c,s[u]),e[u]=oy[u](l,i);}),e},YP=function(e,t,r,n){r===void 0&&(r={}),n===void 0&&(n={}),t=S({},t),n=S({},n);var o=Object.keys(t).filter(iy),i=[],a=!1,s=[];if(o.forEach(function(c){var f=e.getValue(c);if(e.hasValue(c)){var p=r[c],d=en(p),m=t[c],h;if(wt(m)){var g=m.length,b=m[0]===null?1:0;p=m[b],d=en(p);for(var y=b;y<g;y++)h?de(en(m[y])===h,"All keyframes must be of the same type"):(h=en(m[y]),de(h===d||Pa(d)&&Pa(h),"Keyframes must be of the same dimension as the current value"));}else h=en(m);if(d!==h)if(Pa(d)&&Pa(h)){var x=f.get();typeof x=="string"&&f.set(parseFloat(x)),typeof m=="string"?t[c]=parseFloat(m):Array.isArray(m)&&h===I&&(t[c]=m.map(parseFloat));}else d?.transform&&h?.transform&&(p===0||m===0)?p===0?f.set(h.transform(p)):t[c]=d.transform(m):(a||(i=qP(e),a=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],ay(f,m));}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=KP(t,e,s);return i.length&&i.forEach(function(c){var f=H(c,2),p=f[0],d=f[1];e.getValue(p).set(d);}),e.syncRender(),l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return {target:t,transitionEnd:n}};});var uy,cy=v(()=>{Ku();ly();uy=function(e,t,r,n){var o=ey(e,t,n);return t=o.target,n=o.transitionEnd,sy(e,t,r,n)};});function XP(e){return window.getComputedStyle(e)}var Yu,fy,Xu=v(()=>{V();Hu();Au();Ti();yl();cy();yt();Li();Ml();fa();Uu();Yu={treeType:"dom",readValueFromInstance:function(e,t){if(tt(t)){var r=Xr(t);return r&&r.default||0}else {var n=XP(e);return (gi(t)?n.getPropertyValue(t):n[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var r;return (r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox:function(e,t){var r=t.transformPagePoint;return Wu(e,r)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender();},restoreTransform:function(e,t){e.style.transform=t.style.transform;},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e];},makeTargetAnimatable:function(e,t,r,n){var o=r.transformValues;n===void 0&&(n=!0);var i=t.transition,a=t.transitionEnd,s=Q(t,["transition","transitionEnd"]),l=ig(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),n){og(e,s,l);var u=uy(e,s,l,a);a=u.transitionEnd,s=u.target;}return S({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Wr,build:function(e,t,r,n,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Fr(t,r,n,o.transformTemplate);},render:_i},fy=Ea(Yu);});var py,dy=v(()=>{V();Hu();Il();Xu();Ai();_l();Dl();yt();Ll();fa();py=Ea(S(S({},Yu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return tt(t)?((r=Xr(t))===null||r===void 0?void 0:r.default)||0:(t=Mi.has(t)?t:Ri(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ii,build:function(e,t,r,n,o){Br(t,r,n,o.transformTemplate);},render:Di}));});var my,hy=v(()=>{Xu();dy();pi();my=function(e,t){return Mr(e)?py(t,{enableHardwareAcceleration:!1}):fy(t,{enableHardwareAcceleration:!0})};});function vy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var on,gy=v(()=>{le();on={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;var r=vy(e,t.target.x),n=vy(e,t.target.y);return "".concat(r,"% ").concat(n,"%")}};});var yy,by,xy=v(()=>{Ae();le();Ku();yy="_$css",by={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(qu,function(h){return a.push(h),yy}));var s=ge.parse(e);if(s.length>5)return o;var l=ge.createTransformer(e),u=typeof s[0]!="number"?1:0,c=n.x.scale*r.x,f=n.y.scale*r.y;s[0+u]/=c,s[1+u]/=f;var p=G(c,f,.5);typeof s[2+u]=="number"&&(s[2+u]/=p),typeof s[3+u]=="number"&&(s[3+u]/=p);var d=l(s);if(i){var m=0;d=d.replace(yy,function(){var h=a[m];return m++,h});}return d}};});function Cy(e){var t=H(ua(),2),r=t[0],n=t[1],o=useContext(ci);return O__default.createElement(ZP,S({},e,{layoutGroup:o,switchLayoutGroup:useContext(fi),isPresent:r,safeToRemove:n}))}var ZP,QP,Ey=v(()=>{V();Ut();yu();ml();hl();ui();gy();xy();di();ZP=function(e){Yo(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,l=o.projection;Im(QP),l&&(i?.group&&i.group.add(l),a?.register&&s&&a.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){r.safeToRemove();}),l.setOptions(S(S({},l.options),{onExitComplete:function(){return r.safeToRemove()}}))),Nt.hasEverUpdated=!0;},t.prototype.getSnapshotBeforeUpdate=function(r){var n=this,o=this.props,i=o.layoutDependency,a=o.visualElement,s=o.drag,l=o.isPresent,u=a.projection;return u&&(u.isPresent=l,s||r.layoutDependency!==i||i===void 0?u.willUpdate():this.safeToRemove(),r.isPresent!==l&&(l?u.promote():u.relegate()||we.postRender(function(){var c;!((c=u.getStack())===null||c===void 0)&&c.members.length||n.safeToRemove();}))),null},t.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove());},t.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,o=r.layoutGroup,i=r.switchLayoutGroup,a=n.projection;a&&(a.scheduleCheckAfterUnmount(),o?.group&&o.group.remove(a),i?.deregister&&i.deregister(a));},t.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r?.();},t.prototype.render=function(){return null},t}(O__default.Component);QP={borderRadius:S(S({},on),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:by};});var Py,Ty=v(()=>{Ey();Py={measureLayout:Cy};});function Oy(e,t,r){r===void 0&&(r={});var n=xe(e)?e:ot(e);return Zr("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var Ay=v(()=>{lo();Vt();so();});function Dy(e,t,r,n,o,i){var a,s,l,u;o?(e.opacity=G(0,(a=r.opacity)!==null&&a!==void 0?a:1,eT(n)),e.opacityExit=G((s=t.opacity)!==null&&s!==void 0?s:1,0,tT(n))):i&&(e.opacity=G((l=t.opacity)!==null&&l!==void 0?l:1,(u=r.opacity)!==null&&u!==void 0?u:1,n));for(var c=0;c<JP;c++){var f="border".concat(My[c],"Radius"),p=_y(t,f),d=_y(r,f);if(!(p===void 0&&d===void 0)){p||(p=0),d||(d=0);var m=p===0||d===0||Ry(p)===Ry(d);m?(e[f]=Math.max(G($y(p),$y(d),n),0),(Se.test(d)||Se.test(p))&&(e[f]+="%")):e[f]=d;}}(t.rotate||r.rotate)&&(e.rotate=G(t.rotate||0,r.rotate||0,n));}function _y(e,t){var r;return (r=e[t])!==null&&r!==void 0?r:e.borderRadius}function Ly(e,t,r){return function(n){return n<e?0:n>t?1:r(Et(e,t,n))}}var My,JP,$y,Ry,eT,tT,Iy=v(()=>{Ae();le();My=["TopLeft","TopRight","BottomLeft","BottomRight"],JP=My.length,$y=function(e){return typeof e=="string"?parseFloat(e):e},Ry=function(e){return typeof e=="number"||I.test(e)};eT=Ly(0,.5,qr),tT=Ly(.5,.95,sr);});function ky(e,t){e.min=t.min,e.max=t.max;}function Be(e,t){ky(e.x,t.x),ky(e.y,t.y);}var Ny=v(()=>{});function Vy(e,t,r,n,o){return e-=t,e=uo(e,1/r,n),o!==void 0&&(e=uo(e,1/o,n)),e}function rT(e,t,r,n,o,i,a){if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5),i===void 0&&(i=e),a===void 0&&(a=e),Se.test(t)){t=parseFloat(t);var s=G(a.min,a.max,t/100);t=s-a.min;}if(typeof t=="number"){var l=G(i.min,i.max,n);e===i&&(l-=t),e.min=Vy(e.min,t,r,l,o),e.max=Vy(e.max,t,r,l,o);}}function Fy(e,t,r,n,o){var i=H(r,3),a=i[0],s=i[1],l=i[2];rT(e,t[a],t[s],t[l],t.scale,n,o);}function Zu(e,t,r,n){Fy(e.x,t,nT,r?.x,n?.x),Fy(e.y,t,oT,r?.y,n?.y);}var nT,oT,jy=v(()=>{V();Ae();le();Sa();nT=["x","scaleX","originX"],oT=["y","scaleY","originY"];});function By(e){return e.translate===0&&e.scale===1}function Qu(e){return By(e.x)&&By(e.y)}function Ju(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Wy=v(()=>{});var Uy,Hy=v(()=>{da();Uy=function(){function e(){this.members=[];}return e.prototype.add=function(t){Qr(this.members,t),t.scheduleRender();},e.prototype.remove=function(t){if(Jr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var r=this.members[this.members.length-1];r&&this.promote(r);}},e.prototype.relegate=function(t){var r=this.members.findIndex(function(a){return t===a});if(r===0)return !1;for(var n,o=r;o>=0;o--){var i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1},e.prototype.promote=function(t,r){var n,o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var i=t.options.crossfade;i===!1&&o.hide();}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var r,n,o,i,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||a===void 0||a.call(i);});},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1);});},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);},e}();});function ec(e,t,r){var n=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(n,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,l=r.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "));}var u=e.x.scale*t.x,c=e.y.scale*t.y;return i+="scale(".concat(u,", ").concat(c,")"),i===iT?"none":i}var iT,zy=v(()=>{iT="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";});var Gy,qy=v(()=>{Gy=function(e,t){return e.depth-t.depth};});var Ky,Yy=v(()=>{da();qy();Ky=function(){function e(){this.children=[],this.isDirty=!1;}return e.prototype.add=function(t){Qr(this.children,t),this.isDirty=!0;},e.prototype.remove=function(t){Jr(this.children,t),this.isDirty=!0;},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Gy),this.isDirty=!1,this.children.forEach(t);},e}();});function Ta(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function a(s,l,u){var c=this;l===void 0&&(l={}),u===void 0&&(u=r?.()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){c.isUpdating&&(c.isUpdating=!1,c.clearAllSnapshots());},this.updateProjection=function(){c.nodes.forEach(fT),c.nodes.forEach(pT);},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?ce(ce([],H(u.path),!1),[u],!1):[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ky);}return a.prototype.addEventListener=function(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ht),this.eventHandlers.get(s).add(l)},a.prototype.notifyListeners=function(s){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var c=this.eventHandlers.get(s);c?.notify.apply(c,ce([],H(l),!1));},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,l){this.potentialNodes.set(s,l);},a.prototype.mount=function(s,l){var u=this,c;if(l===void 0&&(l=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var f=this.options,p=f.layoutId,d=f.layout,m=f.visualElement;if(m&&!m.getInstance()&&m.mount(s),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),l&&(d||p)&&(this.isLayoutDirty=!0),t){var h,g=function(){return u.root.updateBlockedByResize=!1};t(s,function(){u.root.updateBlockedByResize=!0,clearTimeout(h),h=window.setTimeout(g,250),Nt.hasAnimatedSinceResize&&(Nt.hasAnimatedSinceResize=!1,u.nodes.forEach(cT));});}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||d)&&this.addEventListener("didUpdate",function(b){var y,x,w,C,P,D=b.delta,_=b.hasLayoutChanged,L=b.hasRelativeTargetChanged,B=b.layout;if(u.isTreeAnimationBlocked()){u.target=void 0,u.relativeTarget=void 0;return}var Y=(x=(y=u.options.transition)!==null&&y!==void 0?y:m.getDefaultTransition())!==null&&x!==void 0?x:gT,ee=m.getProps(),J=ee.onLayoutAnimationStart,se=ee.onLayoutAnimationComplete,$e=!u.targetLayout||!Ju(u.targetLayout,B)||L,Ze=!_&&L;if(!((w=u.resumeFrom)===null||w===void 0)&&w.instance||Ze||_&&($e||!u.currentAnimation)){u.resumeFrom&&(u.resumingFrom=u.resumeFrom,u.resumingFrom.resumingFrom=void 0),u.setAnimationOrigin(D,Ze);var Pe=S(S({},pa(Y,"layout")),{onPlay:J,onComplete:se});m.shouldReduceMotion&&(Pe.delay=0,Pe.type=!1),u.startAnimation(Pe);}else !_&&u.animationProgress===0&&u.finishAnimation(),u.isLead()&&((P=(C=u.options).onExitComplete)===null||P===void 0||P.call(C));u.targetLayout=B;});}},a.prototype.unmount=function(){var s,l;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(l=this.parent)===null||l===void 0||l.children.delete(this),this.instance=void 0,nt.preRender(this.updateProjection);},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0;},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1;},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(dT));},a.prototype.willUpdate=function(s){var l,u,c;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(u=(l=this.options).onExitComplete)===null||u===void 0||u.call(l);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var f=0;f<this.path.length;f++){var p=this.path[f];p.shouldResetTransform=!0,p.updateScroll();}var d=this.options,m=d.layoutId,h=d.layout;if(!(m===void 0&&!h)){var g=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=g?.(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate");}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zy);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(yT),this.potentialNodes.clear()),this.nodes.forEach(uT),this.nodes.forEach(aT),this.nodes.forEach(sT),this.clearAllSnapshots(),na.update(),na.preRender(),na.render());},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(lT),this.sharedNodes.forEach(mT);},a.prototype.scheduleUpdateProjection=function(){we.preRender(this.updateProjection,!1,!0);},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;we.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed();});},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),l=this.removeTransform(this.removeElementScroll(s));t0(l),this.snapshot={measured:s,layout:l,latestValues:{}};}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var l=0;l<this.path.length;l++){var u=this.path[l];u.updateScroll();}var c=this.measure();t0(c);var f=this.layout;this.layout={measured:c,actual:this.removeElementScroll(c)},this.layoutCorrected=me(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,f?.actual);}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=n(this.instance));},a.prototype.resetTransform=function(){var s;if(i){var l=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!Qu(this.projectionDelta),c=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,f=c?.(this.latestValues,""),p=f!==this.prevTransformTemplateValue;l&&(u||it(this.latestValues)||p)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender());}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return me();var l=s.measureViewportBox(),u=this.root.scroll;return u&&(at(l.x,u.x),at(l.y,u.y)),l},a.prototype.removeElementScroll=function(s){var l=me();Be(l,s);for(var u=0;u<this.path.length;u++){var c=this.path[u],f=c.scroll,p=c.options,d=c.isScrollRoot;if(c!==this.root&&f&&p.layoutScroll){if(d){Be(l,s);var m=this.root.scroll;m&&(at(l.x,-m.x),at(l.y,-m.y));}at(l.x,f.x),at(l.y,f.y);}}return l},a.prototype.applyTransform=function(s,l){l===void 0&&(l=!1);var u=me();Be(u,s);for(var c=0;c<this.path.length;c++){var f=this.path[c];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&fr(u,{x:-f.scroll.x,y:-f.scroll.y}),it(f.latestValues)&&fr(u,f.latestValues);}return it(this.latestValues)&&fr(u,this.latestValues),u},a.prototype.removeTransform=function(s){var l,u=me();Be(u,s);for(var c=0;c<this.path.length;c++){var f=this.path[c];if(f.instance&&it(f.latestValues)){Vu(f.latestValues)&&f.updateSnapshot();var p=me(),d=f.measure();Be(p,d),Zu(u,f.latestValues,(l=f.snapshot)===null||l===void 0?void 0:l.layout,p);}}return it(this.latestValues)&&Zu(u,this.latestValues),u},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection();},a.prototype.setOptions=function(s){var l;this.options=S(S(S({},this.options),s),{crossfade:(l=s.crossfade)!==null&&l!==void 0?l:!0});},a.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1;},a.prototype.resolveTargetDelta=function(){var s,l=this.options,u=l.layout,c=l.layoutId;!this.layout||!(u||c)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=me(),this.relativeTargetOrigin=me(),rn(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Be(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=me(),this.targetWithTransforms=me()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?bg(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):Be(this.target,this.layout.actual),Bu(this.target,this.targetDelta)):Be(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=me(),this.relativeTargetOrigin=me(),rn(this.relativeTargetOrigin,this.target,this.relativeParent.target),Be(this.relativeTarget,this.relativeTargetOrigin)))));},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||it(this.parent.latestValues)))return (this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,l=this.options,u=l.layout,c=l.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(u||c))){var f=this.getLead();Be(this.layoutCorrected,this.layout.actual),Vg(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==f);var p=f.target;if(p){this.projectionDelta||(this.projectionDelta=nn(),this.projectionDeltaWithTransform=nn());var d=this.treeScale.x,m=this.treeScale.y,h=this.projectionTransform;tn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=ec(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==d||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p));}}},a.prototype.hide=function(){this.isVisible=!1;},a.prototype.show=function(){this.isVisible=!0;},a.prototype.scheduleRender=function(s){var l,u,c;s===void 0&&(s=!0),(u=(l=this.options).scheduleRender)===null||u===void 0||u.call(l),s&&((c=this.getStack())===null||c===void 0||c.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);},a.prototype.setAnimationOrigin=function(s,l){var u=this,c;l===void 0&&(l=!1);var f=this.snapshot,p=f?.latestValues||{},d=S({},this.latestValues),m=nn();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!l;var h=me(),g=f?.isShared,b=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,y=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(vT));this.animationProgress=0,this.mixTargetDelta=function(x){var w,C=x/1e3;Qy(m.x,s.x,C),Qy(m.y,s.y,C),u.setTargetDelta(m),u.relativeTarget&&u.relativeTargetOrigin&&u.layout&&(!((w=u.relativeParent)===null||w===void 0)&&w.layout)&&(rn(h,u.layout.actual,u.relativeParent.layout.actual),hT(u.relativeTarget,u.relativeTargetOrigin,h,C)),g&&(u.animationValues=d,Dy(d,p,u.latestValues,C,y,b)),u.root.scheduleUpdateProjection(),u.scheduleRender(),u.animationProgress=C;},this.mixTargetDelta(0);},a.prototype.startAnimation=function(s){var l=this,u,c;this.notifyListeners("animationStart"),(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(nt.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=we.update(function(){Nt.hasAnimatedSinceResize=!0,l.currentAnimation=Oy(0,Xy,S(S({},s),{onUpdate:function(f){var p;l.mixTargetDelta(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f);},onComplete:function(){var f;(f=s.onComplete)===null||f===void 0||f.call(s),l.completeAnimation();}})),l.resumingFrom&&(l.resumingFrom.currentAnimation=l.currentAnimation),l.pendingAnimation=void 0;});},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,Xy),this.currentAnimation.stop()),this.completeAnimation();},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),l=s.targetWithTransforms,u=s.target,c=s.layout,f=s.latestValues;!l||!u||!c||(Be(l,u),fr(l,f),tn(this.projectionDeltaWithTransform,this.layoutCorrected,l,f));},a.prototype.registerSharedNode=function(s,l){var u,c,f;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Uy);var p=this.sharedNodes.get(s);p.add(l),l.promote({transition:(u=l.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(f=(c=l.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||f===void 0?void 0:f.call(c,l)});},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,l=this.options.layoutId;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,l=this.options.layoutId;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var l=s===void 0?{}:s,u=l.needsReset,c=l.transition,f=l.preserveFollowOpacity,p=this.getStack();p&&p.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c});},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var l=!1,u={},c=0;c<mi.length;c++){var f=mi[c],p="rotate"+f;s.getStaticValue(p)&&(l=!0,u[p]=s.getStaticValue(p),s.setStaticValue(p,0));}if(l){s?.syncRender();for(var p in u)s.setStaticValue(p,u[p]);s.scheduleRender();}}},a.prototype.getProjectionStyles=function(s){var l,u,c,f,p,d;s===void 0&&(s={});var m={};if(!this.instance||this.isSVG)return m;if(this.isVisible)m.visibility="";else return {visibility:"hidden"};var h=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Hr(s.pointerEvents)||"",m.transform=h?h(this.latestValues,""):"none",m;var g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){var b={};return this.options.layoutId&&(b.opacity=(u=this.latestValues.opacity)!==null&&u!==void 0?u:1,b.pointerEvents=Hr(s.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}var y=g.animationValues||g.latestValues;this.applyTransformsToTarget(),m.transform=ec(this.projectionDeltaWithTransform,this.treeScale,y),h&&(m.transform=h(y,m.transform));var x=this.projectionDelta,w=x.x,C=x.y;m.transformOrigin="".concat(w.origin*100,"% ").concat(C.origin*100,"% 0"),g.animationValues?m.opacity=g===this?(f=(c=y.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:m.opacity=g===this?(p=y.opacity)!==null&&p!==void 0?p:"":(d=y.opacityExit)!==null&&d!==void 0?d:0;for(var P in Dr)if(y[P]!==void 0){var D=Dr[P],_=D.correct,L=D.applyTo,B=_(y[P],g);if(L)for(var Y=L.length,ee=0;ee<Y;ee++)m[L[ee]]=B;else m[P]=B;}return this.options.layoutId&&(m.pointerEvents=g===this?Hr(s.pointerEvents)||"":"none"),m},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0;},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var l;return (l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Zy),this.root.sharedNodes.clear();},a}()}function aT(e){e.updateLayout();}function sT(e){var t,r,n,o,i=(r=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&r!==void 0?r:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;e.options.animationType==="size"?je(function(y){var x=i.isShared?i.measured[y]:i.layout[y],w=Fe(x);x.min=s[y].min,x.max=x.min+w;}):e.options.animationType==="position"&&je(function(y){var x=i.isShared?i.measured[y]:i.layout[y],w=Fe(s[y]);x.max=x.min+w;});var u=nn();tn(u,s,i.layout);var c=nn();i.isShared?tn(c,e.applyTransform(l,!0),i.measured):tn(c,s,i.layout);var f=!Qu(u),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var d=e.relativeParent,m=d.snapshot,h=d.layout;if(m&&h){var g=me();rn(g,i.layout,m.layout);var b=me();rn(b,s,h.actual),Ju(g,b)||(p=!0);}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:p});}else e.isLead()&&((o=(n=e.options).onExitComplete)===null||o===void 0||o.call(n));e.options.transition=void 0;}function lT(e){e.clearSnapshot();}function Zy(e){e.clearMeasurements();}function uT(e){var t=e.options.visualElement;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform();}function cT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0;}function fT(e){e.resolveTargetDelta();}function pT(e){e.calcProjection();}function dT(e){e.resetRotation();}function mT(e){e.removeLeadSnapshot();}function Qy(e,t,r){e.translate=G(t.translate,0,r),e.scale=G(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint;}function Jy(e,t,r,n){e.min=G(t.min,r.min,n),e.max=G(t.max,r.max,n);}function hT(e,t,r,n){Jy(e.x,t.x,r.x,n),Jy(e.y,t.y,r.y,n);}function vT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}function yT(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(e.path[n].instance){r=e.path[n];break}var o=r&&r!==e.root?r.instance:document,i=o.querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0);}function e0(e){e.min=Math.round(e.min),e.max=Math.round(e.max);}function t0(e){e0(e.x),e0(e.y);}var Xy,gT,tc=v(()=>{V();Ut();Ae();Ay();ma();Iy();Ny();Sa();ya();jy();Lu();so();Wy();Hy();di();zy();Iu();Fu();yt();Yy();kl();ui();Xy=1e3;gT={duration:.45,ease:[.4,0,.1,1]};});var r0,n0=v(()=>{tc();zn();r0=Ta({attachResizeListener:function(e,t){return ir(e,"resize",t)},measureScroll:function(){return {x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return !0}});});var rc,o0,i0=v(()=>{tc();n0();rc={current:void 0},o0=Ta({measureScroll:function(e){return {x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!rc.current){var e=new r0(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),rc.current=e;}return rc.current},resetTransform:function(e,t){e.style.transform=t??"none";},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}});});var bT,st,a0=v(()=>{V();Mm();wh();Dv();pg();Kg();hy();Ty();i0();bT=S(S(S(S({},fg),Mv),qg),Py),st=_m(function(e,t){return Sh(e,t,bT,my,o0)});});var Oa=v(()=>{a0();});var s0,l0,u0,c0,f0=v(()=>{Oa();s0=styled(st.div)`
|
|
420
|
+
`;});var sm,am=m(()=>{In();il();Yd();im();sm=({onProceed:e,skipOnboarding:t})=>T__default.createElement("div",{style:{zIndex:10}},T__default.createElement(Qn,{width:540,height:430,defaultOpen:!0},({Close:r})=>T__default.createElement(Kd,{"data-chromatic":"ignore"},T__default.createElement(Xd,null,T__default.createElement(qd,null),T__default.createElement(Zd,null,"Welcome to Storybook"),T__default.createElement(Qd,null,"Storybook helps you develop UI components faster. Learn the basics in a few simple steps."),T__default.createElement(ue,{style:{marginTop:4},onClick:e},"Start your 3 minute tour")),T__default.createElement(Jd,{onClick:t},"Skip tour",T__default.createElement(em,{icon:"arrowright"})),T__default.createElement(tm,null,T__default.createElement(rm,null),T__default.createElement(om,null),T__default.createElement(nm,null)))));});var cm=dt((CM,lm)=>{function al(e,t,r){var o,n,i,s,a;t==null&&(t=100);function l(){var u=Date.now()-s;u<t&&u>=0?o=setTimeout(l,t-u):(o=null,r||(a=e.apply(i,n),i=n=null));}var c=function(){i=this,n=arguments,s=Date.now();var u=r&&!o;return o||(o=setTimeout(l,t)),u&&(a=e.apply(i,n),i=n=null),a};return c.clear=function(){o&&(clearTimeout(o),o=null);},c.flush=function(){o&&(a=e.apply(i,n),i=n=null,clearTimeout(o),o=null);},c}al.debounce=al;lm.exports=al;});function fm(e){let{debounce:t,scroll:r,polyfill:o,offsetSize:n}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e,i=o||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[s,a]=useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),c=t?typeof t=="number"?t:t.scroll:null,u=t?typeof t=="number"?t:t.resize:null,f=useRef(!1);useEffect(()=>(f.current=!0,()=>void(f.current=!1)));let[p,d,g]=useMemo(()=>{let y=()=>{if(!l.current.element)return;let{left:b,top:w,width:C,height:D,bottom:L,right:A,x:k,y:le}=l.current.element.getBoundingClientRect(),G={left:b,top:w,width:C,height:D,bottom:L,right:A,x:k,y:le};l.current.element instanceof HTMLElement&&n&&(G.height=l.current.element.offsetHeight,G.width=l.current.element.offsetWidth),Object.freeze(G),f.current&&!yC(l.current.lastBounds,G)&&a(l.current.lastBounds=G);};return [y,u?(0, ll.default)(y,u):y,c?(0, ll.default)(y,c):y]},[a,n,c,u]);function h(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(y=>y.removeEventListener("scroll",g,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null);}function v(){l.current.element&&(l.current.resizeObserver=new i(g),l.current.resizeObserver.observe(l.current.element),r&&l.current.scrollContainers&&l.current.scrollContainers.forEach(y=>y.addEventListener("scroll",g,{capture:!0,passive:!0})));}let x=y=>{!y||y===l.current.element||(h(),l.current.element=y,l.current.scrollContainers=pm(y),v());};return hC(g,!!r),mC(d),useEffect(()=>{h(),v();},[r,g,d]),useEffect(()=>h,[]),[x,s,p]}function mC(e){useEffect(()=>{let t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e]);}function hC(e,t){useEffect(()=>{if(t){let r=e;return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)}},[e,t]);}function pm(e){let t=[];if(!e||e===document.body)return t;let{overflow:r,overflowX:o,overflowY:n}=window.getComputedStyle(e);return [r,o,n].some(i=>i==="auto"||i==="scroll")&&t.push(e),[...t,...pm(e.parentElement)]}var ll,gC,yC,dm=m(()=>{ll=mt(cm());gC=["x","y","top","bottom","left","right","width","height"],yC=(e,t)=>gC.every(r=>e[r]===t[r]);});var Jn,cl=m(()=>{Jn=createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});});var wt,Bo=m(()=>{wt=createContext({});});var Er,ei=m(()=>{Er=createContext(null);});var St,_o=m(()=>{St=typeof document<"u";});var mm,hm=m(()=>{_o();mm=St?useLayoutEffect:useEffect;});var ti,ul=m(()=>{ti=createContext({strict:!1});});var Or,ri=m(()=>{Or=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();});var PC,oi,fl=m(()=>{ri();PC="framerAppearId",oi="data-"+Or(PC);});var Ar,ni=m(()=>{Ar={skipAnimations:!1,useManualTiming:!1};});function gm(e){let t=new ii,r=new ii,o=0,n=!1,i=!1,s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{let f=u&&n,p=f?t:r;return c&&s.add(l),p.add(l)&&f&&n&&(o=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l);},process:l=>{if(n){i=!0;return}if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let c=0;c<o;c++){let u=t.order[c];s.has(u)&&(a.schedule(u),e()),u(l);}n=!1,i&&(i=!1,a.process(l));}};return a}var ii,ym=m(()=>{ii=class{constructor(){this.order=[],this.scheduled=new Set;}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t));}clear(){this.order.length=0,this.scheduled.clear();}};});function ai(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=si.reduce((f,p)=>(f[p]=gm(()=>r=!0),f),{}),s=f=>{i[f].process(n);},a=()=>{let f=Ar.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(f-n.timestamp,TC),1),n.timestamp=f,n.isProcessing=!0,si.forEach(s),n.isProcessing=!1,r&&t&&(o=!1,e(a));},l=()=>{r=!0,o=!0,n.isProcessing||e(a);};return {schedule:si.reduce((f,p)=>{let d=i[p];return f[p]=(g,h=!1,v=!1)=>(r||l(),d.schedule(g,h,v)),f},{}),cancel:f=>si.forEach(p=>i[p].cancel(f)),state:n,steps:i}}var si,TC,pl=m(()=>{ni();ym();si=["prepare","read","update","preRender","render","postRender"],TC=40;});var $r,YM,li=m(()=>{pl();({schedule:$r,cancel:YM}=ai(queueMicrotask,!1));});function bm(e,t,r,o){let{visualElement:n}=useContext(wt),i=useContext(ti),s=useContext(Er),a=useContext(Jn).reducedMotion,l=useRef();o=o||i.renderer,!l.current&&o&&(l.current=o(e,{visualState:t,parent:n,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let c=l.current;useInsertionEffect(()=>{c&&c.update(r,s);});let u=useRef(!!(r[oi]&&!window.HandoffComplete));return mm(()=>{c&&($r.postRender(c.render),u.current&&c.animationState&&c.animationState.animateChanges());}),useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0));}),c}var xm=m(()=>{ei();Bo();hm();ul();cl();fl();li();});function st(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}var ui=m(()=>{});function wm(e,t,r){return useCallback(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),r&&(typeof r=="function"?r(o):st(r)&&(r.current=o));},[t])}var Sm=m(()=>{ui();});function at(e){return typeof e=="string"||Array.isArray(e)}var Wo=m(()=>{});function Ct(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var Uo=m(()=>{});var fi,zo,pi=m(()=>{fi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zo=["initial",...fi];});function Ht(e){return Ct(e.animate)||zo.some(t=>at(e[t]))}function di(e){return !!(Ht(e)||e.variants)}var mi=m(()=>{Uo();Wo();pi();});function Cm(e,t){if(Ht(e)){let{initial:r,animate:o}=e;return {initial:r===!1||at(r)?r:void 0,animate:at(o)?o:void 0}}return e.inherit!==!1?t:{}}var Pm=m(()=>{Wo();mi();});function Em(e){let{initial:t,animate:r}=Cm(e,useContext(wt));return useMemo(()=>({initial:t,animate:r}),[Tm(t),Tm(r)])}function Tm(e){return Array.isArray(e)?e.join(" "):e}var Om=m(()=>{Bo();Pm();});var Am,Gt,dl=m(()=>{Am={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Gt={};for(let e in Am)Gt[e]={isEnabled:t=>Am[e].some(r=>!!t[r])};});function $m(e){for(let t in e)Gt[t]={...Gt[t],...e[t]};}var Rm=m(()=>{dl();});var hi,ml=m(()=>{hi=createContext({});});var gi,hl=m(()=>{gi=createContext({});});var Mm,Dm=m(()=>{Mm=Symbol.for("motionComponentSymbol");});function km({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:n}){e&&$m(e);function i(a,l){let c,u={...useContext(Jn),...a,layoutId:LC(a)},{isStatic:f}=u,p=Em(a),d=o(a,f);if(!f&&St){p.visualElement=bm(n,d,u,t);let g=useContext(gi),h=useContext(ti).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,h,e,g));}return T.createElement(wt.Provider,{value:p},c&&p.visualElement?T.createElement(c,{visualElement:p.visualElement,...u}):null,r(n,a,wm(d,p.visualElement,l),d,f,p.visualElement))}let s=forwardRef(i);return s[Mm]=n,s}function LC({layoutId:e}){let t=useContext(hi).id;return t&&e!==void 0?t+"-"+e:e}var Lm=m(()=>{cl();Bo();xm();Sm();Om();Rm();_o();ml();ul();hl();Dm();});function Nm(e){function t(o,n={}){return km(e(o,n))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(o,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}var Im=m(()=>{Lm();});var Vm,Fm=m(()=>{Vm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];});function Rr(e){return typeof e!="string"||e.includes("-")?!1:!!(Vm.indexOf(e)>-1||/[A-Z]/.test(e))}var vi=m(()=>{Fm();});function jm(e){Object.assign(Mr,e);}var Mr,bi=m(()=>{Mr={};});var Pt,ye,Be=m(()=>{Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ye=new Set(Pt);});function xi(e,{layout:t,layoutId:r}){return ye.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Mr[e]||e==="opacity")}var yl=m(()=>{bi();Be();});var Y,_e=m(()=>{Y=e=>!!(e&&e.getVelocity);});function Bm(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let i="";for(let s=0;s<IC;s++){let a=Pt[s];if(e[a]!==void 0){let l=NC[a]||a;i+=`${l}(${e[a]}) `;}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),n?i=n(e,o?"":i):r&&o&&(i="none"),i}var NC,IC,_m=m(()=>{Be();NC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IC=Pt.length;});var Wm,wi,Si,Um,Ho=m(()=>{Wm=e=>t=>typeof t=="string"&&t.startsWith(e),wi=Wm("--"),Si=Wm("var(--"),Um=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g;});var zm,Hm=m(()=>{zm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;});var fe,Tt=m(()=>{fe=(e,t,r)=>Math.min(Math.max(r,e),t);});var De,Et,Go,Ot=m(()=>{Tt();De={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Et={...De,transform:e=>fe(0,1,e)},Go={...De,default:1};});function lt(e){return typeof e=="string"}var At,qt,vl,Gm,$t=m(()=>{At=e=>Math.round(e*1e5)/1e5,qt=/(-)?([\d]*\.?[\d])+/g,vl=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Gm=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;});var qo,Ye,pe,M,qm,Ym,bl,We=m(()=>{$t();qo=e=>({test:t=>lt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=qo("deg"),pe=qo("%"),M=qo("px"),qm=qo("vh"),Ym=qo("vw"),bl={...pe,parse:e=>pe.parse(e)/100,transform:e=>pe.transform(e*100)};});var xl,Km=m(()=>{Ot();xl={...De,transform:Math.round};});var Ci,wl=m(()=>{Ot();We();Km();Ci={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,size:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Go,scaleX:Go,scaleY:Go,scaleZ:Go,skew:Ye,skewX:Ye,skewY:Ye,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Et,originX:bl,originY:bl,originZ:M,zIndex:xl,fillOpacity:Et,strokeOpacity:Et,numOctaves:xl};});function Dr(e,t,r,o){let{style:n,vars:i,transform:s,transformOrigin:a}=e,l=!1,c=!1,u=!0;for(let f in t){let p=t[f];if(wi(f)){i[f]=p;continue}let d=Ci[f],g=zm(p,d);if(ye.has(f)){if(l=!0,s[f]=g,!u)continue;p!==(d.default||0)&&(u=!1);}else f.startsWith("origin")?(c=!0,a[f]=g):n[f]=g;}if(t.transform||(l||o?n.transform=Bm(e.transform,r,u,o):n.transform&&(n.transform="none")),c){let{originX:f="50%",originY:p="50%",originZ:d=0}=a;n.transformOrigin=`${f} ${p} ${d}`;}}var Pi=m(()=>{_m();Ho();Be();Hm();wl();});var kr,Ti=m(()=>{kr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});});function Sl(e,t,r){for(let o in t)!Y(t[o])&&!xi(o,r)&&(e[o]=t[o]);}function FC({transformTemplate:e},t,r){return useMemo(()=>{let o=kr();return Dr(o,t,{enableHardwareAcceleration:!r},e),Object.assign({},o.vars,o.style)},[t])}function jC(e,t,r){let o=e.style||{},n={};return Sl(n,o,e),Object.assign(n,FC(e,t,r)),n}function Xm(e,t,r){let o={},n=jC(e,t,r);return e.drag&&e.dragListener!==!1&&(o.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=n,o}var Cl=m(()=>{yl();_e();Pi();Ti();});function Yo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||BC.has(e)}var BC,Zm=m(()=>{BC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);});function _C(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qm,Jm=m(()=>{Qm=_C;});var eh={};lu(eh,{default:()=>zC});var WC,UC,zC,th=m(()=>{Jm();WC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,UC=Qm(function(e){return WC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zC=UC;});function HC(e){e&&(rh=t=>t.startsWith("on")?!Yo(t):e(t));}function oh(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||(rh(n)||r===!0&&Yo(n)||!t&&!Yo(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}var rh,nh=m(()=>{Zm();rh=e=>!Yo(e);try{HC((th(),a0(eh)).default);}catch{}});function ih(e,t,r){return typeof e=="string"?e:M.transform(t+r*e)}function sh(e,t,r){let o=ih(t,e.x,e.width),n=ih(r,e.y,e.height);return `${o} ${n}`}var ah=m(()=>{We();});function lh(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?GC:qC;e[i.offset]=M.transform(-o);let s=M.transform(t),a=M.transform(r);e[i.array]=`${s} ${a}`;}var GC,qC,ch=m(()=>{We();GC={offset:"stroke-dashoffset",array:"stroke-dasharray"},qC={offset:"strokeDashoffset",array:"strokeDasharray"};});function Lr(e,{attrX:t,attrY:r,attrScale:o,originX:n,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f,p){if(Dr(e,c,u,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:g,dimensions:h}=e;d.transform&&(h&&(g.transform=d.transform),delete d.transform),h&&(n!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=sh(h,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),o!==void 0&&(d.scale=o),s!==void 0&&lh(d,s,a,l,!1);}var Ei=m(()=>{Pi();ah();ch();});var Oi,Pl=m(()=>{Ti();Oi=()=>({...kr(),attrs:{}});});var Nr,Ai=m(()=>{Nr=e=>typeof e=="string"&&e.toLowerCase()==="svg";});function uh(e,t,r,o){let n=useMemo(()=>{let i=Oi();return Lr(i,t,{enableHardwareAcceleration:!1},Nr(o),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};Sl(i,e.style,e),n.style={...i,...n.style};}return n}var fh=m(()=>{Cl();Ei();Pl();Ai();});function ph(e=!1){return (r,o,n,{latestValues:i},s)=>{let l=(Rr(r)?uh:Xm)(o,i,s,r),u={...oh(o,typeof r=="string",e),...l,ref:n},{children:f}=o,p=useMemo(()=>Y(f)?f.get():f,[f]);return createElement(r,{...u,children:p})}}var dh=m(()=>{Cl();nh();vi();fh();_e();});function $i(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(let i in r)e.style.setProperty(i,r[i]);}var Tl=m(()=>{});var Ri,El=m(()=>{Ri=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);});function Mi(e,t,r,o){$i(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(Ri.has(n)?n:Or(n),t.attrs[n]);}var Ol=m(()=>{ri();Tl();El();});function Ir(e,t){let{style:r}=e,o={};for(let n in r)(Y(r[n])||t.style&&Y(t.style[n])||xi(n,e))&&(o[n]=r[n]);return o}var Di=m(()=>{yl();_e();});function ki(e,t){let r=Ir(e,t);for(let o in e)if(Y(e[o])||Y(t[o])){let n=Pt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[n]=e[o];}return r}var Al=m(()=>{_e();Di();Be();});function Vr(e,t,r,o={},n={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),t}var Li=m(()=>{});function mh(e){let t=useRef(null);return t.current===null&&(t.current=e()),t.current}var hh=m(()=>{});var Yt,Ni=m(()=>{Yt=e=>Array.isArray(e);});var gh,yh,$l=m(()=>{Ni();gh=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yh=e=>Yt(e)?e[e.length-1]||0:e;});function Fr(e){let t=Y(e)?e.get():e;return gh(t)?t.toValue():t}var Rl=m(()=>{$l();_e();});function QC({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,i){let s={latestValues:JC(o,n,i,e),renderState:t()};return r&&(s.mount=a=>r(o,a,s)),s}function JC(e,t,r,o){let n={},i=o(e,{});for(let p in i)n[p]=Fr(i[p]);let{initial:s,animate:a}=e,l=Ht(e),c=di(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;let f=u?a:s;return f&&typeof f!="boolean"&&!Ct(f)&&(Array.isArray(f)?f:[f]).forEach(d=>{let g=Vr(e,d);if(!g)return;let{transitionEnd:h,transition:v,...x}=g;for(let y in x){let b=x[y];if(Array.isArray(b)){let w=u?b.length-1:0;b=b[w];}b!==null&&(n[y]=b);}for(let y in h)n[y]=h[y];}),n}var Ii,Ml=m(()=>{Uo();ei();Li();hh();Rl();Bo();mi();Ii=e=>(t,r)=>{let o=useContext(wt),n=useContext(Er),i=()=>QC(e,t,o,n);return r?i():mh(i)};});var j,ve=m(()=>{j=e=>e;});var F,de,X,Vi,ae=m(()=>{ve();pl();({schedule:F,cancel:de,state:X,steps:Vi}=ai(typeof requestAnimationFrame<"u"?requestAnimationFrame:j,!0));});var bh,xh=m(()=>{Ol();Al();Ml();Pl();Ei();Ai();ae();bh={useVisualState:Ii({scrapeMotionValuesFromProps:ki,createRenderState:Oi,onMount:(e,t,{renderState:r,latestValues:o})=>{F.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch{r.dimensions={x:0,y:0,width:0,height:0};}}),F.render(()=>{Lr(r,o,{enableHardwareAcceleration:!1},Nr(t.tagName),e.transformTemplate),Mi(t,r);});}})};});var wh,Sh=m(()=>{Ml();Di();Ti();wh={useVisualState:Ii({scrapeMotionValuesFromProps:Ir,createRenderState:kr})};});function Ch(e,{forwardMotionProps:t=!1},r,o){return {...Rr(e)?bh:wh,preloadedFeatures:r,useRender:ph(t),createVisualElement:o,Component:e}}var Ph=m(()=>{vi();dh();xh();Sh();});function be(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var jr=m(()=>{});var Fi,Dl=m(()=>{Fi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;});function Kt(e,t="page"){return {point:{x:e[t+"X"],y:e[t+"Y"]}}}var Th,Ko=m(()=>{Dl();Th=e=>t=>Fi(t)&&e(t,Kt(t));});function xe(e,t,r,o){return be(e,t,Th(r),o)}var Br=m(()=>{jr();Ko();});var eP,we,Xt=m(()=>{eP=(e,t)=>r=>t(e(r)),we=(...e)=>e.reduce(eP);});function Ah(e){let t=null;return ()=>{let r=()=>{t=null;};return t===null?(t=e,r):!1}}function kl(e){let t=!1;if(e==="y")t=Oh();else if(e==="x")t=Eh();else {let r=Eh(),o=Oh();r&&o?t=()=>{r(),o();}:(r&&r(),o&&o());}return t}function ji(){let e=kl(!0);return e?(e(),!1):!0}var Eh,Oh,Bi=m(()=>{Eh=Ah("dragHorizontal"),Oh=Ah("dragVertical");});var te,ct=m(()=>{te=class{constructor(t){this.isMounted=!1,this.node=t;}update(){}};});function $h(e,t){let r="pointer"+(t?"enter":"leave"),o="onHover"+(t?"Start":"End"),n=(i,s)=>{if(i.pointerType==="touch"||ji())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[o]&&F.update(()=>a[o](i,s));};return xe(e.current,r,n,{passive:!e.getProps()[o]})}var _i,Rh=m(()=>{Br();Xt();Bi();ct();ae();_i=class extends te{mount(){this.unmount=we($h(this.node,!0),$h(this.node,!1));}unmount(){}};});var Wi,Mh=m(()=>{jr();ct();Xt();Wi=class extends te{constructor(){super(...arguments),this.isActive=!1;}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible");}catch{t=!0;}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0);}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1);}mount(){this.unmount=we(be(this.node.current,"focus",()=>this.onFocus()),be(this.node.current,"blur",()=>this.onBlur()));}unmount(){}};});var Ll,Dh=m(()=>{Ll=(e,t)=>t?e===t?!0:Ll(e,t.parentElement):!1;});function Nl(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,Kt(r));}var Ui,kh=m(()=>{Ko();jr();Br();ct();Xt();Bi();Dh();ve();ae();Ui=class extends te{constructor(){super(...arguments),this.removeStartListeners=j,this.removeEndListeners=j,this.removeAccessibleListeners=j,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();let o=this.node.getProps(),i=xe(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps();F.update(()=>{!f&&!Ll(this.node.current,a.target)?u&&u(a,l):c&&c(a,l);});},{passive:!(o.onTap||o.onPointerUp)}),s=xe(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=we(i,s),this.startPress(t,r);},this.startAccessiblePress=()=>{let t=i=>{if(i.key!=="Enter"||this.isPressing)return;let s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Nl("up",(l,c)=>{let{onTap:u}=this.node.getProps();u&&F.update(()=>u(l,c));});};this.removeEndListeners(),this.removeEndListeners=be(this.node.current,"keyup",s),Nl("down",(a,l)=>{this.startPress(a,l);});},r=be(this.node.current,"keydown",t),o=()=>{this.isPressing&&Nl("cancel",(i,s)=>this.cancelPress(i,s));},n=be(this.node.current,"blur",o);this.removeAccessibleListeners=we(r,n);};}startPress(t,r){this.isPressing=!0;let{onTapStart:o,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&F.update(()=>o(t,r));}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ji()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:o}=this.node.getProps();o&&F.update(()=>o(t,r));}mount(){let t=this.node.getProps(),r=xe(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=be(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=we(r,o);}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners();}};});function oP({root:e,...t}){let r=e||document;Il.has(r)||Il.set(r,{});let o=Il.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(rP,{root:e,...t})),o[n]}function Lh(e,t,r){let o=oP(t);return Vl.set(e,r),o.observe(e),()=>{Vl.delete(e),o.unobserve(e);}}var Vl,Il,tP,rP,Nh=m(()=>{Vl=new WeakMap,Il=new WeakMap,tP=e=>{let t=Vl.get(e.target);t&&t(e);},rP=e=>{e.forEach(tP);};});function iP({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var nP,zi,Ih=m(()=>{ct();Nh();nP={some:0,all:1},zi=class extends te{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1;}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:nP[n]},a=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),p=c?u:f;p&&p(l);};return Lh(this.node.current,s,a)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(iP(t,r))&&this.startObserver();}unmount(){}};});var Vh,Fh=m(()=>{Rh();Mh();kh();Ih();Vh={inView:{Feature:zi},tap:{Feature:Ui},focus:{Feature:Wi},hover:{Feature:_i}};});function Fl(e,t){if(!Array.isArray(t))return !1;let r=t.length;if(r!==e.length)return !1;for(let o=0;o<r;o++)if(t[o]!==e[o])return !1;return !0}var jh=m(()=>{});function sP(e){let t={};return e.values.forEach((r,o)=>t[o]=r.get()),t}function aP(e){let t={};return e.values.forEach((r,o)=>t[o]=r.getVelocity()),t}function Rt(e,t,r){let o=e.getProps();return Vr(o,t,r!==void 0?r:o.custom,sP(e),aP(e))}var Xo=m(()=>{Li();});var _r,Se,Ke=m(()=>{ve();_r=j,Se=j;});var Ee,Ce,Zt=m(()=>{Ee=e=>e*1e3,Ce=e=>e/1e3;});var jl,Bh=m(()=>{jl={current:!1};});var Bl,_h=m(()=>{Bl=e=>Array.isArray(e)&&typeof e[0]=="number";});function _l(e){return !!(!e||typeof e=="string"&&Wh[e]||Bl(e)||Array.isArray(e)&&e.every(_l))}function Wl(e){if(e)return Bl(e)?Zo(e):Array.isArray(e)?e.map(Wl):Wh[e]}var Zo,Wh,Ul=m(()=>{_h();Zo=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Wh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zo([0,.65,.55,1]),circOut:Zo([.55,0,1,.45]),backIn:Zo([.31,.01,.66,-.59]),backOut:Zo([.33,1.53,.69,.99])};});function Uh(e,t,r,{delay:o=0,duration:n,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){let c={[t]:r};l&&(c.offset=l);let u=Wl(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}var zh=m(()=>{Ul();});function Hh(e,{repeat:t,repeatType:r="loop"}){let o=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[o]}var Gh=m(()=>{});function uP(e,t,r,o,n){let i,s,a=0;do s=t+(r-t)/2,i=qh(s,o,n)-e,i>0?r=s:t=s;while(Math.abs(i)>lP&&++a<cP);return s}function Mt(e,t,r,o){if(e===t&&r===o)return j;let n=i=>uP(i,0,1,e,r);return i=>i===0||i===1?i:qh(n(i),t,o)}var qh,lP,cP,Hi=m(()=>{ve();qh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,lP=1e-7,cP=12;});var Yh,Kh,Gi,zl=m(()=>{Hi();Yh=Mt(.42,0,1,1),Kh=Mt(0,0,.58,1),Gi=Mt(.42,0,.58,1);});var Xh,Zh=m(()=>{Xh=e=>Array.isArray(e)&&typeof e[0]!="number";});var qi,Hl=m(()=>{qi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;});var Yi,Gl=m(()=>{Yi=e=>t=>1-e(1-t);});var Ki,Xi,Qh,ql=m(()=>{Hl();Gl();Ki=e=>1-Math.sin(Math.acos(e)),Xi=Yi(Ki),Qh=qi(Ki);});var Yl,Qo,Jh,Kl=m(()=>{Hi();Hl();Gl();Yl=Mt(.33,1.53,.69,.99),Qo=Yi(Yl),Jh=qi(Qo);});var eg,tg=m(()=>{Kl();eg=e=>(e*=2)<1?.5*Qo(e):.5*(2-Math.pow(2,-10*(e-1)));});var rg,Xl,og=m(()=>{Ke();Hi();ve();zl();ql();Kl();tg();rg={linear:j,easeIn:Yh,easeInOut:Gi,easeOut:Kh,circIn:Ki,circInOut:Qh,circOut:Xi,backIn:Qo,backInOut:Jh,backOut:Yl,anticipate:eg},Xl=e=>{if(Array.isArray(e)){Se(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,o,n]=e;return Mt(t,r,o,n)}else if(typeof e=="string")return Se(rg[e]!==void 0,`Invalid easing type '${e}'`),rg[e];return e};});var Wr,Zi,Qi=m(()=>{$t();Wr=(e,t)=>r=>!!(lt(r)&&Gm.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Zi=(e,t,r)=>o=>{if(!lt(o))return o;let[n,i,s,a]=o.match(qt);return {[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};});var fP,Zl,Xe,Ji=m(()=>{Tt();Ot();$t();Qi();fP=e=>fe(0,255,e),Zl={...De,transform:e=>Math.round(fP(e))},Xe={test:Wr("rgb","red"),parse:Zi("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Zl.transform(e)+", "+Zl.transform(t)+", "+Zl.transform(r)+", "+At(Et.transform(o))+")"};});function pP(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var Jo,Ql=m(()=>{Ji();Qi();Jo={test:Wr("#"),parse:pP,transform:Xe.transform};});var Dt,Jl=m(()=>{Ot();We();$t();Qi();Dt={test:Wr("hsl","hue"),parse:Zi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+pe.transform(At(t))+", "+pe.transform(At(r))+", "+At(Et.transform(o))+")"};});var Z,Ur=m(()=>{$t();Ql();Jl();Ji();Z={test:e=>Xe.test(e)||Jo.test(e)||Dt.test(e),parse:e=>Xe.test(e)?Xe.parse(e):Dt.test(e)?Dt.parse(e):Jo.parse(e),transform:e=>lt(e)?e:e.hasOwnProperty("red")?Xe.transform(e):Dt.transform(e)};});var B,Oe=m(()=>{B=(e,t,r)=>-r*e+r*t+e;});function ec(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ng({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,s=0;if(!t)n=i=s=r;else {let a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;n=ec(l,a,e+1/3),i=ec(l,a,e),s=ec(l,a,e-1/3);}return {red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}var ig=m(()=>{});function sg(e){let t=mP(e);Se(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Dt&&(r=ng(r)),r}var tc,dP,mP,es,rc=m(()=>{Oe();Ke();ig();Ql();Ji();Jl();tc=(e,t,r)=>{let o=e*e;return Math.sqrt(Math.max(0,r*(t*t-o)+o))},dP=[Jo,Xe,Dt],mP=e=>dP.find(t=>t.test(e));es=(e,t)=>{let r=sg(e),o=sg(t),n={...r};return i=>(n.red=tc(r.red,o.red,i),n.green=tc(r.green,o.green,i),n.blue=tc(r.blue,o.blue,i),n.alpha=B(r.alpha,o.alpha,i),Xe.transform(n))};});function hP(e){var t,r;return isNaN(e)&<(e)&&(((t=e.match(qt))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(vl))===null||r===void 0?void 0:r.length)||0)>0}function oc(e,{regex:t,countKey:r,token:o,parse:n}){let i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,o),e.values.push(...i.map(n)));}function en(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&oc(r,ag),oc(r,lg),oc(r,cg),r}function ug(e){return en(e).values}function fg(e){let{values:t,numColors:r,numVars:o,tokenised:n}=en(e),i=t.length;return s=>{let a=n;for(let l=0;l<i;l++)l<o?a=a.replace(ag.token,s[l]):l<o+r?a=a.replace(lg.token,Z.transform(s[l])):a=a.replace(cg.token,At(s[l]));return a}}function yP(e){let t=ug(e);return fg(e)(t.map(gP))}var ag,lg,cg,gP,me,kt=m(()=>{Ho();ve();Ur();Ot();$t();ag={regex:Um,countKey:"Vars",token:"${v}",parse:j},lg={regex:vl,countKey:"Colors",token:"${c}",parse:Z.parse},cg={regex:qt,countKey:"Numbers",token:"${n}",parse:De.parse};gP=e=>typeof e=="number"?0:e;me={test:hP,parse:ug,createTransformer:fg,getAnimatableNone:yP};});function dg(e,t){return typeof e=="number"?r=>B(e,t,r):Z.test(e)?es(e,t):e.startsWith("var(")?pg(e,t):ic(e,t)}var pg,nc,mg,ic,hg=m(()=>{Oe();rc();Xt();Ke();Ur();kt();pg=(e,t)=>r=>`${r>0?t:e}`;nc=(e,t)=>{let r=[...e],o=r.length,n=e.map((i,s)=>dg(i,t[s]));return i=>{for(let s=0;s<o;s++)r[s]=n[s](i);return r}},mg=(e,t)=>{let r={...e,...t},o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=dg(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}},ic=(e,t)=>{let r=me.createTransformer(t),o=en(e),n=en(t);return o.numVars===n.numVars&&o.numColors===n.numColors&&o.numNumbers>=n.numNumbers?we(nc(o.values,n.values),r):(_r(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),pg(e,t))};});var ut,tn=m(()=>{ut=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};});function vP(e){return typeof e=="number"?gg:typeof e=="string"?Z.test(e)?es:ic:Array.isArray(e)?nc:typeof e=="object"?mg:gg}function bP(e,t,r){let o=[],n=r||vP(e[0]),i=e.length-1;for(let s=0;s<i;s++){let a=n(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||j:t;a=we(l,a);}o.push(a);}return o}function ts(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(Se(i===t.length,"Both input and output ranges must be the same length"),i===1)return ()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bP(t,o,n),a=s.length,l=c=>{let u=0;if(a>1)for(;u<e.length-2&&!(c<e[u+1]);u++);let f=ut(e[u],e[u+1],c);return s[u](f)};return r?c=>l(fe(e[0],e[i-1],c)):l}var gg,sc=m(()=>{Ke();Ur();Tt();Oe();rc();hg();Xt();tn();ve();gg=(e,t)=>r=>B(e,t,r);});function yg(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=ut(0,t,o);e.push(B(r,1,n));}}var vg=m(()=>{Oe();tn();});function bg(e){let t=[0];return yg(t,e.length-1),t}var xg=m(()=>{vg();});function wg(e,t){return e.map(r=>r*t)}var Sg=m(()=>{});function xP(e,t){return e.map(()=>t||Gi).splice(0,e.length-1)}function rn({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=Xh(o)?o.map(Xl):Xl(o),i={done:!1,value:t[0]},s=wg(r&&r.length===t.length?r:bg(t),e),a=ts(s,t,{ease:Array.isArray(n)?n:xP(t,n)});return {calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}var Cg=m(()=>{zl();Zh();og();sc();xg();Sg();});function rs(e,t){return t?e*(1e3/t):0}var ac=m(()=>{});function os(e,t,r){let o=Math.max(t-wP,0);return rs(r-e(o),t-o)}var wP,lc=m(()=>{ac();wP=5;});function Tg({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,i;_r(e<=Ee(Pg),"Spring duration must be 10 seconds or less");let s=1-t;s=fe(CP,PP,s),e=fe(SP,Pg,Ce(e)),s<1?(n=c=>{let u=c*s,f=u*e,p=u-r,d=ns(c,s),g=Math.exp(-f);return cc-p/d*g},i=c=>{let f=c*s*e,p=f*r+r,d=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-f),h=ns(Math.pow(c,2),s);return (-n(c)+cc>0?-1:1)*((p-d)*g)/h}):(n=c=>{let u=Math.exp(-c*e),f=(c-r)*e+1;return -cc+u*f},i=c=>{let u=Math.exp(-c*e),f=(r-c)*(e*e);return u*f});let a=5/e,l=EP(n,i,a);if(e=Ee(e),isNaN(l))return {stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*o;return {stiffness:c,damping:s*2*Math.sqrt(o*c),duration:e}}}function EP(e,t,r){let o=r;for(let n=1;n<TP;n++)o=o-e(o)/t(o);return o}function ns(e,t){return e*Math.sqrt(1-t*t)}var cc,SP,Pg,CP,PP,TP,Eg=m(()=>{Ke();Tt();Zt();cc=.001,SP=.01,Pg=10,CP=.05,PP=1;TP=12;});function Og(e,t){return t.some(r=>e[r]!==void 0)}function $P(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Og(e,AP)&&Og(e,OP)){let r=Tg(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0;}return t}function is({keyframes:e,restDelta:t,restSpeed:r,...o}){let n=e[0],i=e[e.length-1],s={done:!1,value:n},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:p}=$P({...o,velocity:-Ce(o.velocity||0)}),d=f||0,g=l/(2*Math.sqrt(a*c)),h=i-n,v=Ce(Math.sqrt(a/c)),x=Math.abs(h)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let y;if(g<1){let b=ns(v,g);y=w=>{let C=Math.exp(-g*v*w);return i-C*((d+g*v*h)/b*Math.sin(b*w)+h*Math.cos(b*w))};}else if(g===1)y=b=>i-Math.exp(-v*b)*(h+(d+v*h)*b);else {let b=v*Math.sqrt(g*g-1);y=w=>{let C=Math.exp(-g*v*w),D=Math.min(b*w,300);return i-C*((d+g*v*h)*Math.sinh(D)+b*h*Math.cosh(D))/b};}return {calculatedDuration:p&&u||null,next:b=>{let w=y(b);if(p)s.done=b>=u;else {let C=d;b!==0&&(g<1?C=os(y,b,w):C=0);let D=Math.abs(C)<=r,L=Math.abs(i-w)<=t;s.done=D&&L;}return s.value=s.done?i:w,s}}}var OP,AP,uc=m(()=>{Zt();lc();Eg();OP=["duration","bounce"],AP=["stiffness","damping","mass"];});function fc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){let f=e[0],p={done:!1,value:f},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l,h=r*t,v=f+h,x=s===void 0?v:s(v);x!==v&&(h=x-f);let y=A=>-h*Math.exp(-A/o),b=A=>x+y(A),w=A=>{let k=y(A),le=b(A);p.done=Math.abs(k)<=c,p.value=p.done?x:le;},C,D,L=A=>{d(p.value)&&(C=A,D=is({keyframes:[p.value,g(p.value)],velocity:os(b,A,p.value),damping:n,stiffness:i,restDelta:c,restSpeed:u}));};return L(0),{calculatedDuration:null,next:A=>{let k=!1;return !D&&C===void 0&&(k=!0,w(A),L(A)),C!==void 0&&A>C?D.next(A-C):(!k&&w(A),p)}}}var Ag=m(()=>{uc();lc();});function RP(){ss=void 0;}var ss,Ue,on=m(()=>{ni();ae();Ue={now:()=>(ss===void 0&&Ue.set(X.isProcessing||Ar.useManualTiming?X.timestamp:performance.now()),ss),set:e=>{ss=e,queueMicrotask(RP);}};});var $g,Rg=m(()=>{on();ae();$g=e=>{let t=({timestamp:r})=>e(r);return {start:()=>F.update(t,!0),stop:()=>de(t),now:()=>X.isProcessing?X.timestamp:Ue.now()}};});function pc(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}var Mg=m(()=>{});function Qt({autoplay:e=!0,delay:t=0,driver:r=$g,keyframes:o,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:f,...p}){let d=1,g=!1,h,v,x=()=>{v=new Promise(K=>{h=K;});};x();let y,b=MP[n]||rn,w;b!==rn&&typeof o[0]!="number"&&(w=ts([0,100],o,{clamp:!1}),o=[0,100]);let C=b({...p,keyframes:o}),D;a==="mirror"&&(D=b({...p,keyframes:[...o].reverse(),velocity:-(p.velocity||0)}));let L="idle",A=null,k=null,le=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=pc(C));let{calculatedDuration:G}=C,ke=1/0,et=1/0;G!==null&&(ke=G+s,et=ke*(i+1)-s);let ce=0,sr=K=>{if(k===null)return;d>0&&(k=Math.min(k,K)),d<0&&(k=Math.min(K-et/d,k)),A!==null?ce=A:ce=Math.round(K-k)*d;let io=ce-t*(d>=0?1:-1),nu=d>=0?io<0:io>et;ce=Math.max(io,0),L==="finished"&&A===null&&(ce=et);let iu=ce,su=C;if(i){let qs=Math.min(ce,et)/ke,mn=Math.floor(qs),Nt=qs%1;!Nt&&qs>=1&&(Nt=1),Nt===1&&mn--,mn=Math.min(mn,i+1),!!(mn%2)&&(a==="reverse"?(Nt=1-Nt,s&&(Nt-=s/ke)):a==="mirror"&&(su=D)),iu=fe(0,1,Nt)*ke;}let so=nu?{done:!1,value:o[0]}:su.next(iu);w&&(so.value=w(so.value));let{done:au}=so;!nu&&G!==null&&(au=d>=0?ce>=et:ce<=0);let t0=A===null&&(L==="finished"||L==="running"&&au);return f&&f(so.value),t0&&no(),so},re=()=>{y&&y.stop(),y=void 0;},pt=()=>{L="idle",re(),h(),x(),k=le=null;},no=()=>{L="finished",u&&u(),re(),h();},ar=()=>{if(g)return;y||(y=r(sr));let K=y.now();l&&l(),A!==null?k=K-A:(!k||L==="finished")&&(k=K),L==="finished"&&x(),le=k,A=null,L="running",y.start();};e&&ar();let ou={then(K,io){return v.then(K,io)},get time(){return Ce(ce)},set time(K){K=Ee(K),ce=K,A!==null||!y||d===0?A=K:k=y.now()-K/d;},get duration(){let K=C.calculatedDuration===null?pc(C):C.calculatedDuration;return Ce(K)},get speed(){return d},set speed(K){K===d||!y||(d=K,ou.time=Ce(ce));},get state(){return L},play:ar,pause:()=>{L="paused",A=ce;},stop:()=>{g=!0,L!=="idle"&&(L="idle",c&&c(),pt());},cancel:()=>{le!==null&&sr(le),pt();},complete:()=>{L="finished";},sample:K=>(k=0,sr(K))};return ou}var MP,as=m(()=>{Cg();uc();Ag();Rg();sc();Tt();Zt();Mg();MP={decay:fc,inertia:fc,tween:rn,keyframes:rn,spring:is};});function Dg(e){let t;return ()=>(t===void 0&&(t=e()),t)}var kg=m(()=>{});function Lg(e,t,{onUpdate:r,onComplete:o,...n}){if(!(DP()&&kP.has(t)&&!n.repeatDelay&&n.repeatType!=="mirror"&&n.damping!==0&&n.type!=="inertia"))return !1;let s=!1,a,l,c=!1,u=()=>{l=new Promise(b=>{a=b;});};u();let{keyframes:f,duration:p=300,ease:d,times:g}=n;if(NP(t,n)){let b=Qt({...n,repeat:0,delay:0}),w={done:!1,value:f[0]},C=[],D=0;for(;!w.done&&D<LP;)w=b.sample(D),C.push(w.value),D+=ls;g=void 0,f=C,p=D-ls,d="linear";}let h=Uh(e.owner.current,t,f,{...n,duration:p,ease:d,times:g}),v=()=>{c=!1,h.cancel();},x=()=>{c=!0,F.update(v),a(),u();};return h.onfinish=()=>{c||(e.set(Hh(f,n)),o&&o(),x());},{then(b,w){return l.then(b,w)},attachTimeline(b){return h.timeline=b,h.onfinish=null,j},get time(){return Ce(h.currentTime||0)},set time(b){h.currentTime=Ee(b);},get speed(){return h.playbackRate},set speed(b){h.playbackRate=b;},get duration(){return Ce(p)},play:()=>{s||(h.play(),de(v));},pause:()=>h.pause(),stop:()=>{if(s=!0,h.playState==="idle")return;let{currentTime:b}=h;if(b){let w=Qt({...n,autoplay:!1});e.setWithVelocity(w.sample(b-ls).value,w.sample(b).value,ls);}x();},complete:()=>{c||h.finish();},cancel:x}}var DP,kP,ls,LP,NP,Ng=m(()=>{zh();Ul();Gh();as();Zt();kg();ve();ae();DP=Dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ls=10,LP=2e4,NP=(e,t)=>t.type==="spring"||e==="backgroundColor"||!_l(t.ease);});function Ig({keyframes:e,delay:t,onUpdate:r,onComplete:o}){let n=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:j,pause:j,stop:j,then:i=>(i(),Promise.resolve()),cancel:j,complete:j});return t?Qt({keyframes:[0,1],duration:0,delay:t,onComplete:n}):n()}var Vg=m(()=>{as();ve();});var IP,VP,FP,jP,Fg,jg=m(()=>{Be();IP={type:"spring",stiffness:500,damping:25,restSpeed:10},VP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),FP={type:"keyframes",duration:.8},jP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fg=(e,{keyframes:t})=>t.length>2?FP:ye.has(e)?e.startsWith("scale")?VP(t[1]):IP:jP;});var nn,dc=m(()=>{kt();nn=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(me.test(t)||t==="0")&&!t.startsWith("url("));});function _P(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(qt)||[];if(!o)return e;let n=r.replace(o,""),i=BP.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var BP,WP,sn,mc=m(()=>{kt();$t();BP=new Set(["brightness","contrast","saturate","opacity"]);WP=/([a-z-]*)\(.*?\)/g,sn={...me,getAnimatableNone:e=>{let t=e.match(WP);return t?t.map(_P).join(" "):e}};});var UP,zr,cs=m(()=>{Ur();mc();wl();UP={...Ci,color:Z,backgroundColor:Z,outlineColor:Z,fill:Z,stroke:Z,borderColor:Z,borderTopColor:Z,borderRightColor:Z,borderBottomColor:Z,borderLeftColor:Z,filter:sn,WebkitFilter:sn},zr=e=>UP[e];});function us(e,t){let r=zr(e);return r!==sn&&(r=me),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var hc=m(()=>{kt();mc();cs();});var fs,gc=m(()=>{fs=e=>/^0[^.\s]+$/.test(e);});function Bg(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||fs(e)}var _g=m(()=>{gc();});function Wg(e,t,r,o){let n=nn(t,r),i;Array.isArray(r)?i=[...r]:i=[null,r];let s=o.from!==void 0?o.from:e.get(),a,l=[];for(let c=0;c<i.length;c++)i[c]===null&&(i[c]=c===0?s:i[c-1]),Bg(i[c])&&l.push(c),typeof i[c]=="string"&&i[c]!=="none"&&i[c]!=="0"&&(a=i[c]);if(n&&l.length&&a)for(let c=0;c<l.length;c++){let u=l[c];i[u]=us(t,a);}return i}var Ug=m(()=>{hc();dc();_g();});function zg({when:e,delay:t,delayChildren:r,staggerChildren:o,staggerDirection:n,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return !!Object.keys(u).length}function Hr(e,t){return e[t]||e.default||e}var ps=m(()=>{});var Gr,ds=m(()=>{Ke();Zt();Bh();Ng();Vg();jg();dc();Ug();ps();as();ni();Gr=(e,t,r,o={})=>n=>{let i=Hr(o,e)||{},s=i.delay||o.delay||0,{elapsed:a=0}=o;a=a-Ee(s);let l=Wg(t,e,r,i),c=l[0],u=l[l.length-1],f=nn(e,c),p=nn(e,u);_r(f===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let d={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:g=>{t.set(g),i.onUpdate&&i.onUpdate(g);},onComplete:()=>{n(),i.onComplete&&i.onComplete();}};if(zg(i)||(d={...d,...Fg(e,d)}),d.duration&&(d.duration=Ee(d.duration)),d.repeatDelay&&(d.repeatDelay=Ee(d.repeatDelay)),!f||!p||jl.current||i.type===!1||Ar.skipAnimations)return Ig(jl.current?{...d,delay:0}:d);if(!o.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let g=Lg(t,e,d);if(g)return g}return Qt(d)};});function Jt(e){return !!(Y(e)&&e.add)}var ms=m(()=>{_e();});var hs,yc=m(()=>{hs=e=>/^\-?\d*\.?\d+$/.test(e);});function qr(e,t){e.indexOf(t)===-1&&e.push(t);}function Yr(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1);}var gs=m(()=>{});var Lt,ys=m(()=>{gs();Lt=class{constructor(){this.subscriptions=[];}add(t){return qr(this.subscriptions,t),()=>Yr(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let s=this.subscriptions[i];s&&s(t,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};});function Ze(e,t){return new vc(e,t)}var Hg,zP,Gg,vc,an=m(()=>{ys();ac();on();ae();Hg=30,zP=e=>!isNaN(parseFloat(e)),Gg={current:void 0},vc=class{constructor(t,r={}){this.version="11.0.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(o,n=!0)=>{let i=Ue.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current);},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=zP(this.current),this.owner=r.owner;}setCurrent(t){this.current=t,this.updatedAt=Ue.now();}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt;}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Lt);let o=this.events[t].add(r);return t==="change"?()=>{o(),F.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let t in this.events)this.events[t].clear();}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r;}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify);}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o;}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}get(){return Gg.current&&Gg.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Hg)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Hg);return rs(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}};});var vs,bc=m(()=>{vs=e=>t=>t.test(e);});var qg,Yg=m(()=>{qg={test:e=>e==="auto",parse:e=>e};});var xc,Kr,wc=m(()=>{Ot();We();bc();Yg();xc=[De,M,pe,Ye,Ym,qm,qg],Kr=e=>xc.find(vs(e));});var HP,Kg,Xg=m(()=>{Ur();kt();wc();bc();HP=[...xc,Z,me],Kg=e=>HP.find(vs(e));});function GP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ze(r));}function Zg(e,t){let r=Rt(e,t),{transitionEnd:o={},transition:n={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...o};for(let s in i){let a=yh(i[s]);GP(e,s,a);}}function Qg(e,t,r){var o,n;let i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;a<s;a++){let l=i[a],c=t[l],u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(n=(o=r[l])!==null&&o!==void 0?o:e.readValue(l))!==null&&n!==void 0?n:t[l]),u!=null&&(typeof u=="string"&&(hs(u)||fs(u))?u=parseFloat(u):!Kg(u)&&me.test(c)&&(u=us(l,c)),e.addValue(l,Ze(u,{owner:e})),r[l]===void 0&&(r[l]=u),u!==null&&e.setBaseTarget(l,u));}}function qP(e,t){return t?(t[e]||t.default||t).from:void 0}function Jg(e,t,r){let o={};for(let n in e){let i=qP(n,t);if(i!==void 0)o[n]=i;else {let s=r.getValue(n);s&&(o[n]=s.get());}}return o}var Sc=m(()=>{yc();gc();$l();an();kt();hc();Xg();Xo();});function YP({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function KP(e,t){let r=e.get();if(Array.isArray(t)){for(let o=0;o<t.length;o++)if(t[o]!==r)return !0}else return r!==t}function bs(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t),l=e.getValue("willChange");o&&(i=o);let c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let f in a){let p=e.getValue(f),d=a[f];if(!p||d===void 0||u&&YP(u,f))continue;let g={delay:r,elapsed:0,...Hr(i||{},f)};if(window.HandoffAppearAnimations){let x=e.getProps()[oi];if(x){let y=window.HandoffAppearAnimations(x,f,p,F);y!==null&&(g.elapsed=y,g.isHandoff=!0);}}let h=!g.isHandoff&&!KP(p,d);if(g.type==="spring"&&(p.getVelocity()||g.velocity)&&(h=!1),p.animation&&(h=!1),h)continue;p.start(Gr(f,p,d,e.shouldReduceMotion&&ye.has(f)?{type:!1}:g));let v=p.animation;Jt(l)&&(l.add(f),v.then(()=>l.remove(f))),c.push(v);}return s&&Promise.all(c).then(()=>{s&&Zg(e,s);}),c}var Cc=m(()=>{Be();fl();ds();ms();Sc();ps();ae();});function xs(e,t,r={}){let o=Rt(e,t,r.custom),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(bs(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=n;return XP(e,t,c+l,u,f,r)}:()=>Promise.resolve(),{when:a}=n;if(a){let[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(r.delay)])}function XP(e,t,r=0,o=0,n=1,i){let s=[],a=(e.variantChildren.size-1)*o,l=n===1?(c=0)=>c*o:(c=0)=>a-c*o;return Array.from(e.variantChildren).sort(ZP).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(xs(c,t,{...i,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)));}),Promise.all(s)}function ZP(e,t){return e.sortNodePosition(t)}var ey=m(()=>{Xo();Cc();});function ty(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>xs(e,i,r));o=Promise.all(n);}else if(typeof t=="string")o=xs(e,t,r);else {let n=typeof t=="function"?Rt(e,t,r.custom):t;o=Promise.all(bs(e,n,r));}return o.then(()=>e.notify("AnimationComplete",t))}var ry=m(()=>{Xo();Cc();ey();});function eT(e){return t=>Promise.all(t.map(({animation:r,options:o})=>ty(e,r,o)))}function oy(e){let t=eT(e),r=rT(),o=!0,n=(l,c)=>{let u=Rt(e,c);if(u){let{transition:f,transitionEnd:p,...d}=u;l={...l,...d,...p};}return l};function i(l){t=l(e);}function s(l,c){let u=e.getProps(),f=e.getVariantContext(!0)||{},p=[],d=new Set,g={},h=1/0;for(let x=0;x<JP;x++){let y=QP[x],b=r[y],w=u[y]!==void 0?u[y]:f[y],C=at(w),D=y===c?b.isActive:null;D===!1&&(h=x);let L=w===f[y]&&w!==u[y]&&C;if(L&&o&&e.manuallyAnimateOnMount&&(L=!1),b.protectedKeys={...g},!b.isActive&&D===null||!w&&!b.prevProp||Ct(w)||typeof w=="boolean")continue;let k=tT(b.prevProp,w)||y===c&&b.isActive&&!L&&C||x>h&&C,le=!1,G=Array.isArray(w)?w:[w],ke=G.reduce(n,{});D===!1&&(ke={});let{prevResolvedValues:et={}}=b,ce={...et,...ke},sr=re=>{k=!0,d.has(re)&&(le=!0,d.delete(re)),b.needsAnimating[re]=!0;};for(let re in ce){let pt=ke[re],no=et[re];if(g.hasOwnProperty(re))continue;let ar=!1;Yt(pt)&&Yt(no)?ar=!Fl(pt,no):ar=pt!==no,ar?pt!==void 0?sr(re):d.add(re):pt!==void 0&&d.has(re)?sr(re):b.protectedKeys[re]=!0;}b.prevProp=w,b.prevResolvedValues=ke,b.isActive&&(g={...g,...ke}),o&&e.blockInitialAnimation&&(k=!1),k&&(!L||le)&&p.push(...G.map(re=>({animation:re,options:{type:y,...l}})));}if(d.size){let x={};d.forEach(y=>{let b=e.getBaseTarget(y);b!==void 0&&(x[y]=b);}),p.push({animation:x});}let v=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),o=!1,v?t(p):Promise.resolve()}function a(l,c,u){var f;if(r[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(d=>{var g;return (g=d.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;let p=s(u,l);for(let d in r)r[d].protectedKeys={};return p}return {animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function tT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fl(t,e):!1}function er(e=!1){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rT(){return {animate:er(!0),whileInView:er(),whileHover:er(),whileTap:er(),whileDrag:er(),whileFocus:er(),exit:er()}}var QP,JP,ny=m(()=>{Uo();Ni();jh();Wo();Xo();pi();ry();QP=[...fi].reverse(),JP=fi.length;});var ws,iy=m(()=>{Uo();ny();ct();ws=class extends te{constructor(t){super(t),t.animationState||(t.animationState=oy(t));}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),Ct(t)&&(this.unmount=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription();}unmount(){}};});var oT,Ss,sy=m(()=>{ct();oT=0,Ss=class extends te{constructor(){super(...arguments),this.id=oT++;}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r,custom:o}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t,{custom:o??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id));}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id));}unmount(){}};});var ay,ly=m(()=>{iy();sy();ay={animation:{Feature:ws},exit:{Feature:Ss}};});function uy(e,t){let r=cy(e.x,t.x),o=cy(e.y,t.y);return Math.sqrt(r**2+o**2)}var cy,fy=m(()=>{cy=(e,t)=>Math.abs(e-t);});function Pc(e,t){return t?{point:t(e.point)}:e}function py(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Tc({point:e},t){return {point:e,delta:py(e,dy(t)),offset:py(e,nT(t)),velocity:iT(t,.1)}}function nT(e){return e[0]}function dy(e){return e[e.length-1]}function iT(e,t){if(e.length<2)return {x:0,y:0};let r=e.length-1,o=null,n=dy(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Ee(t)));)r--;if(!o)return {x:0,y:0};let i=Ce(n.timestamp-o.timestamp);if(i===0)return {x:0,y:0};let s={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var Xr,Ec=m(()=>{Ko();Zt();Br();Xt();fy();Dl();ae();Xr=class{constructor(t,r,{transformPagePoint:o,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=Tc(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,d=uy(f.offset,{x:0,y:0})>=3;if(!p&&!d)return;let{point:g}=f,{timestamp:h}=X;this.history.push({...g,timestamp:h});let{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f);},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Pc(p,this.transformPagePoint),F.update(this.updatePoint,!0);},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:d,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=Tc(f.type==="pointercancel"?this.lastMoveEventInfo:Pc(p,this.transformPagePoint),this.history);this.startEvent&&d&&d(f,v),g&&g(f,v);},!Fi(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=o,this.contextWindow=n||window;let s=Kt(t),a=Pc(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=X;this.history=[{...l,timestamp:c}];let{onSessionStart:u}=r;u&&u(t,Tc(a,this.history)),this.removeListeners=we(xe(this.contextWindow,"pointermove",this.handlePointerMove),xe(this.contextWindow,"pointerup",this.handlePointerUp),xe(this.contextWindow,"pointercancel",this.handlePointerUp));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),de(this.updatePoint);}};});function ne(e){return e.max-e.min}function Cs(e,t=0,r=.01){return Math.abs(e-t)<=r}function my(e,t,r,o=.5){e.origin=o,e.originPoint=B(t.min,t.max,e.origin),e.scale=ne(r)/ne(t),(Cs(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=B(r.min,r.max,e.origin)-e.originPoint,(Cs(e.translate)||isNaN(e.translate))&&(e.translate=0);}function Zr(e,t,r,o){my(e.x,t.x,r.x,o?o.originX:void 0),my(e.y,t.y,r.y,o?o.originY:void 0);}function hy(e,t,r){e.min=r.min+t.min,e.max=e.min+ne(t);}function yy(e,t,r){hy(e.x,t.x,r.x),hy(e.y,t.y,r.y);}function gy(e,t,r){e.min=t.min-r.min,e.max=e.min+ne(t);}function Qr(e,t,r){gy(e.x,t.x,r.x),gy(e.y,t.y,r.y);}var ln=m(()=>{Oe();});function Sy(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?B(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?B(r,e,o.max):Math.min(e,r)),e}function vy(e,t,r){return {min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Cy(e,{top:t,left:r,bottom:o,right:n}){return {x:vy(e.x,r,n),y:vy(e.y,t,o)}}function by(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function Py(e,t){return {x:by(e.x,t.x),y:by(e.y,t.y)}}function Ty(e,t){let r=.5,o=ne(e),n=ne(t);return n>o?r=ut(t.min,t.max-o,e.min):o>n&&(r=ut(e.min,e.max-n,t.min)),fe(0,1,r)}function Ey(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}function Oy(e=Ps){return e===!1?e=0:e===!0&&(e=Ps),{x:xy(e,"left","right"),y:xy(e,"top","bottom")}}function xy(e,t,r){return {min:wy(e,t),max:wy(e,r)}}function wy(e,t){return typeof e=="number"?e:e[t]||0}var Ps,Ay=m(()=>{tn();ln();Tt();Oe();Ps=.35;});var $y,tr,Ry,H,cn=m(()=>{$y=()=>({translate:0,scale:1,origin:0,originPoint:0}),tr=()=>({x:$y(),y:$y()}),Ry=()=>({min:0,max:0}),H=()=>({x:Ry(),y:Ry()});});function Pe(e){return [e("x"),e("y")]}var Oc=m(()=>{});function Ts({top:e,left:t,right:r,bottom:o}){return {x:{min:t,max:r},y:{min:e,max:o}}}function My({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dy(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}var Ac=m(()=>{});function $c(e){return e===void 0||e===1}function Es({scale:e,scaleX:t,scaleY:r}){return !$c(e)||!$c(t)||!$c(r)}function ft(e){return Es(e)||Rc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Rc(e){return ky(e.x)||ky(e.y)}function ky(e){return e&&e!=="0%"}var Mc=m(()=>{});function un(e,t,r){let o=e-r,n=t*o;return r+n}function Ly(e,t,r,o,n){return n!==void 0&&(e=un(e,n,o)),un(e,r,o)+t}function Dc(e,t=0,r=1,o,n){e.min=Ly(e.min,t,r,o,n),e.max=Ly(e.max,t,r,o,n);}function kc(e,{x:t,y:r}){Dc(e.x,t.translate,t.scale,t.originPoint),Dc(e.y,r.translate,r.scale,r.originPoint);}function Vy(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,s;for(let a=0;a<n;a++){i=r[a],s=i.projectionDelta;let l=i.instance;l&&l.style&&l.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,kc(e,s)),o&&ft(i.latestValues)&&rr(e,i.latestValues));}t.x=Ny(t.x),t.y=Ny(t.y);}function Ny(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Qe(e,t){e.min=e.min+t,e.max=e.max+t;}function Iy(e,t,[r,o,n]){let i=t[n]!==void 0?t[n]:.5,s=B(e.min,e.max,i);Dc(e,t[r],t[o],s,t.scale);}function rr(e,t){Iy(e.x,t,sT),Iy(e.y,t,aT);}var sT,aT,Os=m(()=>{Oe();Mc();sT=["x","scaleX","originX"],aT=["y","scaleY","originY"];});function Lc(e,t){return Ts(Dy(e.getBoundingClientRect(),t))}function Fy(e,t,r){let o=Lc(e,r),{scroll:n}=t;return n&&(Qe(o.x,n.offset.x),Qe(o.y,n.offset.y)),o}var Nc=m(()=>{Ac();Os();});var As,Ic=m(()=>{As=({current:e})=>e?e.ownerDocument.defaultView:null;});function $s(e,t,r){return (t===!0||t===e)&&(r===null||r===e)}function cT(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var lT,Rs,jy=m(()=>{Ke();Ec();Bi();ui();Br();Ay();cn();Oc();Nc();Ko();Ac();jr();ln();Oe();We();ds();Ic();ae();lT=new WeakMap,Rs=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.visualElement=t;}start(t,{snapToCursor:r=!1}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let n=u=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Kt(u,"page").point);},i=(u,f)=>{let{drag:p,dragPropagation:d,onDragStart:g}=this.getProps();if(p&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kl(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pe(v=>{let x=this.getAxisMotionValue(v).get()||0;if(pe.test(x)){let{projection:y}=this.visualElement;if(y&&y.layout){let b=y.layout.layoutBox[v];b&&(x=ne(b)*(parseFloat(x)/100));}}this.originPoint[v]=x;}),g&&F.update(()=>g(u,f),!1,!0);let{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0);},s=(u,f)=>{let{dragPropagation:p,dragDirectionLock:d,onDirectionLock:g,onDrag:h}=this.getProps();if(!p&&!this.openGlobalLock)return;let{offset:v}=f;if(d&&this.currentDirection===null){this.currentDirection=cT(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),h&&h(u,f);},a=(u,f)=>this.stop(u,f),l=()=>Pe(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Xr(t,{onSessionStart:n,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:As(this.visualElement)});}stop(t,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&F.update(()=>i(t,r));}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1);}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!$s(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(s=Sy(s,this.constraints[t],this.elastic[t])),i.set(s);}resolveConstraints(){var t;let{dragConstraints:r,dragElastic:o}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&st(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&n?this.constraints=Cy(n.layoutBox,r):this.constraints=!1,this.elastic=Oy(o),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Pe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Ey(n.layoutBox[s],this.constraints[s]));});}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!st(t))return !1;let o=t.current;Se(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return !1;let i=Fy(o,n.root,this.visualElement.getTransformPagePoint()),s=Py(n.layout.layoutBox,i);if(r){let a=r(My(s));this.hasMutatedConstraints=!!a,a&&(s=Ts(a));}return s}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Pe(u=>{if(!$s(u,r,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});let p=n?200:1e6,d=n?40:1e7,g={type:"inertia",velocity:o?t[u]:0,bounceStiffness:p,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return o.start(Gr(t,o,0,r))}stopAnimation(){Pe(t=>this.getAxisMotionValue(t).stop());}pauseAnimation(){Pe(t=>{var r;return (r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()});}getAnimationState(t){var r;return (r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){let r="_drag"+t.toUpperCase(),o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Pe(r=>{let{drag:o}=this.getProps();if(!$s(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:s,max:a}=n.layout.layoutBox[r];i.set(t[r]-B(s,a,.5));}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!st(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Pe(s=>{let a=this.getAxisMotionValue(s);if(a){let l=a.get();n[s]=Ty({min:l,max:l},this.constraints[s]);}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Pe(s=>{if(!$s(s,t,null))return;let a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(B(l,c,n[s]));});}addListeners(){if(!this.visualElement.current)return;lT.set(this.visualElement,this);let t=this.visualElement.current,r=xe(t,"pointerdown",l=>{let{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l);}),o=()=>{let{dragConstraints:l}=this.getProps();st(l)&&(this.constraints=this.resolveRefConstraints());},{projection:n}=this.visualElement,i=n.addEventListener("measure",o);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),o();let s=be(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Pe(u=>{let f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate));}),this.visualElement.render());});return ()=>{s(),r(),i(),a&&a();}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:s=Ps,dragMomentum:a=!0}=t;return {...t,drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:s,dragMomentum:a}}};});var Ms,By=m(()=>{ct();ve();jy();Ms=class extends te{constructor(t){super(t),this.removeGroupControls=j,this.removeListeners=j,this.controls=new Rs(t);}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j;}unmount(){this.removeGroupControls(),this.removeListeners();}};});var _y,Ds,Wy=m(()=>{Ec();Br();ct();ve();Ic();ae();_y=e=>(t,r)=>{e&&F.update(()=>e(t,r));},Ds=class extends te{constructor(){super(...arguments),this.removePointerDownListener=j;}onPointerDown(t){this.session=new Xr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:As(this.node)});}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return {onSessionStart:_y(t),onStart:_y(r),onMove:o,onEnd:(i,s)=>{delete this.session,n&&F.update(()=>n(i,s));}}}mount(){this.removePointerDownListener=xe(this.node.current,"pointerdown",t=>this.onPointerDown(t));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}};});function Uy(){let e=useContext(Er);if(e===null)return [!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,n=useId();return useEffect(()=>o(n),[]),!t&&r?[!1,()=>r&&r(n)]:[!0]}var zy=m(()=>{ei();});var Jr,Vc=m(()=>{Jr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};});function Hy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var eo,Gy=m(()=>{We();eo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;let r=Hy(e,t.target.x),o=Hy(e,t.target.y);return `${r}% ${o}%`}};});var qy,Yy=m(()=>{Oe();kt();qy={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=me.parse(e);if(n.length>5)return o;let i=me.createTransformer(e),s=typeof n[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;n[0+s]/=a,n[1+s]/=l;let c=B(a,l,.5);return typeof n[2+s]=="number"&&(n[2+s]/=c),typeof n[3+s]=="number"&&(n[3+s]/=c),i(n)}};});function ks(e){let[t,r]=Uy(),o=useContext(hi);return T__default.createElement(Fc,{...e,layoutGroup:o,switchLayoutGroup:useContext(gi),isPresent:t,safeToRemove:r})}var Fc,dT,jc=m(()=>{zy();ml();hl();Vc();Gy();Yy();bi();li();ae();Fc=class extends T__default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;jm(dT),i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Jr.hasEverUpdated=!0;}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,s=o.projection;return s&&(s.isPresent=i,n||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||F.postRender(()=>{let a=s.getStack();(!a||!a.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$r.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove();}));}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n));}safeToRemove(){let{safeToRemove:t}=this.props;t&&t();}render(){return null}};dT={borderRadius:{...eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomLeftRadius:eo,borderBottomRightRadius:eo,boxShadow:qy};});function tv(e,t,r,o,n,i){n?(e.opacity=B(0,r.opacity!==void 0?r.opacity:1,hT(o)),e.opacityExit=B(t.opacity!==void 0?t.opacity:1,0,gT(o))):i&&(e.opacity=B(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,o));for(let s=0;s<mT;s++){let a=`border${ev[s]}Radius`,l=Jy(t,a),c=Jy(r,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Qy(l)===Qy(c)?(e[a]=Math.max(B(Zy(l),Zy(c),o),0),(pe.test(c)||pe.test(l))&&(e[a]+="%")):e[a]=c;}(t.rotate||r.rotate)&&(e.rotate=B(t.rotate||0,r.rotate||0,o));}function Jy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}function rv(e,t,r){return o=>o<e?0:o>t?1:r(ut(e,t,o))}var ev,mT,Zy,Qy,hT,gT,ov=m(()=>{ql();tn();Oe();ve();We();ev=["TopLeft","TopRight","BottomLeft","BottomRight"],mT=ev.length,Zy=e=>typeof e=="string"?parseFloat(e):e,Qy=e=>typeof e=="number"||M.test(e);hT=rv(0,.5,Xi),gT=rv(.5,.95,j);});function nv(e,t){e.min=t.min,e.max=t.max;}function Ae(e,t){nv(e.x,t.x),nv(e.y,t.y);}var iv=m(()=>{});function sv(e,t,r,o,n){return e-=t,e=un(e,1/r,o),n!==void 0&&(e=un(e,1/n,o)),e}function yT(e,t=0,r=1,o=.5,n,i=e,s=e){if(pe.test(t)&&(t=parseFloat(t),t=B(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=B(i.min,i.max,o);e===i&&(a-=t),e.min=sv(e.min,t,r,a,n),e.max=sv(e.max,t,r,a,n);}function av(e,t,[r,o,n],i,s){yT(e,t[r],t[o],t[n],t.scale,i,s);}function Bc(e,t,r,o){av(e.x,t,vT,r?r.x:void 0,o?o.x:void 0),av(e.y,t,bT,r?r.y:void 0,o?o.y:void 0);}var vT,bT,lv=m(()=>{Oe();We();Os();vT=["x","scaleX","originX"],bT=["y","scaleY","originY"];});function cv(e){return e.translate===0&&e.scale===1}function _c(e){return cv(e.x)&&cv(e.y)}function uv(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Wc(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Uc(e){return ne(e.x)/ne(e.y)}var fv=m(()=>{ln();});var Ls,pv=m(()=>{gs();Ls=class{constructor(){this.members=[];}add(t){qr(this.members,t),t.scheduleRender();}remove(t){if(Yr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r);}}relegate(t){let r=this.members.findIndex(n=>t===n);if(r===0)return !1;let o;for(let n=r;n>=0;n--){let i=this.members[n];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&o.hide();}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:o}=t;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete();});}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1);});}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);}};});function zc(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y;if((n||i)&&(o=`translate3d(${n}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:c,rotateY:u}=r;l&&(o+=`rotate(${l}deg) `),c&&(o+=`rotateX(${c}deg) `),u&&(o+=`rotateY(${u}deg) `);}let s=e.x.scale*t.x,a=e.y.scale*t.y;return (s!==1||a!==1)&&(o+=`scale(${s}, ${a})`),o||"none"}var dv=m(()=>{});var mv,hv=m(()=>{mv=(e,t)=>e.depth-t.depth;});var Ns,gv=m(()=>{gs();hv();Ns=class{constructor(){this.children=[],this.isDirty=!1;}add(t){qr(this.children,t),this.isDirty=!0;}remove(t){Yr(this.children,t),this.isDirty=!0;}forEach(t){this.isDirty&&this.children.sort(mv),this.isDirty=!1,this.children.forEach(t);}};});function yv(e,t){let r=Ue.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(de(o),e(i-t));};return F.read(o,!0),()=>de(o)}var vv=m(()=>{on();ae();});function bv(e){window.MotionDebug&&window.MotionDebug.record(e);}var xv=m(()=>{});function wv(e){return e instanceof SVGElement&&e.tagName!=="svg"}var Sv=m(()=>{});function Cv(e,t,r){let o=Y(e)?e:Ze(e);return o.start(Gr("",o,t,r)),o.animation}var Pv=m(()=>{ds();an();_e();});function Is({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(s={},a=t?.()){this.id=wT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots());},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,or.totalNodes=or.resolvedTargetDeltas=or.recalculatedProjection=0,this.nodes.forEach(PT),this.nodes.forEach($T),this.nodes.forEach(RT),this.nodes.forEach(TT),bv(or);},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ns);}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Lt),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let l=this.eventHandlers.get(s);l&&l.notify(...a);}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=wv(s),this.instance=s;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let f,p=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=yv(p,250),Jr.hasAnimatedSinceResize&&(Jr.hasAnimatedSinceResize=!1,this.nodes.forEach(Av));});}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:d,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=this.options.transition||u.getDefaultTransition()||NT,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),y=!this.targetLayout||!Wc(this.targetLayout,g)||d,b=!p&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||p&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,b);let w={...Hr(h,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w);}else p||Av(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,de(this.updateProjection);}blockUpdate(){this.updateManuallyBlocked=!0;}unblockUpdate(){this.updateManuallyBlocked=!1;}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(MT),this.animationId++);}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1);}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ov);return}this.isUpdating||this.nodes.forEach(OT),this.isUpdating=!1,this.nodes.forEach(AT),this.nodes.forEach(ST),this.nodes.forEach(CT),this.clearAllSnapshots();let a=Ue.now();X.delta=fe(0,1e3/60,a-X.timestamp),X.timestamp=a,X.isProcessing=!0,Vi.update.process(X),Vi.preRender.process(X),Vi.render.process(X),X.isProcessing=!1;}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$r.read(()=>this.update()));}clearAllSnapshots(){this.nodes.forEach(ET),this.sharedNodes.forEach(DT);}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0));}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure());}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=H(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0);}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:o(this.instance),offset:r(this.instance)});}resetTransform(){if(!n)return;let s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!_c(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||ft(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender());}measure(s=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),IT(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return H();let a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Qe(a.x,l.offset.x),Qe(a.y,l.offset.y)),a}removeElementScroll(s){let a=H();Ae(a,s);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){Ae(a,s);let{scroll:p}=this.root;p&&(Qe(a.x,-p.offset.x),Qe(a.y,-p.offset.y));}Qe(a.x,u.offset.x),Qe(a.y,u.offset.y);}}return a}applyTransform(s,a=!1){let l=H();Ae(l,s);for(let c=0;c<this.path.length;c++){let u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&rr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ft(u.latestValues)&&rr(l,u.latestValues);}return ft(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(s){let a=H();Ae(a,s);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!ft(c.latestValues))continue;Es(c.latestValues)&&c.updateSnapshot();let u=H(),f=c.measurePageBox();Ae(u,f),Bc(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u);}return ft(this.latestValues)&&Bc(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0;}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0};}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1;}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==X.timestamp&&this.relativeParent.resolveTargetDelta(!0);}resolveTargetDelta(s=!1){var a;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;let{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=X.timestamp,!this.targetDelta&&!this.relativeTarget){let d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Qr(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yy(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ae(this.target,this.layout.layoutBox),kc(this.target,this.targetDelta)):Ae(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Qr(this.relativeTargetOrigin,this.target,d.target),Ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}or.resolvedTargetDeltas++;}}}getClosestProjectingParent(){if(!(!this.parent||Es(this.parent.latestValues)||Rc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return !!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let a=this.getLead(),l=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===X.timestamp&&(c=!1),c)return;let{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;Ae(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,d=this.treeScale.y;Vy(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=H());let{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=tr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=tr(),this.projectionDeltaWithTransform=tr());let h=this.projectionTransform;Zr(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=zc(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==p||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),or.recalculatedProjection++;}hide(){this.isVisible=!1;}show(){this.isVisible=!0;}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){let a=this.getStack();a&&a.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}setAnimationOrigin(s,a=!1){let l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=tr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let p=H(),d=l?l.source:void 0,g=this.layout?this.layout.source:void 0,h=d!==g,v=this.getStack(),x=!v||v.members.length<=1,y=!!(h&&!x&&this.options.crossfade===!0&&!this.path.some(LT));this.animationProgress=0;let b;this.mixTargetDelta=w=>{let C=w/1e3;$v(f.x,s.x,C),$v(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kT(this.relativeTarget,this.relativeTargetOrigin,p,C),b&&uv(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=H()),Ae(b,this.relativeTarget)),h&&(this.animationValues=u,tv(u,c,this.latestValues,C,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(de(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{Jr.hasAnimatedSinceResize=!0,this.currentAnimation=Cv(0,Ev,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a);},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation();}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0;});}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ev),this.currentAnimation.stop()),this.completeAnimation();}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Lv(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||H();let f=ne(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;let p=ne(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p;}Ae(a,l),rr(a,u),Zr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u);}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Ls),this.sharedNodes.get(s).add(a);let c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0});}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a});}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;let c={};for(let u=0;u<Tv.length;u++){let f="rotate"+Tv[u];l[f]&&(c[f]=l[f],s.setStaticValue(f,0));}s.render();for(let u in c)s.setStaticValue(u,c[u]);s.scheduleRender();}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return xT;let c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Fr(s?.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Fr(s?.pointerEvents)||""),this.hasProjected&&!ft(this.latestValues)&&(h.transform=u?u({},""):"none",this.hasProjected=!1),h}let p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=zc(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));let{x:d,y:g}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${g.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=p.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let h in Mr){if(p[h]===void 0)continue;let{correct:v,applyTo:x}=Mr[h],y=c.transform==="none"?p[h]:v(p[h],f);if(x){let b=x.length;for(let w=0;w<b;w++)c[x[w]]=y;}else c[h]=y;}return this.options.layoutId&&(c.pointerEvents=f===this?Fr(s?.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(s=>{var a;return (a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ov),this.root.sharedNodes.clear();}}}function ST(e){e.updateLayout();}function CT(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:n}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?Pe(f=>{let p=s?r.measuredBox[f]:r.layoutBox[f],d=ne(p);p.min=o[f].min,p.max=p.min+d;}):Lv(i,r.layoutBox,o)&&Pe(f=>{let p=s?r.measuredBox[f]:r.layoutBox[f],d=ne(o[f]);p.max=p.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+d);});let a=tr();Zr(a,o,r.layoutBox);let l=tr();s?Zr(l,e.applyTransform(n,!0),r.measuredBox):Zr(l,o,r.layoutBox);let c=!_c(a),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:d}=f;if(p&&d){let g=H();Qr(g,r.layoutBox,p.layoutBox);let h=H();Qr(h,o,d.layoutBox),Wc(g,h)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=f);}}}e.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u});}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o();}e.options.transition=void 0;}function PT(e){or.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty));}function TT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1;}function ET(e){e.clearSnapshot();}function Ov(e){e.clearMeasurements();}function OT(e){e.isLayoutDirty=!1;}function AT(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function Av(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0;}function $T(e){e.resolveTargetDelta();}function RT(e){e.calcProjection();}function MT(e){e.resetRotation();}function DT(e){e.removeLeadSnapshot();}function $v(e,t,r){e.translate=B(t.translate,0,r),e.scale=B(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint;}function Rv(e,t,r,o){e.min=B(t.min,r.min,o),e.max=B(t.max,r.max,o);}function kT(e,t,r,o){Rv(e.x,t.x,r.x,o),Rv(e.y,t.y,r.y,o);}function LT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}function kv(e){e.min=Dv(e.min),e.max=Dv(e.max);}function IT(e){kv(e.x),kv(e.y);}function Lv(e,t,r){return e==="position"||e==="preserve-aspect"&&!Cs(Uc(t),Uc(r),.2)}var Tv,xT,Ev,wT,or,NT,Mv,Dv,Hc=m(()=>{ys();ov();iv();Os();ln();lv();cn();ps();fv();pv();bi();dv();Oc();Mc();gv();Rl();Vc();vv();Oe();xv();Sv();Pv();Tt();ae();ve();on();li();Tv=["","X","Y","Z"],xT={visibility:"hidden"},Ev=1e3,wT=0,or={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};NT={duration:.45,ease:[.4,0,.1,1]},Mv=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Dv=Mv("applewebkit/")&&!Mv("chrome/")?Math.round:j;});var Nv,Iv=m(()=>{Hc();jr();Nv=Is({attachResizeListener:(e,t)=>be(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});});var Gc,Vs,qc=m(()=>{Hc();Iv();Gc={current:void 0},Vs=Is({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gc.current){let e=new Nv({});e.mount(window),e.setOptions({layoutScroll:!0}),Gc.current=e;}return Gc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});});var Vv,Fv=m(()=>{By();Wy();jc();qc();Vv={pan:{Feature:Ds},drag:{Feature:Ms,ProjectionNode:Vs,MeasureLayout:ks}};});function FT(e){let t=VT.exec(e);if(!t)return [,];let[,r,o]=t;return [r,o]}function Yc(e,t,r=1){Se(r<=jT,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[o,n]=FT(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let s=i.trim();return hs(s)?parseFloat(s):s}else return Si(n)?Yc(n,t,r+1):n}function jv(e,{...t},r){let o=e.current;if(!(o instanceof Element))return {target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(n=>{let i=n.get();if(!Si(i))return;let s=Yc(i,o);s&&n.set(s);});for(let n in t){let i=t[n];if(!Si(i))continue;let s=Yc(i,o);s&&(t[n]=s,r||(r={}),r[n]===void 0&&(r[n]=i));}return {target:t,transitionEnd:r}}var VT,jT,Bv=m(()=>{Ke();yc();Ho();VT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;jT=4;});function zT(e){let t=[];return UT.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),t.length&&e.render(),t}function zv(e,t,r,o){return _T(t)?GT(e,t,r,o):{target:t,transitionEnd:o}}var BT,Uv,_T,Fs,_v,Wv,WT,UT,to,HT,GT,Hv=m(()=>{Ni();Ke();Be();wc();_o();Ot();We();BT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Uv=e=>BT.has(e),_T=e=>Object.keys(e).some(Uv),Fs=e=>e===De||e===M,_v=(e,t)=>parseFloat(e.split(", ")[t]),Wv=(e,t)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let n=o.match(/^matrix3d\((.+)\)$/);if(n)return _v(n[1],t);{let i=o.match(/^matrix\((.+)\)$/);return i?_v(i[1],e):0}},WT=new Set(["x","y","z"]),UT=Pt.filter(e=>!WT.has(e));to={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Wv(4,13),y:Wv(5,14)};to.translateX=to.x;to.translateY=to.y;HT=(e,t,r)=>{let o=t.measureViewportBox(),n=t.current,i=getComputedStyle(n),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{a[c]=to[c](o,i);}),t.render();let l=t.measureViewportBox();return r.forEach(c=>{let u=t.getValue(c);u&&u.jump(a[c]),e[c]=to[c](l,i);}),e},GT=(e,t,r={},o={})=>{t={...t},o={...o};let n=Object.keys(t).filter(Uv),i=[],s=!1,a=[];if(n.forEach(l=>{let c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],f=Kr(u),p=t[l],d;if(Yt(p)){let g=p.length,h=p[0]===null?1:0;u=p[h],f=Kr(u);for(let v=h;v<g&&p[v]!==null;v++)d?Se(Kr(p[v])===d,"All keyframes must be of the same type"):(d=Kr(p[v]),Se(d===f||Fs(f)&&Fs(d),"Keyframes must be of the same dimension as the current value"));}else d=Kr(p);if(f!==d)if(Fs(f)&&Fs(d)){let g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof p=="string"?t[l]=parseFloat(p):Array.isArray(p)&&d===M&&(t[l]=p.map(parseFloat));}else f?.transform&&d?.transform&&(u===0||p===0)?u===0?c.set(d.transform(u)):t[l]=f.transform(p):(s||(i=zT(e),s=!0),a.push(l),o[l]=o[l]!==void 0?o[l]:t[l],c.jump(p));}),a.length){let l=a.indexOf("height")>=0?window.pageYOffset:null,c=HT(t,e,a);return i.length&&i.forEach(([u,f])=>{e.getValue(u).set(f);}),e.render(),St&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:o}}else return {target:t,transitionEnd:o}};});var Gv,qv=m(()=>{Bv();Hv();Gv=(e,t,r,o)=>{let n=jv(e,t,o);return t=n.target,o=n.transitionEnd,zv(e,t,r,o)};});var fn,js,Kc=m(()=>{fn={current:null},js={current:!1};});function Yv(){if(js.current=!0,!!St)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fn.current=e.matches;e.addListener(t),t();}else fn.current=!1;}var Kv=m(()=>{_o();Kc();});function Xv(e,t,r){let{willChange:o}=t;for(let n in t){let i=t[n],s=r[n];if(Y(i))e.addValue(n,i),Jt(o)&&o.add(n);else if(Y(s))e.addValue(n,Ze(i,{owner:e})),Jt(o)&&o.remove(n);else if(s!==i)if(e.hasValue(n)){let a=e.getValue(n);!a.hasAnimated&&a.set(i);}else {let a=e.getStaticValue(n);e.addValue(n,Ze(a!==void 0?a:i,{owner:e}));}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var Zv=m(()=>{ms();an();_e();});var Xc,Qv=m(()=>{Xc=new WeakMap;});var eb,qT,Jv,YT,Bs,tb=m(()=>{cn();ui();Kv();Kc();ys();an();ms();_e();Be();mi();Wo();Zv();Li();dl();pi();Qv();ae();eb=Object.keys(Gt),qT=eb.length,Jv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],YT=zo.length,Bs=class{constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.scheduleRender=()=>F.render(this.render,!1,!0);let{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=Ht(r),this.isVariantNode=di(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(let f in u){let p=u[f];a[f]!==void 0&&Y(p)&&(p.set(a[f],!1),Jt(c)&&c.add(f));}}scrapeMotionValuesFromProps(t,r){return {}}mount(t){this.current=t,Xc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),js.current||Yv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){Xc.delete(this.current),this.projection&&this.projection.unmount(),de(this.notifyUpdate),de(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null;}bindToMotionValue(t,r){let o=ye.has(t),n=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&F.update(this.notifyUpdate,!1,!0),o&&this.projection&&(this.projection.isTransformDirty=!0);}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),i();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},o,n,i){let s,a;for(let l=0;l<qT;l++){let c=eb[l],{isEnabled:u,Feature:f,ProjectionNode:p,MeasureLayout:d}=Gt[c];p&&(s=p),u(r)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),d&&(a=d));}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:l,layout:c,drag:u,dragConstraints:f,layoutScroll:p,layoutRoot:d}=r;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||f&&st(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:d});}return a}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0);}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r;}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Jv.length;o++){let n=Jv[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i));}this.prevMotionValues=Xv(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let o=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let r={};for(let o=0;o<YT;o++){let n=zo[o],i=this.props[n];(at(i)||i===!1)&&(r[n]=i);}return r}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get();}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=Ze(r,{owner:this}),this.addValue(t,o)),o}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r;}getBaseTarget(t){var r;let{initial:o}=this.props,n=typeof o=="string"||typeof o=="object"?(r=Vr(this.props,o))===null||r===void 0?void 0:r[t]:void 0;if(o&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Y(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Lt),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r);}};});var ro,Zc=m(()=>{Sc();qv();tb();ro=class extends Bs{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t];}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...o},n){let i=Jg(o,t||{},this);if(n){Qg(this,o,i);let s=Gv(this,o,i,r);r=s.transitionEnd,o=s.target;}return {transition:t,transitionEnd:r,...o}}};});function KT(e){return window.getComputedStyle(e)}var _s,rb=m(()=>{Pi();Ho();Be();Di();Tl();cs();Nc();Zc();_e();_s=class extends ro{constructor(){super(...arguments),this.type="html";}readValueFromInstance(t,r){if(ye.has(r)){let o=zr(r);return o&&o.default||0}else {let o=KT(t),n=(wi(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Lc(t,r)}build(t,r,o,n){Dr(t,r,o,n.transformTemplate);}scrapeMotionValuesFromProps(t,r){return Ir(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Y(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}renderInstance(t,r,o,n){$i(t,r,o,n);}};});var Ws,ob=m(()=>{Al();Zc();Ei();ri();El();Be();Ol();cs();cn();Ai();Ws=class extends ro{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1;}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ye.has(r)){let o=zr(r);return o&&o.default||0}return r=Ri.has(r)?r:Or(r),t.getAttribute(r)}measureInstanceViewportBox(){return H()}scrapeMotionValuesFromProps(t,r){return ki(t,r)}build(t,r,o,n){Lr(t,r,o,this.isSVGTag,n.transformTemplate);}renderInstance(t,r,o,n){Mi(t,r,o,n);}mount(t){this.isSVGTag=Nr(t.tagName),super.mount(t);}};});var nb,ib=m(()=>{rb();ob();vi();nb=(e,t)=>Rr(e)?new Ws(t,{enableHardwareAcceleration:!1}):new _s(t,{enableHardwareAcceleration:!0});});var sb,ab=m(()=>{qc();jc();sb={layout:{ProjectionNode:Vs,MeasureLayout:ks}};});var XT,Je,lb=m(()=>{Im();Ph();Fh();ly();Fv();ib();ab();XT={...ay,...Vh,...Vv,...sb},Je=Nm((e,t)=>Ch(e,t,XT,nb));});var Us=m(()=>{lb();});var cb,ub,fb,pb,db=m(()=>{Us();cb=styled(Je.div)`
|
|
420
421
|
position: relative;
|
|
421
422
|
z-index: 2;
|
|
422
|
-
`,
|
|
423
|
+
`,ub=styled(Je.div)`
|
|
423
424
|
position: relative;
|
|
424
425
|
padding-top: 10px;
|
|
425
426
|
padding-bottom: 10px;
|
|
426
|
-
`,styled(
|
|
427
|
+
`,styled(Je.div)`
|
|
427
428
|
position: relative;
|
|
428
429
|
padding-top: 12px;
|
|
429
430
|
padding-bottom: 12px;
|
|
430
|
-
`,
|
|
431
|
+
`,fb=styled.div`
|
|
431
432
|
position: relative;
|
|
432
433
|
box-sizing: border-box;
|
|
433
434
|
background: #171c23;
|
|
@@ -450,7 +451,7 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
450
451
|
padding: 0 !important;
|
|
451
452
|
}
|
|
452
453
|
}
|
|
453
|
-
`,
|
|
454
|
+
`,pb=styled(Je.div)`
|
|
454
455
|
background: #143046;
|
|
455
456
|
position: absolute;
|
|
456
457
|
z-index: 1;
|
|
@@ -458,18 +459,18 @@ var J0=Object.create;var mo=Object.defineProperty;var eb=Object.getOwnPropertyDe
|
|
|
458
459
|
top: 44px;
|
|
459
460
|
width: 100%;
|
|
460
461
|
height: 81px;
|
|
461
|
-
`;});var
|
|
462
|
+
`;});var mb,hb=m(()=>{Us();mb=styled(Je.div)`
|
|
462
463
|
position: relative;
|
|
463
464
|
padding-top: 12px;
|
|
464
465
|
padding-bottom: 12px;
|
|
465
466
|
min-height: 57px;
|
|
466
|
-
`;});var
|
|
467
|
+
`;});var eE,gb,yb=m(()=>{Us();hb();eE={default:{filter:"grayscale(1)",opacity:.5},active:{filter:"grayscale(0)",opacity:1}},gb=forwardRef(({active:e,content:t,open:r},o)=>{let n={fontSize:"0.8125rem",lineHeight:"1.1875rem"};return T__default.createElement(mb,{ref:o,initial:"default",animate:e?"active":"default","aria-hidden":!e,variants:eE,transition:{ease:"easeInOut",duration:.6}},t.map(({toggle:i,snippet:s},a)=>T__default.createElement(Fragment,{key:a},i===void 0&&T__default.createElement(SyntaxHighlighter,{language:"typescript",customStyle:n},s),i&&!r&&T__default.createElement(SyntaxHighlighter,{language:"typescript",customStyle:n}," // ..."),i&&r&&T__default.createElement(Je.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4}},T__default.createElement(SyntaxHighlighter,{language:"typescript",customStyle:n,codeTagProps:{style:{paddingLeft:"15px"}}},s)))))});});var vb,bb=m(()=>{db();yb();vb=({activeStep:e,data:t,width:r,filename:o})=>{let[n,i]=useState([]),s=useMemo(()=>t.map(()=>createRef()),[t]),a=u=>{let f=0;for(let p=0;p<u;p++)f-=s[p].current.getBoundingClientRect().height;return f},l=useCallback(()=>{let u=t.flatMap((f,p)=>{let d=s[p].current.getBoundingClientRect().height,g=[{yPos:a(p),backdropHeight:d,index:p,open:!1}];return f.length>1&&g.push({yPos:a(p),backdropHeight:d,index:p,open:!0}),g});i(u);},[t]);useLayoutEffect(()=>{let u=new ResizeObserver(()=>{l();});return s.forEach(f=>{u.observe(f.current);}),()=>{u.disconnect();}},[]);let c={fontSize:"0.8125rem",lineHeight:"1.1875rem"};return T__default.createElement(fb,{width:r},T__default.createElement(ThemeProvider,{theme:ensure(themes.dark)},T__default.createElement(cb,{animate:{y:n[e]?.yPos??0},transition:{ease:"easeInOut",duration:.4}},T__default.createElement(ub,null,T__default.createElement(SyntaxHighlighter,{language:"typescript",customStyle:c},"// "+o)),t.map((u,f)=>T__default.createElement(gb,{key:f,ref:s[f],active:n[e]?.index===f,open:n[e]?.index>f?!0:n[e]?.open??!1,content:u})))),T__default.createElement(pb,{initial:{height:81},animate:{height:n[e]?.backdropHeight??81},transition:{ease:"easeInOut",duration:.4},className:"syntax-highlighter-backdrop"}))};});var xb,wb=m(()=>{xb=styled.ul(()=>({display:"flex",flexDirection:"column",rowGap:16,padding:0,margin:0}));});var Sb,Cb=m(()=>{wb();Sb=({children:e})=>T__default.createElement(xb,null,e);});var Pb,Tb,Eb,Ob=m(()=>{Pb=styled.li(()=>({display:"flex",alignItems:"flex-start",columnGap:12})),Tb=styled.div`
|
|
467
468
|
font-family: ${({theme:e})=>e.typography.fonts.base};
|
|
468
469
|
color: ${({theme:e})=>e.color.darker};
|
|
469
470
|
font-size: 13px;
|
|
470
471
|
line-height: 18px;
|
|
471
472
|
margin-top: 2px;
|
|
472
|
-
`,
|
|
473
|
+
`,Eb=styled.div(({isCompleted:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",border:`1px solid ${e?"transparent":t.color.medium}`,width:20,height:20,flexShrink:0,borderRadius:"50%",backgroundColor:e?t.color.green:"white",fontFamily:t.typography.fonts.base,fontSize:10,fontWeight:600,color:t.color.dark}));});var Hs,Ab=m(()=>{Ob();Hs=({children:e,index:t,isCompleted:r})=>T__default.createElement(Pb,null,T__default.createElement(Eb,{"aria-label":r?"complete":"not complete",isCompleted:r},r?T__default.createElement(Icons,{width:10,height:10,icon:"check",color:"white"}):t),T__default.createElement(Tb,null,e));});function $b(){let[e,t]=useState(null);return useEffect(()=>{(async()=>{try{let i=(await(await fetch("/index.json")).json()).entries["example-button--primary"].importPath;t({data:i,error:null});}catch(o){t({data:null,error:o});}})();},[]),e}var Rb=m(()=>{});var Db,kb=m(()=>{Db=(e,t,r)=>{let[o,n]=useState(null);return useEffect(()=>{if(e){let i=()=>{r.getChannel().once(STORY_RENDERED,()=>{let a=t.getData("example-button--warning");n(a?{data:!0,error:null}:{data:!1,error:null});});},s=r.getChannel?r.getChannel():r.getServerChannel();return t.getData("example-button--warning")?n({data:!0,error:null}):s.on(STORY_INDEX_INVALIDATED,i),()=>{s.off(STORY_INDEX_INVALIDATED,i);}}},[e]),o};});var Lb,Nb=m(()=>{Lb=(e,t)=>{let[r,o]=useState(null),n=document.querySelector(`.${e}`);return useEffect(()=>{if(t){let i=new ResizeObserver(()=>{n&&o({top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth});});return i.observe(n),()=>{i.disconnect();}}},[e,t]),r};});var Vb,Ib=m(()=>{Vb="./01-title-sidebar-HYYN5EU2.png";});var jb,Fb=m(()=>{jb="./02-story-name-sidebar-LO3W4A4B.png";});var _b,Bb=m(()=>{_b="./03-args-E4ZMXWZU.png";});var ir,eu=m(()=>{ir="STORYBOOK_ADDON_ONBOARDING_CHANNEL";});var zb,Hb=m(()=>{In();il();dm();wa();bb();Cb();Ab();Rb();kb();Nb();Ib();Fb();Bb();eu();zb=({onFinish:e,api:t,addonsStore:r,skipOnboarding:o,codeSnippets:n})=>{let[i,s]=useState("imports"),a=useTheme(),l={imports:0,meta:1,story:2,args:3,customStory:4},[c,u]=useState(!1),[f,p]=fm(),d=$b(),g=Db(i==="customStory",t,r),h=Lb("syntax-highlighter-backdrop",i==="customStory"),v=n?.language==="javascript",x=()=>{let b=n.code[3][0].snippet;navigator.clipboard.writeText(b.replace("// Copy the code below","")),u(!0);},y=useCallback(()=>{t.emit(ir,{step:"X:SkippedOnboarding",where:`HowToWriteAStoryModal:${i}`,type:"telemetry"});},[t,i]);return T__default.createElement(Qn,{width:740,height:430,defaultOpen:!0},({Title:b,Description:w,Close:C})=>T__default.createElement(Qf,null,n?T__default.createElement(vb,{activeStep:l[i]||0,data:n.code,width:480,filename:n.filename}):null,i==="customStory"&&h&&!g?.data&&T__default.createElement(ue,{ref:f,onClick:()=>x(),style:{position:"absolute",opacity:p.width?1:0,top:h.top+h.height-45,left:h.left+h.width-(p.width??0)-10,zIndex:1e3}},c?"Copied to clipboard":"Copy code"),T__default.createElement(Jf,null,T__default.createElement(ep,null,T__default.createElement(b,{asChild:!0},T__default.createElement(tp,null,T__default.createElement(Icons,{icon:"bookmarkhollow",width:13}),T__default.createElement("span",null,"How to write a story"))),T__default.createElement(C,{onClick:y,asChild:!0},T__default.createElement(Icons,{style:{cursor:"pointer"},icon:"cross",width:13,onClick:o,color:a.color.darkest}))),T__default.createElement(w,{asChild:!0},T__default.createElement(rp,null,i==="imports"&&T__default.createElement(T__default.Fragment,null,T__default.createElement("div",null,T__default.createElement("h3",null,"Imports"),v?T__default.createElement("p",null,"Import a component. In this case, the Button component."):T__default.createElement(T__default.Fragment,null,T__default.createElement("p",null,"First, import ",T__default.createElement(br,null,"Meta")," and"," ",T__default.createElement(br,null,"StoryObj")," for type safety and autocompletion in TypeScript stories."),T__default.createElement("p",null,"Next, import a component. In this case, the Button component."))),T__default.createElement(ue,{style:{marginTop:4},onClick:()=>{s("meta");}},"Next")),i==="meta"&&T__default.createElement(T__default.Fragment,null,T__default.createElement("div",null,T__default.createElement("h3",null,"Meta"),T__default.createElement("p",null,"The default export, Meta, contains metadata about this component's stories. The title field (optional) controls where stories appear in the sidebar."),T__default.createElement(Vn,{width:"204",alt:"Title property pointing to Storybook's sidebar",src:Vb})),T__default.createElement(Oo,null,T__default.createElement(ue,{variant:"secondary",onClick:()=>s("imports")},"Previous"),T__default.createElement(ue,{onClick:()=>s("story")},"Next"))),i==="story"&&T__default.createElement(T__default.Fragment,null,T__default.createElement("div",null,T__default.createElement("h3",null,"Story"),T__default.createElement("p",null,"Each named export is a story. Its contents specify how the story is rendered in addition to other configuration options."),T__default.createElement(Vn,{width:"190",alt:"Story export pointing to the sidebar entry of the story",src:jb})),T__default.createElement(Oo,null,T__default.createElement(ue,{variant:"secondary",onClick:()=>s("meta")},"Previous"),T__default.createElement(ue,{onClick:()=>s("args")},"Next"))),i==="args"&&T__default.createElement(T__default.Fragment,null,T__default.createElement("div",null,T__default.createElement("h3",null,"Args"),T__default.createElement("p",null,"Args are inputs that are passed to the component, which Storybook uses to render the component in different states. In React, args = props. They also specify the initial control values for the story."),T__default.createElement(Vn,{alt:"Args mapped to their controls in Storybook",width:"253",src:_b})),T__default.createElement(Oo,null,T__default.createElement(ue,{variant:"secondary",onClick:()=>s("story")},"Previous"),T__default.createElement(ue,{onClick:()=>s("customStory")},"Next"))),i==="customStory"&&(g?.error?null:T__default.createElement(T__default.Fragment,null,T__default.createElement("div",null,T__default.createElement("h3",null,"Create your first story"),T__default.createElement("p",null,"Now it's your turn. See how easy it is to create your first story by following these steps below."),T__default.createElement(Sb,null,T__default.createElement(Hs,{isCompleted:c||g?.data,index:1},"Copy the Warning story."),T__default.createElement(Hs,{isCompleted:g?.data,index:2},T__default.createElement(ap,null,"Open the Button story in your current working directory."),d?.data&&T__default.createElement(br,null,d.data.replaceAll("/","/\u200B").replaceAll("\\","\\\u200B"))),T__default.createElement(Hs,{isCompleted:g?.data,index:3},"Paste it at the bottom of the file and save."))),T__default.createElement(Oo,null,T__default.createElement(ue,{variant:"secondary",onClick:()=>s("args")},"Previous"),g?.data?T__default.createElement(ue,{onClick:()=>e()},"Go to story"):null))))),T__default.createElement(op,null,T__default.createElement(np,null),T__default.createElement(ip,null),T__default.createElement(sp,null)))))};});var TE,Gb,qb=m(()=>{TE={filename:"Button.stories.js",language:"typescript",code:[[{snippet:"import { Button } from './Button';"}],[{snippet:`export default {
|
|
473
474
|
title: 'Example/Button',
|
|
474
475
|
component: Button,
|
|
475
476
|
// ...
|
|
@@ -484,7 +485,7 @@ export const Warning = {
|
|
|
484
485
|
label: 'Delete now',
|
|
485
486
|
backgroundColor: 'red',
|
|
486
487
|
}
|
|
487
|
-
};`}]]},
|
|
488
|
+
};`}]]},Gb=TE;});var EE,Yb,Kb=m(()=>{EE={filename:"Button.stories.ts",language:"typescript",code:[[{snippet:`import type { Meta, StoryObj } from '@storybook/react';
|
|
488
489
|
|
|
489
490
|
import { Button } from './Button';`}],[{snippet:`const meta: Meta<typeof Button> = {
|
|
490
491
|
title: 'Example/Button',
|
|
@@ -505,26 +506,9 @@ export const Warning = {
|
|
|
505
506
|
label: 'Delete now',
|
|
506
507
|
backgroundColor: 'red',
|
|
507
508
|
}
|
|
508
|
-
};`}]]},
|
|
509
|
+
};`}]]},Yb=EE;});function Xb(){let[e,t]=useState({data:null,error:null});return useEffect(()=>{(async()=>{try{let i=(await(await fetch("/project.json")).json())?.language==="javascript"?Gb:Yb;t({data:i,error:null});}catch(o){t({data:null,error:o});}})();},[]),e}var Zb=m(()=>{qb();Kb();});var Jb={};lu(Jb,{default:()=>Qb});function Qb({api:e}){let[t,r]=useState(!0),[o,n]=useState(!1),[i,s]=useState("1:Welcome"),{data:a}=Xb(),l=useCallback(()=>{let c=new URL(window.location.href),u=decodeURIComponent(c.searchParams.get("path"));c.search=`?path=${u}&onboarding=false`,history.replaceState({},"",c.href),e.setQueryParams({onboarding:"false"}),r(!1);},[r,e]);return useEffect(()=>{e.emit(ir,{step:"1:Welcome",type:"telemetry"});},[]),useEffect(()=>{i!=="1:Welcome"&&e.emit(ir,{step:i,type:"telemetry"});},[e,i]),useEffect(()=>{let c;return i==="4:VisitNewStory"&&(n(!0),c=window.setTimeout(()=>{s("5:ConfigureYourProject");},2e3)),()=>{clearTimeout(c);}},[i]),useEffect(()=>{let c=e.getCurrentStoryData()?.id;e.setQueryParams({onboarding:"true"}),c!=="example-button--primary"&&e.selectStory("example-button--primary",void 0,{ref:void 0});},[]),t?T__default.createElement(ThemeProvider,{theme:kE},t&&o&&T__default.createElement(Nn,{numberOfPieces:800,recycle:!1,tweenDuration:2e4,onConfettiComplete:c=>{c.reset(),n(!1);}}),t&&i==="1:Welcome"&&T__default.createElement(sm,{onProceed:()=>{s("2:StorybookTour");},skipOnboarding:()=>{l(),e.emit(ir,{step:"X:SkippedOnboarding",where:"WelcomeModal",type:"telemetry"});}}),t&&(i==="2:StorybookTour"||i==="5:ConfigureYourProject")&&T__default.createElement(lp,{api:e,isFinalStep:i==="5:ConfigureYourProject",onFirstTourDone:()=>{s("3:WriteYourStory");},codeSnippets:a,onLastTourDone:()=>{e.selectStory("configure-your-project--docs"),e.emit(ir,{step:"6:FinishedOnboarding",type:"telemetry"}),l();}}),t&&i==="3:WriteYourStory"&&T__default.createElement(zb,{api:e,codeSnippets:a,addonsStore:addons,onFinish:()=>{e.selectStory("example-button--warning"),s("4:VisitNewStory");},skipOnboarding:l})):null}var kE,e0=m(()=>{cp();am();Hb();ba();eu();Zb();kE=convert();});var jE=lazy(()=>Promise.resolve().then(()=>(e0(),Jb)));addons.register("@storybook/addon-onboarding",async e=>{let t=e.getUrlState(),r=t.path==="/onboarding"||t.queryParams.onboarding==="true";e.once(STORY_SPECIFIED,()=>{if(!(!!e.getData("example-button--primary")||!!document.getElementById("example-button--primary"))){console.warn("[@storybook/addon-onboarding] It seems like you have finished the onboarding experience in Storybook! Therefore this addon is not necessary anymore and will not be loaded. You are free to remove it from your project. More info: https://github.com/storybookjs/addon-onboarding#uninstalling");return}if(!r||window.innerWidth<730)return;e.togglePanel(!0),e.togglePanelPosition("bottom"),e.setSelectedPanel("addon-controls");let n=document.createElement("div");n.id="storybook-addon-onboarding",document.body.appendChild(n),On__default.render(T__default.createElement(Suspense,{fallback:T__default.createElement("div",null,"Loading...")},T__default.createElement(jE,{api:e})),n);});});
|
|
509
510
|
/*! Bundled license information:
|
|
510
511
|
|
|
511
|
-
exenv/index.js:
|
|
512
|
-
(*!
|
|
513
|
-
Copyright (c) 2015 Jed Watson.
|
|
514
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
515
|
-
All rights reserved.
|
|
516
|
-
*)
|
|
517
|
-
|
|
518
|
-
react-is/cjs/react-is.production.min.js:
|
|
519
|
-
(** @license React v16.13.1
|
|
520
|
-
* react-is.production.min.js
|
|
521
|
-
*
|
|
522
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
523
|
-
*
|
|
524
|
-
* This source code is licensed under the MIT license found in the
|
|
525
|
-
* LICENSE file in the root directory of this source tree.
|
|
526
|
-
*)
|
|
527
|
-
|
|
528
512
|
popper.js/dist/esm/popper.js:
|
|
529
513
|
(**!
|
|
530
514
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|