@flarehr/apollo-benefits-onboarding 1.77.116 → 1.80.119
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
|
|
1
|
-
var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s,l,c,u,d,p,f={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,r,o,null)}function v(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function w(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function E(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=b({},o)).__v=o.__v+1,a.vnode&&a.vnode(r),F(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function C(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!N.__r++||c!==a.debounceRendering)&&((c=a.debounceRendering)||u)(N)}function N(){var e,t,n,r=[],o=[];for(l.sort(d);e=l.shift();)e.__d&&(n=l.length,t=E(e,r,o)||t,0===n||l.length>n?(j(r,t,o),o.length=r.length=0,t=void 0,l.sort(d)):t&&a.__c&&a.__c(t,m));t&&j(r,t,o),N.__r=0}function O(e,t,n,r,o,i,a,s,l,c,u){var d,p,h,b,y,_=r&&r.__k||m,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?v(null,o,null,null,o):g(o)?v(x,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=P(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),B(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),B(i,i))}(n,t,_),l=n.__d,d=0;d<w;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?f:_[h.__i]||f,h.__i=d,F(e,h,p,o,i,a,s,l,c,u),b=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&M(p.ref,null,h),u.push(h.ref,h.__c||b,h)),null==y&&null!=b&&(y=b),65536&h.__u||p.__k===h.__k?l=R(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:b&&(l=b.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=y}function R(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=R(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function P(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function L(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function I(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||L(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||L(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?U:D,i)):e.removeEventListener(t,i?U:D,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function D(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a.event?a.event(e):e)}}function U(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function F(e,t,n,r,o,s,l,c,u,d){var p,m,h,_,v,w,E,T,C,N,R,A,P,L,D,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),s=[c=t.__e=n.__e]),(p=a.__b)&&p(t);e:if("function"==typeof U)try{if(T=t.props,C=(p=U.contextType)&&r[p.__c],N=p?C?C.props.value:p.__:r,n.__c?E=(m=t.__c=n.__c).__=m.__E:("prototype"in U&&U.prototype.render?t.__c=m=new U(T,N):(t.__c=m=new k(T,N),m.constructor=U,m.render=z),C&&C.sub(m),m.props=T,m.state||(m.state={}),m.context=N,m.__n=r,h=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=U.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=b({},m.__s)),b(m.__s,U.getDerivedStateFromProps(T,m.__s))),_=m.props,v=m.state,m.__v=t,h)null==U.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==U.getDerivedStateFromProps&&T!==_&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(T,N),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(T,m.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=T,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),R=0;R<m._sb.length;R++)m.__h.push(m._sb[R]);m._sb=[],m.__h.length&&l.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(T,m.__s,N),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(_,v,w)}))}if(m.context=N,m.props=T,m.__P=e,m.__e=!1,A=a.__r,P=0,"prototype"in U&&U.prototype.render){for(m.state=m.__s,m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do{m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++P<25);m.state=m.__s,null!=m.getChildContext&&(r=b(b({},r),m.getChildContext())),h||null==m.getSnapshotBeforeUpdate||(w=m.getSnapshotBeforeUpdate(_,v)),O(e,g(D=null!=p&&p.type===x&&null==p.key?p.props.children:p)?D:[D],t,n,r,o,s,l,c,u,d),m.base=t.__e,t.__u&=-161,m.__h.length&&l.push(m),E&&(m.__E=m.__=null)}catch(F){t.__v=null,u||null!=s?(t.__e=c,t.__u|=u?160:32,s[s.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),a.__e(F,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,a,s,l,c){var u,d,p,m,h,b,_,v=n.props,w=t.props,x=t.type;if("svg"===x&&(o=!0),null!=a)for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:3===h.nodeType)){e=h,a[u]=null;break}if(null==e){if(null===x)return document.createTextNode(w);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),a=null,l=!1}if(null===x)v===w||l&&e.data===w||(e.data=w);else{if(a=a&&i.call(e.childNodes),v=n.props||f,!l&&null!=a)for(v={},u=0;u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)h=v[u],"children"==u||("dangerouslySetInnerHTML"==u?p=h:"key"===u||u in w||I(e,u,null,h,o));for(u in w)h=w[u],"children"==u?m=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?b=h:"checked"==u?_=h:"key"===u||l&&"function"!=typeof h||v[u]===h||I(e,u,h,v[u],o);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),O(e,g(m)?m:[m],t,n,r,o&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&S(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&y(a[u]);l||(u="value",void 0!==b&&(b!==e[u]||"progress"===x&&!b||"option"===x&&b!==v[u])&&I(e,u,b,v[u],!1),u="checked",void 0!==_&&_!==e[u]&&I(e,u,_,v[u],!1))}return e}(n.__e,t,n,r,o,s,l,u,d);(p=a.diffed)&&p(t)}function j(e,t,n){for(var r=0;r<n.length;r++)M(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){a.__e(n,t.__v)}}))}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){a.__e(r,n)}}function B(e,t,n){var r,o;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){a.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function H(e,t,n){var r,o,s,l;a.__&&a.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],l=[],F(t,e=(!r&&n||t).__k=_(x,null,[e]),o||f,f,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,l),e.__d=void 0,j(s,e,l)}function V(e,t){H(e,t,V)}function q(e,t,n){var r,o,a,s,l=b({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?r=t[a]:"ref"==a?o=t[a]:l[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):n),v(e.type,l,r||e.key,o||e.ref,null)}function W(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,C(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}i=m.slice,a={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},s=0,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},k.prototype.render=x,l=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(e,t){return e.__v.__b-t.__v.__b},N.__r=0,p=0;var G=["context","children"];function Y(e){return this.getChildContext=function(){return e.context},q(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,G))}function K(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=_(Y,$({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Q(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=_(Z,{name:c},l):r[i]=l}var u=n?_(Z,null,r):r;return _(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:H)(this._vdom,this._root)}function Q(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function J(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Q(e)]=n,this._vdom=q(this._vdom,r),H(this._vdom,this._root)}}function X(){H(this._vdom=null,this._root)}function Z(e,t){var n=this;return _("slot",$({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var ee,te,ne,re,oe=0,ie=[],ae=[],se=a,le=se.__b,ce=se.__r,ue=se.diffed,de=se.__c,pe=se.unmount,fe=se.__;function me(e,t){se.__h&&se.__h(te,e,oe||t),oe=0;var n=te.__H||(te.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ae}),n.__[e]}function he(e){return oe=1,ge(Pe,e)}function ge(e,t,n){var r=me(ee++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=te,!te.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};te.u=!0;var i=te.shouldComponentUpdate,a=te.componentWillUpdate;te.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},te.shouldComponentUpdate=o}return r.__N||r.__}function be(e,t){var n=me(ee++,3);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__H.__h.push(n))}function ye(e,t){var n=me(ee++,4);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__h.push(n))}function _e(e){return oe=5,we((function(){return{current:e}}),[])}function ve(e,t,n){oe=6,ye((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function we(e,t){var n=me(ee++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function xe(e,t){return oe=8,we((function(){return e}),t)}function ke(e){var t=te.context[e.__c],n=me(ee++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(te)),t.props.value):e.__}function Se(e,t){se.useDebugValue&&se.useDebugValue(t?t(e):e)}function Ee(){var e=me(ee++,11);if(!e.__){for(var t=te.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Te(){for(var e;e=ie.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oe),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(Io){e.__H.__h=[],se.__e(Io,e.__v)}}se.__b=function(e){te=null,le&&le(e)},se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fe&&fe(e,t)},se.__r=function(e){ce&&ce(e),ee=0;var t=(te=e.__c).__H;t&&(ne===te?(t.__h=[],te.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ae,e.__N=e.i=void 0}))):(t.__h.forEach(Oe),t.__h.forEach(Re),t.__h=[],ee=0)),ne=te},se.diffed=function(e){ue&&ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ie.push(t)&&re===se.requestAnimationFrame||((re=se.requestAnimationFrame)||Ne)(Te)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ae&&(e.__=e.__V),e.i=void 0,e.__V=ae}))),ne=te=null},se.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Oe),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(wi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],se.__e(wi,e.__v)}})),de&&de(e,t)},se.unmount=function(e){pe&&pe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Oe(e)}catch(n){t=n}})),n.__H=void 0,t&&se.__e(t,n.__v))};var Ce="function"==typeof requestAnimationFrame;function Ne(e){var t,n=function(){clearTimeout(r),Ce&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ce&&(t=requestAnimationFrame(n))}function Oe(e){var t=te,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),te=t}function Re(e){var t=te;e.__c=e.__(),te=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Pe(e,t){return"function"==typeof t?t(e):t}var Le=0;function Ie(e,t,n,r,o,i){var s,l,c={};for(l in t)"ref"==l?s=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return a.vnode&&a.vnode(u),u}const De=e=>Ie("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[Ie("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),Ie("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}),Ue={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1},updateIdentity:e=>({})},Fe=W(Ue);var je=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(je||{});const Me=({className:e,children:t,...n})=>Ie("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t});function Be(e,t){for(var n in t)e[n]=t[n];return e}function ze(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function He(e,t){this.props=e,this.context=t}function Ve(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ze(this.props,e)}function r(t){return this.shouldComponentUpdate=n,_(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(He.prototype=new k).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,t){return ze(this.props,e)||ze(this.state,t)};var qe=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),qe&&qe(e)};var We="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function $e(e){function t(t){var n=Be({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=We,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ge=function(e,t){return null==e?null:A(A(e).map(t))},Ye={map:Ge,forEach:Ge,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},Ke=a.__e;a.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ke(e,t,n,r)};var Qe=a.unmount;function Je(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Be({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Je(e,t,n)}))),e}function Xe(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Xe(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ze(){this.__u=0,this.t=null,this.__b=null}function et(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tt(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return _(n,o)}return o.displayName="Lazy",o.__f=!0,o}function nt(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qe&&Qe(e)},(Ze.prototype=new k).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=et(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Xe(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Ze.prototype.componentWillUnmount=function(){this.t=[]},Ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Je(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&_(x,null,e.fallback);return o&&(o.__u&=-33),[_(x,null,t.__a?null:e.children),o]};var rt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ot(e){return this.getChildContext=function(){return e.context},e.children}function it(e){var t=this,n=e.i;t.componentWillUnmount=function(){H(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),H(_(ot,{context:t.context},e.__v),t.l)}function at(e,t){var n=_(it,{__v:e,i:t});return n.containerInfo=t,n}(nt.prototype=new k).__a=function(e){var t=this,n=et(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),rt(t,e,r)):o()};n?n(i):i()}},nt.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},nt.prototype.componentDidUpdate=nt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){rt(e,n,t)}))};var st="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,lt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ct=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ut=/[A-Z0-9]/g,dt="undefined"!=typeof document,pt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ft(e,t,n){return null==t.__k&&(t.textContent=""),H(e,t),"function"==typeof n&&n(),e?e.__c:null}function mt(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ht=a.event;function gt(){}function bt(){return this.cancelBubble}function yt(){return this.defaultPrevented}a.event=function(e){return ht&&(e=ht(e)),e.persist=gt,e.isPropagationStopped=bt,e.isDefaultPrevented=yt,e.nativeEvent=e};var _t,vt={enumerable:!1,configurable:!0,get:function(){return this.class}},wt=a.vnode;a.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||dt&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||pt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ct.test(o)?o=a:-1===n.indexOf("-")&<.test(o)?o=o.replace(ut,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=A(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=A(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",vt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=st,wt&&wt(e)};var xt=a.__r;a.__r=function(e){xt&&xt(e),_t=e.__c};var kt=a.diffed;a.diffed=function(e){kt&&kt(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),_t=null};var St={ReactCurrentDispatcher:{current:{readContext:function(e){return _t.__n[e.__c].props.value}}}};function Et(e){return _.bind(null,e)}function Tt(e){return!!e&&e.$$typeof===st}function Ct(e){return Tt(e)&&e.type===x}function Nt(e){return Tt(e)?q.apply(null,arguments):e}function Ot(e){return!!e.__k&&(H(null,e),!0)}function Rt(e){return e&&(e.base||1===e.nodeType&&e)||null}var At=function(e,t){return e(t)},Pt=function(e,t){return e(t)},Lt=x;function It(e){e()}function Dt(e){return e}function Ut(){return[!1,It]}var Ft=ye,jt=Tt;function Mt(e,t){var n=t(),r=he({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ye((function(){o.__=n,o.v=t,Bt(o)&&i({h:o})}),[e,n,t]),be((function(){return Bt(o)&&i({h:o}),e((function(){Bt(o)&&i({h:o})}))}),[e]),n}function Bt(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var zt={useState:he,useId:Ee,useReducer:ge,useEffect:be,useLayoutEffect:ye,useInsertionEffect:Ft,useTransition:Ut,useDeferredValue:Dt,useSyncExternalStore:Mt,startTransition:It,useRef:_e,useImperativeHandle:ve,useMemo:we,useCallback:xe,useContext:ke,useDebugValue:Se,version:"17.0.2",Children:Ye,render:ft,hydrate:mt,unmountComponentAtNode:Ot,createPortal:at,createElement:_,createContext:W,createFactory:Et,cloneElement:Nt,createRef:w,Fragment:x,isValidElement:Tt,isElement:jt,isFragment:Ct,findDOMNode:Rt,Component:k,PureComponent:He,memo:Ve,forwardRef:$e,flushSync:Pt,unstable_batchedUpdates:At,StrictMode:Lt,Suspense:Ze,SuspenseList:nt,lazy:tt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:St};const Ht=Object.freeze(Object.defineProperty({__proto__:null,Children:Ye,Component:k,Fragment:x,PureComponent:He,StrictMode:Lt,Suspense:Ze,SuspenseList:nt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:St,cloneElement:Nt,createContext:W,createElement:_,createFactory:Et,createPortal:at,createRef:w,default:zt,findDOMNode:Rt,flushSync:Pt,forwardRef:$e,hydrate:mt,isElement:jt,isFragment:Ct,isValidElement:Tt,lazy:tt,memo:Ve,render:ft,startTransition:It,unmountComponentAtNode:Ot,unstable_batchedUpdates:At,useCallback:xe,useContext:ke,useDebugValue:Se,useDeferredValue:Dt,useEffect:be,useErrorBoundary:function(e){var t=me(ee++,10),n=he();return t.__=e,te.componentDidCatch||(te.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ee,useImperativeHandle:ve,useInsertionEffect:Ft,useLayoutEffect:ye,useMemo:we,useReducer:ge,useRef:_e,useState:he,useSyncExternalStore:Mt,useTransition:Ut,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Vt=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},_("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),qt=e=>{const[t,n]=he(!1);return Ie("button",{type:"button",class:`${e.class} inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto`,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[Ie("div",{class:""+(t?"invisible":""),children:e.children}),t&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"light"})})]})},Wt=({className:e,onClick:t,...n})=>{const[r,o]=he(!1);return Ie("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:xe((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Ie("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"primary"})})]})},$t=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>Ie(x,{children:Ie("div",{class:"relative",children:[o,Ie("input",{type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:xe((e=>{t.test(e.key)||e.preventDefault()}),[t]),onChange:e=>n(e.currentTarget.value),...a}),i]})}),Gt=({className:e,children:t})=>Ie("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Yt=({className:e,children:t})=>Ie("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});class Kt extends Error{}function Qt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Kt.prototype.name="InvalidTokenError";const Jt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Xt=e=>(window.addEventListener(Jt,e),()=>window.removeEventListener(Jt,e)),Zt=()=>{window.dispatchEvent(new Event(Jt))};function en(e,t){return function(){return e.apply(t,arguments)}}const{toString:tn}=Object.prototype,{getPrototypeOf:nn}=Object,rn=(e=>t=>{const n=tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>rn(t)===e),an=e=>t=>typeof t===e,{isArray:sn}=Array,ln=an("undefined");const cn=on("ArrayBuffer");const un=an("string"),dn=an("function"),pn=an("number"),fn=e=>null!==e&&"object"==typeof e,mn=e=>{if("object"!==rn(e))return!1;const t=nn(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},hn=on("Date"),gn=on("File"),bn=on("Blob"),yn=on("FileList"),_n=on("URLSearchParams"),[vn,wn,xn,kn]=["ReadableStream","Request","Response","Headers"].map(on);function Sn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),sn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function En(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Cn=e=>!ln(e)&&e!==Tn;const Nn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&nn(Uint8Array)),On=on("HTMLFormElement"),Rn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),An=on("RegExp"),Pn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ln="abcdefghijklmnopqrstuvwxyz",In="0123456789",Dn={DIGIT:In,ALPHA:Ln,ALPHA_DIGIT:Ln+Ln.toUpperCase()+In};const Un=on("AsyncFunction"),Fn=(jn="function"==typeof setImmediate,Mn=dn(Tn.postMessage),jn?setImmediate:Mn?(Bn=`axios@${Math.random()}`,zn=[],Tn.addEventListener("message",(({source:e,data:t})=>{e===Tn&&t===Bn&&zn.length&&zn.shift()()}),!1),e=>{zn.push(e),Tn.postMessage(Bn,"*")}):e=>setTimeout(e));var jn,Mn,Bn,zn;const Hn="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Tn):"undefined"!=typeof process&&process.nextTick||Fn,Vn={isArray:sn,isArrayBuffer:cn,isBuffer:function(e){return null!==e&&!ln(e)&&null!==e.constructor&&!ln(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||dn(e.append)&&("formdata"===(t=rn(e))||"object"===t&&dn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cn(e.buffer),t},isString:un,isNumber:pn,isBoolean:e=>!0===e||!1===e,isObject:fn,isPlainObject:mn,isReadableStream:vn,isRequest:wn,isResponse:xn,isHeaders:kn,isUndefined:ln,isDate:hn,isFile:gn,isBlob:bn,isRegExp:An,isFunction:dn,isStream:e=>fn(e)&&dn(e.pipe),isURLSearchParams:_n,isTypedArray:Nn,isFileList:yn,forEach:Sn,merge:function e(){const{caseless:t}=Cn(this)&&this||{},n={},r=(r,o)=>{const i=t&&En(n,o)||o;mn(n[i])&&mn(r)?n[i]=e(n[i],r):mn(r)?n[i]=e({},r):sn(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Sn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Sn(t,((t,r)=>{n&&dn(t)?e[r]=en(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&nn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rn,kindOfTest:on,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(sn(e))return e;let t=e.length;if(!pn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:On,hasOwnProperty:Rn,hasOwnProp:Rn,reduceDescriptors:Pn,freezeMethods:e=>{Pn(e,((t,n)=>{if(dn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];dn(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return sn(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:En,global:Tn,isContextDefined:Cn,ALPHABET:Dn,generateString:(e=16,t=Dn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&dn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(fn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=sn(e)?[]:{};return Sn(e,((e,t)=>{const i=n(e,r+1);!ln(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Un,isThenable:e=>e&&(fn(e)||dn(e))&&dn(e.then)&&dn(e.catch),setImmediate:Fn,asap:Hn};function qn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Vn.inherits(qn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wn=qn.prototype,$n={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$n[e]={value:e}})),Object.defineProperties(qn,$n),Object.defineProperty(Wn,"isAxiosError",{value:!0}),qn.from=(e,t,n,r,o,i)=>{const a=Object.create(Wn);return Vn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),qn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Gn(e){return Vn.isPlainObject(e)||Vn.isArray(e)}function Yn(e){return Vn.endsWith(e,"[]")?e.slice(0,-2):e}function Kn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Yn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Qn=Vn.toFlatObject(Vn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Jn(e,t,n){if(!Vn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Vn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Vn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Vn.isSpecCompliantForm(t);if(!Vn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Vn.isDate(e))return e.toISOString();if(!s&&Vn.isBlob(e))throw new qn("Blob is not supported. Use a Buffer instead.");return Vn.isArrayBuffer(e)||Vn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Vn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Vn.isArray(e)&&function(e){return Vn.isArray(e)&&!e.some(Gn)}(e)||(Vn.isFileList(e)||Vn.endsWith(n,"[]"))&&(s=Vn.toArray(e)))return n=Yn(n),s.forEach((function(e,r){!Vn.isUndefined(e)&&null!==e&&t.append(!0===a?Kn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Gn(e)||(t.append(Kn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Qn,{defaultVisitor:c,convertValue:l,isVisitable:Gn});if(!Vn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Vn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Vn.forEach(n,(function(n,i){!0===(!(Vn.isUndefined(n)||null===n)&&o.call(t,n,Vn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Xn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Zn(e,t){this._pairs=[],e&&Jn(e,this,t)}const er=Zn.prototype;function tr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nr(e,t,n){if(!t)return e;const r=n&&n.encode||tr,o=n&&n.serialize;let i;if(i=o?o(t,n):Vn.isURLSearchParams(t)?t.toString():new Zn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}er.append=function(e,t){this._pairs.push([e,t])},er.toString=function(e){const t=e?function(t){return e.call(this,t,Xn)}:Xn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class rr{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Vn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const or={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Zn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ar="undefined"!=typeof window&&"undefined"!=typeof document,sr=(lr="undefined"!=typeof navigator&&navigator.product,ar&&["ReactNative","NativeScript","NS"].indexOf(lr)<0);var lr;const cr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ur=ar&&window.location.href||"http://localhost",dr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ar,hasStandardBrowserEnv:sr,hasStandardBrowserWebWorkerEnv:cr,origin:ur},Symbol.toStringTag,{value:"Module"})),...ir};function pr(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Vn.isArray(r)?r.length:i,s)return Vn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Vn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Vn.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Vn.isFormData(e)&&Vn.isFunction(e.entries)){const n={};return Vn.forEachEntry(e,((e,r)=>{t(function(e){return Vn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const fr={transitional:or,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Vn.isObject(e);o&&Vn.isHTMLForm(e)&&(e=new FormData(e));if(Vn.isFormData(e))return r?JSON.stringify(pr(e)):e;if(Vn.isArrayBuffer(e)||Vn.isBuffer(e)||Vn.isStream(e)||Vn.isFile(e)||Vn.isBlob(e)||Vn.isReadableStream(e))return e;if(Vn.isArrayBufferView(e))return e.buffer;if(Vn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Jn(e,new dr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return dr.isNode&&Vn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Vn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Jn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Vn.isString(e))try{return(t||JSON.parse)(e),Vn.trim(e)}catch(Xo){if("SyntaxError"!==Xo.name)throw Xo}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Vn.isResponse(e)||Vn.isReadableStream(e))return e;if(e&&Vn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Xo){if(n){if("SyntaxError"===Xo.name)throw qn.from(Xo,qn.ERR_BAD_RESPONSE,this,null,this.response);throw Xo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dr.classes.FormData,Blob:dr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vn.forEach(["delete","get","head","post","put","patch"],(e=>{fr.headers[e]={}}));const mr=Vn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hr=Symbol("internals");function gr(e){return e&&String(e).trim().toLowerCase()}function br(e){return!1===e||null==e?e:Vn.isArray(e)?e.map(br):String(e)}function yr(e,t,n,r,o){return Vn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Vn.isString(t)?Vn.isString(r)?-1!==t.indexOf(r):Vn.isRegExp(r)?r.test(t):void 0:void 0)}class _r{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=gr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=br(e))}const i=(e,t)=>Vn.forEach(e,((e,n)=>o(e,n,t)));if(Vn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&mr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Vn.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=gr(e)){const n=Vn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Vn.isFunction(t))return t.call(this,e,n);if(Vn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gr(e)){const n=Vn.findKey(this,e);return!(!n||void 0===this[n]||t&&!yr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=gr(e)){const o=Vn.findKey(n,e);!o||t&&!yr(0,n[o],o,t)||(delete n[o],r=!0)}}return Vn.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!yr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Vn.forEach(this,((r,o)=>{const i=Vn.findKey(n,o);if(i)return t[i]=br(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=br(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Vn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[hr]=this[hr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=gr(e);t[r]||(!function(e,t){const n=Vn.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Vn.isArray(e)?e.forEach(r):r(e),this}}function vr(e,t){const n=this||fr,r=t||n,o=_r.from(r.headers);let i=r.data;return Vn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function wr(e){return!(!e||!e.__CANCEL__)}function xr(e,t,n){qn.call(this,null==e?"canceled":e,qn.ERR_CANCELED,t,n),this.name="CanceledError"}function kr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new qn("Request failed with status code "+n.status,[qn.ERR_BAD_REQUEST,qn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}_r.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vn.reduceDescriptors(_r.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Vn.freezeMethods(_r),Vn.inherits(xr,qn,{__CANCEL__:!0});const Sr=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Er=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Tr=e=>(...t)=>Vn.asap((()=>e(...t))),Cr=dr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Vn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Nr=dr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Vn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Vn.isString(r)&&a.push("path="+r),Vn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Or(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Rr=e=>e instanceof _r?{...e}:e;function Ar(e,t){t=t||{};const n={};function r(e,t,n){return Vn.isPlainObject(e)&&Vn.isPlainObject(t)?Vn.merge.call({caseless:n},e,t):Vn.isPlainObject(t)?Vn.merge({},t):Vn.isArray(t)?t.slice():t}function o(e,t,n){return Vn.isUndefined(t)?Vn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Vn.isUndefined(t))return r(void 0,t)}function a(e,t){return Vn.isUndefined(t)?Vn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Rr(e),Rr(t),!0)};return Vn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Vn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Pr=e=>{const t=Ar({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=_r.from(s),t.url=nr(Or(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Vn.isFormData(r))if(dr.hasStandardBrowserEnv||dr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(dr.hasStandardBrowserEnv&&(o&&Vn.isFunction(o)&&(o=o(t)),o||!1!==o&&Cr(t.url))){const e=i&&a&&Nr.read(a);e&&s.set(i,e)}return t},Lr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Pr(e);let o=r.data;const i=_r.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=_r.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());kr((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new qn("Request aborted",qn.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new qn("Network Error",qn.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||or;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new qn(t,o.clarifyTimeoutError?qn.ETIMEDOUT:qn.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Vn.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Vn.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=Sr(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=Sr(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new xr(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===dr.protocols.indexOf(b)?n(new qn("Unsupported protocol "+b+":",qn.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Ir=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof qn?t:new xr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new qn(`timeout ${t} of ms exceeded`,qn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Dr=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ur=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Dr(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Fr="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,jr=Fr&&"function"==typeof ReadableStream,Mr=Fr&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Br=(e,...t)=>{try{return!!e(...t)}catch(Xo){return!1}},zr=jr&&Br((()=>{let e=!1;const t=new Request(dr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Hr=jr&&Br((()=>Vn.isReadableStream(new Response("").body))),Vr={stream:Hr&&(e=>e.body)};var qr;Fr&&(qr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Vr[e]&&(Vr[e]=Vn.isFunction(qr[e])?t=>t[e]():(t,n)=>{throw new qn(`Response type '${e}' is not supported`,qn.ERR_NOT_SUPPORT,n)})})));const Wr=async(e,t)=>{const n=Vn.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Vn.isBlob(e)?e.size:Vn.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Vn.isArrayBufferView(e)||Vn.isArrayBuffer(e)?e.byteLength:(Vn.isURLSearchParams(e)&&(e+=""),Vn.isString(e)?(await Mr(e)).byteLength:void 0))(t):n},$r={http:null,xhr:Lr,fetch:Fr&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Pr(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?Ir([o,i],a):[];const b=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let y;try{if(l&&zr&&"get"!==n&&"head"!==n&&0!==(y=await Wr(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Vn.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Er(y,Sr(Tr(l)));r=Ur(n.body,65536,e,t,Mr)}}Vn.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=Hr&&("stream"===c||"response"===c);if(Hr&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Vn.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Er(t,Sr(Tr(s),!0))||[];o=new Response(Ur(o.body,65536,n,(()=>{r&&r(),i&&b()}),Mr),e)}c=c||"text";let a=await Vr[Vn.findKey(Vr,c)||"text"](o,e);return!i&&b(),g&&g(),await new Promise(((t,n)=>{kr(t,n,{data:a,headers:_r.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(_){if(b(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new qn("Network Error",qn.ERR_NETWORK,e,m),{cause:_.cause||_});throw qn.from(_,_&&_.code,e,m)}})};Vn.forEach($r,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Xo){}Object.defineProperty(e,"adapterName",{value:t})}}));const Gr=e=>`- ${e}`,Yr=e=>Vn.isFunction(e)||null===e||!1===e,Kr=e=>{e=Vn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Yr(n)&&(r=$r[(t=String(n)).toLowerCase()],void 0===r))throw new qn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new qn("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Gr).join("\n"):" "+Gr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Qr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function Jr(e){Qr(e),e.headers=_r.from(e.headers),e.data=vr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Kr(e.adapter||fr.adapter)(e).then((function(t){return Qr(e),t.data=vr.call(e,e.transformResponse,t),t.headers=_r.from(t.headers),t}),(function(t){return wr(t)||(Qr(e),t&&t.response&&(t.response.data=vr.call(e,e.transformResponse,t.response),t.response.headers=_r.from(t.response.headers))),Promise.reject(t)}))}const Xr="1.7.4",Zr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const eo={};Zr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new qn(r(o," has been removed"+(t?" in "+t:"")),qn.ERR_DEPRECATED);return t&&!eo[o]&&(eo[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const to={assertOptions:function(e,t,n){if("object"!=typeof e)throw new qn("options must be an object",qn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new qn("option "+i+" must be "+n,qn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new qn("Unknown option "+i,qn.ERR_BAD_OPTION)}},validators:Zr},no=to.validators;class ro{constructor(e){this.defaults=e,this.interceptors={request:new rr,response:new rr}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Xo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ar(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&to.assertOptions(n,{silentJSONParsing:no.transitional(no.boolean),forcedJSONParsing:no.transitional(no.boolean),clarifyTimeoutError:no.transitional(no.boolean)},!1),null!=r&&(Vn.isFunction(r)?t.paramsSerializer={serialize:r}:to.assertOptions(r,{encode:no.function,serialize:no.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vn.merge(o.common,o[t.method]);o&&Vn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=_r.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Jr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Jr.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return nr(Or((e=Ar(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Vn.forEach(["delete","get","head","options"],(function(e){ro.prototype[e]=function(t,n){return this.request(Ar(n||{},{method:e,url:t,data:(n||{}).data}))}})),Vn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ar(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ro.prototype[e]=t(),ro.prototype[e+"Form"]=t(!0)}));class oo{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new xr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new oo((function(t){e=t})),cancel:e}}}const io={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(io).forEach((([e,t])=>{io[t]=e}));const ao=function e(t){const n=new ro(t),r=en(ro.prototype.request,n);return Vn.extend(r,ro.prototype,n,{allOwnKeys:!0}),Vn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ar(t,n))},r}(fr);ao.Axios=ro,ao.CanceledError=xr,ao.CancelToken=oo,ao.isCancel=wr,ao.VERSION=Xr,ao.toFormData=Jn,ao.AxiosError=qn,ao.Cancel=ao.CanceledError,ao.all=function(e){return Promise.all(e)},ao.spread=function(e){return function(t){return e.apply(null,t)}},ao.isAxiosError=function(e){return Vn.isObject(e)&&!0===e.isAxiosError},ao.mergeConfig=Ar,ao.AxiosHeaders=_r,ao.formToJSON=e=>pr(Vn.isHTMLForm(e)?new FormData(e):e),ao.getAdapter=Kr,ao.HttpStatusCode=io,ao.default=ao;class so{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,ao.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const lo={backend:new class extends so{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let co;class uo{constructor(){__privateAdd(this,t),__privateAdd(this,n,(async e=>(co||(co=await lo.backend.getIdToken()),e.headers.Authorization=`Bearer ${co}`,e.params={...e.params??{},client:"onboarding",source:"Onboarding",channel:"onboarding"},e)))}initClient(e,r,o){__privateSet(this,t,ao.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...o,"X-PROFILE-ID":r}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,n))}getClient(){return __privateGet(this,t)}}t=new WeakMap,n=new WeakMap;const po=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Zt(),e};let fo=(o=class extends uo{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,r,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,r))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},r=new WeakMap,o);const mo={backend:new class extends so{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),po),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}async command(e){await this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}},workplaceBackend:new fo};const ho={workplaceBackend:new class extends uo{url(e){return`${e}/benefits-plan`}}},go=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Kt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Qt(r)}catch(Xo){throw new Kt(`Invalid token specified: invalid base64 for part #${n+1} (${Xo.message})`)}try{return JSON.parse(o)}catch(Xo){throw new Kt(`Invalid token specified: invalid json for part #${n+1} (${Xo.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};mo.backend.initClient(e,o.backend,n),mo.workplaceBackend.initClient(e,r,o.workplaceBackend),lo.backend.initClient(e,o.backend),ho.workplaceBackend.initClient(e,r,o.workplaceBackend)},bo=e=>{switch(!0){case"started"===e:return mo.backend.command({eventType:"Started"});case"membership-accepted"===e:return mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return mo.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await mo.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await mo.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return mo.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return mo.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return mo.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return mo.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"assessment-viewed"===e.type:return mo.workplaceBackend.track("Assessment Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-skipped"===e.type:return mo.workplaceBackend.track("Assessment Skipped",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-field-updated"===e.type:return mo.workplaceBackend.track("AssessmentField Updated",{id:e.data.assessmentId,name:e.data.assessmentTitle,attribute:e.data.customerAttribute});case"object"==typeof e&&"assessment-submitted"===e.type:return mo.workplaceBackend.track("Assessment Submitted",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-summary-viewed"===e.type:return mo.workplaceBackend.track("AssessmentSummary Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"summary-viewed"===e.type:return mo.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return mo.backend.command({eventType:"Completed"})}return Promise.resolve()},yo=()=>({trace:bo});var _o=Object.defineProperty,vo=(e,t,n)=>(((e,t,n)=>{t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let wo=new class{constructor(){vo(this,"current",this.detect()),vo(this,"handoffState","pending"),vo(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},xo=(e,t)=>{wo.isServer?be(e,t):ye(e,t)};function ko(e){let t=_e(e);return xo((()=>{t.current=e}),[e]),t}function So(e,t){let[n,r]=he(e),o=ko(e);return xo((()=>r(o.current)),[o,r,...t]),n}let Eo=function(e){let t=ko(e);return zt.useCallback(((...e)=>t.current(...e)),[t])};function To(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=To();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Co(){let[e]=he(To);return be((()=>()=>e.dispose()),[e]),e}function No(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Ht&&Ht.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=he(wo.isHandoffComplete);return t&&!1===wo.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>wo.handoff()),[]),!e&&t}var Oo;let Ro=null!=(Oo=zt.useId)?Oo:function(){let e=No(),[t,n]=zt.useState(e?()=>wo.nextId():null);return xo((()=>{null===t&&n(wo.nextId())}),[t]),null!=t?""+t:void 0};function Ao(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ao),r}function Po(e){return wo.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Lo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Io,Do,Uo,Fo=((Uo=Fo||{})[Uo.First=1]="First",Uo[Uo.Previous=2]="Previous",Uo[Uo.Next=4]="Next",Uo[Uo.Last=8]="Last",Uo[Uo.WrapAround=16]="WrapAround",Uo[Uo.NoScroll=32]="NoScroll",Uo),jo=((Do=jo||{})[Do.Error=0]="Error",Do[Do.Overflow=1]="Overflow",Do[Do.Success=2]="Success",Do[Do.Underflow=3]="Underflow",Do),Mo=((Io=Mo||{})[Io.Previous=-1]="Previous",Io[Io.Next=1]="Next",Io),Bo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Bo||{});function zo(e,t=0){var n;return e!==(null==(n=Po(e))?void 0:n.body)&&Ao(t,{0:()=>e.matches(Lo),1(){let t=e;for(;null!==t;){if(t.matches(Lo))return!0;t=t.parentElement}return!1}})}var Ho=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ho||{});function Vo(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}function qo(e,t,n){let r=ko(t);be((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Wo(e,t,n=!0){let r=_e(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!zo(i,Bo.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}be((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=_e(null);qo("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),qo("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),qo("click",(e=>{Vo()||i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),qo("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let r=ko(t);be((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function $o(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Go(e,t){let[n,r]=he((()=>$o(e)));return xo((()=>{r($o(e))}),[e.type,e.as]),xo((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Yo=Symbol();function Ko(...e){let t=_e(e);be((()=>{t.current=e}),[e]);let n=Eo((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Yo])))?void 0:n}function Qo(e){return[e.screenX,e.screenY]}function Jo(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Xo,Zo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zo||{}),ei=((Xo=ei||{})[Xo.Unmount=0]="Unmount",Xo[Xo.Hidden=1]="Hidden",Xo);function ti({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:ri;let l=oi(t,e);if(i)return ni(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ni(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Ao(e?0:1,{0:()=>null,1:()=>ni({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ni(l,n,r,a,s)}function ni(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=si(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(i===x&&Object.keys(ai(l)).length>0){if(!Tt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Jo(null==e?void 0:e.className(...t),l.className):Jo(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Nt(u,Object.assign({},oi(u.props,ai(si(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return _(i,Object.assign({},si(l,["ref"]),i!==x&&c,i!==x&&d),u)}function ri(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function oi(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function ii(e){var t;return Object.assign($e(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ai(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function si(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var li=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(li||{});let ci=ii((function(e,t){var n;let{features:r=1,...o}=e;return ti({ourProps:{ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),ui=W(null);ui.displayName="OpenClosedContext";var di=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(di||{});function pi(){return ke(ui)}function fi({value:e,children:t}){return zt.createElement(ui.Provider,{value:e},t)}function mi(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var hi,gi=((hi=gi||{})[hi.First=0]="First",hi[hi.Previous=1]="Previous",hi[hi.Next=2]="Next",hi[hi.Last=3]="Last",hi[hi.Specific=4]="Specific",hi[hi.Nothing=5]="Nothing",hi);function bi(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function yi(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))vi(n,_i(t,r),o);return n}function _i(e,t){return e?e+"["+t+"]":t}function vi(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())vi(e,_i(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):yi(n,t,e)}var wi,xi=((wi=xi||{}).Space=" ",wi.Enter="Enter",wi.Escape="Escape",wi.Backspace="Backspace",wi.Delete="Delete",wi.ArrowLeft="ArrowLeft",wi.ArrowUp="ArrowUp",wi.ArrowRight="ArrowRight",wi.ArrowDown="ArrowDown",wi.Home="Home",wi.End="End",wi.PageUp="PageUp",wi.PageDown="PageDown",wi.Tab="Tab",wi);function ki(){let e=_e(!1);return xo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}let Si=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ei(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return Si.test(a)&&(a=a.replace(Si,"")),a}function Ti(e){let t=_e(""),n=_e("");return Eo((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Ei(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Ei(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var Ci=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ci||{}),Ni=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ni||{}),Oi=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Oi||{}),Ri=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Ri||{});function Ai(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Pi={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=Ai(e),o=bi(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Ai(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Ai(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Li=W(null);function Ii(e){let t=ke(Li);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ii),t}return t}Li.displayName="ListboxActionsContext";let Di=W(null);function Ui(e){let t=ke(Di);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ui),t}return t}function Fi(e,t){return Ao(t.type,Pi,e,t)}Di.displayName="ListboxDataContext";let ji=x;let Mi=Zo.RenderStrategy|Zo.Static;let Bi=ii((function(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:s=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let f=Ko(t),[m=(u?[]:void 0),h]=function(e,t,n){let[r,o]=he(n),i=void 0!==e,a=_e(i),s=_e(!1),l=_e(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,Eo((e=>(i||o(e),null==t?void 0:t(e))))]}(n,a,r),[g,b]=ge(Fi,{dataRef:{current:null},listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),y=_e({static:!1,hold:!1}),_=_e(null),v=_e(null),w=_e(null),x=Eo("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),k=xe((e=>Ao(S.mode,{1:()=>m.some((t=>x(t,e))),0:()=>x(m,e)})),[m]),S=we((()=>({...g,value:m,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:k,optionsPropsRef:y,labelRef:_,buttonRef:v,optionsRef:w})),[m,l,u,g]);xo((()=>{g.dataRef.current=S}),[S]),Wo([S.buttonRef,S.optionsRef],((e,t)=>{var n;b({type:1}),zo(t,Bo.Loose)||(e.preventDefault(),null==(n=S.buttonRef.current)||n.focus())}),0===S.listboxState);let E=we((()=>({open:0===S.listboxState,disabled:l,value:m})),[S,l,m]),T=Eo((e=>{let t=S.options.find((t=>t.id===e));t&&L(t.dataRef.current.value)})),C=Eo((()=>{if(null!==S.activeOptionIndex){let{dataRef:e,id:t}=S.options[S.activeOptionIndex];L(e.current.value),b({type:2,focus:gi.Specific,id:t})}})),N=Eo((()=>b({type:0}))),O=Eo((()=>b({type:1}))),R=Eo(((e,t,n)=>e===gi.Specific?b({type:2,focus:gi.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n}))),A=Eo(((e,t)=>(b({type:5,id:e,dataRef:t}),()=>b({type:6,id:e})))),P=Eo((e=>(b({type:7,id:e}),()=>b({type:7,id:null})))),L=Eo((e=>Ao(S.mode,{0:()=>null==h?void 0:h(e),1(){let t=S.value.slice(),n=t.findIndex((t=>x(t,e)));return-1===n?t.push(e):t.splice(n,1),null==h?void 0:h(t)}}))),I=Eo((e=>b({type:3,value:e}))),D=Eo((()=>b({type:4}))),U=we((()=>({onChange:L,registerOption:A,registerLabel:P,goToOption:R,closeListbox:O,openListbox:N,selectActiveOption:C,selectOption:T,search:I,clearSearch:D})),[]),F={ref:f},j=_e(null),M=Co();return be((()=>{j.current&&void 0!==r&&M.addEventListener(j.current,"reset",(()=>{null==h||h(r)}))}),[j,h]),zt.createElement(Li.Provider,{value:U},zt.createElement(Di.Provider,{value:S},zt.createElement(fi,{value:Ao(S.listboxState,{0:di.Open,1:di.Closed})},null!=i&&null!=m&&yi({[i]:m}).map((([e,t],n)=>zt.createElement(ci,{features:li.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...ai({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})}))),ti({ourProps:F,theirProps:d,slot:E,defaultTag:ji,name:"Listbox"}))))})),zi=ii((function(e,t){var n;let r=Ro(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=Ui("Listbox.Button"),s=Ii("Listbox.Button"),l=Ko(a.buttonRef,t),c=Co(),u=Eo((e=>{switch(e.key){case xi.Space:case xi.Enter:case xi.ArrowDown:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption(gi.First)}));break;case xi.ArrowUp:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption(gi.Last)}))}})),d=Eo((e=>{if(e.key===xi.Space)e.preventDefault()})),p=Eo((e=>{if(mi(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),s.openListbox())})),f=So((()=>{if(a.labelId)return[a.labelId,o].join(" ")}),[a.labelId,o]),m=we((()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value})),[a]);return ti({ourProps:{ref:l,id:o,type:Go(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":f,disabled:a.disabled,onKeyDown:u,onKeyUp:d,onClick:p},theirProps:i,slot:m,defaultTag:"button",name:"Listbox.Button"})})),Hi=ii((function(e,t){let n=Ro(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=Ui("Listbox.Label"),a=Ii("Listbox.Label"),s=Ko(i.labelRef,t);xo((()=>a.registerLabel(r)),[r]);let l=Eo((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=we((()=>({open:0===i.listboxState,disabled:i.disabled})),[i]);return ti({ourProps:{ref:s,id:r,onClick:l},theirProps:o,slot:c,defaultTag:"label",name:"Listbox.Label"})})),Vi=ii((function(e,t){var n;let r=Ro(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=Ui("Listbox.Options"),s=Ii("Listbox.Options"),l=Ko(a.optionsRef,t),c=Co(),u=Co(),d=pi(),p=null!==d?(d&di.Open)===di.Open:0===a.listboxState;be((()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=Po(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[a.listboxState,a.optionsRef]);let f=Eo((e=>{switch(u.dispose(),e.key){case xi.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case xi.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),To().nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Ao(a.orientation,{vertical:xi.ArrowDown,horizontal:xi.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(gi.Next);case Ao(a.orientation,{vertical:xi.ArrowUp,horizontal:xi.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(gi.Previous);case xi.Home:case xi.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(gi.First);case xi.End:case xi.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(gi.Last);case xi.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case xi.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),u.setTimeout((()=>s.clearSearch()),350))}})),m=So((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.id}),[a.buttonRef.current]),h=we((()=>({open:0===a.listboxState})),[a]);return ti({ourProps:{"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":m,"aria-orientation":a.orientation,id:o,onKeyDown:f,role:"listbox",tabIndex:0,ref:l},theirProps:i,slot:h,defaultTag:"ul",features:Mi,visible:p,name:"Listbox.Options"})})),qi=ii((function(e,t){let n=Ro(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=Ui("Listbox.Option"),l=Ii("Listbox.Option"),c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,u=s.isSelected(i),d=_e(null),p=Ti(d),f=ko({disabled:o,value:i,domRef:d,get textValue(){return p()}}),m=Ko(t,d);xo((()=>{if(0!==s.listboxState||!c||0===s.activationTrigger)return;let e=To();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),xo((()=>l.registerOption(r,f)),[f,r]);let h=Eo((e=>{if(o)return e.preventDefault();l.onChange(i),0===s.mode&&(l.closeListbox(),To().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),g=Eo((()=>{if(o)return l.goToOption(gi.Nothing);l.goToOption(gi.Specific,r)})),b=function(){let e=_e([-1,-1]);return{wasMoved(t){let n=Qo(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Qo(t)}}}(),y=Eo((e=>b.update(e))),_=Eo((e=>{b.wasMoved(e)&&(o||c||l.goToOption(gi.Specific,r,0))})),v=Eo((e=>{b.wasMoved(e)&&(o||c&&l.goToOption(gi.Nothing))})),w=we((()=>({active:c,selected:u,disabled:o})),[c,u,o]);return ti({ourProps:{id:r,ref:m,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:h,onFocus:g,onPointerEnter:y,onMouseEnter:y,onPointerMove:_,onMouseMove:_,onPointerLeave:v,onMouseLeave:v},theirProps:a,slot:w,defaultTag:"li",name:"Listbox.Option"})})),Wi=Object.assign(Bi,{Button:zi,Label:Hi,Options:Vi,Option:qi});function $i(e,...t){e&&t.length>0&&e.classList.add(...t)}function Gi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Yi(e,t,n,r){let o=n?"enter":"leave",i=To(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Ao(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Ao(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ao(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Gi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$i(e,...t.base,...s,...c),i.nextFrame((()=>{Gi(e,...t.base,...s,...c),$i(e,...t.base,...s,...l),function(e,t){let n=To();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(Gi(e,...t.base,...s),$i(e,...t.base,...t.entered),a())))})),i.dispose}function Ki(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Qi=W(null);Qi.displayName="TransitionContext";var Ji=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ji||{});let Xi=W(null);function Zi(e){return"children"in e?Zi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ea(e,t){let n=ko(e),r=_e([]),o=ki(),i=Co(),a=Eo(((e,t=ei.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Ao(t,{[ei.Unmount](){r.current.splice(a,1)},[ei.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Zi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Eo((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,ei.Unmount)})),l=_e([]),c=_e(Promise.resolve()),u=_e({enter:[],leave:[],idle:[]}),d=Eo(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Eo(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return we((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function ta(){}Xi.displayName="NestingContext";let na=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ra(e){var t;let n={};for(let r of na)n[r]=null!=(t=e[r])?t:ta;return n}let oa=Zo.RenderStrategy;let ia=ii((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=_e(null),s=Ko(a,t);No();let l=pi();if(void 0===n&&null!==l&&(n=(l&di.Open)===di.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=he(n?"visible":"hidden"),d=ea((()=>{u("hidden")})),[p,f]=he(!0),m=_e([n]);xo((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=we((()=>({show:n,appear:r,initial:p})),[n,r,p]);be((()=>{if(n)u("visible");else if(Zi(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},b=Eo((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=Eo((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return zt.createElement(Xi.Provider,{value:d},zt.createElement(Qi.Provider,{value:h},ti({ourProps:{...g,as:x,children:zt.createElement(aa,{ref:s,...g,...i,beforeEnter:b,beforeLeave:y})},theirProps:{},defaultTag:x,features:oa,visible:"visible"===c,name:"Transition"})))})),aa=ii((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=_e(null),b=Ko(g,t),y=null==(n=h.unmount)||n?ei.Unmount:ei.Hidden,{show:_,appear:v,initial:w}=function(){let e=ke(Qi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,k]=he(_?"visible":"hidden"),S=function(){let e=ke(Xi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:T}=S;be((()=>E(g)),[E,g]),be((()=>{if(y===ei.Hidden&&g.current)return _&&"visible"!==x?void k("visible"):Ao(x,{hidden:()=>T(g),visible:()=>E(g)})}),[x,g,E,T,_,y]);let C=ko({base:Ki(h.className),enter:Ki(l),enterFrom:Ki(c),enterTo:Ki(u),entered:Ki(d),leave:Ki(p),leaveFrom:Ki(f),leaveTo:Ki(m)}),N=function(e){let t=_e(ra(e));return be((()=>{t.current=ra(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=No();be((()=>{if(O&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,O]);let R=w&&!v,A=v&&_&&w,P=(()=>!O||R?"idle":_?"enter":"leave")(),L=function(e=0){let[t,n]=he(e),r=ki(),o=xe((e=>{r.current&&n((t=>t|e))}),[t,r]),i=xe((e=>Boolean(t&e)),[t]),a=xe((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=xe((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=Eo((e=>Ao(e,{enter:()=>{L.addFlag(di.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(di.Closing),N.current.beforeLeave()},idle:()=>{}}))),D=Eo((e=>Ao(e,{enter:()=>{L.removeFlag(di.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(di.Closing),N.current.afterLeave()},idle:()=>{}}))),U=ea((()=>{k("hidden"),T(g)}),S),F=_e(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=ki(),s=Co(),l=ko(n);xo((()=>{e&&(l.current="enter")}),[e]),xo((()=>{let e=To();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Yi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:C,direction:P,onStart:ko((e=>{F.current=!0,U.onStart(g,e,I)})),onStop:ko((e=>{F.current=!1,U.onStop(g,e,D),"leave"===e&&!Zi(U)&&(k("hidden"),T(g))}))});let j=h,M={ref:b};return A?j={...j,className:Jo(h.className,...C.current.enter,...C.current.enterFrom)}:F.current&&(j.className=Jo(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),zt.createElement(Xi.Provider,{value:U},zt.createElement(fi,{value:Ao(x,{visible:di.Open,hidden:di.Closed})|L.flags},ti({ourProps:M,theirProps:j,defaultTag:"div",features:oa,visible:"visible"===x,name:"Transition.Child"})))})),sa=ii((function(e,t){let n=null!==ke(Qi),r=null!==pi();return zt.createElement(zt.Fragment,null,!n&&r?zt.createElement(ia,{ref:t,...e}):zt.createElement(aa,{ref:t,...e}))})),la=Object.assign(ia,{Child:sa,Root:ia});const ca=({children:e})=>{const t=zt.Children.toArray(e),n=t.find((e=>e.type===ua)),r=t.find((e=>e.type===da));return Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(la,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},ua=({children:e})=>Ie(x,{children:e}),da=({children:e})=>Ie(x,{children:e});ca.Top=ua,ca.Bottom=da;const pa=e=>e.replace(/ /g,""),fa=e=>{const t=pa(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},ma=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=yo(),[o,i]=he(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=ke(Fe),[n,r]=he((()=>e&&fa(e)?e:"")),o=we((()=>fa(n)),[n]),i=we((()=>pa(n)),[n]),a=we((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=we((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=we((()=>fa(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=he(s.isVerified);be((()=>{(async()=>{await r("sign-up-viewed")})()}),[r]);const u=xe((()=>{i("")}),[]),d=xe((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=xe((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=xe((()=>r("sign-up-declined").then(n)),[n,r]),m=xe((async()=>{c(!1)}),[]),h=Ie("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",Ie(Vt,{})]});return Ie(ca,{children:[Ie(ca.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Gt,{children:"Join your workplace benefits program"}),Ie(Yt,{children:[s.isVerified?"Confirm ":"Enter "," your ",Ie("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Ie(ca.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(Me,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),Ie($t,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:u,onfocusout:d,trailingIconElement:l&&h,disabled:l}),0!==o.length&&Ie("div",{className:"h-8 leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:o})}),l&&Ie("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Ie("span",{className:"text-xs",children:["Not your personal number?",Ie(Wt,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Ie("div",{children:Ie("span",{className:"font-medium text-sm text-gray-900 text-center",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",Ie("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Ie(qt,{class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),Ie(qt,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:f,children:"Not now"})]})})]})},ha=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},_("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})),ga=({onContinue:e})=>Ie(ca,{children:[Ie(ca.Top,{children:Ie("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:Ie(ha,{className:"h-7 w-7"})})}),Ie(ca.Bottom,{children:Ie("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Ie(Gt,{children:"You’ve joined your workplace benefits program"}),Ie(Yt,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),Ie(qt,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),ba=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},_("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),ya=({children:e,...t})=>Ie("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),_a=({open:e})=>Ie(ya,{open:e,children:Ie("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})}),Ie(Gt,{children:"Creating your account"}),Ie("div",{children:[Ie(Yt,{children:"This can take up to 30 seconds."}),Ie(Yt,{children:"Please don't navigate away or refresh your browser."})]})]})}),va=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=he("");return{otp:{valid:we((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=he(!1),[l,c]=he(""),{countdown:u,restart:d}=(e=>{const[t,n]=he(e),r=_e(),o=xe((()=>{clearInterval(r.current)}),[]);be((()=>o),[o]);const i=xe((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e]);return{countdown:t,restart:i}})(60);be(d,[d]);const p=xe((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=xe((()=>(c(""),n().then(d).catch(c))),[n,d]);return Ie(x,{children:[Ie(_a,{open:a}),Ie(ca,{children:[Ie(ca.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Gt,{children:"Verify your mobile number"}),Ie(Yt,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Ie(ca.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(Me,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),Ie($t,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",trailingIconElement:!1,onChange:i}),l&&Ie("span",{className:"text-xs text-rose-500",children:l}),Ie("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Ie(Wt,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==u&&Ie(x,{children:["in ",u," secs"]})]}),Ie(qt,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),Ie(qt,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:async()=>{r()},children:Ie("span",{className:"flex gap-3",children:[Ie(ba,{}),"Back"]})})]})})]})]})},wa=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=he(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=he(0),n=xe((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=xe((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=xe((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?je.OTP:je.SUCCESS)}))),[u,t]),p=xe((e=>n(e).then((()=>{u(je.SUCCESS)}))),[u,n]);return Ie(x,{children:[l===je.PHONE_NUMBER&&Ie(ma,{phoneNumber:a,onSubmit:d,onDecline:i}),l===je.OTP&&Ie(va,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===je.SUCCESS&&Ie(ga,{onContinue:o})]})},xa="Onboarding",ka="onboarding";var Sa=(e=>(e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04.",e))(Sa||{});const Ea=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Sa[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Ta=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=ke(Fe),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>mo.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:xa,channel:ka}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await mo.backend.getClient().post("auth/verify",{otp:e,source:xa,channel:ka}).catch(Ea)},resendOtp:async()=>{await mo.backend.getClient().post("auth/resend").catch(Ea)}};return Ie(x,{children:Ie(wa,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ca=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),Na=e=>{const{featureFlags:t}=ke(Fe),[n,r]=he(!0),{trace:o}=yo();return be((()=>{t.unifiedCustomerRegistration||(async()=>{await o("sign-up-viewed")})()}),[]),Ie(ca,{children:[Ie(ca.Top,{children:Ie("img",{class:"max-w-[30rem] w-full",src:Ca})}),Ie(ca.Bottom,{children:Ie("div",{children:[Ie("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Ie("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),!t.unifiedCustomerRegistration&&Ie("div",{class:"flex items-center text-left mt-6",children:[Ie("input",{class:"accent-primary-base h-4 w-4",type:"checkbox",name:"membership",checked:n,onChange:e=>{var t;return r(null==(t=e.target)?void 0:t.checked)}}),Ie("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:Ie("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),Ie(qt,{class:"mt-8",onClickPromise:async()=>{await o("started"),t.unifiedCustomerRegistration||await o(n?"membership-accepted":"membership-declined"),e.onStepComplete()},children:"Continue"})]})})]})},Oa=({children:e})=>{const t=zt.Children.toArray(e),n=t.find((e=>e.type===Ra)),r=t.find((e=>e.type===Aa));return Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(la,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},Ra=({children:e})=>Ie(x,{children:e}),Aa=({children:e})=>Ie(x,{children:e});Oa.Left=Ra,Oa.Right=Aa;
|
2
|
-
/*!
|
3
|
-
const{entries:Pa,setPrototypeOf:La,isFrozen:Ia,getPrototypeOf:Da,getOwnPropertyDescriptor:Ua}=Object;let{freeze:Fa,seal:ja,create:Ma}=Object,{apply:Ba,construct:za}="undefined"!=typeof Reflect&&Reflect;Fa||(Fa=function(e){return e}),ja||(ja=function(e){return e}),Ba||(Ba=function(e,t,n){return e.apply(t,n)}),za||(za=function(e,t){return new e(...t)});const Ha=ts(Array.prototype.forEach),Va=ts(Array.prototype.pop),qa=ts(Array.prototype.push),Wa=ts(String.prototype.toLowerCase),$a=ts(String.prototype.toString),Ga=ts(String.prototype.match),Ya=ts(String.prototype.replace),Ka=ts(String.prototype.indexOf),Qa=ts(String.prototype.trim),Ja=ts(Object.prototype.hasOwnProperty),Xa=ts(RegExp.prototype.test),Za=(es=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return za(es,t)});var es;function ts(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ba(e,t,r)}}function ns(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wa;La&&La(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ia(t)||(t[r]=e),o=e)}e[o]=!0}return e}function rs(e){for(let t=0;t<e.length;t++){Ja(e,t)||(e[t]=null)}return e}function os(e){const t=Ma(null);for(const[n,r]of Pa(e)){Ja(e,n)&&(Array.isArray(r)?t[n]=rs(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=os(r):t[n]=r)}return t}function is(e,t){for(;null!==e;){const n=Ua(e,t);if(n){if(n.get)return ts(n.get);if("function"==typeof n.value)return ts(n.value)}e=Da(e)}return function(){return null}}const as=Fa(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ss=Fa(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ls=Fa(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cs=Fa(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),us=Fa(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ds=Fa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ps=Fa(["#text"]),fs=Fa(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ms=Fa(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hs=Fa(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),gs=Fa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bs=ja(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ys=ja(/<%[\w\W]*|[\w\W]*%>/gm),_s=ja(/\${[\w\W]*}/gm),vs=ja(/^data-[\-\w.\u00B7-\uFFFF]/),ws=ja(/^aria-[\-\w]+$/),xs=ja(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ks=ja(/^(?:\w+script|data):/i),Ss=ja(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Es=ja(/^html$/i);var Ts=Object.freeze({__proto__:null,MUSTACHE_EXPR:bs,ERB_EXPR:ys,TMPLIT_EXPR:_s,DATA_ATTR:vs,ARIA_ATTR:ws,IS_ALLOWED_URI:xs,IS_SCRIPT_OR_DATA:ks,ATTR_WHITESPACE:Ss,DOCTYPE_NAME:Es});var Cs=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.0.9",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=is(h,"cloneNode"),b=is(h,"nextSibling"),y=is(h,"childNodes"),_=is(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,w="";const{implementation:x,createNodeIterator:k,createDocumentFragment:S,getElementsByTagName:E}=r,{importNode:T}=o;let C={};n.isSupported="function"==typeof Pa&&"function"==typeof _&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:N,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:A,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:I}=Ts;let{IS_ALLOWED_URI:D}=Ts,U=null;const F=ns({},[...as,...ss,...ls,...us,...ps]);let j=null;const M=ns({},[...fs,...ms,...hs,...gs]);let B=Object.seal(Ma(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,H=null,V=!0,q=!0,W=!1,$=!0,G=!1,Y=!1,K=!1,Q=!1,J=!1,X=!1,Z=!1,ee=!0,te=!1,ne=!0,re=!1,oe={},ie=null;const ae=ns({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let se=null;const le=ns({},["audio","video","img","source","image","track"]);let ce=null;const ue=ns({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml";let me=fe,he=!1,ge=null;const be=ns({},[de,pe,fe],$a);let ye=null;const _e=["application/xhtml+xml","text/html"];let ve=null,we=null;const xe=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Se=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!we||we!==e){if(e&&"object"==typeof e||(e={}),e=os(e),ye=-1===_e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ye?$a:Wa,U=Ja(e,"ALLOWED_TAGS")?ns({},e.ALLOWED_TAGS,ve):F,j=Ja(e,"ALLOWED_ATTR")?ns({},e.ALLOWED_ATTR,ve):M,ge=Ja(e,"ALLOWED_NAMESPACES")?ns({},e.ALLOWED_NAMESPACES,$a):be,ce=Ja(e,"ADD_URI_SAFE_ATTR")?ns(os(ue),e.ADD_URI_SAFE_ATTR,ve):ue,se=Ja(e,"ADD_DATA_URI_TAGS")?ns(os(le),e.ADD_DATA_URI_TAGS,ve):le,ie=Ja(e,"FORBID_CONTENTS")?ns({},e.FORBID_CONTENTS,ve):ae,z=Ja(e,"FORBID_TAGS")?ns({},e.FORBID_TAGS,ve):{},H=Ja(e,"FORBID_ATTR")?ns({},e.FORBID_ATTR,ve):{},oe=!!Ja(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,X=e.RETURN_DOM_FRAGMENT||!1,Z=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,ee=!1!==e.SANITIZE_DOM,te=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||xs,me=e.NAMESPACE||fe,B=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(q=!1),X&&(J=!0),oe&&(U=ns({},ps),j=[],!0===oe.html&&(ns(U,as),ns(j,fs)),!0===oe.svg&&(ns(U,ss),ns(j,ms),ns(j,gs)),!0===oe.svgFilters&&(ns(U,ls),ns(j,ms),ns(j,gs)),!0===oe.mathMl&&(ns(U,us),ns(j,hs),ns(j,gs))),e.ADD_TAGS&&(U===F&&(U=os(U)),ns(U,e.ADD_TAGS,ve)),e.ADD_ATTR&&(j===M&&(j=os(j)),ns(j,e.ADD_ATTR,ve)),e.ADD_URI_SAFE_ATTR&&ns(ce,e.ADD_URI_SAFE_ATTR,ve),e.FORBID_CONTENTS&&(ie===ae&&(ie=os(ie)),ns(ie,e.FORBID_CONTENTS,ve)),ne&&(U["#text"]=!0),Y&&ns(U,["html","head","body"]),U.table&&(ns(U,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,w=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==v&&"string"==typeof w&&(w=v.createHTML(""));Fa&&Fa(e),we=e}},Ee=ns({},["mi","mo","mn","ms","mtext"]),Te=ns({},["foreignobject","desc","title","annotation-xml"]),Ce=ns({},["title","style","font","a","script"]),Ne=ns({},[...ss,...ls,...cs]),Oe=ns({},[...us,...ds]),Re=function(e){qa(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Ae=function(e,t){try{qa(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){qa(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!j[e])if(J||X)try{Re(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Pe=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Ga(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ye&&me===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(me===fe)try{t=(new f).parseFromString(o,ye)}catch(a){}if(!t||!t.documentElement){t=x.createDocument(me,"template",null);try{t.documentElement.innerHTML=he?w:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),me===fe?E.call(t,Y?"html":"body")[0]:Y?t.documentElement:i},Le=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Ie=function(e){return"function"==typeof l&&e instanceof l},De=function(e,t,r){C[e]&&Ha(C[e],(e=>{e.call(n,t,r,we)}))},Ue=function(e){let t=null;if(De("beforeSanitizeElements",e,null),(r=e)instanceof p&&("string"!=typeof r.nodeName||"string"!=typeof r.textContent||"function"!=typeof r.removeChild||!(r.attributes instanceof d)||"function"!=typeof r.removeAttribute||"function"!=typeof r.setAttribute||"string"!=typeof r.namespaceURI||"function"!=typeof r.insertBefore||"function"!=typeof r.hasChildNodes))return Re(e),!0;var r;const o=ve(e.nodeName);if(De("uponSanitizeElement",e,{tagName:o,allowedTags:U}),e.hasChildNodes()&&!Ie(e.firstElementChild)&&Xa(/<[/\w]/g,e.innerHTML)&&Xa(/<[/\w]/g,e.textContent))return Re(e),!0;if(!U[o]||z[o]){if(!z[o]&&je(o)){if(B.tagNameCheck instanceof RegExp&&Xa(B.tagNameCheck,o))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(o))return!1}if(ne&&!ie[o]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r)t.insertBefore(g(n[r],!0),b(e))}}return Re(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const n=Wa(e.tagName),r=Wa(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===fe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Ne[n]):e.namespaceURI===de?t.namespaceURI===fe?"math"===n:t.namespaceURI===pe?"math"===n&&Te[r]:Boolean(Oe[n]):e.namespaceURI===fe?!(t.namespaceURI===pe&&!Te[r])&&!(t.namespaceURI===de&&!Ee[r])&&!Oe[n]&&(Ce[n]||!Ne[n]):!("application/xhtml+xml"!==ye||!ge[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!Xa(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,Ha([N,O,R],(e=>{t=Ya(t,e," ")})),e.textContent!==t&&(qa(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Re(e),!0)},Fe=function(e,t,n){if(ee&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(q&&!H[t]&&Xa(A,t));else if(V&&Xa(P,t));else if(!j[t]||H[t]){if(!(je(e)&&(B.tagNameCheck instanceof RegExp&&Xa(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&Xa(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Xa(B.tagNameCheck,n)||B.tagNameCheck instanceof Function&&B.tagNameCheck(n))))return!1}else if(ce[t]);else if(Xa(D,Ya(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ka(n,"data:")||!se[e]){if(W&&!Xa(L,Ya(n,I,"")));else if(n)return!1}else;return!0},je=function(e){return"annotation-xml"!==e&&e.indexOf("-")>0},Me=function(e){De("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=ve(s);let d="value"===s?c:Qa(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,r),d=r.attrValue,r.forceKeepAttr)continue;if(Ae(s,e),!r.keepAttr)continue;if(!$&&Xa(/\/>/i,d)){Ae(s,e);continue}G&&Ha([N,O,R],(e=>{d=Ya(d,e," ")}));const p=ve(e.nodeName);if(Fe(p,u,d)){if(!te||"id"!==u&&"name"!==u||(Ae(s,e),d="user-content-"+d),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,u)){case"TrustedHTML":d=v.createHTML(d);break;case"TrustedScriptURL":d=v.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),Va(n.removed)}catch(i){}}}De("afterSanitizeAttributes",e,null)},Be=function e(t){let n=null;const r=Le(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof a&&e(n.content),Me(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(he=!e,he&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw Za("toString is not a function");if("string"!=typeof(e=e.toString()))throw Za("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Se(t),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){const t=ve(e.nodeName);if(!U[t]||z[t])throw Za("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Pe("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!J&&!G&&!Y&&-1===e.indexOf("<"))return v&&Z?v.createHTML(e):e;if(r=Pe(e),!r)return J?null:Z?w:""}r&&Q&&Re(r.firstChild);const u=Le(re?e:r);for(;s=u.nextNode();)Ue(s)||(s.content instanceof a&&Be(s.content),Me(s));if(re)return e;if(J){if(X)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(j.shadowroot||j.shadowrootmode)&&(c=T.call(o,c,!0)),c}let d=Y?r.outerHTML:r.innerHTML;return Y&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Xa(Es,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&Ha([N,O,R],(e=>{d=Ya(d,e," ")})),v&&Z?v.createHTML(d):d},n.setConfig=function(){Se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){we=null,K=!1},n.isValidAttribute=function(e,t,n){we||Se({});const r=ve(e),o=ve(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(C[e]=C[e]||[],qa(C[e],t))},n.removeHook=function(e){if(C[e])return Va(C[e])},n.removeHooks=function(e){C[e]&&(C[e]=[])},n.removeAllHooks=function(){C={}},n}();const Ns=e=>Ie(la,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>Ie("div",{class:"flex space-x-1",children:[Ie("span",{children:Ie(ha,{class:"h-5 w-5 fill-primary-base"})}),Ie("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Os=({id:e,title:t,minimumValue:n,maximumValue:r,onChange:o})=>{const[i,a]=he(""),[s,l]=he(!1),c=xe((e=>{const t=Number(e),o=t>=n&&t<=r;return l(o),o}),[r,n]),u=xe((()=>{a("")}),[]),d=xe((()=>{s||a(`Please enter value between $${n} and $${r}`)}),[s,n,r]),p=Ie("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:Ie("span",{children:"$"})});return Ie("div",{className:"flex flex-col gap-1",children:[Ie(Me,{children:t}),Ie($t,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",className:0!==i.length?"h-8 pl-7 text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-red-500":"h-8 pl-7",onfocusin:u,onfocusout:d,leadingIconElement:p,trailingIconElement:!1,onChange:t=>{const n=c(t)?t:"";o({[e]:n})}}),0!==i.length&&Ie("div",{className:"leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:i})})]})},Rs=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},_("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),As=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>Ie(Wi,{name:e,defaultValue:t,onChange:t=>r({[e]:t.value}),className:`w-fit min-w-60 ${o??""}`,children:Ie("div",{className:"relative",children:[Ie(Wi.Button,{className:"relative w-full h-9 cursor-default rounded-md border-2 bg-white py-0.5 pl-3 pr-10 text-left focus:outline-none focus-visible:border-gray-700",children:({value:e})=>Ie(x,{children:[Ie("span",{className:"block truncate",children:(null==e?void 0:e.label)??"Select"}),Ie("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:Ie(Rs,{className:"h-5 w-5 text-gray-700","aria-hidden":"true"})})]})}),Ie(la,{as:x,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Ie(Wi.Options,{className:"absolute z-20 flex flex-col gap-0.5 mt-1 max-h-60 w-full overflow-auto rounded-md border-2 bg-white py-1 text-base ring-none focus:outline-none focus-visible:border-gray-700",children:n.map((e=>Ie(Wi.Option,{className:({active:e,selected:t})=>`relative h-7 cursor-default select-none py-0.5 pl-3 pr-4 ${e||t?"font-medium text-white":"text-gray-700"} ${e?"bg-primary-hover":t?"bg-primary-base":""}`,value:e,children:({selected:t})=>Ie("span",{className:"block truncate "+(t?"font-medium":"font-normal"),children:e.label})},e.value)))})})]})}),Ps=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>{const i=n[0],a=n[1],[s,l]=he(t||i);return be((()=>{r({[e]:s.value})}),[e,r,s.value]),Ie("div",{className:`bg-gray-200 rounded-md w-fit h-fit p-0.5 ${o??""}`,children:Ie("div",{className:"relative flex gap-2",children:[Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===i,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?i:a)}}),i.label]}),Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===a,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?a:i)}}),a.label]}),Ie("span",{className:"z-11 absolute bg-white rounded-md transition-transform ease-out duration-200 h-7 w-1/2 "+(s===i?"translate-x-0":"translate-x-full")})]})})},Ls=({id:e,title:t,defaultValue:n,options:r,onChange:o})=>Ie("div",{className:"flex flex-col gap-2",children:[Ie(Me,{children:t}),2===r.length?Ie(Ps,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o}):Ie(As,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o})]});function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ds=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};const Us=Is(Ds),Fs=e=>{var t;return(null==e?void 0:e.nextStepId)??("options"in e?null==(t=null==e?void 0:e.options.find((t=>t.value===e.selectedValue)))?void 0:t.nextStepId:void 0)??void 0},js=e=>{const t=[];let n=e[0].id;for(;n;){const r=e.find((e=>e.id===n));r?(t.push(r),n=Fs(r)):n=void 0}return t},Ms=e=>e.reduce(((e,t)=>({...e,[t.id]:t.selectedValue})),{}),Bs=e=>{switch(e.template){case"SingleSelect":return Ie(Ls,{...e});case"Currency":return Ie(Os,{...e});default:return Ie(x,{})}},zs=({questions:e,onChange:t,className:n})=>{const{questions:r,answerQuestion:o,answers:i}=(e=>{const t=_e(e.reduce(((e,t)=>{let n;return"SingleSelect"===t.template&&(n=t.defaultValue,2===t.options.length&&(n=t.options[0].value)),[...e,{...t,selectedValue:n}]}),[])),[n,r]=he(js(t.current)),[o,i]=he(Ms(t.current)),a=xe((e=>{const n=((e,t)=>e.map((e=>{const n=t[e.id]??e.selectedValue;return{...e,selectedValue:n,defaultValue:n}})))(t.current,e);if(Us(t.current,n))return;t.current=n;const o=js(n);r(o),i(Ms(o))}),[]);return{questions:n,answerQuestion:a,answers:o}})(e);return be((()=>t(i)),[i,t]),Ie("div",{className:`flex flex-col gap-4 ${n??""}`,children:r.map((e=>Ie(Bs,{...e,onChange:o},e.id)))})},Hs=(e,t)=>{var n,r;const o=e.find((e=>e.id===t));return(null==o?void 0:o.nextStepId)??(null==(r=null==(n=null==o?void 0:o.options)?void 0:n.find((e=>e.value===o.defaultValue)))?void 0:r.nextStepId)};var Vs=(e=>(e[e.BriefIntroduction=0]="BriefIntroduction",e[e.Questions=1]="Questions",e[e.SubmissionResult=2]="SubmissionResult",e))(Vs||{});const qs=(e,t,n,r)=>{const{activity:o,getActivity:i,progressActivity:a,calculation:s,getCalculation:l}=(e=>{const[t,n]=he(),[r,o]=he();return{activity:t,getActivity:()=>ho.workplaceBackend.getClient().get(`v2.0/activities/${e}/steps`).then((e=>{n(e.data)})),progressActivity:t=>{const n={activityAction:"ProgressStartToComplete",progressEvents:Object.entries(t).map((([e,t])=>({stepId:e,value:t})))};return ho.workplaceBackend.getClient().put(`v1.0/customer/activities/${e}`,n)},calculation:r,getCalculation:async()=>ho.workplaceBackend.getClient().get(`v1.0/activities/${e}/calculate`).then((e=>o(e.data)))}})(e.content.assessmentId),c=we((()=>o?((e,t)=>{let n,r=e;for(;!n;){const e=t.find((e=>e.id==r));"Question"===e.stepType&&(n=e),r=Hs(t,e.id)}return[n,...t.filter((e=>e!==n&&"Question"===e.stepType))]})(o.firstStepId,o.steps):void 0),[o]),[u,d]=he(0),[p,f]=he(!0),m=_e(),h=_e({}),g=xe((e=>{const t=m.current;return t?Object.entries(e).filter((([e,n])=>t[e]!==n)).map((([e,t])=>{var n;return{questionId:e,answer:t,customerAttribute:(null==(n=null==o?void 0:o.steps.find((t=>t.id===e)))?void 0:n.customerAttribute)??""}})):[]}),[null==o?void 0:o.steps]),b=xe((async e=>{switch(u){case 0:await i(),d(1);break;case 1:e&&await a(h.current),await l(),d(2)}}),[u,i,l,a]);return{title:we((()=>{switch(u){case 0:case 1:return e.content.title;case 2:return null==s?void 0:s.estimates.primary.title;default:return}}),[null==s?void 0:s.estimates.primary.title,u,e.content.title]),description:we((()=>{switch(u){case 0:case 1:return e.content.description;case 2:return null==s?void 0:s.estimates.blurb.text;default:return}}),[null==s?void 0:s.estimates.blurb.text,u,e.content.description]),primaryButtonEnabled:p,primaryButtonText:we((()=>{switch(u){case 0:return t;case 1:return"Submit";case 2:return"Next";default:return}}),[t,u]),secondaryButtonText:we((()=>{switch(u){case 0:return n;case 1:if(r)return;return"I'll do this later";default:return}}),[u,n]),currentSlide:u,goToNextSlide:b,questions:c,calculateUpdatedAnswers:g,updateAnswers:e=>{1===u&&(h.current=e,m.current={...m.current,...e},f(!Object.values(e).some((e=>!e))))},submissionResult:s?{imageUrl:s.estimates.blurb.imageUrl}:void 0}},Ws=Object.values(Vs).filter((e=>!isNaN(Number(e)))),$s=(e,t)=>{const n=Ws.indexOf(e),r=Ws.indexOf(t);return n<r?`transition duration-300 -translate-x-[${100*(n+1)}%] opacity-0 h-0`:n===r?`transition duration-300 -translate-x-[${100*n}%] opacity-100 h-full`:n>r?`transition duration-300 -translate-x-[${100*(n-1)}%] opacity-0 h-0`:void 0},Gs=e=>{var t;return Ie("div",{className:"flex flex-row",children:[Ie("div",{className:"-translate-x-[0%] -translate-x-[100%] -translate-x-[200%]"}),Ie("div",{className:`w-full flex-none ${$s(Vs.BriefIntroduction,e.currentSlide)}`,children:Ie(Ns,{items:e.offer.content.details})}),Ie("div",{className:`w-full flex-none ${$s(Vs.Questions,e.currentSlide)}`,children:e.questions&&Ie(zs,{questions:e.questions,onChange:e.onQuestionsAnswered})}),Ie("div",{className:`w-full flex-none ${$s(Vs.SubmissionResult,e.currentSlide)}`,children:Ie("img",{class:"mt-4 max-w-full w-full mx-auto",src:null==(t=e.submissionResult)?void 0:t.imageUrl,loading:"lazy"})})]})},Ys=e=>{const{step:{name:t,content:{assessmentId:n}}}=e,{title:r,description:o,currentSlide:i,goToNextSlide:a,primaryButtonEnabled:s,primaryButtonText:l,secondaryButtonText:c,questions:u,calculateUpdatedAnswers:d,updateAnswers:p,submissionResult:f}=qs(e.step,e.acceptButton.text,e.declineButton.text,e.step.content.skipButtonHidden),{trace:m}=yo();be((()=>{(async()=>{await m({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[]),be((()=>{i===Vs.Questions&&m({type:"assessment-viewed",data:{assessmentId:n,assessmentTitle:t}}),i===Vs.SubmissionResult&&m({type:"assessment-summary-viewed",data:{assessmentId:n,assessmentTitle:t}})}),[n,t,i,m]);const h=xe((e=>{d(e).forEach((({customerAttribute:e})=>{m({type:"assessment-field-updated",data:{assessmentId:n,assessmentTitle:t,customerAttribute:e}})})),p(e)}),[n,t,d,m,p]),g=xe((async()=>{i===Vs.BriefIntroduction&&(await m({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),await a(!0)),i===Vs.Questions&&(m({type:"assessment-submitted",data:{assessmentId:n,assessmentTitle:t}}),await a(!0)),i===Vs.SubmissionResult&&e.onComplete()}),[n,t,i,a,e,m]),b=xe((async()=>{i===Vs.BriefIntroduction&&(await m({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),e.declineButton.onClick()),i===Vs.Questions&&(m({type:"assessment-skipped",data:{assessmentId:n,assessmentTitle:t}}),await a(!1))}),[n,t,i,e.declineButton,e.step.content.template,e.step.metadata,e.step.name,m]);return Ie(Oa,{children:[Ie(Oa.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:Ie("div",{class:"flex flex-col justify-stretch md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r}),o&&Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o}),Ie("div",{className:"mt-6",children:Ie(Gs,{currentSlide:i,offer:e.step,questions:u,onQuestionsAnswered:h,submissionResult:f})}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[l&&Ie(qt,{class:"",disabled:i!==Vs.SubmissionResult&&!s,onClickPromise:g,children:l}),c&&Ie(qt,{class:"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:b,children:c})]}),Ie("div",{className:`flex flex-col gap-3 mt-6 text-gray-600 text-xs ${$s(Vs.BriefIntroduction,i)}`,children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Cs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})]})}),Ie(Oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ks=e=>{const[t,n]=he(!1);return Ie("div",{class:e.class,children:t?Ie(Ns,{items:e.items}):Ie("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",Ie("span",{class:"ml-1",children:Ie(Rs,{class:"h-4 w-4"})})]})})},Qs=e=>{var t;const{trace:n}=yo();be((()=>{(async()=>{await n({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,n]);const r=async t=>{t?await n({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await n({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Ie(Oa,{children:[Ie(Oa.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(Ns,{items:e.step.content.details})})]}),e.step.content.details&&Ie(Ks,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Ie(qt,{class:e.primaryButton.class??"",onClickPromise:()=>r(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&Ie(qt,{class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>r(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Cs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Ie(Oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Js=e=>{const{trace:t}=yo();be((()=>{(async()=>{"name"in e.step&&await t({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,t]);return Ie(Oa,{children:[Ie(Oa.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(la,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(Ns,{items:e.step.content.details})})]}),e.step.content.details&&Ie(Ks,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(qt,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await t({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Cs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Ie(Oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Xs=e=>{switch(e.marketPlaceOffer.content.template){case"Eoi":return Ie(Qs,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete},secondaryButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete}});case"Simple":return Ie(Js,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete}});case"Assessment":return Ie(Ys,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,acceptButton:{text:e.marketPlaceOffer.content.acceptButton},declineButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete},onComplete:e.onStepComplete},e.marketPlaceOffer.name)}},Zs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),el=e=>_("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),tl=e=>_("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),nl=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),rl=()=>{const{trace:e}=yo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:t}=ke(Fe),n={...ol(t),imageUrl:Zs,mobileImageUrl:nl},r={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await e("completed");const t=document.querySelector(ul),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(Oa,{children:[Ie(Oa.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"mt-6 flex space-x-6",children:[Ie(el,{}),Ie(tl,{})]}),Ie(qt,{class:r.class,onClickPromise:r.onClick,children:r.text})]})}),Ie(Oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},ol=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},il=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),al=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),sl=()=>{const{trace:e}=yo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:t}=ke(Fe),n={imageUrl:il,mobileImageUrl:al,title:"You're all set!",description:"PreviouslyLinked"===t.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},r={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await e("completed");const t=document.querySelector(ul),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(Oa,{children:[Ie(Oa.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(qt,{class:r.class,onClickPromise:r.onClick,children:r.text})})]})}),Ie(Oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},ll=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=ke(Fe),{current:s,goNext:l}=function(e,t,n,r,o,i){const a=function(e,t,n,r,o,i){const{unifiedCustomerRegistration:a}=i,s=n?"SummaryApp":"SummaryGeneric";if(t)return[s];if(!a)return["Introduction",...e.map((e=>e.name)),s];switch(!0){case"Unregistered"===r.registrationStatus:case"PreviouslyRegistered"===r.registrationStatus&&"Unlinked"===o.linkingStatus:return["Introduction","FlareAppIdentity"];case"PreviouslyRegistered"===r.registrationStatus&&"NewlyLinked"==o.linkingStatus:case"NewlyRegistered"===r.registrationStatus:return[...e.map((e=>e.name)),s];case"PreviouslyRegistered"===r.registrationStatus&&"PreviouslyLinked"==o.linkingStatus:case"RegistrationAbandoned"===r.registrationStatus:return[s];default:return[]}}(e,t,n,r,o,i),[s,l]=he(a[0]),c=we((()=>{const t=e.find((e=>e.name===s));return t?{screenName:"MarketplaceOffer",offerName:t.name}:{screenName:s}}),[s,e]);return a.some((e=>e===s))||l(a[0]),{current:c,goNext:()=>{try{const e=a.findIndex((e=>e===s)),t=a[e+1];l(t)}catch{}}}}(e,t,n,r,o,i),c=xe((()=>{a(!0)}),[a]),u=xe((()=>{a(!1)}),[a]);switch(s.screenName){case"Introduction":return Ie(Na,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return Ie(Ta,{onSuccess:c,onDecline:u});case"MarketplaceOffer":return Ie(Xs,{stepNumber:{current:e.findIndex((e=>e.name===s.offerName))+1,total:e.length},marketPlaceOffer:e.find((e=>e.name===s.offerName)),onStepComplete:l});case"SummaryApp":return Ie(rl,{});case"SummaryGeneric":return Ie(sl,{});default:return Ie(x,{})}},cl=e=>{const t=e.offers.some((e=>"Perks"===e.name)),n=e.identity.isRegistered?"PreviouslyRegistered":"Unregistered",r={email:e.identity.email,phoneNumber:e.identity.phoneNumber??"",verifiedPhoneNumber:e.identity.verifiedPhoneNumber??"",registrationStatus:n},o=e.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked",i={employerName:e.workplace.employerName,linkingStatus:o};return{...Ue,...e,isAppEnabled:t,identity:r,workplace:i}},ul="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=K,o.prototype.attributeChangedCallback=J,o.prototype.disconnectedCallback=X,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=he(),[r,o]=he(0);be((()=>Xt((()=>{i().then((()=>o(r+1)))}))),[r]),be((()=>{i()}),[]);const i=async()=>{const t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};go(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await mo.backend.init();n(cl(r))},a=xe((e=>{if(!t)return;const{identity:r,workplace:o}=t,i=e?"Unregistered"===r.registrationStatus?"NewlyRegistered":r.registrationStatus:"RegistrationAbandoned",a=e?"Unlinked"===o.linkingStatus?"NewlyLinked":o.linkingStatus:"Unlinked";n({...t,identity:{...r,registrationStatus:i},workplace:{...o,linkingStatus:a}})}),[t]);return Ie(x,{children:[Ie("style",{children:'/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[90\\%\\]{height:90%}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-60{max-height:15rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-60{min-width:15rem}.max-w-40{max-width:10rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-\\[0\\%\\]{--tw-translate-x:-0%}.-translate-x-\\[0\\%\\],.-translate-x-\\[100\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-\\[100\\%\\]{--tw-translate-x:-100%}.-translate-x-\\[200\\%\\]{--tw-translate-x:-200%}.-translate-x-\\[200\\%\\],.-translate-y-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-6{--tw-translate-y:-1.5rem}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-\\[1\\.25rem\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-hover{background-color:var(--fl-color-primary-hover)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pl-7{padding-left:1.75rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.ring-red-300{--tw-ring-opacity:1;--tw-ring-color:rgb(252 165 165/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-red-300::-moz-placeholder{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.placeholder\\:text-red-300::placeholder{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:border-gray-700:focus-visible{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:.75}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width:768px){.md\\:mt-0{margin-top:0}.md\\:mt-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}'.toString()}),Ie("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Ie(Fe.Provider,{value:{...t,updateIdentity:a},children:Ie(ll,{})}):Ie("div",{class:"flex justify-center",children:Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})})})},r)]})}),ul,[],{shadow:!0})}));
|
1
|
+
var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s,l,c,u,d,p,f={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return w(e,s,r,o,null)}function w(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function _(){return{current:null}}function x(e){return e.children}function E(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function S(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=b({},o)).__v=o.__v+1,a.vnode&&a.vnode(r),U(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?k(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function C(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!N.__r++||c!==a.debounceRendering)&&((c=a.debounceRendering)||u)(N)}function N(){var e,t,n,r=[],o=[];for(l.sort(d);e=l.shift();)e.__d&&(n=l.length,t=S(e,r,o)||t,0===n||l.length>n?(j(r,t,o),o.length=r.length=0,t=void 0,l.sort(d)):t&&a.__c&&a.__c(t,m));t&&j(r,t,o),N.__r=0}function O(e,t,n,r,o,i,a,s,l,c,u){var d,p,h,b,v,y=r&&r.__k||m,_=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?w(null,o,null,null,o):g(o)?w(x,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?w(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=P(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=k(i)),B(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=k(i)),B(i,i))}(n,t,y),l=n.__d,d=0;d<_;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?f:y[h.__i]||f,h.__i=d,U(e,h,p,o,i,a,s,l,c,u),b=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&M(p.ref,null,h),u.push(h.ref,h.__c||b,h)),null==v&&null!=b&&(v=b),65536&h.__u||p.__k===h.__k?l=R(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:b&&(l=b.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function R(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=R(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function P(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function L(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function I(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||L(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||L(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?F:D,i)):e.removeEventListener(t,i?F:D,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function D(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a.event?a.event(e):e)}}function F(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function U(e,t,n,r,o,s,l,c,u,d){var p,m,h,y,w,_,S,T,C,N,R,A,P,L,D,F=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),s=[c=t.__e=n.__e]),(p=a.__b)&&p(t);e:if("function"==typeof F)try{if(T=t.props,C=(p=F.contextType)&&r[p.__c],N=p?C?C.props.value:p.__:r,n.__c?S=(m=t.__c=n.__c).__=m.__E:("prototype"in F&&F.prototype.render?t.__c=m=new F(T,N):(t.__c=m=new E(T,N),m.constructor=F,m.render=z),C&&C.sub(m),m.props=T,m.state||(m.state={}),m.context=N,m.__n=r,h=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=F.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=b({},m.__s)),b(m.__s,F.getDerivedStateFromProps(T,m.__s))),y=m.props,w=m.state,m.__v=t,h)null==F.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==F.getDerivedStateFromProps&&T!==y&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(T,N),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(T,m.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=T,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),R=0;R<m._sb.length;R++)m.__h.push(m._sb[R]);m._sb=[],m.__h.length&&l.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(T,m.__s,N),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(y,w,_)}))}if(m.context=N,m.props=T,m.__P=e,m.__e=!1,A=a.__r,P=0,"prototype"in F&&F.prototype.render){for(m.state=m.__s,m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do{m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++P<25);m.state=m.__s,null!=m.getChildContext&&(r=b(b({},r),m.getChildContext())),h||null==m.getSnapshotBeforeUpdate||(_=m.getSnapshotBeforeUpdate(y,w)),O(e,g(D=null!=p&&p.type===x&&null==p.key?p.props.children:p)?D:[D],t,n,r,o,s,l,c,u,d),m.base=t.__e,t.__u&=-161,m.__h.length&&l.push(m),S&&(m.__E=m.__=null)}catch(U){t.__v=null,u||null!=s?(t.__e=c,t.__u|=u?160:32,s[s.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),a.__e(U,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,a,s,l,c){var u,d,p,m,h,b,y,w=n.props,_=t.props,x=t.type;if("svg"===x&&(o=!0),null!=a)for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:3===h.nodeType)){e=h,a[u]=null;break}if(null==e){if(null===x)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,_.is&&_),a=null,l=!1}if(null===x)w===_||l&&e.data===_||(e.data=_);else{if(a=a&&i.call(e.childNodes),w=n.props||f,!l&&null!=a)for(w={},u=0;u<e.attributes.length;u++)w[(h=e.attributes[u]).name]=h.value;for(u in w)h=w[u],"children"==u||("dangerouslySetInnerHTML"==u?p=h:"key"===u||u in _||I(e,u,null,h,o));for(u in _)h=_[u],"children"==u?m=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?b=h:"checked"==u?y=h:"key"===u||l&&"function"!=typeof h||w[u]===h||I(e,u,h,w[u],o);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),O(e,g(m)?m:[m],t,n,r,o&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&k(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&v(a[u]);l||(u="value",void 0!==b&&(b!==e[u]||"progress"===x&&!b||"option"===x&&b!==w[u])&&I(e,u,b,w[u],!1),u="checked",void 0!==y&&y!==e[u]&&I(e,u,y,w[u],!1))}return e}(n.__e,t,n,r,o,s,l,u,d);(p=a.diffed)&&p(t)}function j(e,t,n){for(var r=0;r<n.length;r++)M(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){a.__e(n,t.__v)}}))}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){a.__e(r,n)}}function B(e,t,n){var r,o;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){a.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function H(e,t,n){var r,o,s,l;a.__&&a.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],l=[],U(t,e=(!r&&n||t).__k=y(x,null,[e]),o||f,f,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,l),e.__d=void 0,j(s,e,l)}function q(e,t){H(e,t,q)}function W(e,t,n){var r,o,a,s,l=b({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?r=t[a]:"ref"==a?o=t[a]:l[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):n),w(e.type,l,r||e.key,o||e.ref,null)}function V(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,C(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}i=m.slice,a={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},s=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},E.prototype.render=x,l=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(e,t){return e.__v.__b-t.__v.__b},N.__r=0,p=0;var G=["context","children"];function Y(e){return this.getChildContext=function(){return e.context},W(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,G))}function K(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=y(Y,$({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[X(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=y(Z,{name:c},l):r[i]=l}var u=n?y(Z,null,r):r;return y(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?q:H)(this._vdom,this._root)}function X(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[X(e)]=n,this._vdom=W(this._vdom,r),H(this._vdom,this._root)}}function J(){H(this._vdom=null,this._root)}function Z(e,t){var n=this;return y("slot",$({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var ee,te,ne,re,oe=0,ie=[],ae=[],se=a,le=se.__b,ce=se.__r,ue=se.diffed,de=se.__c,pe=se.unmount,fe=se.__;function me(e,t){se.__h&&se.__h(te,e,oe||t),oe=0;var n=te.__H||(te.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ae}),n.__[e]}function he(e){return oe=1,ge(Pe,e)}function ge(e,t,n){var r=me(ee++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=te,!te.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};te.u=!0;var i=te.shouldComponentUpdate,a=te.componentWillUpdate;te.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},te.shouldComponentUpdate=o}return r.__N||r.__}function be(e,t){var n=me(ee++,3);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__H.__h.push(n))}function ve(e,t){var n=me(ee++,4);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__h.push(n))}function ye(e){return oe=5,_e((function(){return{current:e}}),[])}function we(e,t,n){oe=6,ve((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function _e(e,t){var n=me(ee++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function xe(e,t){return oe=8,_e((function(){return e}),t)}function Ee(e){var t=te.context[e.__c],n=me(ee++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(te)),t.props.value):e.__}function ke(e,t){se.useDebugValue&&se.useDebugValue(t?t(e):e)}function Se(){var e=me(ee++,11);if(!e.__){for(var t=te.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Te(){for(var e;e=ie.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oe),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(Do){e.__H.__h=[],se.__e(Do,e.__v)}}se.__b=function(e){te=null,le&&le(e)},se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fe&&fe(e,t)},se.__r=function(e){ce&&ce(e),ee=0;var t=(te=e.__c).__H;t&&(ne===te?(t.__h=[],te.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ae,e.__N=e.i=void 0}))):(t.__h.forEach(Oe),t.__h.forEach(Re),t.__h=[],ee=0)),ne=te},se.diffed=function(e){ue&&ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ie.push(t)&&re===se.requestAnimationFrame||((re=se.requestAnimationFrame)||Ne)(Te)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ae&&(e.__=e.__V),e.i=void 0,e.__V=ae}))),ne=te=null},se.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Oe),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(Si){t.some((function(e){e.__h&&(e.__h=[])})),t=[],se.__e(Si,e.__v)}})),de&&de(e,t)},se.unmount=function(e){pe&&pe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Oe(e)}catch(n){t=n}})),n.__H=void 0,t&&se.__e(t,n.__v))};var Ce="function"==typeof requestAnimationFrame;function Ne(e){var t,n=function(){clearTimeout(r),Ce&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ce&&(t=requestAnimationFrame(n))}function Oe(e){var t=te,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),te=t}function Re(e){var t=te;e.__c=e.__(),te=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Pe(e,t){return"function"==typeof t?t(e):t}var Le=0;function Ie(e,t,n,r,o,i){var s,l,c={};for(l in t)"ref"==l?s=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return a.vnode&&a.vnode(u),u}const De=e=>Ie("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[Ie("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),Ie("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}),Fe={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1,marketplaceSubNavigation:!1},updateIdentity:e=>({})},Ue=V(Fe);var je=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(je||{});const Me=({className:e,children:t,...n})=>Ie("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t});function Be(e,t){for(var n in t)e[n]=t[n];return e}function ze(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function He(e,t){this.props=e,this.context=t}function qe(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ze(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(He.prototype=new E).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,t){return ze(this.props,e)||ze(this.state,t)};var We=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),We&&We(e)};var Ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function $e(e){function t(t){var n=Be({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ve,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ge=function(e,t){return null==e?null:A(A(e).map(t))},Ye={map:Ge,forEach:Ge,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},Ke=a.__e;a.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ke(e,t,n,r)};var Xe=a.unmount;function Qe(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Be({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Qe(e,t,n)}))),e}function Je(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Je(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ze(){this.__u=0,this.t=null,this.__b=null}function et(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tt(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,o)}return o.displayName="Lazy",o.__f=!0,o}function nt(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Xe&&Xe(e)},(Ze.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=et(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Je(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Ze.prototype.componentWillUnmount=function(){this.t=[]},Ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Qe(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&y(x,null,e.fallback);return o&&(o.__u&=-33),[y(x,null,t.__a?null:e.children),o]};var rt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ot(e){return this.getChildContext=function(){return e.context},e.children}function it(e){var t=this,n=e.i;t.componentWillUnmount=function(){H(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),H(y(ot,{context:t.context},e.__v),t.l)}function at(e,t){var n=y(it,{__v:e,i:t});return n.containerInfo=t,n}(nt.prototype=new E).__a=function(e){var t=this,n=et(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),rt(t,e,r)):o()};n?n(i):i()}},nt.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},nt.prototype.componentDidUpdate=nt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){rt(e,n,t)}))};var st="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,lt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ct=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ut=/[A-Z0-9]/g,dt="undefined"!=typeof document,pt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ft(e,t,n){return null==t.__k&&(t.textContent=""),H(e,t),"function"==typeof n&&n(),e?e.__c:null}function mt(e,t,n){return q(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ht=a.event;function gt(){}function bt(){return this.cancelBubble}function vt(){return this.defaultPrevented}a.event=function(e){return ht&&(e=ht(e)),e.persist=gt,e.isPropagationStopped=bt,e.isDefaultPrevented=vt,e.nativeEvent=e};var yt,wt={enumerable:!1,configurable:!0,get:function(){return this.class}},_t=a.vnode;a.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||dt&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||pt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ct.test(o)?o=a:-1===n.indexOf("-")&<.test(o)?o=o.replace(ut,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=A(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=A(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",wt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=st,_t&&_t(e)};var xt=a.__r;a.__r=function(e){xt&&xt(e),yt=e.__c};var Et=a.diffed;a.diffed=function(e){Et&&Et(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),yt=null};var kt={ReactCurrentDispatcher:{current:{readContext:function(e){return yt.__n[e.__c].props.value}}}};function St(e){return y.bind(null,e)}function Tt(e){return!!e&&e.$$typeof===st}function Ct(e){return Tt(e)&&e.type===x}function Nt(e){return Tt(e)?W.apply(null,arguments):e}function Ot(e){return!!e.__k&&(H(null,e),!0)}function Rt(e){return e&&(e.base||1===e.nodeType&&e)||null}var At=function(e,t){return e(t)},Pt=function(e,t){return e(t)},Lt=x;function It(e){e()}function Dt(e){return e}function Ft(){return[!1,It]}var Ut=ve,jt=Tt;function Mt(e,t){var n=t(),r=he({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ve((function(){o.__=n,o.v=t,Bt(o)&&i({h:o})}),[e,n,t]),be((function(){return Bt(o)&&i({h:o}),e((function(){Bt(o)&&i({h:o})}))}),[e]),n}function Bt(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var zt={useState:he,useId:Se,useReducer:ge,useEffect:be,useLayoutEffect:ve,useInsertionEffect:Ut,useTransition:Ft,useDeferredValue:Dt,useSyncExternalStore:Mt,startTransition:It,useRef:ye,useImperativeHandle:we,useMemo:_e,useCallback:xe,useContext:Ee,useDebugValue:ke,version:"17.0.2",Children:Ye,render:ft,hydrate:mt,unmountComponentAtNode:Ot,createPortal:at,createElement:y,createContext:V,createFactory:St,cloneElement:Nt,createRef:_,Fragment:x,isValidElement:Tt,isElement:jt,isFragment:Ct,findDOMNode:Rt,Component:E,PureComponent:He,memo:qe,forwardRef:$e,flushSync:Pt,unstable_batchedUpdates:At,StrictMode:Lt,Suspense:Ze,SuspenseList:nt,lazy:tt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kt};const Ht=Object.freeze(Object.defineProperty({__proto__:null,Children:Ye,Component:E,Fragment:x,PureComponent:He,StrictMode:Lt,Suspense:Ze,SuspenseList:nt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kt,cloneElement:Nt,createContext:V,createElement:y,createFactory:St,createPortal:at,createRef:_,default:zt,findDOMNode:Rt,flushSync:Pt,forwardRef:$e,hydrate:mt,isElement:jt,isFragment:Ct,isValidElement:Tt,lazy:tt,memo:qe,render:ft,startTransition:It,unmountComponentAtNode:Ot,unstable_batchedUpdates:At,useCallback:xe,useContext:Ee,useDebugValue:ke,useDeferredValue:Dt,useEffect:be,useErrorBoundary:function(e){var t=me(ee++,10),n=he();return t.__=e,te.componentDidCatch||(te.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Se,useImperativeHandle:we,useInsertionEffect:Ut,useLayoutEffect:ve,useMemo:_e,useReducer:ge,useRef:ye,useState:he,useSyncExternalStore:Mt,useTransition:Ft,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),qt=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},y("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),Wt=e=>{const[t,n]=he(!1);return Ie("button",{type:"button",class:`${e.class} inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto`,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[Ie("div",{class:""+(t?"invisible":""),children:e.children}),t&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"light"})})]})},Vt=({className:e,onClick:t,...n})=>{const[r,o]=he(!1);return Ie("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:xe((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Ie("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"primary"})})]})},$t=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>Ie(x,{children:Ie("div",{class:"relative",children:[o,Ie("input",{type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:xe((e=>{t.test(e.key)||e.preventDefault()}),[t]),onChange:e=>n(e.currentTarget.value),...a}),i]})}),Gt=({className:e,children:t})=>Ie("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Yt=({className:e,children:t})=>Ie("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});class Kt extends Error{}function Xt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Kt.prototype.name="InvalidTokenError";const Qt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Jt=e=>(window.addEventListener(Qt,e),()=>window.removeEventListener(Qt,e)),Zt=()=>{window.dispatchEvent(new Event(Qt))};function en(e,t){return function(){return e.apply(t,arguments)}}const{toString:tn}=Object.prototype,{getPrototypeOf:nn}=Object,rn=(e=>t=>{const n=tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>rn(t)===e),an=e=>t=>typeof t===e,{isArray:sn}=Array,ln=an("undefined");const cn=on("ArrayBuffer");const un=an("string"),dn=an("function"),pn=an("number"),fn=e=>null!==e&&"object"==typeof e,mn=e=>{if("object"!==rn(e))return!1;const t=nn(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},hn=on("Date"),gn=on("File"),bn=on("Blob"),vn=on("FileList"),yn=on("URLSearchParams"),[wn,_n,xn,En]=["ReadableStream","Request","Response","Headers"].map(on);function kn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),sn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Sn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Cn=e=>!ln(e)&&e!==Tn;const Nn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&nn(Uint8Array)),On=on("HTMLFormElement"),Rn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),An=on("RegExp"),Pn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};kn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ln="abcdefghijklmnopqrstuvwxyz",In="0123456789",Dn={DIGIT:In,ALPHA:Ln,ALPHA_DIGIT:Ln+Ln.toUpperCase()+In};const Fn=on("AsyncFunction"),Un=(jn="function"==typeof setImmediate,Mn=dn(Tn.postMessage),jn?setImmediate:Mn?(Bn=`axios@${Math.random()}`,zn=[],Tn.addEventListener("message",(({source:e,data:t})=>{e===Tn&&t===Bn&&zn.length&&zn.shift()()}),!1),e=>{zn.push(e),Tn.postMessage(Bn,"*")}):e=>setTimeout(e));var jn,Mn,Bn,zn;const Hn="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Tn):"undefined"!=typeof process&&process.nextTick||Un,qn={isArray:sn,isArrayBuffer:cn,isBuffer:function(e){return null!==e&&!ln(e)&&null!==e.constructor&&!ln(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||dn(e.append)&&("formdata"===(t=rn(e))||"object"===t&&dn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cn(e.buffer),t},isString:un,isNumber:pn,isBoolean:e=>!0===e||!1===e,isObject:fn,isPlainObject:mn,isReadableStream:wn,isRequest:_n,isResponse:xn,isHeaders:En,isUndefined:ln,isDate:hn,isFile:gn,isBlob:bn,isRegExp:An,isFunction:dn,isStream:e=>fn(e)&&dn(e.pipe),isURLSearchParams:yn,isTypedArray:Nn,isFileList:vn,forEach:kn,merge:function e(){const{caseless:t}=Cn(this)&&this||{},n={},r=(r,o)=>{const i=t&&Sn(n,o)||o;mn(n[i])&&mn(r)?n[i]=e(n[i],r):mn(r)?n[i]=e({},r):sn(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&kn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(kn(t,((t,r)=>{n&&dn(t)?e[r]=en(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&nn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rn,kindOfTest:on,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(sn(e))return e;let t=e.length;if(!pn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:On,hasOwnProperty:Rn,hasOwnProp:Rn,reduceDescriptors:Pn,freezeMethods:e=>{Pn(e,((t,n)=>{if(dn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];dn(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return sn(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Sn,global:Tn,isContextDefined:Cn,ALPHABET:Dn,generateString:(e=16,t=Dn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&dn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(fn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=sn(e)?[]:{};return kn(e,((e,t)=>{const i=n(e,r+1);!ln(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Fn,isThenable:e=>e&&(fn(e)||dn(e))&&dn(e.then)&&dn(e.catch),setImmediate:Un,asap:Hn};function Wn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}qn.inherits(Wn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Vn=Wn.prototype,$n={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$n[e]={value:e}})),Object.defineProperties(Wn,$n),Object.defineProperty(Vn,"isAxiosError",{value:!0}),Wn.from=(e,t,n,r,o,i)=>{const a=Object.create(Vn);return qn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Wn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Gn(e){return qn.isPlainObject(e)||qn.isArray(e)}function Yn(e){return qn.endsWith(e,"[]")?e.slice(0,-2):e}function Kn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Yn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Xn=qn.toFlatObject(qn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Qn(e,t,n){if(!qn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!qn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qn.isSpecCompliantForm(t);if(!qn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qn.isDate(e))return e.toISOString();if(!s&&qn.isBlob(e))throw new Wn("Blob is not supported. Use a Buffer instead.");return qn.isArrayBuffer(e)||qn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qn.isArray(e)&&function(e){return qn.isArray(e)&&!e.some(Gn)}(e)||(qn.isFileList(e)||qn.endsWith(n,"[]"))&&(s=qn.toArray(e)))return n=Yn(n),s.forEach((function(e,r){!qn.isUndefined(e)&&null!==e&&t.append(!0===a?Kn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Gn(e)||(t.append(Kn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Xn,{defaultVisitor:c,convertValue:l,isVisitable:Gn});if(!qn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qn.forEach(n,(function(n,i){!0===(!(qn.isUndefined(n)||null===n)&&o.call(t,n,qn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Jn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Zn(e,t){this._pairs=[],e&&Qn(e,this,t)}const er=Zn.prototype;function tr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nr(e,t,n){if(!t)return e;const r=n&&n.encode||tr,o=n&&n.serialize;let i;if(i=o?o(t,n):qn.isURLSearchParams(t)?t.toString():new Zn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}er.append=function(e,t){this._pairs.push([e,t])},er.toString=function(e){const t=e?function(t){return e.call(this,t,Jn)}:Jn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class rr{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const or={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Zn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ar="undefined"!=typeof window&&"undefined"!=typeof document,sr=(lr="undefined"!=typeof navigator&&navigator.product,ar&&["ReactNative","NativeScript","NS"].indexOf(lr)<0);var lr;const cr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ur=ar&&window.location.href||"http://localhost",dr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ar,hasStandardBrowserEnv:sr,hasStandardBrowserWebWorkerEnv:cr,origin:ur},Symbol.toStringTag,{value:"Module"})),...ir};function pr(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qn.isArray(r)?r.length:i,s)return qn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qn.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qn.isFormData(e)&&qn.isFunction(e.entries)){const n={};return qn.forEachEntry(e,((e,r)=>{t(function(e){return qn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const fr={transitional:or,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qn.isObject(e);o&&qn.isHTMLForm(e)&&(e=new FormData(e));if(qn.isFormData(e))return r?JSON.stringify(pr(e)):e;if(qn.isArrayBuffer(e)||qn.isBuffer(e)||qn.isStream(e)||qn.isFile(e)||qn.isBlob(e)||qn.isReadableStream(e))return e;if(qn.isArrayBufferView(e))return e.buffer;if(qn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Qn(e,new dr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return dr.isNode&&qn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=qn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Qn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qn.isString(e))try{return(t||JSON.parse)(e),qn.trim(e)}catch(ni){if("SyntaxError"!==ni.name)throw ni}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qn.isResponse(e)||qn.isReadableStream(e))return e;if(e&&qn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(ni){if(n){if("SyntaxError"===ni.name)throw Wn.from(ni,Wn.ERR_BAD_RESPONSE,this,null,this.response);throw ni}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dr.classes.FormData,Blob:dr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qn.forEach(["delete","get","head","post","put","patch"],(e=>{fr.headers[e]={}}));const mr=qn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hr=Symbol("internals");function gr(e){return e&&String(e).trim().toLowerCase()}function br(e){return!1===e||null==e?e:qn.isArray(e)?e.map(br):String(e)}function vr(e,t,n,r,o){return qn.isFunction(r)?r.call(this,t,n):(o&&(t=n),qn.isString(t)?qn.isString(r)?-1!==t.indexOf(r):qn.isRegExp(r)?r.test(t):void 0:void 0)}class yr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=gr(t);if(!o)throw new Error("header name must be a non-empty string");const i=qn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=br(e))}const i=(e,t)=>qn.forEach(e,((e,n)=>o(e,n,t)));if(qn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&mr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(qn.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=gr(e)){const n=qn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qn.isFunction(t))return t.call(this,e,n);if(qn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gr(e)){const n=qn.findKey(this,e);return!(!n||void 0===this[n]||t&&!vr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=gr(e)){const o=qn.findKey(n,e);!o||t&&!vr(0,n[o],o,t)||(delete n[o],r=!0)}}return qn.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qn.forEach(this,((r,o)=>{const i=qn.findKey(n,o);if(i)return t[i]=br(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=br(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[hr]=this[hr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=gr(e);t[r]||(!function(e,t){const n=qn.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return qn.isArray(e)?e.forEach(r):r(e),this}}function wr(e,t){const n=this||fr,r=t||n,o=yr.from(r.headers);let i=r.data;return qn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function _r(e){return!(!e||!e.__CANCEL__)}function xr(e,t,n){Wn.call(this,null==e?"canceled":e,Wn.ERR_CANCELED,t,n),this.name="CanceledError"}function Er(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Wn("Request failed with status code "+n.status,[Wn.ERR_BAD_REQUEST,Wn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}yr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qn.reduceDescriptors(yr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),qn.freezeMethods(yr),qn.inherits(xr,Wn,{__CANCEL__:!0});const kr=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Sr=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Tr=e=>(...t)=>qn.asap((()=>e(...t))),Cr=dr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=qn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Nr=dr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];qn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qn.isString(r)&&a.push("path="+r),qn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Or(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Rr=e=>e instanceof yr?{...e}:e;function Ar(e,t){t=t||{};const n={};function r(e,t,n){return qn.isPlainObject(e)&&qn.isPlainObject(t)?qn.merge.call({caseless:n},e,t):qn.isPlainObject(t)?qn.merge({},t):qn.isArray(t)?t.slice():t}function o(e,t,n){return qn.isUndefined(t)?qn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!qn.isUndefined(t))return r(void 0,t)}function a(e,t){return qn.isUndefined(t)?qn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Rr(e),Rr(t),!0)};return qn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);qn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Pr=e=>{const t=Ar({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=yr.from(s),t.url=nr(Or(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),qn.isFormData(r))if(dr.hasStandardBrowserEnv||dr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(dr.hasStandardBrowserEnv&&(o&&qn.isFunction(o)&&(o=o(t)),o||!1!==o&&Cr(t.url))){const e=i&&a&&Nr.read(a);e&&s.set(i,e)}return t},Lr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Pr(e);let o=r.data;const i=yr.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=yr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Er((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new Wn("Request aborted",Wn.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Wn("Network Error",Wn.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||or;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Wn(t,o.clarifyTimeoutError?Wn.ETIMEDOUT:Wn.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&qn.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),qn.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=kr(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=kr(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new xr(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===dr.protocols.indexOf(b)?n(new Wn("Unsupported protocol "+b+":",Wn.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Ir=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Wn?t:new xr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Wn(`timeout ${t} of ms exceeded`,Wn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Dr=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Fr=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Dr(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ur="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,jr=Ur&&"function"==typeof ReadableStream,Mr=Ur&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Br=(e,...t)=>{try{return!!e(...t)}catch(ni){return!1}},zr=jr&&Br((()=>{let e=!1;const t=new Request(dr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Hr=jr&&Br((()=>qn.isReadableStream(new Response("").body))),qr={stream:Hr&&(e=>e.body)};var Wr;Ur&&(Wr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!qr[e]&&(qr[e]=qn.isFunction(Wr[e])?t=>t[e]():(t,n)=>{throw new Wn(`Response type '${e}' is not supported`,Wn.ERR_NOT_SUPPORT,n)})})));const Vr=async(e,t)=>{const n=qn.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:qn.isBlob(e)?e.size:qn.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:qn.isArrayBufferView(e)||qn.isArrayBuffer(e)?e.byteLength:(qn.isURLSearchParams(e)&&(e+=""),qn.isString(e)?(await Mr(e)).byteLength:void 0))(t):n},$r={http:null,xhr:Lr,fetch:Ur&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Pr(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?Ir([o,i],a):[];const b=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let v;try{if(l&&zr&&"get"!==n&&"head"!==n&&0!==(v=await Vr(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(qn.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Sr(v,kr(Tr(l)));r=Fr(n.body,65536,e,t,Mr)}}qn.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=Hr&&("stream"===c||"response"===c);if(Hr&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=qn.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Sr(t,kr(Tr(s),!0))||[];o=new Response(Fr(o.body,65536,n,(()=>{r&&r(),i&&b()}),Mr),e)}c=c||"text";let a=await qr[qn.findKey(qr,c)||"text"](o,e);return!i&&b(),g&&g(),await new Promise(((t,n)=>{Er(t,n,{data:a,headers:yr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(y){if(b(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new Wn("Network Error",Wn.ERR_NETWORK,e,m),{cause:y.cause||y});throw Wn.from(y,y&&y.code,e,m)}})};qn.forEach($r,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(ni){}Object.defineProperty(e,"adapterName",{value:t})}}));const Gr=e=>`- ${e}`,Yr=e=>qn.isFunction(e)||null===e||!1===e,Kr=e=>{e=qn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Yr(n)&&(r=$r[(t=String(n)).toLowerCase()],void 0===r))throw new Wn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Wn("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Gr).join("\n"):" "+Gr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Xr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function Qr(e){Xr(e),e.headers=yr.from(e.headers),e.data=wr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Kr(e.adapter||fr.adapter)(e).then((function(t){return Xr(e),t.data=wr.call(e,e.transformResponse,t),t.headers=yr.from(t.headers),t}),(function(t){return _r(t)||(Xr(e),t&&t.response&&(t.response.data=wr.call(e,e.transformResponse,t.response),t.response.headers=yr.from(t.response.headers))),Promise.reject(t)}))}const Jr="1.7.4",Zr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const eo={};Zr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Wn(r(o," has been removed"+(t?" in "+t:"")),Wn.ERR_DEPRECATED);return t&&!eo[o]&&(eo[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const to={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Wn("options must be an object",Wn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Wn("option "+i+" must be "+n,Wn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Wn("Unknown option "+i,Wn.ERR_BAD_OPTION)}},validators:Zr},no=to.validators;class ro{constructor(e){this.defaults=e,this.interceptors={request:new rr,response:new rr}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(ni){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ar(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&to.assertOptions(n,{silentJSONParsing:no.transitional(no.boolean),forcedJSONParsing:no.transitional(no.boolean),clarifyTimeoutError:no.transitional(no.boolean)},!1),null!=r&&(qn.isFunction(r)?t.paramsSerializer={serialize:r}:to.assertOptions(r,{encode:no.function,serialize:no.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qn.merge(o.common,o[t.method]);o&&qn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=yr.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Qr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Qr.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return nr(Or((e=Ar(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}qn.forEach(["delete","get","head","options"],(function(e){ro.prototype[e]=function(t,n){return this.request(Ar(n||{},{method:e,url:t,data:(n||{}).data}))}})),qn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ar(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ro.prototype[e]=t(),ro.prototype[e+"Form"]=t(!0)}));class oo{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new xr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new oo((function(t){e=t})),cancel:e}}}const io={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(io).forEach((([e,t])=>{io[t]=e}));const ao=function e(t){const n=new ro(t),r=en(ro.prototype.request,n);return qn.extend(r,ro.prototype,n,{allOwnKeys:!0}),qn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ar(t,n))},r}(fr);ao.Axios=ro,ao.CanceledError=xr,ao.CancelToken=oo,ao.isCancel=_r,ao.VERSION=Jr,ao.toFormData=Qn,ao.AxiosError=Wn,ao.Cancel=ao.CanceledError,ao.all=function(e){return Promise.all(e)},ao.spread=function(e){return function(t){return e.apply(null,t)}},ao.isAxiosError=function(e){return qn.isObject(e)&&!0===e.isAxiosError},ao.mergeConfig=Ar,ao.AxiosHeaders=yr,ao.formToJSON=e=>pr(qn.isHTMLForm(e)?new FormData(e):e),ao.getAdapter=Kr,ao.HttpStatusCode=io,ao.default=ao;class so{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,ao.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const lo={backend:new class extends so{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let co;class uo{constructor(){__privateAdd(this,t),__privateAdd(this,n,(async e=>(co||(co=await lo.backend.getIdToken()),e.headers.Authorization=`Bearer ${co}`,e.params={...e.params??{},client:"onboarding",source:"Onboarding",channel:"onboarding"},e)))}initClient(e,r,o){__privateSet(this,t,ao.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...o,"X-PROFILE-ID":r}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,n))}getClient(){return __privateGet(this,t)}}t=new WeakMap,n=new WeakMap;const po=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Zt(),e};let fo=(o=class extends uo{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,r,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,r))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},r=new WeakMap,o);const mo={backend:new class extends so{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),po),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}async command(e){await this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}},workplaceBackend:new fo};const ho={workplaceBackend:new class extends uo{url(e){return`${e}/benefits-plan`}}},go=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Kt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Xt(r)}catch(ni){throw new Kt(`Invalid token specified: invalid base64 for part #${n+1} (${ni.message})`)}try{return JSON.parse(o)}catch(ni){throw new Kt(`Invalid token specified: invalid json for part #${n+1} (${ni.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};mo.backend.initClient(e,o.backend,n),mo.workplaceBackend.initClient(e,r,o.workplaceBackend),lo.backend.initClient(e,o.backend),ho.workplaceBackend.initClient(e,r,o.workplaceBackend)},bo=e=>{switch(!0){case"started"===e:return mo.backend.command({eventType:"Started"});case"membership-accepted"===e:return mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return mo.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await mo.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await mo.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await mo.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return mo.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return mo.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return mo.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return mo.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"assessment-viewed"===e.type:return mo.workplaceBackend.track("Assessment Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-skipped"===e.type:return mo.workplaceBackend.track("Assessment Skipped",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-field-updated"===e.type:return mo.workplaceBackend.track("AssessmentField Updated",{id:e.data.assessmentId,name:e.data.assessmentTitle,attribute:e.data.customerAttribute});case"object"==typeof e&&"assessment-submitted"===e.type:return mo.workplaceBackend.track("Assessment Submitted",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-summary-viewed"===e.type:return mo.workplaceBackend.track("AssessmentSummary Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"summary-viewed"===e.type:return mo.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return mo.backend.command({eventType:"Completed"})}return Promise.resolve()},vo=()=>({trace:bo});var yo=Object.defineProperty,wo=(e,t,n)=>(((e,t,n)=>{t in e?yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let _o=new class{constructor(){wo(this,"current",this.detect()),wo(this,"handoffState","pending"),wo(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},xo=(e,t)=>{_o.isServer?be(e,t):ve(e,t)};function Eo(e){let t=ye(e);return xo((()=>{t.current=e}),[e]),t}function ko(e,t){let[n,r]=he(e),o=Eo(e);return xo((()=>r(o.current)),[o,r,...t]),n}let So=function(e){let t=Eo(e);return zt.useCallback(((...e)=>t.current(...e)),[t])};function To(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Co(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return To((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Co();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function No(){let[e]=he(Co);return be((()=>()=>e.dispose()),[e]),e}function Oo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Ht&&Ht.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=he(_o.isHandoffComplete);return t&&!1===_o.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>_o.handoff()),[]),!e&&t}var Ro;let Ao=null!=(Ro=zt.useId)?Ro:function(){let e=Oo(),[t,n]=zt.useState(e?()=>_o.nextId():null);return xo((()=>{null===t&&n(_o.nextId())}),[t]),null!=t?""+t:void 0};function Po(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Po),r}function Lo(e){return _o.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Io=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Do,Fo,Uo,jo=((Uo=jo||{})[Uo.First=1]="First",Uo[Uo.Previous=2]="Previous",Uo[Uo.Next=4]="Next",Uo[Uo.Last=8]="Last",Uo[Uo.WrapAround=16]="WrapAround",Uo[Uo.NoScroll=32]="NoScroll",Uo),Mo=((Fo=Mo||{})[Fo.Error=0]="Error",Fo[Fo.Overflow=1]="Overflow",Fo[Fo.Success=2]="Success",Fo[Fo.Underflow=3]="Underflow",Fo),Bo=((Do=Bo||{})[Do.Previous=-1]="Previous",Do[Do.Next=1]="Next",Do);var zo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(zo||{});function Ho(e,t=0){var n;return e!==(null==(n=Lo(e))?void 0:n.body)&&Po(t,{0:()=>e.matches(Io),1(){let t=e;for(;null!==t;){if(t.matches(Io))return!0;t=t.parentElement}return!1}})}var qo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(qo||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Wo=["textarea","input"].join(",");function Vo(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function $o(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Vo(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Io)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Wo))&&n}(s)&&s.select(),2}function Go(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}function Yo(e,t,n){let r=Eo(t);be((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Ko(e,t,n=!0){let r=ye(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!Ho(i,zo.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}be((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=ye(null);Yo("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Yo("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Yo("click",(e=>{Go()||i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),Yo("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let r=Eo(t);be((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function Xo(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Qo(e,t){let[n,r]=he((()=>Xo(e)));return xo((()=>{r(Xo(e))}),[e.type,e.as]),xo((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let Jo=Symbol();function Zo(...e){let t=ye(e);be((()=>{t.current=e}),[e]);let n=So((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Jo])))?void 0:n}function ei(e){return[e.screenX,e.screenY]}function ti(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var ni,ri=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ri||{}),oi=((ni=oi||{})[ni.Unmount=0]="Unmount",ni[ni.Hidden=1]="Hidden",ni);function ii({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:si;let l=li(t,e);if(i)return ai(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ai(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Po(e?0:1,{0:()=>null,1:()=>ai({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ai(l,n,r,a,s)}function ai(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=di(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(i===x&&Object.keys(ui(l)).length>0){if(!Tt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>ti(null==e?void 0:e.className(...t),l.className):ti(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Nt(u,Object.assign({},li(u.props,ui(di(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return y(i,Object.assign({},di(l,["ref"]),i!==x&&c,i!==x&&d),u)}function si(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function li(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function ci(e){var t;return Object.assign($e(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ui(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function di(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var pi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(pi||{});let fi=ci((function(e,t){var n;let{features:r=1,...o}=e;return ii({ourProps:{ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),mi=V(null);mi.displayName="OpenClosedContext";var hi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(hi||{});function gi(){return Ee(mi)}function bi({value:e,children:t}){return zt.createElement(mi.Provider,{value:e},t)}function vi(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var yi,wi=((yi=wi||{})[yi.First=0]="First",yi[yi.Previous=1]="Previous",yi[yi.Next=2]="Next",yi[yi.Last=3]="Last",yi[yi.Specific=4]="Specific",yi[yi.Nothing=5]="Nothing",yi);function _i(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function xi(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))ki(n,Ei(t,r),o);return n}function Ei(e,t){return e?e+"["+t+"]":t}function ki(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())ki(e,Ei(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):xi(n,t,e)}var Si,Ti=((Si=Ti||{}).Space=" ",Si.Enter="Enter",Si.Escape="Escape",Si.Backspace="Backspace",Si.Delete="Delete",Si.ArrowLeft="ArrowLeft",Si.ArrowUp="ArrowUp",Si.ArrowRight="ArrowRight",Si.ArrowDown="ArrowDown",Si.Home="Home",Si.End="End",Si.PageUp="PageUp",Si.PageDown="PageDown",Si.Tab="Tab",Si);function Ci(){let e=ye(!1);return xo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}let Ni=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Oi(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return Ni.test(a)&&(a=a.replace(Ni,"")),a}function Ri(e){let t=ye(""),n=ye("");return So((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Oi(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Oi(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var Ai=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ai||{}),Pi=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Pi||{}),Li=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Li||{}),Ii=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Ii||{});function Di(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Vo(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Fi={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=Di(e),o=_i(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Di(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Di(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Ui=V(null);function ji(e){let t=Ee(Ui);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ji),t}return t}Ui.displayName="ListboxActionsContext";let Mi=V(null);function Bi(e){let t=Ee(Mi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Bi),t}return t}function zi(e,t){return Po(t.type,Fi,e,t)}Mi.displayName="ListboxDataContext";let Hi=x;let qi=ri.RenderStrategy|ri.Static;let Wi=ci((function(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:s=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let f=Zo(t),[m=(u?[]:void 0),h]=function(e,t,n){let[r,o]=he(n),i=void 0!==e,a=ye(i),s=ye(!1),l=ye(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,So((e=>(i||o(e),null==t?void 0:t(e))))]}(n,a,r),[g,b]=ge(zi,{dataRef:{current:null},listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=ye({static:!1,hold:!1}),y=ye(null),w=ye(null),_=ye(null),x=So("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),E=xe((e=>Po(k.mode,{1:()=>m.some((t=>x(t,e))),0:()=>x(m,e)})),[m]),k=_e((()=>({...g,value:m,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:E,optionsPropsRef:v,labelRef:y,buttonRef:w,optionsRef:_})),[m,l,u,g]);xo((()=>{g.dataRef.current=k}),[k]),Ko([k.buttonRef,k.optionsRef],((e,t)=>{var n;b({type:1}),Ho(t,zo.Loose)||(e.preventDefault(),null==(n=k.buttonRef.current)||n.focus())}),0===k.listboxState);let S=_e((()=>({open:0===k.listboxState,disabled:l,value:m})),[k,l,m]),T=So((e=>{let t=k.options.find((t=>t.id===e));t&&L(t.dataRef.current.value)})),C=So((()=>{if(null!==k.activeOptionIndex){let{dataRef:e,id:t}=k.options[k.activeOptionIndex];L(e.current.value),b({type:2,focus:wi.Specific,id:t})}})),N=So((()=>b({type:0}))),O=So((()=>b({type:1}))),R=So(((e,t,n)=>e===wi.Specific?b({type:2,focus:wi.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n}))),A=So(((e,t)=>(b({type:5,id:e,dataRef:t}),()=>b({type:6,id:e})))),P=So((e=>(b({type:7,id:e}),()=>b({type:7,id:null})))),L=So((e=>Po(k.mode,{0:()=>null==h?void 0:h(e),1(){let t=k.value.slice(),n=t.findIndex((t=>x(t,e)));return-1===n?t.push(e):t.splice(n,1),null==h?void 0:h(t)}}))),I=So((e=>b({type:3,value:e}))),D=So((()=>b({type:4}))),F=_e((()=>({onChange:L,registerOption:A,registerLabel:P,goToOption:R,closeListbox:O,openListbox:N,selectActiveOption:C,selectOption:T,search:I,clearSearch:D})),[]),U={ref:f},j=ye(null),M=No();return be((()=>{j.current&&void 0!==r&&M.addEventListener(j.current,"reset",(()=>{null==h||h(r)}))}),[j,h]),zt.createElement(Ui.Provider,{value:F},zt.createElement(Mi.Provider,{value:k},zt.createElement(bi,{value:Po(k.listboxState,{0:hi.Open,1:hi.Closed})},null!=i&&null!=m&&xi({[i]:m}).map((([e,t],n)=>zt.createElement(fi,{features:pi.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...ui({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})}))),ii({ourProps:U,theirProps:d,slot:S,defaultTag:Hi,name:"Listbox"}))))})),Vi=ci((function(e,t){var n;let r=Ao(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=Bi("Listbox.Button"),s=ji("Listbox.Button"),l=Zo(a.buttonRef,t),c=No(),u=So((e=>{switch(e.key){case Ti.Space:case Ti.Enter:case Ti.ArrowDown:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption(wi.First)}));break;case Ti.ArrowUp:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption(wi.Last)}))}})),d=So((e=>{if(e.key===Ti.Space)e.preventDefault()})),p=So((e=>{if(vi(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),s.openListbox())})),f=ko((()=>{if(a.labelId)return[a.labelId,o].join(" ")}),[a.labelId,o]),m=_e((()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value})),[a]);return ii({ourProps:{ref:l,id:o,type:Qo(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":f,disabled:a.disabled,onKeyDown:u,onKeyUp:d,onClick:p},theirProps:i,slot:m,defaultTag:"button",name:"Listbox.Button"})})),$i=ci((function(e,t){let n=Ao(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=Bi("Listbox.Label"),a=ji("Listbox.Label"),s=Zo(i.labelRef,t);xo((()=>a.registerLabel(r)),[r]);let l=So((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=_e((()=>({open:0===i.listboxState,disabled:i.disabled})),[i]);return ii({ourProps:{ref:s,id:r,onClick:l},theirProps:o,slot:c,defaultTag:"label",name:"Listbox.Label"})})),Gi=ci((function(e,t){var n;let r=Ao(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=Bi("Listbox.Options"),s=ji("Listbox.Options"),l=Zo(a.optionsRef,t),c=No(),u=No(),d=gi(),p=null!==d?(d&hi.Open)===hi.Open:0===a.listboxState;be((()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=Lo(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[a.listboxState,a.optionsRef]);let f=So((e=>{switch(u.dispose(),e.key){case Ti.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case Ti.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),Co().nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Po(a.orientation,{vertical:Ti.ArrowDown,horizontal:Ti.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(wi.Next);case Po(a.orientation,{vertical:Ti.ArrowUp,horizontal:Ti.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(wi.Previous);case Ti.Home:case Ti.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(wi.First);case Ti.End:case Ti.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(wi.Last);case Ti.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Ti.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),u.setTimeout((()=>s.clearSearch()),350))}})),m=ko((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.id}),[a.buttonRef.current]),h=_e((()=>({open:0===a.listboxState})),[a]);return ii({ourProps:{"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":m,"aria-orientation":a.orientation,id:o,onKeyDown:f,role:"listbox",tabIndex:0,ref:l},theirProps:i,slot:h,defaultTag:"ul",features:qi,visible:p,name:"Listbox.Options"})})),Yi=ci((function(e,t){let n=Ao(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=Bi("Listbox.Option"),l=ji("Listbox.Option"),c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,u=s.isSelected(i),d=ye(null),p=Ri(d),f=Eo({disabled:o,value:i,domRef:d,get textValue(){return p()}}),m=Zo(t,d);xo((()=>{if(0!==s.listboxState||!c||0===s.activationTrigger)return;let e=Co();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),xo((()=>l.registerOption(r,f)),[f,r]);let h=So((e=>{if(o)return e.preventDefault();l.onChange(i),0===s.mode&&(l.closeListbox(),Co().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),g=So((()=>{if(o)return l.goToOption(wi.Nothing);l.goToOption(wi.Specific,r)})),b=function(){let e=ye([-1,-1]);return{wasMoved(t){let n=ei(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=ei(t)}}}(),v=So((e=>b.update(e))),y=So((e=>{b.wasMoved(e)&&(o||c||l.goToOption(wi.Specific,r,0))})),w=So((e=>{b.wasMoved(e)&&(o||c&&l.goToOption(wi.Nothing))})),_=_e((()=>({active:c,selected:u,disabled:o})),[c,u,o]);return ii({ourProps:{id:r,ref:m,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:h,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},theirProps:a,slot:_,defaultTag:"li",name:"Listbox.Option"})})),Ki=Object.assign(Wi,{Button:Vi,Label:$i,Options:Gi,Option:Yi});function Xi({onFocus:e}){let[t,n]=he(!0),r=Ci();return t?zt.createElement(fi,{as:"button",type:"button",features:pi.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame((function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)}))}}):null}const Qi=V(null);function Ji({children:e}){let t=ye({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return y(Qi.Provider,{value:t},e)}function Zi(e){let t=Ee(Qi);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=kt)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return be((()=>o),[]),r}var ea=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ea||{}),ta=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(ta||{}),na=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(na||{});let ra={0(e,t){var n;let r=Vo(e.tabs,(e=>e.current)),o=Vo(e.panels,(e=>e.current)),i=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=Po(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Po(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=Po(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>i.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=Vo([...e.tabs,t.tab],(e=>e.current)),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return-1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:Vo([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},oa=V(null);function ia(e){let t=Ee(oa);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ia),t}return t}oa.displayName="TabsDataContext";let aa=V(null);function sa(e){let t=Ee(aa);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,sa),t}return t}function la(e,t){return Po(t.type,ra,e,t)}aa.displayName="TabsActionsContext";let ca=x;let ua=ri.RenderStrategy|ri.Static;let da=ci((function(e,t){var n,r;let o=Ao(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=ia("Tab"),p=sa("Tab"),f=ia("Tab"),m=ye(null),h=Zo(m,t);xo((()=>p.registerTab(m)),[p,m]);let g=Zi("tabs"),b=u.indexOf(m);-1===b&&(b=g);let v=b===c,y=So((e=>{var t;let n=e();if(n===Mo.Success&&"auto"===l){let e=null==(t=Lo(m))?void 0:t.activeElement,n=f.tabs.findIndex((t=>t.current===e));-1!==n&&p.change(n)}return n})),w=So((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===Ti.Space||e.key===Ti.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(b);switch(e.key){case Ti.Home:case Ti.PageUp:return e.preventDefault(),e.stopPropagation(),y((()=>$o(t,jo.First)));case Ti.End:case Ti.PageDown:return e.preventDefault(),e.stopPropagation(),y((()=>$o(t,jo.Last)))}return y((()=>Po(s,{vertical:()=>e.key===Ti.ArrowUp?$o(t,jo.Previous|jo.WrapAround):e.key===Ti.ArrowDown?$o(t,jo.Next|jo.WrapAround):Mo.Error,horizontal:()=>e.key===Ti.ArrowLeft?$o(t,jo.Previous|jo.WrapAround):e.key===Ti.ArrowRight?$o(t,jo.Next|jo.WrapAround):Mo.Error})))===Mo.Success?e.preventDefault():void 0})),_=ye(!1),x=So((()=>{var e;_.current||(_.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),p.change(b),To((()=>{_.current=!1})))})),E=So((e=>{e.preventDefault()})),k=_e((()=>({selected:v})),[v]);return ii({ourProps:{ref:h,onKeyDown:w,onMouseDown:E,onClick:x,id:i,role:"tab",type:Qo(e,m),"aria-controls":null==(r=null==(n=d[b])?void 0:n.current)?void 0:r.id,"aria-selected":v,tabIndex:v?0:-1},theirProps:a,slot:k,defaultTag:"button",name:"Tabs.Tab"})})),pa=ci((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=o?"manual":"auto";let u=null!==a,d=Zo(t),[p,f]=ge(la,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=_e((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=Eo(i||(()=>{})),g=Eo(p.tabs),b=_e((()=>({orientation:l,activation:c,...p})),[l,c,p]),v=So((e=>(f({type:1,tab:e}),()=>f({type:2,tab:e})))),y=So((e=>(f({type:3,panel:e}),()=>f({type:4,panel:e})))),w=So((e=>{_.current!==e&&h.current(e),u||f({type:0,index:e})})),_=Eo(u?e.selectedIndex:p.selectedIndex),x=_e((()=>({registerTab:v,registerPanel:y,change:w})),[]);xo((()=>{f({type:0,index:null!=a?a:n})}),[a]),xo((()=>{if(void 0===_.current||p.tabs.length<=0)return;let e=Vo(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&w(e.indexOf(p.tabs[_.current]))}));let E={ref:d};return zt.createElement(Ji,null,zt.createElement(aa.Provider,{value:x},zt.createElement(oa.Provider,{value:b},b.tabs.length<=0&&zt.createElement(Xi,{onFocus:()=>{var e,t;for(let n of g.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),ii({ourProps:E,theirProps:s,slot:m,defaultTag:ca,name:"Tabs"}))))})),fa=ci((function(e,t){let{orientation:n,selectedIndex:r}=ia("Tab.List");return ii({ourProps:{ref:Zo(t),role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),ma=ci((function(e,t){let{selectedIndex:n}=ia("Tab.Panels");return ii({ourProps:{ref:Zo(t)},theirProps:e,slot:_e((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),ha=ci((function(e,t){var n,r,o,i;let a=Ao(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:p}=ia("Tab.Panel"),f=sa("Tab.Panel"),m=ye(null),h=Zo(m,t);xo((()=>f.registerPanel(m)),[f,m]);let g=Zi("panels"),b=p.indexOf(m);-1===b&&(b=g);let v=b===u,y=_e((()=>({selected:v})),[v]),w={ref:h,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[b])?void 0:n.current)?void 0:r.id,tabIndex:v?l:-1};return v||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?ii({ourProps:w,theirProps:c,slot:y,defaultTag:"div",features:ua,visible:v,name:"Tabs.Panel"}):zt.createElement(fi,{as:"span","aria-hidden":"true",...w})})),ga=Object.assign(da,{Group:pa,List:fa,Panels:ma,Panel:ha});function ba(e,...t){e&&t.length>0&&e.classList.add(...t)}function va(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ya(e,t,n,r){let o=n?"enter":"leave",i=Co(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Po(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Po(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Po(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return va(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ba(e,...t.base,...s,...c),i.nextFrame((()=>{va(e,...t.base,...s,...c),ba(e,...t.base,...s,...l),function(e,t){let n=Co();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(va(e,...t.base,...s),ba(e,...t.base,...t.entered),a())))})),i.dispose}function wa(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let _a=V(null);_a.displayName="TransitionContext";var xa=(e=>(e.Visible="visible",e.Hidden="hidden",e))(xa||{});let Ea=V(null);function ka(e){return"children"in e?ka(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Sa(e,t){let n=Eo(e),r=ye([]),o=Ci(),i=No(),a=So(((e,t=oi.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Po(t,{[oi.Unmount](){r.current.splice(a,1)},[oi.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!ka(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=So((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,oi.Unmount)})),l=ye([]),c=ye(Promise.resolve()),u=ye({enter:[],leave:[],idle:[]}),d=So(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=So(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return _e((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function Ta(){}Ea.displayName="NestingContext";let Ca=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Na(e){var t;let n={};for(let r of Ca)n[r]=null!=(t=e[r])?t:Ta;return n}let Oa=ri.RenderStrategy;let Ra=ci((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=ye(null),s=Zo(a,t);Oo();let l=gi();if(void 0===n&&null!==l&&(n=(l&hi.Open)===hi.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=he(n?"visible":"hidden"),d=Sa((()=>{u("hidden")})),[p,f]=he(!0),m=ye([n]);xo((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=_e((()=>({show:n,appear:r,initial:p})),[n,r,p]);be((()=>{if(n)u("visible");else if(ka(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},b=So((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),v=So((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return zt.createElement(Ea.Provider,{value:d},zt.createElement(_a.Provider,{value:h},ii({ourProps:{...g,as:x,children:zt.createElement(Aa,{ref:s,...g,...i,beforeEnter:b,beforeLeave:v})},theirProps:{},defaultTag:x,features:Oa,visible:"visible"===c,name:"Transition"})))})),Aa=ci((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=ye(null),b=Zo(g,t),v=null==(n=h.unmount)||n?oi.Unmount:oi.Hidden,{show:y,appear:w,initial:_}=function(){let e=Ee(_a);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,E]=he(y?"visible":"hidden"),k=function(){let e=Ee(Ea);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:T}=k;be((()=>S(g)),[S,g]),be((()=>{if(v===oi.Hidden&&g.current)return y&&"visible"!==x?void E("visible"):Po(x,{hidden:()=>T(g),visible:()=>S(g)})}),[x,g,S,T,y,v]);let C=Eo({base:wa(h.className),enter:wa(l),enterFrom:wa(c),enterTo:wa(u),entered:wa(d),leave:wa(p),leaveFrom:wa(f),leaveTo:wa(m)}),N=function(e){let t=ye(Na(e));return be((()=>{t.current=Na(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=Oo();be((()=>{if(O&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,O]);let R=_&&!w,A=w&&y&&_,P=(()=>!O||R?"idle":y?"enter":"leave")(),L=function(e=0){let[t,n]=he(e),r=Ci(),o=xe((e=>{r.current&&n((t=>t|e))}),[t,r]),i=xe((e=>Boolean(t&e)),[t]),a=xe((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=xe((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=So((e=>Po(e,{enter:()=>{L.addFlag(hi.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(hi.Closing),N.current.beforeLeave()},idle:()=>{}}))),D=So((e=>Po(e,{enter:()=>{L.removeFlag(hi.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(hi.Closing),N.current.afterLeave()},idle:()=>{}}))),F=Sa((()=>{E("hidden"),T(g)}),k),U=ye(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Ci(),s=No(),l=Eo(n);xo((()=>{e&&(l.current="enter")}),[e]),xo((()=>{let e=Co();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(ya(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:C,direction:P,onStart:Eo((e=>{U.current=!0,F.onStart(g,e,I)})),onStop:Eo((e=>{U.current=!1,F.onStop(g,e,D),"leave"===e&&!ka(F)&&(E("hidden"),T(g))}))});let j=h,M={ref:b};return A?j={...j,className:ti(h.className,...C.current.enter,...C.current.enterFrom)}:U.current&&(j.className=ti(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),zt.createElement(Ea.Provider,{value:F},zt.createElement(bi,{value:Po(x,{visible:hi.Open,hidden:hi.Closed})|L.flags},ii({ourProps:M,theirProps:j,defaultTag:"div",features:Oa,visible:"visible"===x,name:"Transition.Child"})))})),Pa=ci((function(e,t){let n=null!==Ee(_a),r=null!==gi();return zt.createElement(zt.Fragment,null,!n&&r?zt.createElement(Ra,{ref:t,...e}):zt.createElement(Aa,{ref:t,...e}))})),La=Object.assign(Ra,{Child:Pa,Root:Ra});const Ia=({children:e})=>{const t=zt.Children.toArray(e),n=t.find((e=>e.type===Da)),r=t.find((e=>e.type===Fa));return Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(La,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},Da=({children:e})=>Ie(x,{children:e}),Fa=({children:e})=>Ie(x,{children:e});Ia.Top=Da,Ia.Bottom=Fa;const Ua=e=>e.replace(/ /g,""),ja=e=>{const t=Ua(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},Ma=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=vo(),[o,i]=he(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Ee(Ue),[n,r]=he((()=>e&&ja(e)?e:"")),o=_e((()=>ja(n)),[n]),i=_e((()=>Ua(n)),[n]),a=_e((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=_e((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=_e((()=>ja(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=he(s.isVerified);be((()=>{(async()=>{await r("sign-up-viewed")})()}),[r]);const u=xe((()=>{i("")}),[]),d=xe((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=xe((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=xe((()=>r("sign-up-declined").then(n)),[n,r]),m=xe((async()=>{c(!1)}),[]),h=Ie("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",Ie(qt,{})]});return Ie(Ia,{children:[Ie(Ia.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Gt,{children:"Join your workplace benefits program"}),Ie(Yt,{children:[s.isVerified?"Confirm ":"Enter "," your ",Ie("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Ie(Ia.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(Me,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),Ie($t,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:u,onfocusout:d,trailingIconElement:l&&h,disabled:l}),0!==o.length&&Ie("div",{className:"h-8 leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:o})}),l&&Ie("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Ie("span",{className:"text-xs",children:["Not your personal number?",Ie(Vt,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Ie("div",{children:Ie("span",{className:"font-medium text-sm text-gray-900 text-center",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",Ie("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Ie(Wt,{class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),Ie(Wt,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:f,children:"Not now"})]})})]})},Ba=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},y("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})),za=({onContinue:e})=>Ie(Ia,{children:[Ie(Ia.Top,{children:Ie("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:Ie(Ba,{className:"h-7 w-7"})})}),Ie(Ia.Bottom,{children:Ie("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Ie(Gt,{children:"You’ve joined your workplace benefits program"}),Ie(Yt,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),Ie(Wt,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),Ha=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},y("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),qa=({children:e,...t})=>Ie("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Wa=({open:e})=>Ie(qa,{open:e,children:Ie("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})}),Ie(Gt,{children:"Creating your account"}),Ie("div",{children:[Ie(Yt,{children:"This can take up to 30 seconds."}),Ie(Yt,{children:"Please don't navigate away or refresh your browser."})]})]})}),Va=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=he("");return{otp:{valid:_e((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=he(!1),[l,c]=he(""),{countdown:u,restart:d}=(e=>{const[t,n]=he(e),r=ye(),o=xe((()=>{clearInterval(r.current)}),[]);be((()=>o),[o]);const i=xe((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e]);return{countdown:t,restart:i}})(60);be(d,[d]);const p=xe((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=xe((()=>(c(""),n().then(d).catch(c))),[n,d]);return Ie(x,{children:[Ie(Wa,{open:a}),Ie(Ia,{children:[Ie(Ia.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Gt,{children:"Verify your mobile number"}),Ie(Yt,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Ie(Ia.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(Me,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),Ie($t,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",trailingIconElement:!1,onChange:i}),l&&Ie("span",{className:"text-xs text-rose-500",children:l}),Ie("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Ie(Vt,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==u&&Ie(x,{children:["in ",u," secs"]})]}),Ie(Wt,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),Ie(Wt,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:async()=>{r()},children:Ie("span",{className:"flex gap-3",children:[Ie(Ha,{}),"Back"]})})]})})]})]})},$a=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=he(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=he(0),n=xe((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=xe((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=xe((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?je.OTP:je.SUCCESS)}))),[u,t]),p=xe((e=>n(e).then((()=>{u(je.SUCCESS)}))),[u,n]);return Ie(x,{children:[l===je.PHONE_NUMBER&&Ie(Ma,{phoneNumber:a,onSubmit:d,onDecline:i}),l===je.OTP&&Ie(Va,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===je.SUCCESS&&Ie(za,{onContinue:o})]})},Ga="Onboarding",Ya="onboarding";var Ka=(e=>(e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04.",e))(Ka||{});const Xa=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Ka[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Qa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Ee(Ue),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>mo.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Ga,channel:Ya}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await mo.backend.getClient().post("auth/verify",{otp:e,source:Ga,channel:Ya}).catch(Xa)},resendOtp:async()=>{await mo.backend.getClient().post("auth/resend").catch(Xa)}};return Ie(x,{children:Ie($a,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ja=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),Za=e=>{const{featureFlags:t}=Ee(Ue),[n,r]=he(!0),{trace:o}=vo();return be((()=>{t.unifiedCustomerRegistration||(async()=>{await o("sign-up-viewed")})()}),[]),Ie(Ia,{children:[Ie(Ia.Top,{children:Ie("img",{class:"max-w-[30rem] w-full",src:Ja})}),Ie(Ia.Bottom,{children:Ie("div",{children:[Ie("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Ie("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),!t.unifiedCustomerRegistration&&Ie("div",{class:"flex items-center text-left mt-6",children:[Ie("input",{class:"accent-primary-base h-4 w-4",type:"checkbox",name:"membership",checked:n,onChange:e=>{var t;return r(null==(t=e.target)?void 0:t.checked)}}),Ie("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:Ie("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),Ie(Wt,{class:"mt-8",onClickPromise:async()=>{await o("started"),t.unifiedCustomerRegistration||await o(n?"membership-accepted":"membership-declined"),e.onStepComplete()},children:"Continue"})]})})]})};function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},es.apply(null,arguments)}function ts(e,t){return(ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ns(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
|
2
|
+
/*!
|
3
|
+
* content-type
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
5
|
+
* MIT Licensed
|
6
|
+
*/"function"==typeof SuppressedError&&SuppressedError;var os=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,is=/\\([\u000b\u0020-\u00ff])/g,as=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,ss=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!as.test(r))throw new TypeError("invalid media type");var o=new ls(r.toLowerCase());if(-1!==n){var i,a,s;for(os.lastIndex=n;a=os.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(is,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function ls(e){this.parameters=Object.create(null),this.type=e}var cs=new Map,us=function(e){return e.cloneNode(!0)},ds=function(){return"file:"===window.location.protocol},ps=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=ss(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(ds()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||ds()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(i){if(r.abort(),!(i instanceof Error))throw i;n(i,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},fs={},ms=function(e,t){fs[e]=fs[e]||[],fs[e].push(t)},hs=function(e,t,n){if(cs.has(e)){var r=cs.get(e);if(void 0===r)return void ms(e,n);if(r instanceof SVGSVGElement)return void n(null,us(r))}cs.set(e,void 0),ms(e,n),ps(e,t,(function(t,n){var r;t?cs.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&cs.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(fs[e])){var n=cs.get(e),r=fs[e][t];n instanceof SVGSVGElement&&r(null,us(n)),n instanceof Error&&r(n),t===fs[e].length-1&&delete fs[e]}}),0)},n=0,r=fs[e].length;n<r;n++)t(n)}(e)}))},gs=function(e,t,n){ps(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},bs=0,vs=[],ys={},ws="http://www.w3.org/1999/xlink",_s=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==vs.indexOf(e))return vs.splice(vs.indexOf(e),1),void(e=null);vs.push(e),e.setAttribute("src",""),(r?hs:gs)(s,o,(function(r,o){if(!o)return vs.splice(vs.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var p=Array.from(new Set(ns(ns(ns([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,b,v,y,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,b=w[e];for(var t=function(e,t){var n;v=g[e].id,y=v+"-"+ ++bs,Array.prototype.forEach.call(b,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+v+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+v+'"?\\)'))||n[t].setAttribute(e,"url(#"+y+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(ws,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(ws,"href","#"+y);g[e].id=y},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var _,x,E=o.querySelectorAll("script"),k=[],S=0,T=E.length;S<T;S++)(x=E[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((_=E[S].innerText||E[S].textContent)&&k.push(_),o.removeChild(E[S]));if(k.length>0&&("always"===t||"once"===t&&!ys[s])){for(var C=0,N=k.length;C<N;C++)new Function(k[C])(window);ys[s]=!0}var O=o.querySelectorAll("style");if(Array.prototype.forEach.call(O,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",ws),i(o),!e.parentNode)return vs.splice(vs.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),vs.splice(vs.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},xs={exports:{}};function Es(){}function ks(){}ks.resetWarningCache=Es;xs.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={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:ks,resetWarningCache:Es};return n.PropTypes=n,n}();var Ss=xs.exports,Ts=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Cs="http://www.w3.org/2000/svg",Ns="http://www.w3.org/1999/xlink",Os=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ts(e,t)}(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,s=o.httpRequestWithCredentials,l=o.renumerateIRIElements,c=o.src,u=o.title,d=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(Cs,h)).setAttribute("xmlns",Cs),n.setAttribute("xmlns:xlink",Ns),r=document.createElementNS(Cs,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,p=void 0===d?"never":d,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var b=0,v=0,y=e.length;v<y;v++)_s(e[v],p,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++b&&o(b)}));else e?_s(e,p,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(u){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=u,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:d,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(es({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,Ts);return y(r,es({},o,{ref:this.refCallback},"svg"===r?{xmlns:Cs,xmlnsXlink:Ns}:{}),this.state.isLoading&&n&&y(n,null),this.state.hasError&&t&&y(t,null))},t}(E);Os.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Os.propTypes={afterInjection:Ss.func,beforeInjection:Ss.func,desc:Ss.string,evalScripts:Ss.oneOf(["always","once","never"]),fallback:Ss.oneOfType([Ss.func,Ss.object,Ss.string]),httpRequestWithCredentials:Ss.bool,loading:Ss.oneOfType([Ss.func,Ss.object,Ss.string]),onError:Ss.func,renumerateIRIElements:Ss.bool,src:Ss.string.isRequired,title:Ss.string,useRequestCache:Ss.bool,wrapper:Ss.oneOf(["div","span","svg"])};const Rs=({children:e})=>{const t=zt.Children.toArray(e),n=t.find((e=>e.type===As)),r=t.find((e=>e.type===Ps));return Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(La,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},As=({children:e})=>Ie(x,{children:e}),Ps=({children:e})=>Ie(x,{children:e});Rs.Left=As,Rs.Right=Ps;
|
7
|
+
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
8
|
+
const{entries:Ls,setPrototypeOf:Is,isFrozen:Ds,getPrototypeOf:Fs,getOwnPropertyDescriptor:Us}=Object;let{freeze:js,seal:Ms,create:Bs}=Object,{apply:zs,construct:Hs}="undefined"!=typeof Reflect&&Reflect;js||(js=function(e){return e}),Ms||(Ms=function(e){return e}),zs||(zs=function(e,t,n){return e.apply(t,n)}),Hs||(Hs=function(e,t){return new e(...t)});const qs=nl(Array.prototype.forEach),Ws=nl(Array.prototype.pop),Vs=nl(Array.prototype.push),$s=nl(String.prototype.toLowerCase),Gs=nl(String.prototype.toString),Ys=nl(String.prototype.match),Ks=nl(String.prototype.replace),Xs=nl(String.prototype.indexOf),Qs=nl(String.prototype.trim),Js=nl(Object.prototype.hasOwnProperty),Zs=nl(RegExp.prototype.test),el=(tl=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hs(tl,t)});var tl;function nl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return zs(e,t,r)}}function rl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$s;Is&&Is(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ds(t)||(t[r]=e),o=e)}e[o]=!0}return e}function ol(e){for(let t=0;t<e.length;t++){Js(e,t)||(e[t]=null)}return e}function il(e){const t=Bs(null);for(const[n,r]of Ls(e)){Js(e,n)&&(Array.isArray(r)?t[n]=ol(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=il(r):t[n]=r)}return t}function al(e,t){for(;null!==e;){const n=Us(e,t);if(n){if(n.get)return nl(n.get);if("function"==typeof n.value)return nl(n.value)}e=Fs(e)}return function(){return null}}const sl=js(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ll=js(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cl=js(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ul=js(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dl=js(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),pl=js(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fl=js(["#text"]),ml=js(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),hl=js(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gl=js(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bl=js(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vl=Ms(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yl=Ms(/<%[\w\W]*|[\w\W]*%>/gm),wl=Ms(/\${[\w\W]*}/gm),_l=Ms(/^data-[\-\w.\u00B7-\uFFFF]/),xl=Ms(/^aria-[\-\w]+$/),El=Ms(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kl=Ms(/^(?:\w+script|data):/i),Sl=Ms(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tl=Ms(/^html$/i),Cl=Ms(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nl=Object.freeze({__proto__:null,MUSTACHE_EXPR:vl,ERB_EXPR:yl,TMPLIT_EXPR:wl,DATA_ATTR:_l,ARIA_ATTR:xl,IS_ALLOWED_URI:El,IS_SCRIPT_OR_DATA:kl,ATTR_WHITESPACE:Sl,DOCTYPE_NAME:Tl,CUSTOM_ELEMENT:Cl});const Ol=1,Rl=3,Al=7,Pl=8,Ll=9;var Il=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Ll)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=al(h,"cloneNode"),b=al(h,"remove"),v=al(h,"nextSibling"),y=al(h,"childNodes"),w=al(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let _,x="";const{implementation:E,createNodeIterator:k,createDocumentFragment:S,getElementsByTagName:T}=r,{importNode:C}=o;let N={};n.isSupported="function"==typeof Ls&&"function"==typeof w&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:R,TMPLIT_EXPR:A,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:F}=Nl;let{IS_ALLOWED_URI:U}=Nl,j=null;const M=rl({},[...sl,...ll,...cl,...dl,...fl]);let B=null;const z=rl({},[...ml,...hl,...gl,...bl]);let H=Object.seal(Bs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,K=!1,X=!0,Q=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=rl({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=rl({},["audio","video","img","source","image","track"]);let pe=null;const fe=rl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let be=ge,ve=!1,ye=null;const we=rl({},[me,he,ge],Gs);let _e=null;const xe=["application/xhtml+xml","text/html"];let Ee=null,ke=null;const Se=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ke||ke!==e){if(e&&"object"==typeof e||(e={}),e=il(e),_e=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===_e?Gs:$s,j=Js(e,"ALLOWED_TAGS")?rl({},e.ALLOWED_TAGS,Ee):M,B=Js(e,"ALLOWED_ATTR")?rl({},e.ALLOWED_ATTR,Ee):z,ye=Js(e,"ALLOWED_NAMESPACES")?rl({},e.ALLOWED_NAMESPACES,Gs):we,pe=Js(e,"ADD_URI_SAFE_ATTR")?rl(il(fe),e.ADD_URI_SAFE_ATTR,Ee):fe,ue=Js(e,"ADD_DATA_URI_TAGS")?rl(il(de),e.ADD_DATA_URI_TAGS,Ee):de,le=Js(e,"FORBID_CONTENTS")?rl({},e.FORBID_CONTENTS,Ee):ce,q=Js(e,"FORBID_TAGS")?rl({},e.FORBID_TAGS,Ee):{},W=Js(e,"FORBID_ATTR")?rl({},e.FORBID_ATTR,Ee):{},se=!!Js(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||El,be=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&($=!1),te&&(ee=!0),se&&(j=rl({},fl),B=[],!0===se.html&&(rl(j,sl),rl(B,ml)),!0===se.svg&&(rl(j,ll),rl(B,hl),rl(B,bl)),!0===se.svgFilters&&(rl(j,cl),rl(B,hl),rl(B,bl)),!0===se.mathMl&&(rl(j,dl),rl(B,gl),rl(B,bl))),e.ADD_TAGS&&(j===M&&(j=il(j)),rl(j,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(B===z&&(B=il(B)),rl(B,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&rl(pe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=il(le)),rl(le,e.FORBID_CONTENTS,Ee)),ie&&(j["#text"]=!0),Q&&rl(j,["html","head","body"]),j.table&&(rl(j,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));js&&js(e),ke=e}},Ne=rl({},["mi","mo","mn","ms","mtext"]),Oe=rl({},["foreignobject","annotation-xml"]),Re=rl({},["title","style","font","a","script"]),Ae=rl({},[...ll,...cl,...ul]),Pe=rl({},[...dl,...pl]),Le=function(e){Vs(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){b(e)}},Ie=function(e,t){try{Vs(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Vs(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},De=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=Ys(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===_e&&be===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=_?_.createHTML(e):e;if(be===ge)try{t=(new f).parseFromString(o,_e)}catch(a){}if(!t||!t.documentElement){t=E.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),be===ge?T.call(t,Q?"html":"body")[0]:Q?t.documentElement:i},Fe=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l},Me=function(e,t,r){N[e]&&qs(N[e],(e=>{e.call(n,t,r,ke)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),Ue(e))return Le(e),!0;const r=Ee(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&Zs(/<[/\w]/g,e.innerHTML)&&Zs(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Al)return Le(e),!0;if(X&&e.nodeType===Pl&&Zs(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&Zs(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,v(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=$s(e.tagName),r=$s(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ne[r]):Boolean(Ae[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Oe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Ne[r])&&!Pe[n]&&(Re[n]||!Ae[n]):!("application/xhtml+xml"!==_e||!ye[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Zs(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===Rl&&(t=e.textContent,qs([O,R,A],(e=>{t=Ks(t,e," ")})),e.textContent!==t&&(Vs(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!W[t]&&Zs(P,t));else if(V&&Zs(L,t));else if(!B[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&Zs(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&Zs(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Zs(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(Zs(U,Ks(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Xs(n,"data:")||!ue[e]){if(G&&!Zs(I,Ks(n,D,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Ys(e,F)},qe=function(e){Me("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=Ee(s);let d="value"===s?c:Qs(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),d=r.attrValue,X&&Zs(/((--!?|])>)|<\/(style|title)/i,d)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&Zs(/\/>/i,d)){Ie(s,e);continue}K&&qs([O,R,A],(e=>{d=Ks(d,e," ")}));const p=Ee(e.nodeName);if(ze(p,u,d)){if(!oe||"id"!==u&&"name"!==u||(Ie(s,e),d="user-content-"+d),_&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,u)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),Ue(e)?Le(e):Ws(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Me("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof a&&e(n.content),qe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw el("toString is not a function");if("string"!=typeof(e=e.toString()))throw el("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Ce(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!j[t]||q[t])throw el("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=De("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Ol&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!K&&!Q&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(r=De(e),!r)return ee?null:ne?x:""}r&&Z&&Le(r.firstChild);const u=Fe(ae?e:r);for(;s=u.nextNode();)Be(s)||(s.content instanceof a&&We(s.content),qe(s));if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=C.call(o,c,!0)),c}let d=Q?r.outerHTML:r.innerHTML;return Q&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Zs(Tl,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),K&&qs([O,R,A],(e=>{d=Ks(d,e," ")})),_&&ne?_.createHTML(d):d},n.setConfig=function(){Ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){ke=null,J=!1},n.isValidAttribute=function(e,t,n){ke||Ce({});const r=Ee(e),o=Ee(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],Vs(N[e],t))},n.removeHook=function(e){if(N[e])return Ws(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const Dl=e=>Ie(La,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>Ie("div",{class:"flex space-x-1",children:[Ie("span",{children:Ie(Ba,{class:"h-5 w-5 fill-primary-base"})}),Ie("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Fl=({id:e,title:t,minimumValue:n,maximumValue:r,onChange:o})=>{const[i,a]=he(""),[s,l]=he(!1),c=xe((e=>{const t=Number(e),o=t>=n&&t<=r;return l(o),o}),[r,n]),u=xe((()=>{a("")}),[]),d=xe((()=>{s||a(`Please enter value between $${n} and $${r}`)}),[s,n,r]),p=Ie("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:Ie("span",{children:"$"})});return Ie("div",{className:"flex flex-col gap-1",children:[Ie(Me,{children:t}),Ie($t,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",className:0!==i.length?"h-8 pl-7 text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-red-500":"h-8 pl-7",onfocusin:u,onfocusout:d,leadingIconElement:p,trailingIconElement:!1,onChange:t=>{const n=c(t)?t:"";o({[e]:n})}}),0!==i.length&&Ie("div",{className:"leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:i})})]})},Ul=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},y("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),jl=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>Ie(Ki,{name:e,defaultValue:t,onChange:t=>r({[e]:t.value}),className:`w-fit min-w-60 ${o??""}`,children:Ie("div",{className:"relative",children:[Ie(Ki.Button,{className:"relative w-full h-9 cursor-default rounded-md border-2 bg-white py-0.5 pl-3 pr-10 text-left focus:outline-none focus-visible:border-gray-700",children:({value:e})=>Ie(x,{children:[Ie("span",{className:"block truncate",children:(null==e?void 0:e.label)??"Select"}),Ie("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:Ie(Ul,{className:"h-5 w-5 text-gray-700","aria-hidden":"true"})})]})}),Ie(La,{as:x,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Ie(Ki.Options,{className:"absolute z-20 flex flex-col gap-0.5 mt-1 max-h-60 w-full overflow-auto rounded-md border-2 bg-white py-1 text-base ring-none focus:outline-none focus-visible:border-gray-700",children:n.map((e=>Ie(Ki.Option,{className:({active:e,selected:t})=>`relative h-7 cursor-default select-none py-0.5 pl-3 pr-4 ${e||t?"font-medium text-white":"text-gray-700"} ${e?"bg-primary-hover":t?"bg-primary-base":""}`,value:e,children:({selected:t})=>Ie("span",{className:"block truncate "+(t?"font-medium":"font-normal"),children:e.label})},e.value)))})})]})}),Ml=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>{const i=n[0],a=n[1],[s,l]=he(t||i);return be((()=>{r({[e]:s.value})}),[e,r,s.value]),Ie("div",{className:`bg-gray-200 rounded-md w-fit h-fit p-0.5 ${o??""}`,children:Ie("div",{className:"relative flex gap-2",children:[Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===i,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?i:a)}}),i.label]}),Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===a,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?a:i)}}),a.label]}),Ie("span",{className:"z-11 absolute bg-white rounded-md transition-transform ease-out duration-200 h-7 w-1/2 "+(s===i?"translate-x-0":"translate-x-full")})]})})},Bl=({id:e,title:t,defaultValue:n,options:r,onChange:o})=>Ie("div",{className:"flex flex-col gap-2",children:[Ie(Me,{children:t}),2===r.length?Ie(Ml,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o}):Ie(jl,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o})]});var zl=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};const Hl=rs(zl),ql=e=>{var t;return(null==e?void 0:e.nextStepId)??("options"in e?null==(t=null==e?void 0:e.options.find((t=>t.value===e.selectedValue)))?void 0:t.nextStepId:void 0)??void 0},Wl=e=>{const t=[];let n=e[0].id;for(;n;){const r=e.find((e=>e.id===n));r?(t.push(r),n=ql(r)):n=void 0}return t},Vl=e=>e.reduce(((e,t)=>({...e,[t.id]:t.selectedValue})),{}),$l=e=>{switch(e.template){case"SingleSelect":return Ie(Bl,{...e});case"Currency":return Ie(Fl,{...e});default:return Ie(x,{})}},Gl=({questions:e,onChange:t,className:n})=>{const{questions:r,answerQuestion:o,answers:i}=(e=>{const t=ye(e.reduce(((e,t)=>{let n;return"SingleSelect"===t.template&&(n=t.defaultValue,2===t.options.length&&(n=t.options[0].value)),[...e,{...t,selectedValue:n}]}),[])),[n,r]=he(Wl(t.current)),[o,i]=he(Vl(t.current)),a=xe((e=>{const n=((e,t)=>e.map((e=>{const n=t[e.id]??e.selectedValue;return{...e,selectedValue:n,defaultValue:n}})))(t.current,e);if(Hl(t.current,n))return;t.current=n;const o=Wl(n);r(o),i(Vl(o))}),[]);return{questions:n,answerQuestion:a,answers:o}})(e);return be((()=>t(i)),[i,t]),Ie("div",{className:`flex flex-col gap-4 ${n??""}`,children:r.map((e=>Ie($l,{...e,onChange:o},e.id)))})},Yl=(e,t)=>{var n,r;const o=e.find((e=>e.id===t));return(null==o?void 0:o.nextStepId)??(null==(r=null==(n=null==o?void 0:o.options)?void 0:n.find((e=>e.value===o.defaultValue)))?void 0:r.nextStepId)};var Kl=(e=>(e[e.BriefIntroduction=0]="BriefIntroduction",e[e.Questions=1]="Questions",e[e.SubmissionResult=2]="SubmissionResult",e))(Kl||{});const Xl=(e,t,n,r)=>{const{activity:o,getActivity:i,progressActivity:a,calculation:s,getCalculation:l}=(e=>{const[t,n]=he(),[r,o]=he();return{activity:t,getActivity:()=>ho.workplaceBackend.getClient().get(`v2.0/activities/${e}/steps`).then((e=>{n(e.data)})),progressActivity:t=>{const n={activityAction:"ProgressStartToComplete",progressEvents:Object.entries(t).map((([e,t])=>({stepId:e,value:t})))};return ho.workplaceBackend.getClient().put(`v1.0/customer/activities/${e}`,n)},calculation:r,getCalculation:async()=>ho.workplaceBackend.getClient().get(`v1.0/activities/${e}/calculate`).then((e=>o(e.data)))}})(e.content.assessmentId),c=_e((()=>o?((e,t)=>{let n,r=e;for(;!n;){const e=t.find((e=>e.id==r));"Question"===e.stepType&&(n=e),r=Yl(t,e.id)}return[n,...t.filter((e=>e!==n&&"Question"===e.stepType))]})(o.firstStepId,o.steps):void 0),[o]),[u,d]=he(0),[p,f]=he(!0),m=ye(),h=ye({}),g=xe((e=>{const t=m.current;return t?Object.entries(e).filter((([e,n])=>t[e]!==n)).map((([e,t])=>{var n;return{questionId:e,answer:t,customerAttribute:(null==(n=null==o?void 0:o.steps.find((t=>t.id===e)))?void 0:n.customerAttribute)??""}})):[]}),[null==o?void 0:o.steps]),b=xe((async e=>{switch(u){case 0:await i(),d(1);break;case 1:e&&await a(h.current),await l(),d(2)}}),[u,i,l,a]);return{title:_e((()=>{switch(u){case 0:case 1:return e.content.title;case 2:return null==s?void 0:s.estimates.primary.title;default:return}}),[null==s?void 0:s.estimates.primary.title,u,e.content.title]),description:_e((()=>{switch(u){case 0:case 1:return e.content.description;case 2:return null==s?void 0:s.estimates.blurb.text;default:return}}),[null==s?void 0:s.estimates.blurb.text,u,e.content.description]),primaryButtonEnabled:p,primaryButtonText:_e((()=>{switch(u){case 0:return t;case 1:return"Submit";case 2:return"Next";default:return}}),[t,u]),secondaryButtonText:_e((()=>{switch(u){case 0:return n;case 1:if(r)return;return"I'll do this later";default:return}}),[u,n]),currentSlide:u,goToNextSlide:b,questions:c,calculateUpdatedAnswers:g,updateAnswers:e=>{1===u&&(h.current=e,m.current={...m.current,...e},f(!Object.values(e).some((e=>!e))))},submissionResult:s?{imageUrl:s.estimates.blurb.imageUrl}:void 0}},Ql=Object.values(Kl).filter((e=>!isNaN(Number(e)))),Jl=(e,t)=>{const n=Ql.indexOf(e),r=Ql.indexOf(t);return n<r?`transition duration-300 -translate-x-[${100*(n+1)}%] opacity-0 h-0`:n===r?`transition duration-300 -translate-x-[${100*n}%] opacity-100 h-full`:n>r?`transition duration-300 -translate-x-[${100*(n-1)}%] opacity-0 h-0`:void 0},Zl=e=>{var t;return Ie("div",{className:"flex flex-row",children:[Ie("div",{className:"-translate-x-[0%] -translate-x-[100%] -translate-x-[200%]"}),Ie("div",{className:`w-full flex-none ${Jl(Kl.BriefIntroduction,e.currentSlide)}`,children:Ie(Dl,{items:e.offer.content.details})}),Ie("div",{className:`w-full flex-none ${Jl(Kl.Questions,e.currentSlide)}`,children:e.questions&&Ie(Gl,{questions:e.questions,onChange:e.onQuestionsAnswered})}),Ie("div",{className:`w-full flex-none ${Jl(Kl.SubmissionResult,e.currentSlide)}`,children:Ie("img",{class:"mt-4 max-w-full w-full mx-auto",src:null==(t=e.submissionResult)?void 0:t.imageUrl,loading:"lazy"})})]})},ec=e=>{const{step:{name:t,content:{assessmentId:n}}}=e,{title:r,description:o,currentSlide:i,goToNextSlide:a,primaryButtonEnabled:s,primaryButtonText:l,secondaryButtonText:c,questions:u,calculateUpdatedAnswers:d,updateAnswers:p,submissionResult:f}=Xl(e.step,e.acceptButton.text,e.declineButton.text,e.step.content.skipButtonHidden),{trace:m}=vo();be((()=>{(async()=>{await m({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[]),be((()=>{i===Kl.Questions&&m({type:"assessment-viewed",data:{assessmentId:n,assessmentTitle:t}}),i===Kl.SubmissionResult&&m({type:"assessment-summary-viewed",data:{assessmentId:n,assessmentTitle:t}})}),[n,t,i,m]);const h=xe((e=>{d(e).forEach((({customerAttribute:e})=>{m({type:"assessment-field-updated",data:{assessmentId:n,assessmentTitle:t,customerAttribute:e}})})),p(e)}),[n,t,d,m,p]),g=xe((async()=>{i===Kl.BriefIntroduction&&(await m({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),await a(!0)),i===Kl.Questions&&(m({type:"assessment-submitted",data:{assessmentId:n,assessmentTitle:t}}),await a(!0)),i===Kl.SubmissionResult&&e.onComplete()}),[n,t,i,a,e,m]),b=xe((async()=>{i===Kl.BriefIntroduction&&(await m({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),e.declineButton.onClick()),i===Kl.Questions&&(m({type:"assessment-skipped",data:{assessmentId:n,assessmentTitle:t}}),await a(!1))}),[n,t,i,e.declineButton,e.step.content.template,e.step.metadata,e.step.name,m]);return Ie(Rs,{children:[Ie(Rs.Left,{children:Ie("div",{children:Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:Ie("div",{class:"flex flex-col justify-stretch md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r}),o&&Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o}),Ie("div",{className:"mt-6",children:Ie(Zl,{currentSlide:i,offer:e.step,questions:u,onQuestionsAnswered:h,submissionResult:f})}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[l&&Ie(Wt,{class:"",disabled:i!==Kl.SubmissionResult&&!s,onClickPromise:g,children:l}),c&&Ie(Wt,{class:"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:b,children:c})]}),Ie("div",{className:`flex flex-col gap-3 mt-6 text-gray-600 text-xs ${Jl(Kl.BriefIntroduction,i)}`,children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Il.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})})}),Ie(Rs.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},tc=e=>{const[t,n]=he(!1);return Ie("div",{class:e.class,children:t?Ie(Dl,{items:e.items}):Ie("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",Ie("span",{class:"ml-1",children:Ie(Ul,{class:"h-4 w-4"})})]})})},nc=e=>{var t;const{trace:n}=vo();be((()=>{(async()=>{await n({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,n]);const r=async t=>{t?await n({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await n({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Ie(Rs,{children:[Ie(Rs.Left,{children:Ie("div",{children:Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(Dl,{items:e.step.content.details})})]}),e.step.content.details&&Ie(tc,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Ie(Wt,{class:e.primaryButton.class??"",onClickPromise:()=>r(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&Ie(Wt,{class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>r(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Il.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Ie(Rs.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},rc=e=>{const{trace:t}=vo();be((()=>{(async()=>{"name"in e.step&&await t({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,t]);return Ie(Rs,{children:[Ie(Rs.Left,{children:Ie("div",{children:Ie(La,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(Dl,{items:e.step.content.details})})]}),e.step.content.details&&Ie(tc,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(Wt,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await t({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Il.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Ie(Rs.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},oc=({current:e,total:t})=>Ie("div",{className:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:Ie("div",{className:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,Ie("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})})}),ic=e=>{const{featureFlags:{marketplaceSubNavigation:t}}=Ee(Ue),[n,r]=he(0),o=xe((()=>{n===e.offers.length-1?e.onComplete():r(n+1)}),[e,n]);return Ie("div",{children:[!t&&Ie(oc,{current:n+1,total:e.offers.length+1}),Ie(ga.Group,{selectedIndex:n,onChange:r,children:[Ie("div",{className:(t?"md:grid":"hidden")+" md:grid-cols-2 max-w-[59.5rem] mx-auto ",children:Ie(ga.List,{className:"flex items-baseline md:mb-4",children:e.offers.map(((e,t)=>Ie(ga,{disabled:n!==t,className:({selected:e})=>'\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n '+(e?"text-primary-base":"text-gray-400"),children:Ie("div",{className:"flex items-center flex-col",children:[Ie(Os,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),Ie("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e.content.productName})]})},e.name)))})}),Ie(ga.Panels,{children:e.offers.map((e=>Ie(ga.Panel,{children:["Eoi"===e.content.template&&Ie(nc,{step:e,primaryButton:{text:e.content.acceptButton,onClick:o},secondaryButton:{text:e.content.declineButton,onClick:o}}),"Simple"===e.content.template&&Ie(rc,{step:e,primaryButton:{text:e.content.acceptButton,onClick:o}}),"Assessment"===e.content.template&&Ie(ec,{step:e,acceptButton:{text:e.content.acceptButton},declineButton:{text:e.content.declineButton,onClick:o},onComplete:o},e.name)]},e.name)))})]})]})},ac=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),sc=e=>y("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),lc=e=>y("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),cc=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),uc=()=>{const{trace:e}=vo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:t}=Ee(Ue),n={...dc(t),imageUrl:ac,mobileImageUrl:cc},r={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await e("completed");const t=document.querySelector(bc),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(Rs,{children:[Ie(Rs.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"mt-6 flex space-x-6",children:[Ie(sc,{}),Ie(lc,{})]}),Ie(Wt,{class:r.class,onClickPromise:r.onClick,children:r.text})]})}),Ie(Rs.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},dc=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},pc=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),fc=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),mc=()=>{const{trace:e}=vo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:t}=Ee(Ue),n={imageUrl:pc,mobileImageUrl:fc,title:"You're all set!",description:"PreviouslyLinked"===t.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},r={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await e("completed");const t=document.querySelector(bc),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(Rs,{children:[Ie(Rs.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(Wt,{class:r.class,onClickPromise:r.onClick,children:r.text})})]})}),Ie(Rs.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},hc=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Ee(Ue),{current:s,goNext:l}=function(e,t,n,r,o){const i=function(e,t,n,r,o){const{unifiedCustomerRegistration:i}=o,a=t?"SummaryApp":"SummaryGeneric";if(e)return[a];if(!i)return["Introduction","MarketplaceOffers",a];switch(!0){case"Unregistered"===n.registrationStatus:case"PreviouslyRegistered"===n.registrationStatus&&"Unlinked"===r.linkingStatus:return["Introduction","FlareAppIdentity"];case"PreviouslyRegistered"===n.registrationStatus&&"NewlyLinked"==r.linkingStatus:case"NewlyRegistered"===n.registrationStatus:return["MarketplaceOffers",a];case"PreviouslyRegistered"===n.registrationStatus&&"PreviouslyLinked"==r.linkingStatus:case"RegistrationAbandoned"===n.registrationStatus:return[a];default:return[]}}(e,t,n,r,o),[a,s]=he(i[0]);return i.some((e=>e===a))||s(i[0]),{current:a,goNext:()=>{try{const e=i.findIndex((e=>e===a)),t=i[e+1];s(t)}catch{}}}}(t,n,r,o,i),c=xe((()=>{a(!0)}),[a]),u=xe((()=>{a(!1)}),[a]);switch(s){case"Introduction":return Ie(Za,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return Ie(Qa,{onSuccess:c,onDecline:u});case"MarketplaceOffers":return Ie(ic,{offers:e,onComplete:l});case"SummaryApp":return Ie(uc,{});case"SummaryGeneric":return Ie(mc,{});default:return Ie(x,{})}},gc=e=>{const t=e.offers.some((e=>"Perks"===e.name)),n=e.identity.isRegistered?"PreviouslyRegistered":"Unregistered",r={email:e.identity.email,phoneNumber:e.identity.phoneNumber??"",verifiedPhoneNumber:e.identity.verifiedPhoneNumber??"",registrationStatus:n},o=e.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked",i={employerName:e.workplace.employerName,linkingStatus:o};return{...Fe,...e,isAppEnabled:t,identity:r,workplace:i}},bc="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=K,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=J,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=he(),[r,o]=he(0);be((()=>Jt((()=>{i().then((()=>o(r+1)))}))),[r]),be((()=>{i()}),[]);const i=async()=>{const t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};go(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await mo.backend.init();n(gc(r))},a=xe((e=>{if(!t)return;const{identity:r,workplace:o}=t,i=e?"Unregistered"===r.registrationStatus?"NewlyRegistered":r.registrationStatus:"RegistrationAbandoned",a=e?"Unlinked"===o.linkingStatus?"NewlyLinked":o.linkingStatus:"Unlinked";n({...t,identity:{...r,registrationStatus:i},workplace:{...o,linkingStatus:a}})}),[t]);return Ie(x,{children:[Ie("style",{children:'/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[90\\%\\]{height:90%}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-6{max-height:1.5rem}.max-h-60{max-height:15rem}.min-h-12{min-height:3rem}.min-h-6{min-height:1.5rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-6{min-width:1.5rem}.min-w-60{min-width:15rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-40{max-width:10rem}.max-w-6{max-width:1.5rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-\\[0\\%\\]{--tw-translate-x:-0%}.-translate-x-\\[0\\%\\],.-translate-x-\\[100\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-\\[100\\%\\]{--tw-translate-x:-100%}.-translate-x-\\[200\\%\\]{--tw-translate-x:-200%}.-translate-x-\\[200\\%\\],.-translate-y-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-6{--tw-translate-y:-1.5rem}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-\\[1\\.25rem\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-hover{background-color:var(--fl-color-primary-hover)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pl-7{padding-left:1.75rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.ring-red-300{--tw-ring-opacity:1;--tw-ring-color:rgb(252 165 165/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-red-300::-moz-placeholder{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.placeholder\\:text-red-300::placeholder{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:border-gray-700:focus-visible{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:.75}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width:768px){.md\\:mb-4{margin-bottom:1rem}.md\\:mt-0{margin-top:0}.md\\:mt-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}'.toString()}),Ie("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Ie(Ue.Provider,{value:{...t,updateIdentity:a},children:Ie(hc,{})}):Ie("div",{class:"flex justify-center",children:Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})})})},r)]})}),bc,[],{shadow:!0})}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flarehr/apollo-benefits-onboarding",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.80.119",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"dist/"
|
@@ -16,11 +16,12 @@
|
|
16
16
|
"dependencies": {
|
17
17
|
"@headlessui/react": "^1.7.18",
|
18
18
|
"axios": "^1.6.7",
|
19
|
-
"dompurify": "^3.
|
19
|
+
"dompurify": "^3.1.6",
|
20
20
|
"fast-deep-equal": "^3.1.3",
|
21
21
|
"jwt-decode": "^4.0.0",
|
22
22
|
"preact": "^10.19.5",
|
23
|
-
"preact-custom-element": "^4.3.0"
|
23
|
+
"preact-custom-element": "^4.3.0",
|
24
|
+
"react-svg": "^16.1.34"
|
24
25
|
},
|
25
26
|
"devDependencies": {
|
26
27
|
"@preact/preset-vite": "^2.8.1",
|