@flarehr/apollo-customer-workplace-link 1.51.40325 → 1.53.42686

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/bundle.esm.js +23 -23
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- let e,t,r,n={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||n,o=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/| +/g,a=/\n+/g,c=(e,t)=>{let r="",n="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+s+";":n+="f"==o[1]?c(s,o):o+"{"+c(s,"k"==o[1]?"":t)+"}":"object"==typeof s?n+=c(s,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=c.p?c.p(o,s):o+":"+s+";")}return r+(t&&i?t+"{"+i+"}":i)+n},l={},u=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+u(e[r]);return t}return e},d=(e,t,r,n,i)=>{let d=u(e),h=l[d]||(l[d]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(d));if(!l[h]){let t=d!==e?e:(e=>{let t,r,n=[{}];for(;t=o.exec(e.replace(s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(a," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(a," ").trim();return n[0]})(e);l[h]=c(i?{["@keyframes "+h]:t}:t,r?"":"."+h)}let p=r&&l.g?l.g:null;return r&&(l.g=l[h]),f=l[h],m=t,g=n,(_=p)?m.data=m.data.replace(_,f):-1===m.data.indexOf(f)&&(m.data=g?f+m.data:m.data+f),h;var f,m,g,_},h=(e,t,r)=>e.reduce(((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+n+(null==o?"":o)}),"");function p(e){let t=this||{},r=e.call?e(t.p):e;return d(r.unshift?r.raw?h(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,i(t.target),t.g,t.o,t.k)}function f(n,i){let o=this||{};return function(){let s=arguments;function a(c,l){let u=Object.assign({},c),d=u.className||a.className;o.p=Object.assign({theme:t&&t()},u),o.o=/ *go\d+/.test(d),u.className=p.apply(o,s)+(d?" "+d:""),i&&(u.ref=l);let h=n;return n[0]&&(h=u.as||n,delete u.as),r&&h[0]&&r(u),e(h,u)}return i?i(a):a}}p.bind({g:1}),p.bind({k:1});var m,g,_,v,y,w,b,E,k={},I=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(e,t){for(var r in t)e[r]=t[r];return e}function R(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,r){var n,i,o,s={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?m.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return A(e,s,n,i,null)}function A(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++_:i};return null==i&&null!=g.vnode&&g.vnode(o),o}function P(){return{current:null}}function N(e){return e.children}function x(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__d||r.__e;return"function"==typeof e.type?L(e):null}function D(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return D(e)}}function M(e){(!e.__d&&(e.__d=!0)&&v.push(e)&&!U.__r++||y!==g.debounceRendering)&&((y=g.debounceRendering)||w)(U)}function U(){var e,t,r,n,i,o,s,a,c;for(v.sort(b);e=v.shift();)e.__d&&(t=v.length,n=void 0,i=void 0,o=void 0,a=(s=(r=e).__v).__e,(c=r.__P)&&(n=[],i=[],(o=S({},s)).__v=s.__v+1,G(c,s,o,r.__n,void 0!==c.ownerSVGElement,null!=s.__h?[a]:null,n,null==a?L(s):a,s.__h,i),J(n,s,i),s.__e!=a&&D(s)),v.length>t&&v.sort(b));U.__r=0}function j(e,t,r,n,i,o,s,a,c,l,u){var d,h,p,f,m,g,_,v,y,w=0,b=n&&n.__k||I,E=b.length,T=E,S=t.length;for(r.__k=[],d=0;d<S;d++)null!=(f=r.__k[d]=null==(f=t[d])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?A(null,f,null,null,f):C(f)?A(N,{children:f},null,null,null):f.__b>0?A(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=r,f.__b=r.__b+1,-1===(v=H(f,b,_=d+w,T))?p=k:(p=b[v]||k,b[v]=void 0,T--),G(e,f,p,i,o,s,a,c,l,u),m=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Y(p.ref,null,f),u.push(h,f.__c||m,f)),null!=m&&(null==g&&(g=m),(y=p===k||null===p.__v)?-1==v&&w--:v!==_&&(v===_+1?w++:v>_?T>S-_?w+=v-_:w--:w=v<_&&v==_-1?v-_:0),_=d+w,"function"!=typeof f.type||v===_&&p.__k!==f.__k?"function"==typeof f.type||v===_&&!y?void 0!==f.__d?(c=f.__d,f.__d=void 0):c=m.nextSibling:c=z(e,m,c):c=F(f,c,e),"function"==typeof r.type&&(r.__d=c))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==c&&(p.__=n,c=L(p)),Q(p,p,!1),b[d]=null);for(r.__e=g,d=E;d--;)null!=b[d]&&("function"==typeof r.type&&null!=b[d].__e&&b[d].__e==r.__d&&(r.__d=b[d].__e.nextSibling),Q(b[d],b[d]))}function F(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t="function"==typeof n.type?F(n,t,r):z(r,n.__e,t));return t}function B(e,t){return t=t||[],null==e||"boolean"==typeof e||(C(e)?e.some((function(e){B(e,t)})):t.push(e)),t}function z(e,t,r){return null==r||r.parentNode!==e?e.insertBefore(t,null):t==r&&null!=t.parentNode||e.insertBefore(t,r),t.nextSibling}function H(e,t,r,n){var i=e.key,o=e.type,s=r-1,a=r+1,c=t[r];if(null===c||c&&i==c.key&&o===c.type)return r;if(n>(null!=c?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&i==c.key&&o===c.type)return s;s--}if(a<t.length){if((c=t[a])&&i==c.key&&o===c.type)return a;a++}}return-1}function V(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||T.test(t)?r:r+"px"}function q(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||V(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||V(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?K:W,o)):e.removeEventListener(t,o?K:W,o);else if("dangerouslySetInnerHTML"!==t){if(i)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==r?"":r;break e}catch(s){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function W(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(g.event?g.event(e):e)}function K(e){return this.l[e.type+!0](g.event?g.event(e):e)}function G(e,t,r,n,i,o,s,a,c,l){var u,d,h,p,f,_,v,y,w,b,E,I,T,O,A,P=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,a=t.__e=r.__e,t.__h=null,o=[a]),(u=g.__b)&&u(t);e:if("function"==typeof P)try{if(y=t.props,w=(u=P.contextType)&&n[u.__c],b=u?w?w.props.value:u.__:n,r.__c?v=(d=t.__c=r.__c).__=d.__E:("prototype"in P&&P.prototype.render?t.__c=d=new P(y,b):(t.__c=d=new x(y,b),d.constructor=P,d.render=X),w&&w.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=n,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,P.getDerivedStateFromProps(y,d.__s))),p=d.props,f=d.state,d.__v=t,h)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,f,_)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,I=g.__r,T=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,I&&I(t),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do{d.__d=!1,I&&I(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(_=d.getSnapshotBeforeUpdate(p,f)),j(e,C(A=null!=u&&u.type===N&&null==u.key?u.props.children:u)?A:[A],t,r,n,i,o,s,a,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),v&&(d.__E=d.__=null)}catch(D){t.__v=null,(c||null!=o)&&(t.__e=a,t.__h=!!c,o[o.indexOf(a)]=null),g.__e(D,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,s,a,c){var l,u,d,h=r.props,p=t.props,f=t.type,g=0;if("svg"===f&&(i=!0),null!=o)for(;g<o.length;g++)if((l=o[g])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,o[g]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),o=null,a=!1}if(null===f)h===p||a&&e.data===p||(e.data=p);else{if(o=o&&m.call(e.childNodes),u=(h=r.props||k).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!a){if(null!=o)for(h={},g=0;g<e.attributes.length;g++)h[e.attributes[g].name]=e.attributes[g].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in t||q(e,o,null,r[o],n);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===t[o]||q(e,o,t[o],r[o],n)}(e,p,h,i,a),d)t.__k=[];else if(j(e,C(g=t.props.children)?g:[g],t,r,n,i&&"foreignObject"!==f,o,s,o?o[0]:r.__k&&L(r,0),a,c),null!=o)for(g=o.length;g--;)null!=o[g]&&R(o[g]);a||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===f&&!g||"option"===f&&g!==h.value)&&q(e,"value",g,h.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&q(e,"checked",g,h.checked,!1))}return e}(r.__e,t,r,n,i,o,s,c,l);(u=g.diffed)&&u(t)}function J(e,t,r){for(var n=0;n<r.length;n++)Y(r[n],r[++n],r[++n]);g.__c&&g.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){g.__e(r,t.__v)}}))}function Y(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(n){g.__e(n,r)}}function Q(e,t,r){var n,i;if(g.unmount&&g.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Y(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){g.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Q(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||R(e.__e),e.__=e.__e=e.__d=void 0}function X(e,t,r){return this.constructor(e,r)}function Z(e,t,r){var n,i,o,s;g.__&&g.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,o=[],s=[],G(t,e=(!n&&r||t).__k=O(N,null,[e]),i||k,k,void 0!==t.ownerSVGElement,!n&&r?[r]:i?null:t.firstChild?m.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,s),J(o,e,s)}function ee(e,t){Z(e,t,ee)}function te(e,t,r){var n,i,o,s,a=S({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=void 0===t[o]&&void 0!==s?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?m.call(arguments,2):r),A(e.type,a,n||e.key,i||e.ref,null)}function re(e,t){var r={__c:t="__cC"+E++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some((function(e){e.__e=!0,M(e)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}m=I.slice,g={__e:function(e,t,r,n){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},_=0,x.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state),"function"==typeof e&&(e=e(S({},r),this.props)),e&&S(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},x.prototype.render=N,v=[],w="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b=function(e,t){return e.__v.__b-t.__v.__b},U.__r=0,E=0;var ne,ie,oe,se,ae=0,ce=[],le=[],ue=g.__b,de=g.__r,he=g.diffed,pe=g.__c,fe=g.unmount;function me(e,t){g.__h&&g.__h(ie,e,ae||t),ae=0;var r=ie.__H||(ie.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:le}),r.__[e]}function ge(e){return ae=1,_e(xe,e)}function _e(e,t,r){var n=me(ne++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):xe(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ie,!ie.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,r);var s=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};ie.u=!0;var o=ie.shouldComponentUpdate,s=ie.componentWillUpdate;ie.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}s&&s.call(this,e,t,r)},ie.shouldComponentUpdate=i}return n.__N||n.__}function ve(e,t){var r=me(ne++,3);!g.__s&&Ne(r.__H,t)&&(r.__=e,r.i=t,ie.__H.__h.push(r))}function ye(e,t){var r=me(ne++,4);!g.__s&&Ne(r.__H,t)&&(r.__=e,r.i=t,ie.__h.push(r))}function we(e){return ae=5,Ee((function(){return{current:e}}),[])}function be(e,t,r){ae=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==r?r:r.concat(e))}function Ee(e,t){var r=me(ne++,7);return Ne(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function ke(e,t){return ae=8,Ee((function(){return e}),t)}function Ie(e){var t=ie.context[e.__c],r=me(ne++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(ie)),t.props.value):e.__}function Te(e,t){g.useDebugValue&&g.useDebugValue(t?t(e):e)}function Ce(){var e=me(ne++,11);if(!e.__){for(var t=ie.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Se(){for(var e;e=ce.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(eh){e.__H.__h=[],g.__e(eh,e.__v)}}g.__b=function(e){ie=null,ue&&ue(e)},g.__r=function(e){de&&de(e),ne=0;var t=(ie=e.__c).__H;t&&(oe===ie?(t.__h=[],ie.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=le,e.__N=e.i=void 0}))):(t.__h.forEach(Ae),t.__h.forEach(Pe),t.__h=[],ne=0)),oe=ie},g.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ce.push(t)&&se===g.requestAnimationFrame||((se=g.requestAnimationFrame)||Oe)(Se)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==le&&(e.__=e.__V),e.i=void 0,e.__V=le}))),oe=ie=null},g.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ae),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],g.__e(r,e.__v)}})),pe&&pe(e,t)},g.unmount=function(e){fe&&fe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{Ae(e)}catch(r){t=r}})),r.__H=void 0,t&&g.__e(t,r.__v))};var Re="function"==typeof requestAnimationFrame;function Oe(e){var t,r=function(){clearTimeout(n),Re&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Re&&(t=requestAnimationFrame(r))}function Ae(e){var t=ie,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ie=t}function Pe(e){var t=ie;e.__c=e.__(),ie=t}function Ne(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function xe(e,t){return"function"==typeof t?t(e):t}class Le extends Error{}function De(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 r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}function Me(e,t){if("string"!=typeof e)throw new Le("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Le(`Invalid token specified: missing part #${r+1}`);let i;try{i=De(n)}catch(Ld){throw new Le(`Invalid token specified: invalid base64 for part #${r+1} (${Ld.message})`)}try{return JSON.parse(i)}catch(Ld){throw new Le(`Invalid token specified: invalid json for part #${r+1} (${Ld.message})`)}}function Ue(e,t){return function(){return e.apply(t,arguments)}}Le.prototype.name="InvalidTokenError";const{toString:je}=Object.prototype,{getPrototypeOf:Fe}=Object,Be=(ze=Object.create(null),e=>{const t=je.call(e);return ze[t]||(ze[t]=t.slice(8,-1).toLowerCase())});var ze;const He=e=>(e=e.toLowerCase(),t=>Be(t)===e),Ve=e=>t=>typeof t===e,{isArray:$e}=Array,qe=Ve("undefined");const We=He("ArrayBuffer");const Ke=Ve("string"),Ge=Ve("function"),Je=Ve("number"),Ye=e=>null!==e&&"object"==typeof e,Qe=e=>{if("object"!==Be(e))return!1;const t=Fe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Xe=He("Date"),Ze=He("File"),et=He("Blob"),tt=He("FileList"),rt=He("URLSearchParams");function nt(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),$e(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function it(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,st=e=>!qe(e)&&e!==ot;const at=(ct="undefined"!=typeof Uint8Array&&Fe(Uint8Array),e=>ct&&e instanceof ct);var ct;const lt=He("HTMLFormElement"),ut=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),dt=He("RegExp"),ht=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};nt(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},pt="abcdefghijklmnopqrstuvwxyz",ft="0123456789",mt={DIGIT:ft,ALPHA:pt,ALPHA_DIGIT:pt+pt.toUpperCase()+ft};const gt=He("AsyncFunction"),_t={isArray:$e,isArrayBuffer:We,isBuffer:function(e){return null!==e&&!qe(e)&&null!==e.constructor&&!qe(e.constructor)&&Ge(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ge(e.append)&&("formdata"===(t=Be(e))||"object"===t&&Ge(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&We(e.buffer),t},isString:Ke,isNumber:Je,isBoolean:e=>!0===e||!1===e,isObject:Ye,isPlainObject:Qe,isUndefined:qe,isDate:Xe,isFile:Ze,isBlob:et,isRegExp:dt,isFunction:Ge,isStream:e=>Ye(e)&&Ge(e.pipe),isURLSearchParams:rt,isTypedArray:at,isFileList:tt,forEach:nt,merge:function e(){const{caseless:t}=st(this)&&this||{},r={},n=(n,i)=>{const o=t&&it(r,i)||i;Qe(r[o])&&Qe(n)?r[o]=e(r[o],n):Qe(n)?r[o]=e({},n):$e(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&nt(arguments[i],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(nt(t,((t,n)=>{r&&Ge(t)?e[n]=Ue(t,r):e[n]=t}),{allOwnKeys:n}),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&Fe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Be,kindOfTest:He,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if($e(e))return e;let t=e.length;if(!Je(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:lt,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:ht,freezeMethods:e=>{ht(e,((t,r)=>{if(Ge(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Ge(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return $e(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:it,global:ot,isContextDefined:st,ALPHABET:mt,generateString:(e=16,t=mt.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Ge(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Ye(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=$e(e)?[]:{};return nt(e,((e,t)=>{const o=r(e,n+1);!qe(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:gt,isThenable:e=>e&&(Ye(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch)};function vt(e,t,r,n,i){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),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}_t.inherits(vt,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:_t.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yt=vt.prototype,wt={};["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=>{wt[e]={value:e}})),Object.defineProperties(vt,wt),Object.defineProperty(yt,"isAxiosError",{value:!0}),vt.from=(e,t,r,n,i,o)=>{const s=Object.create(yt);return _t.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),vt.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};function bt(e){return _t.isPlainObject(e)||_t.isArray(e)}function Et(e){return _t.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,r){return e?e.concat(t).map((function(e,t){return e=Et(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const It=_t.toFlatObject(_t,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,r){if(!_t.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=_t.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_t.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&_t.isSpecCompliantForm(t);if(!_t.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(_t.isDate(e))return e.toISOString();if(!a&&_t.isBlob(e))throw new vt("Blob is not supported. Use a Buffer instead.");return _t.isArrayBuffer(e)||_t.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,i){let a=e;if(e&&!i&&"object"==typeof e)if(_t.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(_t.isArray(e)&&function(e){return _t.isArray(e)&&!e.some(bt)}(e)||(_t.isFileList(e)||_t.endsWith(r,"[]"))&&(a=_t.toArray(e)))return r=Et(r),a.forEach((function(e,n){!_t.isUndefined(e)&&null!==e&&t.append(!0===s?kt([r],n,o):null===s?r:r+"[]",c(e))})),!1;return!!bt(e)||(t.append(kt(i,r,o),c(e)),!1)}const u=[],d=Object.assign(It,{defaultVisitor:l,convertValue:c,isVisitable:bt});if(!_t.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!_t.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),_t.forEach(r,(function(r,o){!0===(!(_t.isUndefined(r)||null===r)&&i.call(t,r,_t.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t}function Ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function St(e,t){this._pairs=[],e&&Tt(e,this,t)}const Rt=St.prototype;function Ot(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function At(e,t,r){if(!t)return e;const n=r&&r.encode||Ot,i=r&&r.serialize;let o;if(o=i?i(t,r):_t.isURLSearchParams(t)?t.toString():new St(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Rt.append=function(e,t){this._pairs.push([e,t])},Rt.toString=function(e){const t=e?function(t){return e.call(this,t,Ct)}:Ct;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Pt=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_t.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:St,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Lt(e){function t(e,r,n,i){let o=e[i++];const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&_t.isArray(n)?n.length:o,a)return _t.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s;n[o]&&_t.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&_t.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[o])),!s}if(_t.isFormData(e)&&_t.isFunction(e.entries)){const r={};return _t.forEachEntry(e,((e,n)=>{t(function(e){return _t.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const Dt={transitional:Nt,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=_t.isObject(e);i&&_t.isHTMLForm(e)&&(e=new FormData(e));if(_t.isFormData(e))return n&&n?JSON.stringify(Lt(e)):e;if(_t.isArrayBuffer(e)||_t.isBuffer(e)||_t.isStream(e)||_t.isFile(e)||_t.isBlob(e))return e;if(_t.isArrayBufferView(e))return e.buffer;if(_t.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new xt.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return xt.isNode&&_t.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=_t.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(_t.isString(e))try{return(t||JSON.parse)(e),_t.trim(e)}catch(Ld){if("SyntaxError"!==Ld.name)throw Ld}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Dt.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&_t.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(Ld){if(r){if("SyntaxError"===Ld.name)throw vt.from(Ld,vt.ERR_BAD_RESPONSE,this,null,this.response);throw Ld}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_t.forEach(["delete","get","head","post","put","patch"],(e=>{Dt.headers[e]={}}));const Mt=Dt,Ut=_t.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"]),jt=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return!1===e||null==e?e:_t.isArray(e)?e.map(Bt):String(e)}function zt(e,t,r,n,i){return _t.isFunction(n)?n.call(this,t,r):(i&&(t=r),_t.isString(t)?_t.isString(n)?-1!==t.indexOf(n):_t.isRegExp(n)?n.test(t):void 0:void 0)}class Ht{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=Ft(t);if(!i)throw new Error("header name must be a non-empty string");const o=_t.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=Bt(e))}const o=(e,t)=>_t.forEach(e,((e,r)=>i(e,r,t)));return _t.isPlainObject(e)||e instanceof this.constructor?o(e,t):_t.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&Ut[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=Ft(e)){const r=_t.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(_t.isFunction(t))return t.call(this,e,r);if(_t.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ft(e)){const r=_t.findKey(this,e);return!(!r||void 0===this[r]||t&&!zt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=Ft(e)){const i=_t.findKey(r,e);!i||t&&!zt(0,r[i],i,t)||(delete r[i],n=!0)}}return _t.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!zt(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return _t.forEach(this,((n,i)=>{const o=_t.findKey(r,i);if(o)return t[o]=Bt(n),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Bt(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _t.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&_t.isArray(r)?r.join(", "):r)})),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 r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[jt]=this[jt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ft(e);t[n]||(!function(e,t){const r=_t.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return _t.isArray(e)?e.forEach(n):n(e),this}}Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_t.reduceDescriptors(Ht.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),_t.freezeMethods(Ht);const Vt=Ht;function $t(e,t){const r=this||Mt,n=t||r,i=Vt.from(n.headers);let o=n.data;return _t.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function qt(e){return!(!e||!e.__CANCEL__)}function Wt(e,t,r){vt.call(this,null==e?"canceled":e,vt.ERR_CANCELED,t,r),this.name="CanceledError"}_t.inherits(Wt,vt,{__CANCEL__:!0});const Kt=xt.isStandardBrowserEnv?{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),_t.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),_t.isString(n)&&s.push("path="+n),_t.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Gt(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 Jt=xt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{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 r=n(window.location.href),function(e){const t=_t.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function Yt(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=n[s];i||(i=c),r[o]=a,n[o]=c;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}}(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a);r=o;const l={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const Qt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=Vt.from(e.headers).normalize(),o=e.responseType;let s,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}_t.isFormData(n)&&(xt.isStandardBrowserEnv||xt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?_t.isString(a=i.getContentType())&&i.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const u=Gt(e.baseURL,e.url);function d(){if(!l)return;const n=Vt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new vt("Request failed with status code "+r.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),c()}),(function(e){r(e),c()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),At(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new vt("Request aborted",vt.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new vt("Network Error",vt.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Nt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new vt(t,n.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,e,l)),l=null},xt.isStandardBrowserEnv){const t=Jt(u)&&e.xsrfCookieName&&Kt.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in l&&_t.forEach(i.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),_t.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&"json"!==o&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Yt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Yt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(r(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);h&&-1===xt.protocols.indexOf(h)?r(new vt("Unsupported protocol "+h+":",vt.ERR_BAD_REQUEST,e)):l.send(n||null)}))}};_t.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ld){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xt=e=>`- ${e}`,Zt=e=>_t.isFunction(e)||null===e||!1===e,er=e=>{e=_t.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){let t;if(r=e[o],n=r,!Zt(r)&&(n=Qt[(t=String(r)).toLowerCase()],void 0===n))throw new vt(`Unknown adapter '${t}'`);if(n)break;i[t||"#"+o]=n}if(!n){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new vt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xt).join("\n"):" "+Xt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt(null,e)}function rr(e){tr(e),e.headers=Vt.from(e.headers),e.data=$t.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return er(e.adapter||Mt.adapter)(e).then((function(t){return tr(e),t.data=$t.call(e,e.transformResponse,t),t.headers=Vt.from(t.headers),t}),(function(t){return qt(t)||(tr(e),t&&t.response&&(t.response.data=$t.call(e,e.transformResponse,t.response),t.response.headers=Vt.from(t.response.headers))),Promise.reject(t)}))}const nr=e=>e instanceof Vt?e.toJSON():e;function ir(e,t){t=t||{};const r={};function n(e,t,r){return _t.isPlainObject(e)&&_t.isPlainObject(t)?_t.merge.call({caseless:r},e,t):_t.isPlainObject(t)?_t.merge({},t):_t.isArray(t)?t.slice():t}function i(e,t,r){return _t.isUndefined(t)?_t.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!_t.isUndefined(t))return n(void 0,t)}function s(e,t){return _t.isUndefined(t)?_t.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(nr(e),nr(t),!0)};return _t.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,s=o(e[n],t[n],n);_t.isUndefined(s)&&o!==a||(r[n]=s)})),r}const or="1.6.0",sr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{sr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ar={};sr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new vt(n(i," has been removed"+(t?" in "+t:"")),vt.ERR_DEPRECATED);return t&&!ar[i]&&(ar[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const cr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new vt("option "+o+" must be "+r,vt.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new vt("Unknown option "+o,vt.ERR_BAD_OPTION)}},validators:sr},lr=cr.validators;class ur{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ir(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&cr.assertOptions(r,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1),null!=n&&(_t.isFunction(n)?t.paramsSerializer={serialize:n}:cr.assertOptions(n,{encode:lr.function,serialize:lr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&_t.merge(i.common,i[t.method]);i&&_t.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Vt.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[rr.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=s.length;let h=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{l=rr.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return At(Gt((e=ir(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}_t.forEach(["delete","get","head","options"],(function(e){ur.prototype[e]=function(t,r){return this.request(ir(r||{},{method:e,url:t,data:(r||{}).data}))}})),_t.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(ir(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ur.prototype[e]=t(),ur.prototype[e+"Form"]=t(!0)}));const dr=ur;class hr{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new Wt(e,n,i),t(r.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 hr((function(t){e=t})),cancel:e}}}const pr=hr;const fr={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(fr).forEach((([e,t])=>{fr[t]=e}));const mr=fr;const gr=function e(t){const r=new dr(t),n=Ue(dr.prototype.request,r);return _t.extend(n,dr.prototype,r,{allOwnKeys:!0}),_t.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ir(t,r))},n}(Mt);gr.Axios=dr,gr.CanceledError=Wt,gr.CancelToken=pr,gr.isCancel=qt,gr.VERSION=or,gr.toFormData=Tt,gr.AxiosError=vt,gr.Cancel=gr.CanceledError,gr.all=function(e){return Promise.all(e)},gr.spread=function(e){return function(t){return e.apply(null,t)}},gr.isAxiosError=function(e){return _t.isObject(e)&&!0===e.isAxiosError},gr.mergeConfig=ir,gr.AxiosHeaders=Vt,gr.formToJSON=e=>Lt(_t.isHTMLForm(e)?new FormData(e):e),gr.getAdapter=er,gr.HttpStatusCode=mr,gr.default=gr;const _r=gr,vr=(e,t,r)=>{ve((()=>{const t=_r.CancelToken.source();return e(t),()=>{r&&r(),t.cancel()}}),t)},yr=({request:e})=>console.error("[API] Request error:",e),wr=({response:e})=>{if(e){const{status:t,request:r,data:n}=e;console.error("[API] Response error:",t,r.responseURL,JSON.stringify(n))}};let br;const Er=(e,t)=>({headers:{Authorization:`Bearer ${e}`},cancelToken:t.token}),kr=async(e,t)=>{if(!br)throw new Error("Api has not been initialized");return br.post("customer-profile/backend/v1.0/workplace-link",{},Er(e,t)).then((e=>204==e.status?{isEstablished:!0}:{isEstablished:!1,linkRequest:null==e?void 0:e.data}))},Ir=(e,t,r,n)=>{if(!br)throw new Error("Api has not been initialized");const i={linkRequestId:t,profileId:r};return br.post("customer-profile/customer-backend/v1.0/workplace-link",i,Er(e,n))};for(var Tr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Cr={},Sr={},Rr={byteLength:function(e){var t=Lr(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=Lr(e),i=n[0],o=n[1],s=new Pr(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),a=0,c=o>0?i-4:i;for(r=0;r<c;r+=4)t=Ar[e.charCodeAt(r)]<<18|Ar[e.charCodeAt(r+1)]<<12|Ar[e.charCodeAt(r+2)]<<6|Ar[e.charCodeAt(r+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Ar[e.charCodeAt(r)]<<2|Ar[e.charCodeAt(r+1)]>>4,s[a++]=255&t);1===o&&(t=Ar[e.charCodeAt(r)]<<10|Ar[e.charCodeAt(r+1)]<<4|Ar[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Dr(e,s,s+o>a?a:s+o));1===n?(t=e[r-1],i.push(Or[t>>2]+Or[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(Or[t>>10]+Or[t>>4&63]+Or[t<<2&63]+"="));return i.join("")}},Or=[],Ar=[],Pr="undefined"!=typeof Uint8Array?Uint8Array:Array,Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xr=0;xr<64;++xr)Or[xr]=Nr[xr],Ar[Nr.charCodeAt(xr)]=xr;function Lr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Dr(e,t,r){for(var n,i,o=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(Or[(i=n)>>18&63]+Or[i>>12&63]+Or[i>>6&63]+Or[63&i]);return o.join("")}Ar["-".charCodeAt(0)]=62,Ar["_".charCodeAt(0)]=63;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.AppAuthError=void 0;var Ur=function(e,t){this.message=e,this.extras=t};Mr.AppAuthError=Ur,Object.defineProperty(Sr,"__esModule",{value:!0});var jr=Sr.DefaultCrypto=Sr.textEncodeLite=Sr.urlSafe=Sr.bufferToString=void 0,Fr=Rr,Br=Mr,zr="undefined"!=typeof window&&!!window.crypto,Hr=zr&&!!window.crypto.subtle,Vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function $r(e){for(var t=[],r=0;r<e.byteLength;r+=1){var n=e[r]%62;t.push(Vr[n])}return t.join("")}function qr(e){return Fr.fromByteArray(new Uint8Array(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Wr(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}Sr.bufferToString=$r,Sr.urlSafe=qr,Sr.textEncodeLite=Wr;var Kr=function(){function e(){}return e.prototype.generateRandom=function(e){var t=new Uint8Array(e);if(zr)window.crypto.getRandomValues(t);else for(var r=0;r<e;r+=1)t[r]=62*Math.random()|0;return $r(t)},e.prototype.deriveChallenge=function(e){return e.length<43||e.length>128?Promise.reject(new Br.AppAuthError("Invalid code length.")):Hr?new Promise((function(t,r){crypto.subtle.digest("SHA-256",Wr(e)).then((function(e){return t(qr(new Uint8Array(e)))}),(function(e){return r(e)}))})):Promise.reject(new Br.AppAuthError("window.crypto.subtle is unavailable."))},e}();jr=Sr.DefaultCrypto=Kr;var Gr={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.IS_PROFILE=Jr.IS_LOG=void 0,Jr.IS_LOG=!0,Jr.IS_PROFILE=!1;var Yr=Tr&&Tr.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.profile=Gr.log=void 0;var Qr=Jr;function Xr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Qr.IS_LOG&&((t?t.length:0)>0?console.log.apply(console,Yr([e],t)):console.log(e))}Gr.log=Xr;var Zr="undefined"!=typeof window&&!!window.performance&&!!console.profile;Gr.profile=function(e,t,r){return Qr.IS_PROFILE?function(e,t,r){var n=r.value,i=n.name;i||(i="anonymous function");r.value=Zr?function(e){console.profile(i);var t=window.performance.now(),r=n.call.apply(n,Yr([this||window],e)),o=window.performance.now()-t;return console.log(i+" took "+o+" ms"),console.profileEnd(),r}:function(e){Xr("Profile start "+i);var t=Date.now(),r=n.call.apply(n,Yr([this||window],e)),o=Date.now()-t;return Xr("Profile end "+i+" took "+o+" ms."),r};return r}(0,0,r):r},Object.defineProperty(Cr,"__esModule",{value:!0});var en=Cr.AuthorizationRequest=void 0,tn=Sr,rn=Gr,nn=function(){function e(t,r,n){void 0===r&&(r=new tn.DefaultCrypto),void 0===n&&(n=!0),this.crypto=r,this.usePkce=n,this.clientId=t.client_id,this.redirectUri=t.redirect_uri,this.scope=t.scope,this.responseType=t.response_type||e.RESPONSE_TYPE_CODE,this.state=t.state||function(e){return e.generateRandom(10)}(r),this.extras=t.extras,this.internal=t.internal}return e.prototype.setupCodeVerifier=function(){var e=this;if(this.usePkce){var t=this.crypto.generateRandom(128);return this.crypto.deriveChallenge(t).catch((function(e){rn.log("Unable to generate PKCE challenge. Not using PKCE",e)})).then((function(r){r&&(e.internal=e.internal||{},e.internal.code_verifier=t,e.extras=e.extras||{},e.extras.code_challenge=r,e.extras.code_challenge_method="S256")}))}return Promise.resolve()},e.prototype.toJson=function(){var e=this;return this.setupCodeVerifier().then((function(){return{response_type:e.responseType,client_id:e.clientId,redirect_uri:e.redirectUri,scope:e.scope,state:e.state,extras:e.extras,internal:e.internal}}))},e.RESPONSE_TYPE_TOKEN="token",e.RESPONSE_TYPE_CODE="code",e}();en=Cr.AuthorizationRequest=nn;var on={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthorizationRequestHandler=e.BUILT_IN_PARAMETERS=e.AuthorizationNotifier=void 0;var t=Gr,r=function(){function e(){this.listener=null}return e.prototype.setAuthorizationListener=function(e){this.listener=e},e.prototype.onAuthorizationComplete=function(e,t,r){this.listener&&this.listener(e,t,r)},e}();e.AuthorizationNotifier=r,e.BUILT_IN_PARAMETERS=["redirect_uri","client_id","response_type","state","scope"];var n=function(){function r(e,t){this.utils=e,this.crypto=t,this.notifier=null}return r.prototype.buildRequestUrl=function(t,r){var n={redirect_uri:r.redirectUri,client_id:r.clientId,response_type:r.responseType,state:r.state,scope:r.scope};if(r.extras)for(var i in r.extras)r.extras.hasOwnProperty(i)&&e.BUILT_IN_PARAMETERS.indexOf(i)<0&&(n[i]=r.extras[i]);var o=this.utils.stringify(n);return t.authorizationEndpoint+"?"+o},r.prototype.completeAuthorizationRequestIfPossible=function(){var e=this;return t.log("Checking to see if there is an authorization response to be delivered."),this.notifier||t.log("Notifier is not present on AuthorizationRequest handler.\n No delivery of result will be possible"),this.completeAuthorizationRequest().then((function(r){r||t.log("No result is available yet."),r&&e.notifier&&e.notifier.onAuthorizationComplete(r.request,r.response,r.error)}))},r.prototype.setAuthorizationNotifier=function(e){return this.notifier=e,this},r}();e.AuthorizationRequestHandler=n}(on);var sn={},an={};Object.defineProperty(an,"__esModule",{value:!0}),an.AuthorizationError=an.AuthorizationResponse=void 0;var cn=function(){function e(e){this.code=e.code,this.state=e.state}return e.prototype.toJson=function(){return{code:this.code,state:this.state}},e}();an.AuthorizationResponse=cn;var ln=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri,this.state=e.state}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri,state:this.state}},e}();an.AuthorizationError=ln;var un={};Object.defineProperty(un,"__esModule",{value:!0}),un.BasicQueryStringUtils=void 0;var dn=function(){function e(){}return e.prototype.parse=function(e,t){return t?this.parseQueryString(e.hash):this.parseQueryString(e.search)},e.prototype.parseQueryString=function(e){for(var t={},r=(e=e.trim().replace(/^(\?|#|&)/,"")).split("&"),n=0;n<r.length;n+=1){var i=r[n].split("=");if(i.length>=2){var o=decodeURIComponent(i.shift()),s=i.length>0?i.join("="):null;s&&(t[o]=decodeURIComponent(s))}}return t},e.prototype.stringify=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&e[r]&&t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t.join("&")},e}();un.BasicQueryStringUtils=dn;var hn,pn={},fn=Tr&&Tr.__extends||(hn=function(e,t){return(hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}hn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(pn,"__esModule",{value:!0}),pn.LocalStorageBackend=pn.StorageBackend=void 0;var mn=function(){};pn.StorageBackend=mn;var gn=function(e){function t(t){var r=e.call(this)||this;return r.storage=t||window.localStorage,r}return fn(t,e),t.prototype.getItem=function(e){var t=this;return new Promise((function(r,n){var i=t.storage.getItem(e);r(i||null)}))},t.prototype.removeItem=function(e){var t=this;return new Promise((function(r,n){t.storage.removeItem(e),r()}))},t.prototype.clear=function(){var e=this;return new Promise((function(t,r){e.storage.clear(),t()}))},t.prototype.setItem=function(e,t){var r=this;return new Promise((function(n,i){r.storage.setItem(e,t),n()}))},t}(mn);pn.LocalStorageBackend=gn;var _n=Tr&&Tr.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sn,"__esModule",{value:!0});var vn=sn.RedirectRequestHandler=void 0,yn=Cr,wn=an,bn=Sr,En=Gr,kn=un,In=pn,Tn=function(e){return e+"_appauth_authorization_request"},Cn=function(e){return e+"_appauth_authorization_service_configuration"},Sn="appauth_current_authorization_request",Rn=function(e){function t(t,r,n,i){void 0===t&&(t=new In.LocalStorageBackend),void 0===r&&(r=new kn.BasicQueryStringUtils),void 0===n&&(n=window.location),void 0===i&&(i=new bn.DefaultCrypto);var o=e.call(this,r,i)||this;return o.storageBackend=t,o.locationLike=n,o}return _n(t,e),t.prototype.performAuthorizationRequest=function(e,t){var r=this,n=this.crypto.generateRandom(10);Promise.all([this.storageBackend.setItem(Sn,n),t.toJson().then((function(e){return r.storageBackend.setItem(Tn(n),JSON.stringify(e))})),this.storageBackend.setItem(Cn(n),JSON.stringify(e.toJson()))]).then((function(){var n=r.buildRequestUrl(e,t);En.log("Making a request to ",t,n),r.locationLike.assign(n)}))},t.prototype.completeAuthorizationRequest=function(){var e=this;return this.storageBackend.getItem(Sn).then((function(t){return t?e.storageBackend.getItem(Tn(t)).then((function(e){return JSON.parse(e)})).then((function(e){return new yn.AuthorizationRequest(e)})).then((function(r){var n=""+e.locationLike.origin+e.locationLike.pathname,i=e.utils.parse(e.locationLike,!0),o=i.state,s=i.code,a=i.error;En.log("Potential authorization request ",n,i,o,s,a);var c=o===r.state,l=null,u=null;if(c){if(a){var d=i.error_uri,h=i.error_description;u=new wn.AuthorizationError({error:a,error_description:h,error_uri:d,state:o})}else l=new wn.AuthorizationResponse({code:s,state:o});return Promise.all([e.storageBackend.removeItem(Sn),e.storageBackend.removeItem(Tn(t)),e.storageBackend.removeItem(Cn(t))]).then((function(){return En.log("Delivering authorization response"),{request:r,response:l,error:u}}))}return En.log("Mismatched request (state and request_uri) dont match."),Promise.resolve(null)})):null}))},t}(on.AuthorizationRequestHandler);vn=sn.RedirectRequestHandler=Rn;var On={},An={},Pn=Tr&&Tr.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(An,"__esModule",{value:!0}),An.TestRequestor=Mn=An.FetchRequestor=An.JQueryRequestor=An.Requestor=void 0;var Nn=Mr,xn=function(){};An.Requestor=xn;var Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.xhr=function(e){var t=$.ajax(e);return new Promise((function(e,r){t.then((function(t,r,n){e(t)}),(function(e,t,n){r(new Nn.AppAuthError(n))}))}))},t}(xn);An.JQueryRequestor=Ln;var Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.xhr=function(e){if(!e.url)return Promise.reject(new Nn.AppAuthError("A URL must be provided."));var t=new URL(e.url),r={};(r.method=e.method,r.mode="cors",e.data)&&(e.method&&"POST"===e.method.toUpperCase()?r.body=e.data:new URLSearchParams(e.data).forEach((function(e,r){t.searchParams.append(r,e)})));if(r.headers={},e.headers)for(var n in e.headers)e.headers.hasOwnProperty(n)&&(r.headers[n]=e.headers[n]);var i=e.dataType&&"json"===e.dataType.toLowerCase();return i&&(r.headers.Accept="application/json, text/javascript, */*; q=0.01"),fetch(t.toString(),r).then((function(e){if(e.status>=200&&e.status<300){var t=e.headers.get("content-type");return i||t&&-1!==t.indexOf("application/json")?e.json():e.text()}return Promise.reject(new Nn.AppAuthError(e.status.toString(),e.statusText))}))},t}(xn),Mn=An.FetchRequestor=Dn,Un=function(e){function t(t){var r=e.call(this)||this;return r.promise=t,r}return Pn(t,e),t.prototype.xhr=function(e){return this.promise},t}(xn);An.TestRequestor=Un,Object.defineProperty(On,"__esModule",{value:!0});var jn=On.AuthorizationServiceConfiguration=void 0,Fn=An,Bn=function(){function e(e){this.authorizationEndpoint=e.authorization_endpoint,this.tokenEndpoint=e.token_endpoint,this.revocationEndpoint=e.revocation_endpoint,this.userInfoEndpoint=e.userinfo_endpoint,this.endSessionEndpoint=e.end_session_endpoint}return e.prototype.toJson=function(){return{authorization_endpoint:this.authorizationEndpoint,token_endpoint:this.tokenEndpoint,revocation_endpoint:this.revocationEndpoint,end_session_endpoint:this.endSessionEndpoint,userinfo_endpoint:this.userInfoEndpoint}},e.fetchFromIssuer=function(t,r){var n=t+"/.well-known/openid-configuration";return(r||new Fn.JQueryRequestor).xhr({url:n,dataType:"json",method:"GET"}).then((function(t){return new e(t)}))},e}();jn=On.AuthorizationServiceConfiguration=Bn;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var Hn=zn.TokenRequest=zn.GRANT_TYPE_REFRESH_TOKEN=zn.GRANT_TYPE_AUTHORIZATION_CODE=void 0,Vn=zn.GRANT_TYPE_AUTHORIZATION_CODE="authorization_code";zn.GRANT_TYPE_REFRESH_TOKEN="refresh_token";var $n=function(){function e(e){this.clientId=e.client_id,this.redirectUri=e.redirect_uri,this.grantType=e.grant_type,this.code=e.code,this.refreshToken=e.refresh_token,this.extras=e.extras}return e.prototype.toJson=function(){return{grant_type:this.grantType,code:this.code,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,client_id:this.clientId,extras:this.extras}},e.prototype.toStringMap=function(){var e={grant_type:this.grantType,client_id:this.clientId,redirect_uri:this.redirectUri};if(this.code&&(e.code=this.code),this.refreshToken&&(e.refresh_token=this.refreshToken),this.extras)for(var t in this.extras)this.extras.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=this.extras[t]);return e},e}();Hn=zn.TokenRequest=$n;var qn={},Wn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenError=e.TokenResponse=e.nowInSeconds=void 0;e.nowInSeconds=function(){return Math.round((new Date).getTime()/1e3)};var t=function(){function t(t){this.accessToken=t.access_token,this.tokenType=t.token_type||"bearer",t.expires_in&&(this.expiresIn=parseInt(t.expires_in,10)),this.refreshToken=t.refresh_token,this.scope=t.scope,this.idToken=t.id_token,this.issuedAt=t.issued_at||e.nowInSeconds()}return t.prototype.toJson=function(){var e;return{access_token:this.accessToken,id_token:this.idToken,refresh_token:this.refreshToken,scope:this.scope,token_type:this.tokenType,issued_at:this.issuedAt,expires_in:null===(e=this.expiresIn)||void 0===e?void 0:e.toString()}},t.prototype.isValid=function(t){return void 0===t&&(t=-600),!this.expiresIn||e.nowInSeconds()<this.issuedAt+this.expiresIn+t},t}();e.TokenResponse=t;var r=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri}},e}();e.TokenError=r}(Wn),Object.defineProperty(qn,"__esModule",{value:!0});var Kn=qn.BaseTokenRequestHandler=void 0,Gn=Mr,Jn=un,Yn=Wn,Qn=An,Xn=function(){function e(e,t){void 0===e&&(e=new Qn.JQueryRequestor),void 0===t&&(t=new Jn.BasicQueryStringUtils),this.requestor=e,this.utils=t}return e.prototype.isTokenResponse=function(e){return void 0===e.error},e.prototype.performRevokeTokenRequest=function(e,t){return this.requestor.xhr({url:e.revocationEndpoint,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return!0}))},e.prototype.performTokenRequest=function(e,t){var r=this;return this.requestor.xhr({url:e.tokenEndpoint,method:"POST",dataType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return r.isTokenResponse(e)?new Yn.TokenResponse(e):Promise.reject(new Gn.AppAuthError(e.error,new Yn.TokenError(e)))}))},e}();Kn=qn.BaseTokenRequestHandler=Xn;let Zn;const ei=async(e,t)=>{const r=await jn.fetchFromIssuer(e,t);return Zn=r,r},ti=async(e,t,r,n,i)=>{const o={};t&&(o.code_verifier=t);const s=new Hn({client_id:n.clientId,redirect_uri:n.redirectUri,grant_type:Vn,code:e,refresh_token:void 0,extras:o});return await r.performTokenRequest(i,s)},ri=e=>{if(e&&e.isValid())return e.accessToken},ni=async e=>{try{const t=await e.storageBackend.getItem("appauth_current_authorization_request"),r=t&&await e.storageBackend.getItem((e=>`${e}_appauth_authorization_service_configuration`)(t));if(r){const e=JSON.parse(r);Zn=new jn(e)}return!0}catch{return!1}};p.bind({g:1});const ii=f("span")([{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}]),oi=(function(){const e=f.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}})`
1
+ let e,t,r,n={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||n,o=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/| +/g,a=/\n+/g,c=(e,t)=>{let r="",n="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+s+";":n+="f"==o[1]?c(s,o):o+"{"+c(s,"k"==o[1]?"":t)+"}":"object"==typeof s?n+=c(s,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=c.p?c.p(o,s):o+":"+s+";")}return r+(t&&i?t+"{"+i+"}":i)+n},l={},u=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+u(e[r]);return t}return e},d=(e,t,r,n,i)=>{let d=u(e),h=l[d]||(l[d]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(d));if(!l[h]){let t=d!==e?e:(e=>{let t,r,n=[{}];for(;t=o.exec(e.replace(s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(a," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(a," ").trim();return n[0]})(e);l[h]=c(i?{["@keyframes "+h]:t}:t,r?"":"."+h)}let p=r&&l.g?l.g:null;return r&&(l.g=l[h]),f=l[h],m=t,g=n,(_=p)?m.data=m.data.replace(_,f):-1===m.data.indexOf(f)&&(m.data=g?f+m.data:m.data+f),h;var f,m,g,_},h=(e,t,r)=>e.reduce(((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+n+(null==o?"":o)}),"");function p(e){let t=this||{},r=e.call?e(t.p):e;return d(r.unshift?r.raw?h(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,i(t.target),t.g,t.o,t.k)}function f(n,i){let o=this||{};return function(){let s=arguments;function a(c,l){let u=Object.assign({},c),d=u.className||a.className;o.p=Object.assign({theme:t&&t()},u),o.o=/ *go\d+/.test(d),u.className=p.apply(o,s)+(d?" "+d:""),i&&(u.ref=l);let h=n;return n[0]&&(h=u.as||n,delete u.as),r&&h[0]&&r(u),e(h,u)}return i?i(a):a}}p.bind({g:1}),p.bind({k:1});var m,g,_,v,y,w,b,E,k={},I=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(e,t){for(var r in t)e[r]=t[r];return e}function R(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,r){var n,i,o,s={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?m.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return A(e,s,n,i,null)}function A(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++_:i};return null==i&&null!=g.vnode&&g.vnode(o),o}function P(){return{current:null}}function N(e){return e.children}function x(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__d||r.__e;return"function"==typeof e.type?L(e):null}function D(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return D(e)}}function M(e){(!e.__d&&(e.__d=!0)&&v.push(e)&&!U.__r++||y!==g.debounceRendering)&&((y=g.debounceRendering)||w)(U)}function U(){var e,t,r,n,i,o,s,a,c;for(v.sort(b);e=v.shift();)e.__d&&(t=v.length,n=void 0,i=void 0,o=void 0,a=(s=(r=e).__v).__e,(c=r.__P)&&(n=[],i=[],(o=S({},s)).__v=s.__v+1,J(c,s,o,r.__n,void 0!==c.ownerSVGElement,null!=s.__h?[a]:null,n,null==a?L(s):a,s.__h,i),G(n,s,i),s.__e!=a&&D(s)),v.length>t&&v.sort(b));U.__r=0}function j(e,t,r,n,i,o,s,a,c,l,u){var d,h,p,f,m,g,_,v,y,w=0,b=n&&n.__k||I,E=b.length,T=E,S=t.length;for(r.__k=[],d=0;d<S;d++)null!=(f=r.__k[d]=null==(f=t[d])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?A(null,f,null,null,f):C(f)?A(N,{children:f},null,null,null):f.__b>0?A(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=r,f.__b=r.__b+1,-1===(v=H(f,b,_=d+w,T))?p=k:(p=b[v]||k,b[v]=void 0,T--),J(e,f,p,i,o,s,a,c,l,u),m=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Y(p.ref,null,f),u.push(h,f.__c||m,f)),null!=m&&(null==g&&(g=m),(y=p===k||null===p.__v)?-1==v&&w--:v!==_&&(v===_+1?w++:v>_?T>S-_?w+=v-_:w--:w=v<_&&v==_-1?v-_:0),_=d+w,"function"!=typeof f.type||v===_&&p.__k!==f.__k?"function"==typeof f.type||v===_&&!y?void 0!==f.__d?(c=f.__d,f.__d=void 0):c=m.nextSibling:c=z(e,m,c):c=F(f,c,e),"function"==typeof r.type&&(r.__d=c))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==c&&(p.__=n,c=L(p)),Q(p,p,!1),b[d]=null);for(r.__e=g,d=E;d--;)null!=b[d]&&("function"==typeof r.type&&null!=b[d].__e&&b[d].__e==r.__d&&(r.__d=b[d].__e.nextSibling),Q(b[d],b[d]))}function F(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t="function"==typeof n.type?F(n,t,r):z(r,n.__e,t));return t}function B(e,t){return t=t||[],null==e||"boolean"==typeof e||(C(e)?e.some((function(e){B(e,t)})):t.push(e)),t}function z(e,t,r){return null==r||r.parentNode!==e?e.insertBefore(t,null):t==r&&null!=t.parentNode||e.insertBefore(t,r),t.nextSibling}function H(e,t,r,n){var i=e.key,o=e.type,s=r-1,a=r+1,c=t[r];if(null===c||c&&i==c.key&&o===c.type)return r;if(n>(null!=c?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&i==c.key&&o===c.type)return s;s--}if(a<t.length){if((c=t[a])&&i==c.key&&o===c.type)return a;a++}}return-1}function V(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||T.test(t)?r:r+"px"}function q(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||V(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||V(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?K:W,o)):e.removeEventListener(t,o?K:W,o);else if("dangerouslySetInnerHTML"!==t){if(i)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==r?"":r;break e}catch(s){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function W(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(g.event?g.event(e):e)}function K(e){return this.l[e.type+!0](g.event?g.event(e):e)}function J(e,t,r,n,i,o,s,a,c,l){var u,d,h,p,f,_,v,y,w,b,E,I,T,O,A,P=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,a=t.__e=r.__e,t.__h=null,o=[a]),(u=g.__b)&&u(t);e:if("function"==typeof P)try{if(y=t.props,w=(u=P.contextType)&&n[u.__c],b=u?w?w.props.value:u.__:n,r.__c?v=(d=t.__c=r.__c).__=d.__E:("prototype"in P&&P.prototype.render?t.__c=d=new P(y,b):(t.__c=d=new x(y,b),d.constructor=P,d.render=X),w&&w.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=n,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,P.getDerivedStateFromProps(y,d.__s))),p=d.props,f=d.state,d.__v=t,h)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,f,_)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,I=g.__r,T=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,I&&I(t),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do{d.__d=!1,I&&I(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(_=d.getSnapshotBeforeUpdate(p,f)),j(e,C(A=null!=u&&u.type===N&&null==u.key?u.props.children:u)?A:[A],t,r,n,i,o,s,a,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),v&&(d.__E=d.__=null)}catch(D){t.__v=null,(c||null!=o)&&(t.__e=a,t.__h=!!c,o[o.indexOf(a)]=null),g.__e(D,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,s,a,c){var l,u,d,h=r.props,p=t.props,f=t.type,g=0;if("svg"===f&&(i=!0),null!=o)for(;g<o.length;g++)if((l=o[g])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,o[g]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),o=null,a=!1}if(null===f)h===p||a&&e.data===p||(e.data=p);else{if(o=o&&m.call(e.childNodes),u=(h=r.props||k).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!a){if(null!=o)for(h={},g=0;g<e.attributes.length;g++)h[e.attributes[g].name]=e.attributes[g].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in t||q(e,o,null,r[o],n);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===t[o]||q(e,o,t[o],r[o],n)}(e,p,h,i,a),d)t.__k=[];else if(j(e,C(g=t.props.children)?g:[g],t,r,n,i&&"foreignObject"!==f,o,s,o?o[0]:r.__k&&L(r,0),a,c),null!=o)for(g=o.length;g--;)null!=o[g]&&R(o[g]);a||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===f&&!g||"option"===f&&g!==h.value)&&q(e,"value",g,h.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&q(e,"checked",g,h.checked,!1))}return e}(r.__e,t,r,n,i,o,s,c,l);(u=g.diffed)&&u(t)}function G(e,t,r){for(var n=0;n<r.length;n++)Y(r[n],r[++n],r[++n]);g.__c&&g.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){g.__e(r,t.__v)}}))}function Y(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(n){g.__e(n,r)}}function Q(e,t,r){var n,i;if(g.unmount&&g.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Y(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){g.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Q(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||R(e.__e),e.__=e.__e=e.__d=void 0}function X(e,t,r){return this.constructor(e,r)}function Z(e,t,r){var n,i,o,s;g.__&&g.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,o=[],s=[],J(t,e=(!n&&r||t).__k=O(N,null,[e]),i||k,k,void 0!==t.ownerSVGElement,!n&&r?[r]:i?null:t.firstChild?m.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,s),G(o,e,s)}function ee(e,t){Z(e,t,ee)}function te(e,t,r){var n,i,o,s,a=S({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=void 0===t[o]&&void 0!==s?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?m.call(arguments,2):r),A(e.type,a,n||e.key,i||e.ref,null)}function re(e,t){var r={__c:t="__cC"+E++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some((function(e){e.__e=!0,M(e)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}m=I.slice,g={__e:function(e,t,r,n){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},_=0,x.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state),"function"==typeof e&&(e=e(S({},r),this.props)),e&&S(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},x.prototype.render=N,v=[],w="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b=function(e,t){return e.__v.__b-t.__v.__b},U.__r=0,E=0;var ne,ie,oe,se,ae=0,ce=[],le=[],ue=g.__b,de=g.__r,he=g.diffed,pe=g.__c,fe=g.unmount;function me(e,t){g.__h&&g.__h(ie,e,ae||t),ae=0;var r=ie.__H||(ie.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:le}),r.__[e]}function ge(e){return ae=1,_e(xe,e)}function _e(e,t,r){var n=me(ne++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):xe(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ie,!ie.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,r);var s=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};ie.u=!0;var o=ie.shouldComponentUpdate,s=ie.componentWillUpdate;ie.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}s&&s.call(this,e,t,r)},ie.shouldComponentUpdate=i}return n.__N||n.__}function ve(e,t){var r=me(ne++,3);!g.__s&&Ne(r.__H,t)&&(r.__=e,r.i=t,ie.__H.__h.push(r))}function ye(e,t){var r=me(ne++,4);!g.__s&&Ne(r.__H,t)&&(r.__=e,r.i=t,ie.__h.push(r))}function we(e){return ae=5,Ee((function(){return{current:e}}),[])}function be(e,t,r){ae=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==r?r:r.concat(e))}function Ee(e,t){var r=me(ne++,7);return Ne(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function ke(e,t){return ae=8,Ee((function(){return e}),t)}function Ie(e){var t=ie.context[e.__c],r=me(ne++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(ie)),t.props.value):e.__}function Te(e,t){g.useDebugValue&&g.useDebugValue(t?t(e):e)}function Ce(){var e=me(ne++,11);if(!e.__){for(var t=ie.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Se(){for(var e;e=ce.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(eh){e.__H.__h=[],g.__e(eh,e.__v)}}g.__b=function(e){ie=null,ue&&ue(e)},g.__r=function(e){de&&de(e),ne=0;var t=(ie=e.__c).__H;t&&(oe===ie?(t.__h=[],ie.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=le,e.__N=e.i=void 0}))):(t.__h.forEach(Ae),t.__h.forEach(Pe),t.__h=[],ne=0)),oe=ie},g.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ce.push(t)&&se===g.requestAnimationFrame||((se=g.requestAnimationFrame)||Oe)(Se)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==le&&(e.__=e.__V),e.i=void 0,e.__V=le}))),oe=ie=null},g.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ae),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],g.__e(r,e.__v)}})),pe&&pe(e,t)},g.unmount=function(e){fe&&fe(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{Ae(e)}catch(r){t=r}})),r.__H=void 0,t&&g.__e(t,r.__v))};var Re="function"==typeof requestAnimationFrame;function Oe(e){var t,r=function(){clearTimeout(n),Re&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Re&&(t=requestAnimationFrame(r))}function Ae(e){var t=ie,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ie=t}function Pe(e){var t=ie;e.__c=e.__(),ie=t}function Ne(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function xe(e,t){return"function"==typeof t?t(e):t}class Le extends Error{}function De(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 r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}function Me(e,t){if("string"!=typeof e)throw new Le("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Le(`Invalid token specified: missing part #${r+1}`);let i;try{i=De(n)}catch(Ld){throw new Le(`Invalid token specified: invalid base64 for part #${r+1} (${Ld.message})`)}try{return JSON.parse(i)}catch(Ld){throw new Le(`Invalid token specified: invalid json for part #${r+1} (${Ld.message})`)}}function Ue(e,t){return function(){return e.apply(t,arguments)}}Le.prototype.name="InvalidTokenError";const{toString:je}=Object.prototype,{getPrototypeOf:Fe}=Object,Be=(ze=Object.create(null),e=>{const t=je.call(e);return ze[t]||(ze[t]=t.slice(8,-1).toLowerCase())});var ze;const He=e=>(e=e.toLowerCase(),t=>Be(t)===e),Ve=e=>t=>typeof t===e,{isArray:$e}=Array,qe=Ve("undefined");const We=He("ArrayBuffer");const Ke=Ve("string"),Je=Ve("function"),Ge=Ve("number"),Ye=e=>null!==e&&"object"==typeof e,Qe=e=>{if("object"!==Be(e))return!1;const t=Fe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Xe=He("Date"),Ze=He("File"),et=He("Blob"),tt=He("FileList"),rt=He("URLSearchParams");function nt(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),$e(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function it(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,st=e=>!qe(e)&&e!==ot;const at=(ct="undefined"!=typeof Uint8Array&&Fe(Uint8Array),e=>ct&&e instanceof ct);var ct;const lt=He("HTMLFormElement"),ut=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),dt=He("RegExp"),ht=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};nt(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},pt="abcdefghijklmnopqrstuvwxyz",ft="0123456789",mt={DIGIT:ft,ALPHA:pt,ALPHA_DIGIT:pt+pt.toUpperCase()+ft};const gt=He("AsyncFunction"),_t={isArray:$e,isArrayBuffer:We,isBuffer:function(e){return null!==e&&!qe(e)&&null!==e.constructor&&!qe(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Je(e.append)&&("formdata"===(t=Be(e))||"object"===t&&Je(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&We(e.buffer),t},isString:Ke,isNumber:Ge,isBoolean:e=>!0===e||!1===e,isObject:Ye,isPlainObject:Qe,isUndefined:qe,isDate:Xe,isFile:Ze,isBlob:et,isRegExp:dt,isFunction:Je,isStream:e=>Ye(e)&&Je(e.pipe),isURLSearchParams:rt,isTypedArray:at,isFileList:tt,forEach:nt,merge:function e(){const{caseless:t}=st(this)&&this||{},r={},n=(n,i)=>{const o=t&&it(r,i)||i;Qe(r[o])&&Qe(n)?r[o]=e(r[o],n):Qe(n)?r[o]=e({},n):$e(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&nt(arguments[i],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(nt(t,((t,n)=>{r&&Je(t)?e[n]=Ue(t,r):e[n]=t}),{allOwnKeys:n}),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&Fe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Be,kindOfTest:He,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if($e(e))return e;let t=e.length;if(!Ge(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:lt,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:ht,freezeMethods:e=>{ht(e,((t,r)=>{if(Je(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Je(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return $e(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:it,global:ot,isContextDefined:st,ALPHABET:mt,generateString:(e=16,t=mt.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Je(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Ye(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=$e(e)?[]:{};return nt(e,((e,t)=>{const o=r(e,n+1);!qe(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:gt,isThenable:e=>e&&(Ye(e)||Je(e))&&Je(e.then)&&Je(e.catch)};function vt(e,t,r,n,i){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),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}_t.inherits(vt,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:_t.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yt=vt.prototype,wt={};["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=>{wt[e]={value:e}})),Object.defineProperties(vt,wt),Object.defineProperty(yt,"isAxiosError",{value:!0}),vt.from=(e,t,r,n,i,o)=>{const s=Object.create(yt);return _t.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),vt.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};function bt(e){return _t.isPlainObject(e)||_t.isArray(e)}function Et(e){return _t.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,r){return e?e.concat(t).map((function(e,t){return e=Et(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const It=_t.toFlatObject(_t,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,r){if(!_t.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=_t.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_t.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&_t.isSpecCompliantForm(t);if(!_t.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(_t.isDate(e))return e.toISOString();if(!a&&_t.isBlob(e))throw new vt("Blob is not supported. Use a Buffer instead.");return _t.isArrayBuffer(e)||_t.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,i){let a=e;if(e&&!i&&"object"==typeof e)if(_t.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(_t.isArray(e)&&function(e){return _t.isArray(e)&&!e.some(bt)}(e)||(_t.isFileList(e)||_t.endsWith(r,"[]"))&&(a=_t.toArray(e)))return r=Et(r),a.forEach((function(e,n){!_t.isUndefined(e)&&null!==e&&t.append(!0===s?kt([r],n,o):null===s?r:r+"[]",c(e))})),!1;return!!bt(e)||(t.append(kt(i,r,o),c(e)),!1)}const u=[],d=Object.assign(It,{defaultVisitor:l,convertValue:c,isVisitable:bt});if(!_t.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!_t.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),_t.forEach(r,(function(r,o){!0===(!(_t.isUndefined(r)||null===r)&&i.call(t,r,_t.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t}function Ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function St(e,t){this._pairs=[],e&&Tt(e,this,t)}const Rt=St.prototype;function Ot(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function At(e,t,r){if(!t)return e;const n=r&&r.encode||Ot,i=r&&r.serialize;let o;if(o=i?i(t,r):_t.isURLSearchParams(t)?t.toString():new St(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Rt.append=function(e,t){this._pairs.push([e,t])},Rt.toString=function(e){const t=e?function(t){return e.call(this,t,Ct)}:Ct;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Pt=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_t.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:St,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Lt(e){function t(e,r,n,i){let o=e[i++];const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&_t.isArray(n)?n.length:o,a)return _t.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s;n[o]&&_t.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&_t.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[o])),!s}if(_t.isFormData(e)&&_t.isFunction(e.entries)){const r={};return _t.forEachEntry(e,((e,n)=>{t(function(e){return _t.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const Dt={transitional:Nt,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=_t.isObject(e);i&&_t.isHTMLForm(e)&&(e=new FormData(e));if(_t.isFormData(e))return n&&n?JSON.stringify(Lt(e)):e;if(_t.isArrayBuffer(e)||_t.isBuffer(e)||_t.isStream(e)||_t.isFile(e)||_t.isBlob(e))return e;if(_t.isArrayBufferView(e))return e.buffer;if(_t.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new xt.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return xt.isNode&&_t.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=_t.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(_t.isString(e))try{return(t||JSON.parse)(e),_t.trim(e)}catch(Ld){if("SyntaxError"!==Ld.name)throw Ld}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Dt.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&_t.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(Ld){if(r){if("SyntaxError"===Ld.name)throw vt.from(Ld,vt.ERR_BAD_RESPONSE,this,null,this.response);throw Ld}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_t.forEach(["delete","get","head","post","put","patch"],(e=>{Dt.headers[e]={}}));const Mt=Dt,Ut=_t.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"]),jt=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return!1===e||null==e?e:_t.isArray(e)?e.map(Bt):String(e)}function zt(e,t,r,n,i){return _t.isFunction(n)?n.call(this,t,r):(i&&(t=r),_t.isString(t)?_t.isString(n)?-1!==t.indexOf(n):_t.isRegExp(n)?n.test(t):void 0:void 0)}class Ht{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=Ft(t);if(!i)throw new Error("header name must be a non-empty string");const o=_t.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=Bt(e))}const o=(e,t)=>_t.forEach(e,((e,r)=>i(e,r,t)));return _t.isPlainObject(e)||e instanceof this.constructor?o(e,t):_t.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&Ut[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=Ft(e)){const r=_t.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(_t.isFunction(t))return t.call(this,e,r);if(_t.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ft(e)){const r=_t.findKey(this,e);return!(!r||void 0===this[r]||t&&!zt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=Ft(e)){const i=_t.findKey(r,e);!i||t&&!zt(0,r[i],i,t)||(delete r[i],n=!0)}}return _t.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!zt(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return _t.forEach(this,((n,i)=>{const o=_t.findKey(r,i);if(o)return t[o]=Bt(n),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Bt(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _t.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&_t.isArray(r)?r.join(", "):r)})),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 r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[jt]=this[jt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ft(e);t[n]||(!function(e,t){const r=_t.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return _t.isArray(e)?e.forEach(n):n(e),this}}Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_t.reduceDescriptors(Ht.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),_t.freezeMethods(Ht);const Vt=Ht;function $t(e,t){const r=this||Mt,n=t||r,i=Vt.from(n.headers);let o=n.data;return _t.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function qt(e){return!(!e||!e.__CANCEL__)}function Wt(e,t,r){vt.call(this,null==e?"canceled":e,vt.ERR_CANCELED,t,r),this.name="CanceledError"}_t.inherits(Wt,vt,{__CANCEL__:!0});const Kt=xt.isStandardBrowserEnv?{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),_t.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),_t.isString(n)&&s.push("path="+n),_t.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Jt(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 Gt=xt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{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 r=n(window.location.href),function(e){const t=_t.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function Yt(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=n[s];i||(i=c),r[o]=a,n[o]=c;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}}(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a);r=o;const l={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const Qt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=Vt.from(e.headers).normalize(),o=e.responseType;let s,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}_t.isFormData(n)&&(xt.isStandardBrowserEnv||xt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?_t.isString(a=i.getContentType())&&i.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const u=Jt(e.baseURL,e.url);function d(){if(!l)return;const n=Vt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new vt("Request failed with status code "+r.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),c()}),(function(e){r(e),c()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),At(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new vt("Request aborted",vt.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new vt("Network Error",vt.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Nt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new vt(t,n.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,e,l)),l=null},xt.isStandardBrowserEnv){const t=Gt(u)&&e.xsrfCookieName&&Kt.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in l&&_t.forEach(i.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),_t.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&"json"!==o&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Yt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Yt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(r(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);h&&-1===xt.protocols.indexOf(h)?r(new vt("Unsupported protocol "+h+":",vt.ERR_BAD_REQUEST,e)):l.send(n||null)}))}};_t.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ld){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xt=e=>`- ${e}`,Zt=e=>_t.isFunction(e)||null===e||!1===e,er=e=>{e=_t.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){let t;if(r=e[o],n=r,!Zt(r)&&(n=Qt[(t=String(r)).toLowerCase()],void 0===n))throw new vt(`Unknown adapter '${t}'`);if(n)break;i[t||"#"+o]=n}if(!n){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new vt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xt).join("\n"):" "+Xt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt(null,e)}function rr(e){tr(e),e.headers=Vt.from(e.headers),e.data=$t.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return er(e.adapter||Mt.adapter)(e).then((function(t){return tr(e),t.data=$t.call(e,e.transformResponse,t),t.headers=Vt.from(t.headers),t}),(function(t){return qt(t)||(tr(e),t&&t.response&&(t.response.data=$t.call(e,e.transformResponse,t.response),t.response.headers=Vt.from(t.response.headers))),Promise.reject(t)}))}const nr=e=>e instanceof Vt?e.toJSON():e;function ir(e,t){t=t||{};const r={};function n(e,t,r){return _t.isPlainObject(e)&&_t.isPlainObject(t)?_t.merge.call({caseless:r},e,t):_t.isPlainObject(t)?_t.merge({},t):_t.isArray(t)?t.slice():t}function i(e,t,r){return _t.isUndefined(t)?_t.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!_t.isUndefined(t))return n(void 0,t)}function s(e,t){return _t.isUndefined(t)?_t.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(nr(e),nr(t),!0)};return _t.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,s=o(e[n],t[n],n);_t.isUndefined(s)&&o!==a||(r[n]=s)})),r}const or="1.6.0",sr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{sr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ar={};sr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new vt(n(i," has been removed"+(t?" in "+t:"")),vt.ERR_DEPRECATED);return t&&!ar[i]&&(ar[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const cr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new vt("option "+o+" must be "+r,vt.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new vt("Unknown option "+o,vt.ERR_BAD_OPTION)}},validators:sr},lr=cr.validators;class ur{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ir(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&cr.assertOptions(r,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1),null!=n&&(_t.isFunction(n)?t.paramsSerializer={serialize:n}:cr.assertOptions(n,{encode:lr.function,serialize:lr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&_t.merge(i.common,i[t.method]);i&&_t.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Vt.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[rr.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=s.length;let h=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{l=rr.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return At(Jt((e=ir(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}_t.forEach(["delete","get","head","options"],(function(e){ur.prototype[e]=function(t,r){return this.request(ir(r||{},{method:e,url:t,data:(r||{}).data}))}})),_t.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(ir(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ur.prototype[e]=t(),ur.prototype[e+"Form"]=t(!0)}));const dr=ur;class hr{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 r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new Wt(e,n,i),t(r.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 hr((function(t){e=t})),cancel:e}}}const pr=hr;const fr={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(fr).forEach((([e,t])=>{fr[t]=e}));const mr=fr;const gr=function e(t){const r=new dr(t),n=Ue(dr.prototype.request,r);return _t.extend(n,dr.prototype,r,{allOwnKeys:!0}),_t.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ir(t,r))},n}(Mt);gr.Axios=dr,gr.CanceledError=Wt,gr.CancelToken=pr,gr.isCancel=qt,gr.VERSION=or,gr.toFormData=Tt,gr.AxiosError=vt,gr.Cancel=gr.CanceledError,gr.all=function(e){return Promise.all(e)},gr.spread=function(e){return function(t){return e.apply(null,t)}},gr.isAxiosError=function(e){return _t.isObject(e)&&!0===e.isAxiosError},gr.mergeConfig=ir,gr.AxiosHeaders=Vt,gr.formToJSON=e=>Lt(_t.isHTMLForm(e)?new FormData(e):e),gr.getAdapter=er,gr.HttpStatusCode=mr,gr.default=gr;const _r=gr,vr=(e,t,r)=>{ve((()=>{const t=_r.CancelToken.source();return e(t),()=>{r&&r(),t.cancel()}}),t)},yr=({request:e})=>console.error("[API] Request error:",e),wr=({response:e})=>{if(e){const{status:t,request:r,data:n}=e;console.error("[API] Response error:",t,r.responseURL,JSON.stringify(n))}};let br;const Er=(e,t)=>({headers:{Authorization:`Bearer ${e}`},cancelToken:t.token}),kr=async(e,t)=>{if(!br)throw new Error("Api has not been initialized");return br.post("customer-profile/backend/v1.0/workplace-link",{},Er(e,t)).then((e=>204==e.status?{isEstablished:!0}:{isEstablished:!1,linkRequest:null==e?void 0:e.data}))},Ir=(e,t,r,n)=>{if(!br)throw new Error("Api has not been initialized");const i={linkRequestId:t,profileId:r};return br.post("customer-profile/customer-backend/v1.0/workplace-link",i,Er(e,n))};for(var Tr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Cr={},Sr={},Rr={byteLength:function(e){var t=Lr(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=Lr(e),i=n[0],o=n[1],s=new Pr(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),a=0,c=o>0?i-4:i;for(r=0;r<c;r+=4)t=Ar[e.charCodeAt(r)]<<18|Ar[e.charCodeAt(r+1)]<<12|Ar[e.charCodeAt(r+2)]<<6|Ar[e.charCodeAt(r+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Ar[e.charCodeAt(r)]<<2|Ar[e.charCodeAt(r+1)]>>4,s[a++]=255&t);1===o&&(t=Ar[e.charCodeAt(r)]<<10|Ar[e.charCodeAt(r+1)]<<4|Ar[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Dr(e,s,s+o>a?a:s+o));1===n?(t=e[r-1],i.push(Or[t>>2]+Or[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(Or[t>>10]+Or[t>>4&63]+Or[t<<2&63]+"="));return i.join("")}},Or=[],Ar=[],Pr="undefined"!=typeof Uint8Array?Uint8Array:Array,Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xr=0;xr<64;++xr)Or[xr]=Nr[xr],Ar[Nr.charCodeAt(xr)]=xr;function Lr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Dr(e,t,r){for(var n,i,o=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(Or[(i=n)>>18&63]+Or[i>>12&63]+Or[i>>6&63]+Or[63&i]);return o.join("")}Ar["-".charCodeAt(0)]=62,Ar["_".charCodeAt(0)]=63;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.AppAuthError=void 0;var Ur=function(e,t){this.message=e,this.extras=t};Mr.AppAuthError=Ur,Object.defineProperty(Sr,"__esModule",{value:!0});var jr=Sr.DefaultCrypto=Sr.textEncodeLite=Sr.urlSafe=Sr.bufferToString=void 0,Fr=Rr,Br=Mr,zr="undefined"!=typeof window&&!!window.crypto,Hr=zr&&!!window.crypto.subtle,Vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function $r(e){for(var t=[],r=0;r<e.byteLength;r+=1){var n=e[r]%62;t.push(Vr[n])}return t.join("")}function qr(e){return Fr.fromByteArray(new Uint8Array(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Wr(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}Sr.bufferToString=$r,Sr.urlSafe=qr,Sr.textEncodeLite=Wr;var Kr=function(){function e(){}return e.prototype.generateRandom=function(e){var t=new Uint8Array(e);if(zr)window.crypto.getRandomValues(t);else for(var r=0;r<e;r+=1)t[r]=62*Math.random()|0;return $r(t)},e.prototype.deriveChallenge=function(e){return e.length<43||e.length>128?Promise.reject(new Br.AppAuthError("Invalid code length.")):Hr?new Promise((function(t,r){crypto.subtle.digest("SHA-256",Wr(e)).then((function(e){return t(qr(new Uint8Array(e)))}),(function(e){return r(e)}))})):Promise.reject(new Br.AppAuthError("window.crypto.subtle is unavailable."))},e}();jr=Sr.DefaultCrypto=Kr;var Jr={},Gr={};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.IS_PROFILE=Gr.IS_LOG=void 0,Gr.IS_LOG=!0,Gr.IS_PROFILE=!1;var Yr=Tr&&Tr.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.profile=Jr.log=void 0;var Qr=Gr;function Xr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Qr.IS_LOG&&((t?t.length:0)>0?console.log.apply(console,Yr([e],t)):console.log(e))}Jr.log=Xr;var Zr="undefined"!=typeof window&&!!window.performance&&!!console.profile;Jr.profile=function(e,t,r){return Qr.IS_PROFILE?function(e,t,r){var n=r.value,i=n.name;i||(i="anonymous function");r.value=Zr?function(e){console.profile(i);var t=window.performance.now(),r=n.call.apply(n,Yr([this||window],e)),o=window.performance.now()-t;return console.log(i+" took "+o+" ms"),console.profileEnd(),r}:function(e){Xr("Profile start "+i);var t=Date.now(),r=n.call.apply(n,Yr([this||window],e)),o=Date.now()-t;return Xr("Profile end "+i+" took "+o+" ms."),r};return r}(0,0,r):r},Object.defineProperty(Cr,"__esModule",{value:!0});var en=Cr.AuthorizationRequest=void 0,tn=Sr,rn=Jr,nn=function(){function e(t,r,n){void 0===r&&(r=new tn.DefaultCrypto),void 0===n&&(n=!0),this.crypto=r,this.usePkce=n,this.clientId=t.client_id,this.redirectUri=t.redirect_uri,this.scope=t.scope,this.responseType=t.response_type||e.RESPONSE_TYPE_CODE,this.state=t.state||function(e){return e.generateRandom(10)}(r),this.extras=t.extras,this.internal=t.internal}return e.prototype.setupCodeVerifier=function(){var e=this;if(this.usePkce){var t=this.crypto.generateRandom(128);return this.crypto.deriveChallenge(t).catch((function(e){rn.log("Unable to generate PKCE challenge. Not using PKCE",e)})).then((function(r){r&&(e.internal=e.internal||{},e.internal.code_verifier=t,e.extras=e.extras||{},e.extras.code_challenge=r,e.extras.code_challenge_method="S256")}))}return Promise.resolve()},e.prototype.toJson=function(){var e=this;return this.setupCodeVerifier().then((function(){return{response_type:e.responseType,client_id:e.clientId,redirect_uri:e.redirectUri,scope:e.scope,state:e.state,extras:e.extras,internal:e.internal}}))},e.RESPONSE_TYPE_TOKEN="token",e.RESPONSE_TYPE_CODE="code",e}();en=Cr.AuthorizationRequest=nn;var on={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthorizationRequestHandler=e.BUILT_IN_PARAMETERS=e.AuthorizationNotifier=void 0;var t=Jr,r=function(){function e(){this.listener=null}return e.prototype.setAuthorizationListener=function(e){this.listener=e},e.prototype.onAuthorizationComplete=function(e,t,r){this.listener&&this.listener(e,t,r)},e}();e.AuthorizationNotifier=r,e.BUILT_IN_PARAMETERS=["redirect_uri","client_id","response_type","state","scope"];var n=function(){function r(e,t){this.utils=e,this.crypto=t,this.notifier=null}return r.prototype.buildRequestUrl=function(t,r){var n={redirect_uri:r.redirectUri,client_id:r.clientId,response_type:r.responseType,state:r.state,scope:r.scope};if(r.extras)for(var i in r.extras)r.extras.hasOwnProperty(i)&&e.BUILT_IN_PARAMETERS.indexOf(i)<0&&(n[i]=r.extras[i]);var o=this.utils.stringify(n);return t.authorizationEndpoint+"?"+o},r.prototype.completeAuthorizationRequestIfPossible=function(){var e=this;return t.log("Checking to see if there is an authorization response to be delivered."),this.notifier||t.log("Notifier is not present on AuthorizationRequest handler.\n No delivery of result will be possible"),this.completeAuthorizationRequest().then((function(r){r||t.log("No result is available yet."),r&&e.notifier&&e.notifier.onAuthorizationComplete(r.request,r.response,r.error)}))},r.prototype.setAuthorizationNotifier=function(e){return this.notifier=e,this},r}();e.AuthorizationRequestHandler=n}(on);var sn={},an={};Object.defineProperty(an,"__esModule",{value:!0}),an.AuthorizationError=an.AuthorizationResponse=void 0;var cn=function(){function e(e){this.code=e.code,this.state=e.state}return e.prototype.toJson=function(){return{code:this.code,state:this.state}},e}();an.AuthorizationResponse=cn;var ln=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri,this.state=e.state}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri,state:this.state}},e}();an.AuthorizationError=ln;var un={};Object.defineProperty(un,"__esModule",{value:!0}),un.BasicQueryStringUtils=void 0;var dn=function(){function e(){}return e.prototype.parse=function(e,t){return t?this.parseQueryString(e.hash):this.parseQueryString(e.search)},e.prototype.parseQueryString=function(e){for(var t={},r=(e=e.trim().replace(/^(\?|#|&)/,"")).split("&"),n=0;n<r.length;n+=1){var i=r[n].split("=");if(i.length>=2){var o=decodeURIComponent(i.shift()),s=i.length>0?i.join("="):null;s&&(t[o]=decodeURIComponent(s))}}return t},e.prototype.stringify=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&e[r]&&t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t.join("&")},e}();un.BasicQueryStringUtils=dn;var hn,pn={},fn=Tr&&Tr.__extends||(hn=function(e,t){return(hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}hn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(pn,"__esModule",{value:!0}),pn.LocalStorageBackend=pn.StorageBackend=void 0;var mn=function(){};pn.StorageBackend=mn;var gn=function(e){function t(t){var r=e.call(this)||this;return r.storage=t||window.localStorage,r}return fn(t,e),t.prototype.getItem=function(e){var t=this;return new Promise((function(r,n){var i=t.storage.getItem(e);r(i||null)}))},t.prototype.removeItem=function(e){var t=this;return new Promise((function(r,n){t.storage.removeItem(e),r()}))},t.prototype.clear=function(){var e=this;return new Promise((function(t,r){e.storage.clear(),t()}))},t.prototype.setItem=function(e,t){var r=this;return new Promise((function(n,i){r.storage.setItem(e,t),n()}))},t}(mn);pn.LocalStorageBackend=gn;var _n=Tr&&Tr.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sn,"__esModule",{value:!0});var vn=sn.RedirectRequestHandler=void 0,yn=Cr,wn=an,bn=Sr,En=Jr,kn=un,In=pn,Tn=function(e){return e+"_appauth_authorization_request"},Cn=function(e){return e+"_appauth_authorization_service_configuration"},Sn="appauth_current_authorization_request",Rn=function(e){function t(t,r,n,i){void 0===t&&(t=new In.LocalStorageBackend),void 0===r&&(r=new kn.BasicQueryStringUtils),void 0===n&&(n=window.location),void 0===i&&(i=new bn.DefaultCrypto);var o=e.call(this,r,i)||this;return o.storageBackend=t,o.locationLike=n,o}return _n(t,e),t.prototype.performAuthorizationRequest=function(e,t){var r=this,n=this.crypto.generateRandom(10);Promise.all([this.storageBackend.setItem(Sn,n),t.toJson().then((function(e){return r.storageBackend.setItem(Tn(n),JSON.stringify(e))})),this.storageBackend.setItem(Cn(n),JSON.stringify(e.toJson()))]).then((function(){var n=r.buildRequestUrl(e,t);En.log("Making a request to ",t,n),r.locationLike.assign(n)}))},t.prototype.completeAuthorizationRequest=function(){var e=this;return this.storageBackend.getItem(Sn).then((function(t){return t?e.storageBackend.getItem(Tn(t)).then((function(e){return JSON.parse(e)})).then((function(e){return new yn.AuthorizationRequest(e)})).then((function(r){var n=""+e.locationLike.origin+e.locationLike.pathname,i=e.utils.parse(e.locationLike,!0),o=i.state,s=i.code,a=i.error;En.log("Potential authorization request ",n,i,o,s,a);var c=o===r.state,l=null,u=null;if(c){if(a){var d=i.error_uri,h=i.error_description;u=new wn.AuthorizationError({error:a,error_description:h,error_uri:d,state:o})}else l=new wn.AuthorizationResponse({code:s,state:o});return Promise.all([e.storageBackend.removeItem(Sn),e.storageBackend.removeItem(Tn(t)),e.storageBackend.removeItem(Cn(t))]).then((function(){return En.log("Delivering authorization response"),{request:r,response:l,error:u}}))}return En.log("Mismatched request (state and request_uri) dont match."),Promise.resolve(null)})):null}))},t}(on.AuthorizationRequestHandler);vn=sn.RedirectRequestHandler=Rn;var On={},An={},Pn=Tr&&Tr.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(An,"__esModule",{value:!0}),An.TestRequestor=Mn=An.FetchRequestor=An.JQueryRequestor=An.Requestor=void 0;var Nn=Mr,xn=function(){};An.Requestor=xn;var Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.xhr=function(e){var t=$.ajax(e);return new Promise((function(e,r){t.then((function(t,r,n){e(t)}),(function(e,t,n){r(new Nn.AppAuthError(n))}))}))},t}(xn);An.JQueryRequestor=Ln;var Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.xhr=function(e){if(!e.url)return Promise.reject(new Nn.AppAuthError("A URL must be provided."));var t=new URL(e.url),r={};(r.method=e.method,r.mode="cors",e.data)&&(e.method&&"POST"===e.method.toUpperCase()?r.body=e.data:new URLSearchParams(e.data).forEach((function(e,r){t.searchParams.append(r,e)})));if(r.headers={},e.headers)for(var n in e.headers)e.headers.hasOwnProperty(n)&&(r.headers[n]=e.headers[n]);var i=e.dataType&&"json"===e.dataType.toLowerCase();return i&&(r.headers.Accept="application/json, text/javascript, */*; q=0.01"),fetch(t.toString(),r).then((function(e){if(e.status>=200&&e.status<300){var t=e.headers.get("content-type");return i||t&&-1!==t.indexOf("application/json")?e.json():e.text()}return Promise.reject(new Nn.AppAuthError(e.status.toString(),e.statusText))}))},t}(xn),Mn=An.FetchRequestor=Dn,Un=function(e){function t(t){var r=e.call(this)||this;return r.promise=t,r}return Pn(t,e),t.prototype.xhr=function(e){return this.promise},t}(xn);An.TestRequestor=Un,Object.defineProperty(On,"__esModule",{value:!0});var jn=On.AuthorizationServiceConfiguration=void 0,Fn=An,Bn=function(){function e(e){this.authorizationEndpoint=e.authorization_endpoint,this.tokenEndpoint=e.token_endpoint,this.revocationEndpoint=e.revocation_endpoint,this.userInfoEndpoint=e.userinfo_endpoint,this.endSessionEndpoint=e.end_session_endpoint}return e.prototype.toJson=function(){return{authorization_endpoint:this.authorizationEndpoint,token_endpoint:this.tokenEndpoint,revocation_endpoint:this.revocationEndpoint,end_session_endpoint:this.endSessionEndpoint,userinfo_endpoint:this.userInfoEndpoint}},e.fetchFromIssuer=function(t,r){var n=t+"/.well-known/openid-configuration";return(r||new Fn.JQueryRequestor).xhr({url:n,dataType:"json",method:"GET"}).then((function(t){return new e(t)}))},e}();jn=On.AuthorizationServiceConfiguration=Bn;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var Hn=zn.TokenRequest=zn.GRANT_TYPE_REFRESH_TOKEN=zn.GRANT_TYPE_AUTHORIZATION_CODE=void 0,Vn=zn.GRANT_TYPE_AUTHORIZATION_CODE="authorization_code";zn.GRANT_TYPE_REFRESH_TOKEN="refresh_token";var $n=function(){function e(e){this.clientId=e.client_id,this.redirectUri=e.redirect_uri,this.grantType=e.grant_type,this.code=e.code,this.refreshToken=e.refresh_token,this.extras=e.extras}return e.prototype.toJson=function(){return{grant_type:this.grantType,code:this.code,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,client_id:this.clientId,extras:this.extras}},e.prototype.toStringMap=function(){var e={grant_type:this.grantType,client_id:this.clientId,redirect_uri:this.redirectUri};if(this.code&&(e.code=this.code),this.refreshToken&&(e.refresh_token=this.refreshToken),this.extras)for(var t in this.extras)this.extras.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=this.extras[t]);return e},e}();Hn=zn.TokenRequest=$n;var qn={},Wn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenError=e.TokenResponse=e.nowInSeconds=void 0;e.nowInSeconds=function(){return Math.round((new Date).getTime()/1e3)};var t=function(){function t(t){this.accessToken=t.access_token,this.tokenType=t.token_type||"bearer",t.expires_in&&(this.expiresIn=parseInt(t.expires_in,10)),this.refreshToken=t.refresh_token,this.scope=t.scope,this.idToken=t.id_token,this.issuedAt=t.issued_at||e.nowInSeconds()}return t.prototype.toJson=function(){var e;return{access_token:this.accessToken,id_token:this.idToken,refresh_token:this.refreshToken,scope:this.scope,token_type:this.tokenType,issued_at:this.issuedAt,expires_in:null===(e=this.expiresIn)||void 0===e?void 0:e.toString()}},t.prototype.isValid=function(t){return void 0===t&&(t=-600),!this.expiresIn||e.nowInSeconds()<this.issuedAt+this.expiresIn+t},t}();e.TokenResponse=t;var r=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri}},e}();e.TokenError=r}(Wn),Object.defineProperty(qn,"__esModule",{value:!0});var Kn=qn.BaseTokenRequestHandler=void 0,Jn=Mr,Gn=un,Yn=Wn,Qn=An,Xn=function(){function e(e,t){void 0===e&&(e=new Qn.JQueryRequestor),void 0===t&&(t=new Gn.BasicQueryStringUtils),this.requestor=e,this.utils=t}return e.prototype.isTokenResponse=function(e){return void 0===e.error},e.prototype.performRevokeTokenRequest=function(e,t){return this.requestor.xhr({url:e.revocationEndpoint,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return!0}))},e.prototype.performTokenRequest=function(e,t){var r=this;return this.requestor.xhr({url:e.tokenEndpoint,method:"POST",dataType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return r.isTokenResponse(e)?new Yn.TokenResponse(e):Promise.reject(new Jn.AppAuthError(e.error,new Yn.TokenError(e)))}))},e}();Kn=qn.BaseTokenRequestHandler=Xn;let Zn;const ei=async(e,t)=>{const r=await jn.fetchFromIssuer(e,t);return Zn=r,r},ti=async(e,t,r,n,i)=>{const o={};t&&(o.code_verifier=t);const s=new Hn({client_id:n.clientId,redirect_uri:n.redirectUri,grant_type:Vn,code:e,refresh_token:void 0,extras:o});return await r.performTokenRequest(i,s)},ri=e=>{if(e&&e.isValid())return e.accessToken},ni=async e=>{try{const t=await e.storageBackend.getItem("appauth_current_authorization_request"),r=t&&await e.storageBackend.getItem((e=>`${e}_appauth_authorization_service_configuration`)(t));if(r){const e=JSON.parse(r);Zn=new jn(e)}return!0}catch{return!1}};p.bind({g:1});const ii=f("span")([{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}]),oi=(function(){const e=f.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}})`
2
2
  @import url('//fonts.googleapis.com/css?family=Poppins');
3
3
 
4
4
  workplace-link {
@@ -88,12 +88,12 @@ let e,t,r,n={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober
88
88
  ${()=>({margin:"0.5rem",display:"inline-block",height:"3rem"})}
89
89
  `,_i=f("a")``,vi=f("img")`
90
90
  ${()=>({marginTop:"0.5rem",marginBottom:"0.5rem",height:"6rem"})}
91
- `;function yi(e,t){for(var r in t)e[r]=t[r];return e}function wi(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function bi(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Ei(e){this.props=e}function ki(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:wi(this.props,e)}function n(t){return this.shouldComponentUpdate=r,O(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Ei.prototype=new x).isPureReactComponent=!0,Ei.prototype.shouldComponentUpdate=function(e,t){return wi(this.props,e)||wi(this.state,t)};var Ii=g.__b;g.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ii&&Ii(e)};var Ti="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ci(e){function t(t){var r=yi({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=Ti,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Si=function(e,t){return null==e?null:B(B(e).map(t))},Ri={map:Si,forEach:Si,count:function(e){return e?B(e).length:0},only:function(e){var t=B(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:B},Oi=g.__e;g.__e=function(e,t,r,n){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);Oi(e,t,r,n)};var Ai=g.unmount;function Pi(e,t,r){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=yi({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Pi(e,t,r)}))),e}function Ni(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ni(e,t,r)})),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function xi(){this.__u=0,this.t=null,this.__b=null}function Li(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Di(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return O(r,i)}return i.displayName="Lazy",i.__f=!0,i}function Mi(){this.u=null,this.o=null}g.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ai&&Ai(e)},(xi.prototype=new x).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=Li(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(a):a())};r.__R=s;var a=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=Ni(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.t.pop();)t.forceUpdate()}},c=!0===t.__h;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},xi.prototype.componentWillUnmount=function(){this.t=[]},xi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Pi(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&O(N,null,e.fallback);return i&&(i.__h=null),[O(N,null,t.__a?null:e.children),i]};var Ui=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function ji(e){return this.getChildContext=function(){return e.context},e.children}function Fi(e){var t=this,r=e.i;t.componentWillUnmount=function(){Z(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,r){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Z(O(ji,{context:t.context},e.__v),t.l)}function Bi(e,t){var r=O(Fi,{__v:e,i:t});return r.containerInfo=t,r}(Mi.prototype=new x).__a=function(e){var t=this,r=Li(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ui(t,e,n)):i()};r?r(o):o()}},Mi.prototype.render=function(e){this.u=null,this.o=new Map;var t=B(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Mi.prototype.componentDidUpdate=Mi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){Ui(e,r,t)}))};var zi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hi=/^(?: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]/,Vi=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$i=/[A-Z0-9]/g,qi="undefined"!=typeof document,Wi=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ki(e,t,r){return null==t.__k&&(t.textContent=""),Z(e,t),"function"==typeof r&&r(),e?e.__c:null}function Gi(e,t,r){return ee(e,t),"function"==typeof r&&r(),e?e.__c:null}x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ji=g.event;function Yi(){}function Qi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}g.event=function(e){return Ji&&(e=Ji(e)),e.persist=Yi,e.isPropagationStopped=Qi,e.isDefaultPrevented=Xi,e.nativeEvent=e};var Zi,eo={enumerable:!1,configurable:!0,get:function(){return this.class}},to=g.vnode;g.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={};for(var i in t){var o=t[i];if(!("value"===i&&"defaultValue"in t&&null==o||qi&&"children"===i&&"noscript"===r||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===o?o="":"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||Wi(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Vi.test(i)?i=s:-1===r.indexOf("-")&&Hi.test(i)?i=i.replace($i,"-$&").toLowerCase():null===o&&(o=void 0):s=i="oninput","oninput"===s&&n[i=s]&&(i="oninputCapture"),n[i]=o}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=B(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=B(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",eo)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=zi,to&&to(e)};var ro=g.__r;g.__r=function(e){ro&&ro(e),Zi=e.__c};var no=g.diffed;g.diffed=function(e){no&&no(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),Zi=null};var io={ReactCurrentDispatcher:{current:{readContext:function(e){return Zi.__n[e.__c].props.value}}}};function oo(e){return O.bind(null,e)}function so(e){return!!e&&e.$$typeof===zi}function ao(e){return so(e)&&e.type===N}function co(e){return so(e)?te.apply(null,arguments):e}function lo(e){return!!e.__k&&(Z(null,e),!0)}function uo(e){return e&&(e.base||1===e.nodeType&&e)||null}var ho=function(e,t){return e(t)},po=function(e,t){return e(t)},fo=N;function mo(e){e()}function go(e){return e}function _o(){return[!1,mo]}var vo=ye,yo=so;function wo(e,t){var r=t(),n=ge({h:{__:r,v:t}}),i=n[0].h,o=n[1];return ye((function(){i.__=r,i.v=t,bi(i.__,t())||o({h:i})}),[e,r,t]),ve((function(){return bi(i.__,i.v())||o({h:i}),e((function(){bi(i.__,i.v())||o({h:i})}))}),[e]),r}var bo={useState:ge,useId:Ce,useReducer:_e,useEffect:ve,useLayoutEffect:ye,useInsertionEffect:vo,useTransition:_o,useDeferredValue:go,useSyncExternalStore:wo,startTransition:mo,useRef:we,useImperativeHandle:be,useMemo:Ee,useCallback:ke,useContext:Ie,useDebugValue:Te,version:"17.0.2",Children:Ri,render:Ki,hydrate:Gi,unmountComponentAtNode:lo,createPortal:Bi,createElement:O,createContext:re,createFactory:oo,cloneElement:co,createRef:P,Fragment:N,isValidElement:so,isElement:yo,isFragment:ao,findDOMNode:uo,Component:x,PureComponent:Ei,memo:ki,forwardRef:Ci,flushSync:po,unstable_batchedUpdates:ho,StrictMode:fo,Suspense:xi,SuspenseList:Mi,lazy:Di,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:io};const Eo=Object.freeze(Object.defineProperty({__proto__:null,Children:Ri,Component:x,Fragment:N,PureComponent:Ei,StrictMode:fo,Suspense:xi,SuspenseList:Mi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:io,cloneElement:co,createContext:re,createElement:O,createFactory:oo,createPortal:Bi,createRef:P,default:bo,findDOMNode:uo,flushSync:po,forwardRef:Ci,hydrate:Gi,isElement:yo,isFragment:ao,isValidElement:so,lazy:Di,memo:ki,render:Ki,startTransition:mo,unmountComponentAtNode:lo,unstable_batchedUpdates:ho,useCallback:ke,useContext:Ie,useDebugValue:Te,useDeferredValue:go,useEffect:ve,useErrorBoundary:function(e){var t=me(ne++,10),r=ge();return t.__=e,ie.componentDidCatch||(ie.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:Ce,useImperativeHandle:be,useInsertionEffect:vo,useLayoutEffect:ye,useMemo:Ee,useReducer:_e,useRef:we,useState:ge,useSyncExternalStore:wo,useTransition:_o,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var ko,Io,To=Object.defineProperty,Co=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Oo=(e,t,r)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ao=(e,t)=>{for(var r in t||(t={}))So.call(t,r)&&Oo(e,r,t[r]);if(Co)for(var r of Co(t))Ro.call(t,r)&&Oo(e,r,t[r]);return e},Po=(e,t)=>{var r={};for(var n in e)So.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Co)for(var n of Co(e))t.indexOf(n)<0&&Ro.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class{constructor(e,r,n,i){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let t=0;t<this.size;t++)s.push(!1);for(let t=0;t<this.size;t++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(n);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(i=t,e=r),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(r,n){const i=e.QrSegment.makeSegments(r);return t.encodeSegments(i,n)}static encodeBinary(r,n){const i=e.QrSegment.makeBytes(r);return t.encodeSegments([i],n)}static encodeSegments(e,r,i=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const n=8*t.getNumDataCodewords(u,r),i=a.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,n)&&(r=n);let h=[];for(const t of e){n(t.mode.modeBits,4,h),n(t.numChars,t.mode.numCharCountBits(u),h);for(const e of t.getData())h.push(e)}o(h.length==d);const p=8*t.getNumDataCodewords(u,r);o(h.length<=p),n(0,Math.min(4,p-h.length),h),n(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let t=236;h.length<p;t^=253)n(t,8,h);let f=[];for(;8*f.length<h.length;)f.push(0);return h.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(u,r,f,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let i=0;i<10;i++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);o(n>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,i(n,o));this.setFunctionModule(8,7,i(n,6)),this.setFunctionModule(8,8,i(n,7)),this.setFunctionModule(7,8,i(n,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,i(n,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,i(n,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,i(n,o));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let r=0;r<12;r++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let r=0;r<18;r++){const e=i(t,r),n=this.size-11+r%3,o=Math.floor(r/3);this.setFunctionModule(n,o,e),this.setFunctionModule(o,n,e)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,s=t+r;0<=o&&o<this.size&&0<=s&&s<this.size&&this.setFunctionModule(o,s,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],a=Math.floor(t.getNumRawDataModules(r)/8),c=i-a%i,l=Math.floor(a/i);let u=[];const d=t.reedSolomonComputeDivisor(s);for(let o=0,p=0;o<i;o++){let r=e.slice(p,p+l-s+(o<c?0:1));p+=r.length;const n=t.reedSolomonComputeRemainder(r,d);o<c&&r.push(0),u.push(r.concat(n))}let h=[];for(let t=0;t<u[0].length;t++)u.forEach(((e,r)=>{(t!=l-s||r>=c)&&h.push(e[t])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let o=0;o<2;o++){const s=t-o,a=0==(t+1&2)?this.size-1-n:n;!this.isFunction[a][s]&&r<8*e.length&&(this.modules[a][s]=i(e[r>>>3],7-(7&r)),r++)}}o(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let o=0;o<this.size;o++){let r=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[o][s]==r?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[o][s],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*t.PENALTY_N3}for(let o=0;o<this.size;o++){let r=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][o]==r?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[s][o],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*t.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let r=0;r<this.size-1;r++){const n=this.modules[o][r];n==this.modules[o][r+1]&&n==this.modules[o+1][r]&&n==this.modules[o+1][r+1]&&(e+=t.PENALTY_N2)}let r=0;for(const t of this.modules)r=t.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,i=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let i=0;i<e;i++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const i of e){const e=i^n.shift();n.push(0),r.forEach(((r,i)=>n[i]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return o(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function i(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const s=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new s(s.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!s.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r<e.length;){const i=Math.min(e.length-r,3);n(parseInt(e.substr(r,i),10),3*i+1,t),r+=i}return new s(s.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!s.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,r=[];for(t=0;t+2<=e.length;t+=2){let i=45*s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),n(i,11,r)}return t<e.length&&n(s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new s(s.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:s.isNumeric(e)?[s.makeNumeric(e)]:s.isAlphanumeric(e)?[s.makeAlphanumeric(e)]:[s.makeBytes(s.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,t),n(e,21,t)}return new s(s.Mode.ECI,0,t)}static isNumeric(e){return s.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return s.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substr(r+1,2),16)),r+=2);return t}};let a=s;a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(ko||(ko={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})((Io=ko||(ko={})).QrCode||(Io.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(e.QrSegment||(e.QrSegment={}))})(ko||(ko={}));var No=ko,xo={L:No.QrCode.Ecc.LOW,M:No.QrCode.Ecc.MEDIUM,Q:No.QrCode.Ecc.QUARTILE,H:No.QrCode.Ecc.HIGH},Lo=128,Do="L",Mo="#FFFFFF",Uo="#000000",jo=!1,Fo=4,Bo=.1;
91
+ `;function yi(e,t){for(var r in t)e[r]=t[r];return e}function wi(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function bi(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Ei(e){this.props=e}function ki(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:wi(this.props,e)}function n(t){return this.shouldComponentUpdate=r,O(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Ei.prototype=new x).isPureReactComponent=!0,Ei.prototype.shouldComponentUpdate=function(e,t){return wi(this.props,e)||wi(this.state,t)};var Ii=g.__b;g.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ii&&Ii(e)};var Ti="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ci(e){function t(t){var r=yi({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=Ti,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Si=function(e,t){return null==e?null:B(B(e).map(t))},Ri={map:Si,forEach:Si,count:function(e){return e?B(e).length:0},only:function(e){var t=B(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:B},Oi=g.__e;g.__e=function(e,t,r,n){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);Oi(e,t,r,n)};var Ai=g.unmount;function Pi(e,t,r){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=yi({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Pi(e,t,r)}))),e}function Ni(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ni(e,t,r)})),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function xi(){this.__u=0,this.t=null,this.__b=null}function Li(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Di(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return O(r,i)}return i.displayName="Lazy",i.__f=!0,i}function Mi(){this.u=null,this.o=null}g.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ai&&Ai(e)},(xi.prototype=new x).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=Li(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(a):a())};r.__R=s;var a=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=Ni(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.t.pop();)t.forceUpdate()}},c=!0===t.__h;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},xi.prototype.componentWillUnmount=function(){this.t=[]},xi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Pi(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&O(N,null,e.fallback);return i&&(i.__h=null),[O(N,null,t.__a?null:e.children),i]};var Ui=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function ji(e){return this.getChildContext=function(){return e.context},e.children}function Fi(e){var t=this,r=e.i;t.componentWillUnmount=function(){Z(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,r){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Z(O(ji,{context:t.context},e.__v),t.l)}function Bi(e,t){var r=O(Fi,{__v:e,i:t});return r.containerInfo=t,r}(Mi.prototype=new x).__a=function(e){var t=this,r=Li(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ui(t,e,n)):i()};r?r(o):o()}},Mi.prototype.render=function(e){this.u=null,this.o=new Map;var t=B(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Mi.prototype.componentDidUpdate=Mi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){Ui(e,r,t)}))};var zi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hi=/^(?: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]/,Vi=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$i=/[A-Z0-9]/g,qi="undefined"!=typeof document,Wi=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ki(e,t,r){return null==t.__k&&(t.textContent=""),Z(e,t),"function"==typeof r&&r(),e?e.__c:null}function Ji(e,t,r){return ee(e,t),"function"==typeof r&&r(),e?e.__c:null}x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Gi=g.event;function Yi(){}function Qi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}g.event=function(e){return Gi&&(e=Gi(e)),e.persist=Yi,e.isPropagationStopped=Qi,e.isDefaultPrevented=Xi,e.nativeEvent=e};var Zi,eo={enumerable:!1,configurable:!0,get:function(){return this.class}},to=g.vnode;g.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={};for(var i in t){var o=t[i];if(!("value"===i&&"defaultValue"in t&&null==o||qi&&"children"===i&&"noscript"===r||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===o?o="":"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||Wi(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Vi.test(i)?i=s:-1===r.indexOf("-")&&Hi.test(i)?i=i.replace($i,"-$&").toLowerCase():null===o&&(o=void 0):s=i="oninput","oninput"===s&&n[i=s]&&(i="oninputCapture"),n[i]=o}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=B(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=B(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",eo)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=zi,to&&to(e)};var ro=g.__r;g.__r=function(e){ro&&ro(e),Zi=e.__c};var no=g.diffed;g.diffed=function(e){no&&no(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),Zi=null};var io={ReactCurrentDispatcher:{current:{readContext:function(e){return Zi.__n[e.__c].props.value}}}};function oo(e){return O.bind(null,e)}function so(e){return!!e&&e.$$typeof===zi}function ao(e){return so(e)&&e.type===N}function co(e){return so(e)?te.apply(null,arguments):e}function lo(e){return!!e.__k&&(Z(null,e),!0)}function uo(e){return e&&(e.base||1===e.nodeType&&e)||null}var ho=function(e,t){return e(t)},po=function(e,t){return e(t)},fo=N;function mo(e){e()}function go(e){return e}function _o(){return[!1,mo]}var vo=ye,yo=so;function wo(e,t){var r=t(),n=ge({h:{__:r,v:t}}),i=n[0].h,o=n[1];return ye((function(){i.__=r,i.v=t,bi(i.__,t())||o({h:i})}),[e,r,t]),ve((function(){return bi(i.__,i.v())||o({h:i}),e((function(){bi(i.__,i.v())||o({h:i})}))}),[e]),r}var bo={useState:ge,useId:Ce,useReducer:_e,useEffect:ve,useLayoutEffect:ye,useInsertionEffect:vo,useTransition:_o,useDeferredValue:go,useSyncExternalStore:wo,startTransition:mo,useRef:we,useImperativeHandle:be,useMemo:Ee,useCallback:ke,useContext:Ie,useDebugValue:Te,version:"17.0.2",Children:Ri,render:Ki,hydrate:Ji,unmountComponentAtNode:lo,createPortal:Bi,createElement:O,createContext:re,createFactory:oo,cloneElement:co,createRef:P,Fragment:N,isValidElement:so,isElement:yo,isFragment:ao,findDOMNode:uo,Component:x,PureComponent:Ei,memo:ki,forwardRef:Ci,flushSync:po,unstable_batchedUpdates:ho,StrictMode:fo,Suspense:xi,SuspenseList:Mi,lazy:Di,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:io};const Eo=Object.freeze(Object.defineProperty({__proto__:null,Children:Ri,Component:x,Fragment:N,PureComponent:Ei,StrictMode:fo,Suspense:xi,SuspenseList:Mi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:io,cloneElement:co,createContext:re,createElement:O,createFactory:oo,createPortal:Bi,createRef:P,default:bo,findDOMNode:uo,flushSync:po,forwardRef:Ci,hydrate:Ji,isElement:yo,isFragment:ao,isValidElement:so,lazy:Di,memo:ki,render:Ki,startTransition:mo,unmountComponentAtNode:lo,unstable_batchedUpdates:ho,useCallback:ke,useContext:Ie,useDebugValue:Te,useDeferredValue:go,useEffect:ve,useErrorBoundary:function(e){var t=me(ne++,10),r=ge();return t.__=e,ie.componentDidCatch||(ie.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:Ce,useImperativeHandle:be,useInsertionEffect:vo,useLayoutEffect:ye,useMemo:Ee,useReducer:_e,useRef:we,useState:ge,useSyncExternalStore:wo,useTransition:_o,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var ko,Io,To=Object.defineProperty,Co=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Oo=(e,t,r)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ao=(e,t)=>{for(var r in t||(t={}))So.call(t,r)&&Oo(e,r,t[r]);if(Co)for(var r of Co(t))Ro.call(t,r)&&Oo(e,r,t[r]);return e},Po=(e,t)=>{var r={};for(var n in e)So.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Co)for(var n of Co(e))t.indexOf(n)<0&&Ro.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class{constructor(e,r,n,i){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let t=0;t<this.size;t++)s.push(!1);for(let t=0;t<this.size;t++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(n);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(i=t,e=r),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(r,n){const i=e.QrSegment.makeSegments(r);return t.encodeSegments(i,n)}static encodeBinary(r,n){const i=e.QrSegment.makeBytes(r);return t.encodeSegments([i],n)}static encodeSegments(e,r,i=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const n=8*t.getNumDataCodewords(u,r),i=a.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw new RangeError("Data too long")}for(const n of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,n)&&(r=n);let h=[];for(const t of e){n(t.mode.modeBits,4,h),n(t.numChars,t.mode.numCharCountBits(u),h);for(const e of t.getData())h.push(e)}o(h.length==d);const p=8*t.getNumDataCodewords(u,r);o(h.length<=p),n(0,Math.min(4,p-h.length),h),n(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let t=236;h.length<p;t^=253)n(t,8,h);let f=[];for(;8*f.length<h.length;)f.push(0);return h.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(u,r,f,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let i=0;i<10;i++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);o(n>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,i(n,o));this.setFunctionModule(8,7,i(n,6)),this.setFunctionModule(8,8,i(n,7)),this.setFunctionModule(7,8,i(n,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,i(n,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,i(n,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,i(n,o));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let r=0;r<12;r++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let r=0;r<18;r++){const e=i(t,r),n=this.size-11+r%3,o=Math.floor(r/3);this.setFunctionModule(n,o,e),this.setFunctionModule(o,n,e)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,s=t+r;0<=o&&o<this.size&&0<=s&&s<this.size&&this.setFunctionModule(o,s,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],a=Math.floor(t.getNumRawDataModules(r)/8),c=i-a%i,l=Math.floor(a/i);let u=[];const d=t.reedSolomonComputeDivisor(s);for(let o=0,p=0;o<i;o++){let r=e.slice(p,p+l-s+(o<c?0:1));p+=r.length;const n=t.reedSolomonComputeRemainder(r,d);o<c&&r.push(0),u.push(r.concat(n))}let h=[];for(let t=0;t<u[0].length;t++)u.forEach(((e,r)=>{(t!=l-s||r>=c)&&h.push(e[t])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let o=0;o<2;o++){const s=t-o,a=0==(t+1&2)?this.size-1-n:n;!this.isFunction[a][s]&&r<8*e.length&&(this.modules[a][s]=i(e[r>>>3],7-(7&r)),r++)}}o(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let o=0;o<this.size;o++){let r=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[o][s]==r?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[o][s],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*t.PENALTY_N3}for(let o=0;o<this.size;o++){let r=!1,n=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][o]==r?(n++,5==n?e+=t.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[s][o],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*t.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let r=0;r<this.size-1;r++){const n=this.modules[o][r];n==this.modules[o][r+1]&&n==this.modules[o+1][r]&&n==this.modules[o+1][r+1]&&(e+=t.PENALTY_N2)}let r=0;for(const t of this.modules)r=t.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,i=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let i=0;i<e;i++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const i of e){const e=i^n.shift();n.push(0),r.forEach(((r,i)=>n[i]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return o(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function i(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const s=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new s(s.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!s.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r<e.length;){const i=Math.min(e.length-r,3);n(parseInt(e.substr(r,i),10),3*i+1,t),r+=i}return new s(s.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!s.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,r=[];for(t=0;t+2<=e.length;t+=2){let i=45*s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),n(i,11,r)}return t<e.length&&n(s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new s(s.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:s.isNumeric(e)?[s.makeNumeric(e)]:s.isAlphanumeric(e)?[s.makeAlphanumeric(e)]:[s.makeBytes(s.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,t),n(e,21,t)}return new s(s.Mode.ECI,0,t)}static isNumeric(e){return s.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return s.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substr(r+1,2),16)),r+=2);return t}};let a=s;a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(ko||(ko={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})((Io=ko||(ko={})).QrCode||(Io.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(e.QrSegment||(e.QrSegment={}))})(ko||(ko={}));var No=ko,xo={L:No.QrCode.Ecc.LOW,M:No.QrCode.Ecc.MEDIUM,Q:No.QrCode.Ecc.QUARTILE,H:No.QrCode.Ecc.HIGH},Lo=128,Do="L",Mo="#FFFFFF",Uo="#000000",jo=!1,Fo=4,Bo=.1;
92
92
  /**
93
93
  * @license qrcode.react
94
94
  * Copyright (c) Paul O'Shannessy
95
95
  * SPDX-License-Identifier: ISC
96
- */function zo(e,t=0){const r=[];return e.forEach((function(e,n){let i=null;e.forEach((function(o,s){if(!o&&null!==i)return r.push(`M${i+t} ${n+t}h${s-i}v1H${i+t}z`),void(i=null);if(s!==e.length-1)o&&null===i&&(i=s);else{if(!o)return;null===i?r.push(`M${s+t},${n+t} h1v1H${s+t}z`):r.push(`M${i+t},${n+t} h${s+1-i}v1H${i+t}z`)}}))})),r.join("")}function Ho(e,t){return e.slice().map(((e,r)=>r<t.y||r>=t.y+t.h?e:e.map(((e,r)=>(r<t.x||r>=t.x+t.w)&&e))))}function Vo(e,t,r,n){if(null==n)return null;const i=r?Fo:0,o=e.length+2*i,s=Math.floor(t*Bo),a=o/t,c=(n.width||s)*a,l=(n.height||s)*a,u=null==n.x?e.length/2-c/2:n.x*a,d=null==n.y?e.length/2-l/2:n.y*a;let h=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:h}}var $o=function(){try{(new Path2D).addPath(new Path2D)}catch(Ld){return!1}return!0}();function qo(e){const t=e,{value:r,size:n=Lo,level:i=Do,bgColor:o=Mo,fgColor:s=Uo,includeMargin:a=jo,style:c,imageSettings:l}=t,u=Po(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=null==l?void 0:l.src,h=we(null),p=we(null),[f,m]=ge(!1);ve((()=>{if(null!=h.current){const e=h.current,t=e.getContext("2d");if(!t)return;let c=No.QrCode.encodeText(r,xo[i]).getModules();const u=a?Fo:0,d=c.length+2*u,f=Vo(c,n,a,l),m=p.current,g=null!=f&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=f.excavation&&(c=Ho(c,f.excavation));const _=window.devicePixelRatio||1;e.height=e.width=n*_;const v=n/d*_;t.scale(v,v),t.fillStyle=o,t.fillRect(0,0,d,d),t.fillStyle=s,$o?t.fill(new Path2D(zo(c,u))):c.forEach((function(e,r){e.forEach((function(e,n){e&&t.fillRect(n+u,r+u,1,1)}))})),g&&t.drawImage(m,f.x+u,f.y+u,f.w,f.h)}})),ve((()=>{m(!1)}),[d]);const g=Ao({height:n,width:n},c);let _=null;return null!=d&&(_=bo.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{m(!0)},ref:p})),bo.createElement(bo.Fragment,null,bo.createElement("canvas",Ao({style:g,height:n,width:n,ref:h},u)),_)}function Wo(e){const t=e,{value:r,size:n=Lo,level:i=Do,bgColor:o=Mo,fgColor:s=Uo,includeMargin:a=jo,imageSettings:c}=t,l=Po(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=No.QrCode.encodeText(r,xo[i]).getModules();const d=a?Fo:0,h=u.length+2*d,p=Vo(u,n,a,c);let f=null;null!=c&&null!=p&&(null!=p.excavation&&(u=Ho(u,p.excavation)),f=bo.createElement("image",{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:"none"}));const m=zo(u,d);return bo.createElement("svg",Ao({height:n,width:n,viewBox:`0 0 ${h} ${h}`},l),bo.createElement("path",{fill:o,d:`M0,0 h${h}v${h}H0z`,shapeRendering:"crispEdges"}),bo.createElement("path",{fill:s,d:m,shapeRendering:"crispEdges"}),f)}var Ko=e=>{const t=e,{renderAs:r}=t,n=Po(t,["renderAs"]);return"svg"===r?bo.createElement(Wo,Ao({},n)):bo.createElement(qo,Ao({},n))};const Go=""+new URL("assets/google-play-badge-215e4644.png",import.meta.url).href,Jo=""+new URL("assets/apple-store-badge-a26fc5b3.svg",import.meta.url).href,Yo=""+new URL("assets/fireworks-ab74a101.png",import.meta.url).href,Qo=()=>ui(si,{children:ui(hi,{children:[ui(vi,{src:Yo}),ui("h1",{children:"You’re registered!"}),ui("h2",{children:"To start accessing your benefits, download the Flare app and sign in!"}),ui(pi,{children:ui(Ko,{value:"https://esjpe.app.link"})}),ui("h3",{children:"Download the Flare App"}),ui("p",{children:"Available on iOS and Android"}),ui(fi,{children:[ui(_i,{href:"https://apps.apple.com/us/app/flare/id1587276031",children:ui(mi,{src:Jo})}),ui(_i,{href:"https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits",children:ui(gi,{src:Go})})]})]})}),Xo=""+new URL("assets/cross-icon-bd6b1cff.svg",import.meta.url).href,Zo=f("img")`
96
+ */function zo(e,t=0){const r=[];return e.forEach((function(e,n){let i=null;e.forEach((function(o,s){if(!o&&null!==i)return r.push(`M${i+t} ${n+t}h${s-i}v1H${i+t}z`),void(i=null);if(s!==e.length-1)o&&null===i&&(i=s);else{if(!o)return;null===i?r.push(`M${s+t},${n+t} h1v1H${s+t}z`):r.push(`M${i+t},${n+t} h${s+1-i}v1H${i+t}z`)}}))})),r.join("")}function Ho(e,t){return e.slice().map(((e,r)=>r<t.y||r>=t.y+t.h?e:e.map(((e,r)=>(r<t.x||r>=t.x+t.w)&&e))))}function Vo(e,t,r,n){if(null==n)return null;const i=r?Fo:0,o=e.length+2*i,s=Math.floor(t*Bo),a=o/t,c=(n.width||s)*a,l=(n.height||s)*a,u=null==n.x?e.length/2-c/2:n.x*a,d=null==n.y?e.length/2-l/2:n.y*a;let h=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:h}}var $o=function(){try{(new Path2D).addPath(new Path2D)}catch(Ld){return!1}return!0}();function qo(e){const t=e,{value:r,size:n=Lo,level:i=Do,bgColor:o=Mo,fgColor:s=Uo,includeMargin:a=jo,style:c,imageSettings:l}=t,u=Po(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=null==l?void 0:l.src,h=we(null),p=we(null),[f,m]=ge(!1);ve((()=>{if(null!=h.current){const e=h.current,t=e.getContext("2d");if(!t)return;let c=No.QrCode.encodeText(r,xo[i]).getModules();const u=a?Fo:0,d=c.length+2*u,f=Vo(c,n,a,l),m=p.current,g=null!=f&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=f.excavation&&(c=Ho(c,f.excavation));const _=window.devicePixelRatio||1;e.height=e.width=n*_;const v=n/d*_;t.scale(v,v),t.fillStyle=o,t.fillRect(0,0,d,d),t.fillStyle=s,$o?t.fill(new Path2D(zo(c,u))):c.forEach((function(e,r){e.forEach((function(e,n){e&&t.fillRect(n+u,r+u,1,1)}))})),g&&t.drawImage(m,f.x+u,f.y+u,f.w,f.h)}})),ve((()=>{m(!1)}),[d]);const g=Ao({height:n,width:n},c);let _=null;return null!=d&&(_=bo.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{m(!0)},ref:p})),bo.createElement(bo.Fragment,null,bo.createElement("canvas",Ao({style:g,height:n,width:n,ref:h},u)),_)}function Wo(e){const t=e,{value:r,size:n=Lo,level:i=Do,bgColor:o=Mo,fgColor:s=Uo,includeMargin:a=jo,imageSettings:c}=t,l=Po(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=No.QrCode.encodeText(r,xo[i]).getModules();const d=a?Fo:0,h=u.length+2*d,p=Vo(u,n,a,c);let f=null;null!=c&&null!=p&&(null!=p.excavation&&(u=Ho(u,p.excavation)),f=bo.createElement("image",{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:"none"}));const m=zo(u,d);return bo.createElement("svg",Ao({height:n,width:n,viewBox:`0 0 ${h} ${h}`},l),bo.createElement("path",{fill:o,d:`M0,0 h${h}v${h}H0z`,shapeRendering:"crispEdges"}),bo.createElement("path",{fill:s,d:m,shapeRendering:"crispEdges"}),f)}var Ko=e=>{const t=e,{renderAs:r}=t,n=Po(t,["renderAs"]);return"svg"===r?bo.createElement(Wo,Ao({},n)):bo.createElement(qo,Ao({},n))};const Jo=""+new URL("assets/google-play-badge-215e4644.png",import.meta.url).href,Go=""+new URL("assets/apple-store-badge-a26fc5b3.svg",import.meta.url).href,Yo=""+new URL("assets/fireworks-ab74a101.png",import.meta.url).href,Qo=()=>ui(si,{children:ui(hi,{children:[ui(vi,{src:Yo}),ui("h1",{children:"You’re registered!"}),ui("h2",{children:"To start accessing your benefits, download the Flare app and sign in!"}),ui(pi,{children:ui(Ko,{value:"https://esjpe.app.link"})}),ui("h3",{children:"Download the Flare App"}),ui("p",{children:"Available on iOS and Android"}),ui(fi,{children:[ui(_i,{href:"https://apps.apple.com/us/app/flare/id1587276031",children:ui(mi,{src:Go})}),ui(_i,{href:"https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits",children:ui(gi,{src:Jo})})]})]})}),Xo=""+new URL("assets/cross-icon-bd6b1cff.svg",import.meta.url).href,Zo=f("img")`
97
97
  ${()=>({marginBottom:"2.5rem",height:"7rem"})}
98
98
  `,es=f("div")`
99
99
  ${()=>({marginTop:"6rem",marginBottom:"6rem",display:"flex",width:"100%",flexDirection:"column",alignItems:"center",textAlign:"center"})}
@@ -268,7 +268,7 @@ class ps{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new P
268
268
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
269
269
  * See the License for the specific language governing permissions and
270
270
  * limitations under the License.
271
- */var Rs,Os;(Os=Rs||(Rs={}))[Os.DEBUG=0]="DEBUG",Os[Os.VERBOSE=1]="VERBOSE",Os[Os.INFO=2]="INFO",Os[Os.WARN=3]="WARN",Os[Os.ERROR=4]="ERROR",Os[Os.SILENT=5]="SILENT";const As={debug:Rs.DEBUG,verbose:Rs.VERBOSE,info:Rs.INFO,warn:Rs.WARN,error:Rs.ERROR,silent:Rs.SILENT},Ps=Rs.INFO,Ns={[Rs.DEBUG]:"log",[Rs.VERBOSE]:"log",[Rs.INFO]:"info",[Rs.WARN]:"warn",[Rs.ERROR]:"error"},xs=(e,t,...r)=>{if(t<e.logLevel)return;const n=(new Date).toISOString(),i=Ns[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${n}] ${e.name}:`,...r)};class Ls{constructor(e){this.name=e,this._logLevel=Ps,this._logHandler=xs,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Rs))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?As[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Rs.DEBUG,...e),this._logHandler(this,Rs.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Rs.VERBOSE,...e),this._logHandler(this,Rs.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Rs.INFO,...e),this._logHandler(this,Rs.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Rs.WARN,...e),this._logHandler(this,Rs.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Rs.ERROR,...e),this._logHandler(this,Rs.ERROR,...e)}}const Ds=(e,t)=>t.some((t=>e instanceof t));let Ms,Us;const js=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,zs=new WeakMap,Hs=new WeakMap;let Vs={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return Fs.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Bs.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ws(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function $s(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Us||(Us=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Ks(this),t),Ws(js.get(this))}:function(...t){return Ws(e.apply(Ks(this),t))}:function(t,...r){const n=e.call(Ks(this),t,...r);return Bs.set(n,t.sort?t.sort():[t]),Ws(n)}}function qs(e){return"function"==typeof e?$s(e):(e instanceof IDBTransaction&&function(e){if(Fs.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));Fs.set(e,t)}(e),Ds(e,Ms||(Ms=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Vs):e)}function Ws(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(Ws(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&js.set(t,e)})).catch((()=>{})),Hs.set(t,e),t}(e);if(zs.has(e))return zs.get(e);const t=qs(e);return t!==e&&(zs.set(e,t),Hs.set(t,e)),t}const Ks=e=>Hs.get(e);const Gs=["get","getKey","getAll","getAllKeys","count"],Js=["put","add","delete","clear"],Ys=new Map;function Qs(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ys.get(t))return Ys.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,i=Js.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!Gs.includes(r))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let s=o.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return Ys.set(t,o),o}Vs=(e=>({...e,get:(t,r,n)=>Qs(t,r)||e.get(t,r,n),has:(t,r)=>!!Qs(t,r)||e.has(t,r)}))(Vs);
271
+ */var Rs,Os;(Os=Rs||(Rs={}))[Os.DEBUG=0]="DEBUG",Os[Os.VERBOSE=1]="VERBOSE",Os[Os.INFO=2]="INFO",Os[Os.WARN=3]="WARN",Os[Os.ERROR=4]="ERROR",Os[Os.SILENT=5]="SILENT";const As={debug:Rs.DEBUG,verbose:Rs.VERBOSE,info:Rs.INFO,warn:Rs.WARN,error:Rs.ERROR,silent:Rs.SILENT},Ps=Rs.INFO,Ns={[Rs.DEBUG]:"log",[Rs.VERBOSE]:"log",[Rs.INFO]:"info",[Rs.WARN]:"warn",[Rs.ERROR]:"error"},xs=(e,t,...r)=>{if(t<e.logLevel)return;const n=(new Date).toISOString(),i=Ns[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${n}] ${e.name}:`,...r)};class Ls{constructor(e){this.name=e,this._logLevel=Ps,this._logHandler=xs,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Rs))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?As[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Rs.DEBUG,...e),this._logHandler(this,Rs.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Rs.VERBOSE,...e),this._logHandler(this,Rs.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Rs.INFO,...e),this._logHandler(this,Rs.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Rs.WARN,...e),this._logHandler(this,Rs.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Rs.ERROR,...e),this._logHandler(this,Rs.ERROR,...e)}}const Ds=(e,t)=>t.some((t=>e instanceof t));let Ms,Us;const js=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,zs=new WeakMap,Hs=new WeakMap;let Vs={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return Fs.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Bs.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ws(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function $s(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Us||(Us=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Ks(this),t),Ws(js.get(this))}:function(...t){return Ws(e.apply(Ks(this),t))}:function(t,...r){const n=e.call(Ks(this),t,...r);return Bs.set(n,t.sort?t.sort():[t]),Ws(n)}}function qs(e){return"function"==typeof e?$s(e):(e instanceof IDBTransaction&&function(e){if(Fs.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));Fs.set(e,t)}(e),Ds(e,Ms||(Ms=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Vs):e)}function Ws(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(Ws(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&js.set(t,e)})).catch((()=>{})),Hs.set(t,e),t}(e);if(zs.has(e))return zs.get(e);const t=qs(e);return t!==e&&(zs.set(e,t),Hs.set(t,e)),t}const Ks=e=>Hs.get(e);const Js=["get","getKey","getAll","getAllKeys","count"],Gs=["put","add","delete","clear"],Ys=new Map;function Qs(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ys.get(t))return Ys.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,i=Gs.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!Js.includes(r))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let s=o.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return Ys.set(t,o),o}Vs=(e=>({...e,get:(t,r,n)=>Qs(t,r)||e.get(t,r,n),has:(t,r)=>!!Qs(t,r)||e.has(t,r)}))(Vs);
272
272
  /**
273
273
  * @license
274
274
  * Copyright 2019 Google LLC
@@ -430,7 +430,7 @@ class ua{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e)
430
430
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
431
431
  * See the License for the specific language governing permissions and
432
432
  * limitations under the License.
433
- */function Ga(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(Wa()||function(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}
433
+ */function Ja(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(Wa()||function(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}
434
434
  /**
435
435
  * @license
436
436
  * Copyright 2020 Google LLC
@@ -447,7 +447,7 @@ class ua{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e)
447
447
  * See the License for the specific language governing permissions and
448
448
  * limitations under the License.
449
449
  */
450
- class Ja{constructor(e,t){this.shortDelay=e,this.longDelay=t,$a(t>e,"Short delay should be less than long delay!"),this.isMobile="undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(fs())||"object"==typeof navigator&&"ReactNative"===navigator.product}get(){return Ga()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
450
+ class Ga{constructor(e,t){this.shortDelay=e,this.longDelay=t,$a(t>e,"Short delay should be less than long delay!"),this.isMobile="undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(fs())||"object"==typeof navigator&&"ReactNative"===navigator.product}get(){return Ja()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
451
451
  /**
452
452
  * @license
453
453
  * Copyright 2020 Google LLC
@@ -495,7 +495,7 @@ class Ja{constructor(e,t){this.shortDelay=e,this.longDelay=t,$a(t>e,"Short delay
495
495
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
496
496
  * See the License for the specific language governing permissions and
497
497
  * limitations under the License.
498
- */const Xa={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Za=new Ja(3e4,6e4);
498
+ */const Xa={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Za=new Ga(3e4,6e4);
499
499
  /**
500
500
  * @license
501
501
  * Copyright 2020 Google LLC
@@ -916,7 +916,7 @@ function Dc(e,t=[]){let r;switch(e){case"Browser":r=Ic(fs());break;case"Worker":
916
916
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
917
917
  * See the License for the specific language governing permissions and
918
918
  * limitations under the License.
919
- */class Gc extends Wc{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Gc(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Fa("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:n}=t,i=Ca(t,["providerId","signInMethod"]);if(!r||!n)return null;const o=new Gc(r,n);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return Kc(e,this.buildRequest())}_linkToIdToken(e,t){const r=this.buildRequest();return r.idToken=t,Kc(e,r)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Kc(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=ws(t)}return e}}
919
+ */class Jc extends Wc{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Jc(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Fa("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:n}=t,i=Ca(t,["providerId","signInMethod"]);if(!r||!n)return null;const o=new Jc(r,n);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return Kc(e,this.buildRequest())}_linkToIdToken(e,t){const r=this.buildRequest();return r.idToken=t,Kc(e,r)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Kc(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=ws(t)}return e}}
920
920
  /**
921
921
  * @license
922
922
  * Copyright 2020 Google LLC
@@ -932,7 +932,7 @@ function Dc(e,t=[]){let r;switch(e){case"Browser":r=Ic(fs());break;case"Worker":
932
932
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
933
933
  * See the License for the specific language governing permissions and
934
934
  * limitations under the License.
935
- */const Jc={USER_NOT_FOUND:"user-not-found"};
935
+ */const Gc={USER_NOT_FOUND:"user-not-found"};
936
936
  /**
937
937
  * @license
938
938
  * Copyright 2020 Google LLC
@@ -949,7 +949,7 @@ function Dc(e,t=[]){let r;switch(e){case"Browser":r=Ic(fs());break;case"Worker":
949
949
  * See the License for the specific language governing permissions and
950
950
  * limitations under the License.
951
951
  */
952
- class Yc extends Wc{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Yc({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Yc({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return nc(e,"POST","/v1/accounts:signInWithPhoneNumber",ec(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const r=await nc(e,"POST","/v1/accounts:signInWithPhoneNumber",ec(e,t));if(r.temporaryProof)throw sc(e,"account-exists-with-different-credential",r);return r}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return nc(e,"POST","/v1/accounts:signInWithPhoneNumber",ec(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Jc)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new Yc({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}
952
+ class Yc extends Wc{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Yc({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Yc({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return nc(e,"POST","/v1/accounts:signInWithPhoneNumber",ec(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const r=await nc(e,"POST","/v1/accounts:signInWithPhoneNumber",ec(e,t));if(r.temporaryProof)throw sc(e,"account-exists-with-different-credential",r);return r}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return nc(e,"POST","/v1/accounts:signInWithPhoneNumber",ec(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Gc)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new Yc({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}
953
953
  /**
954
954
  * @license
955
955
  * Copyright 2020 Google LLC
@@ -997,7 +997,7 @@ class Yc extends Wc{constructor(e){super("phone","phone"),this.params=e}static _
997
997
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
998
998
  * See the License for the specific language governing permissions and
999
999
  * limitations under the License.
1000
- */class Zc extends Xc{constructor(){super("facebook.com")}static credential(e){return Gc._fromParams({providerId:Zc.PROVIDER_ID,signInMethod:Zc.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Zc.credentialFromTaggedObject(e)}static credentialFromError(e){return Zc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return Zc.credential(e.oauthAccessToken)}catch(t){return null}}}Zc.FACEBOOK_SIGN_IN_METHOD="facebook.com",Zc.PROVIDER_ID="facebook.com";
1000
+ */class Zc extends Xc{constructor(){super("facebook.com")}static credential(e){return Jc._fromParams({providerId:Zc.PROVIDER_ID,signInMethod:Zc.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Zc.credentialFromTaggedObject(e)}static credentialFromError(e){return Zc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return Zc.credential(e.oauthAccessToken)}catch(t){return null}}}Zc.FACEBOOK_SIGN_IN_METHOD="facebook.com",Zc.PROVIDER_ID="facebook.com";
1001
1001
  /**
1002
1002
  * @license
1003
1003
  * Copyright 2020 Google LLC
@@ -1014,7 +1014,7 @@ class Yc extends Wc{constructor(e){super("phone","phone"),this.params=e}static _
1014
1014
  * See the License for the specific language governing permissions and
1015
1015
  * limitations under the License.
1016
1016
  */
1017
- class el extends Xc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Gc._fromParams({providerId:el.PROVIDER_ID,signInMethod:el.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return el.credentialFromTaggedObject(e)}static credentialFromError(e){return el.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return el.credential(t,r)}catch(n){return null}}}el.GOOGLE_SIGN_IN_METHOD="google.com",el.PROVIDER_ID="google.com";
1017
+ class el extends Xc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Jc._fromParams({providerId:el.PROVIDER_ID,signInMethod:el.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return el.credentialFromTaggedObject(e)}static credentialFromError(e){return el.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return el.credential(t,r)}catch(n){return null}}}el.GOOGLE_SIGN_IN_METHOD="google.com",el.PROVIDER_ID="google.com";
1018
1018
  /**
1019
1019
  * @license
1020
1020
  * Copyright 2020 Google LLC
@@ -1031,7 +1031,7 @@ class el extends Xc{constructor(){super("google.com"),this.addScope("profile")}s
1031
1031
  * See the License for the specific language governing permissions and
1032
1032
  * limitations under the License.
1033
1033
  */
1034
- class tl extends Xc{constructor(){super("github.com")}static credential(e){return Gc._fromParams({providerId:tl.PROVIDER_ID,signInMethod:tl.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return tl.credentialFromTaggedObject(e)}static credentialFromError(e){return tl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return tl.credential(e.oauthAccessToken)}catch(t){return null}}}tl.GITHUB_SIGN_IN_METHOD="github.com",tl.PROVIDER_ID="github.com";
1034
+ class tl extends Xc{constructor(){super("github.com")}static credential(e){return Jc._fromParams({providerId:tl.PROVIDER_ID,signInMethod:tl.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return tl.credentialFromTaggedObject(e)}static credentialFromError(e){return tl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return tl.credential(e.oauthAccessToken)}catch(t){return null}}}tl.GITHUB_SIGN_IN_METHOD="github.com",tl.PROVIDER_ID="github.com";
1035
1035
  /**
1036
1036
  * @license
1037
1037
  * Copyright 2020 Google LLC
@@ -1048,7 +1048,7 @@ class tl extends Xc{constructor(){super("github.com")}static credential(e){retur
1048
1048
  * See the License for the specific language governing permissions and
1049
1049
  * limitations under the License.
1050
1050
  */
1051
- class rl extends Xc{constructor(){super("twitter.com")}static credential(e,t){return Gc._fromParams({providerId:rl.PROVIDER_ID,signInMethod:rl.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return rl.credentialFromTaggedObject(e)}static credentialFromError(e){return rl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return rl.credential(t,r)}catch(n){return null}}}rl.TWITTER_SIGN_IN_METHOD="twitter.com",rl.PROVIDER_ID="twitter.com";
1051
+ class rl extends Xc{constructor(){super("twitter.com")}static credential(e,t){return Jc._fromParams({providerId:rl.PROVIDER_ID,signInMethod:rl.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return rl.credentialFromTaggedObject(e)}static credentialFromError(e){return rl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return rl.credential(t,r)}catch(n){return null}}}rl.TWITTER_SIGN_IN_METHOD="twitter.com",rl.PROVIDER_ID="twitter.com";
1052
1052
  /**
1053
1053
  * @license
1054
1054
  * Copyright 2020 Google LLC
@@ -1311,7 +1311,7 @@ const Ol=1e12;class Al{constructor(e){this.auth=e,this.counter=Ol,this._widgets=
1311
1311
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
1312
  * See the License for the specific language governing permissions and
1313
1313
  * limitations under the License.
1314
- */(50);const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(Ld){}this.timerId=window.setTimeout((()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(Ld){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Nl=Hc("rcb"),xl=new Ja(3e4,6e4);class Ll{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=_l().grecaptcha)||void 0===e?void 0:e.render)}load(e,t=""){return Ha(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)&&ac(_l().grecaptcha)?Promise.resolve(_l().grecaptcha):new Promise(((r,n)=>{const i=_l().setTimeout((()=>{n(Ba(e,"network-request-failed"))}),xl.get());_l()[Nl]=()=>{_l().clearTimeout(i),delete _l()[Nl];const o=_l().grecaptcha;if(!o||!ac(o))return void n(Ba(e,"internal-error"));const s=o.render;o.render=(e,t)=>{const r=s(e,t);return this.counter++,r},this.hostLanguage=t,r(o)};zc(`https://www.google.com/recaptcha/api.js??${ws({onload:Nl,render:"explicit",hl:t})}`).catch((()=>{clearTimeout(i),n(Ba(e,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=_l().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Dl{async load(e){return new Al(e)}clearedOneInstance(){}}
1314
+ */(50);const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(Ld){}this.timerId=window.setTimeout((()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(Ld){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Nl=Hc("rcb"),xl=new Ga(3e4,6e4);class Ll{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=_l().grecaptcha)||void 0===e?void 0:e.render)}load(e,t=""){return Ha(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)&&ac(_l().grecaptcha)?Promise.resolve(_l().grecaptcha):new Promise(((r,n)=>{const i=_l().setTimeout((()=>{n(Ba(e,"network-request-failed"))}),xl.get());_l()[Nl]=()=>{_l().clearTimeout(i),delete _l()[Nl];const o=_l().grecaptcha;if(!o||!ac(o))return void n(Ba(e,"internal-error"));const s=o.render;o.render=(e,t)=>{const r=s(e,t);return this.counter++,r},this.hostLanguage=t,r(o)};zc(`https://www.google.com/recaptcha/api.js??${ws({onload:Nl,render:"explicit",hl:t})}`).catch((()=>{clearTimeout(i),n(Ba(e,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=_l().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Dl{async load(e){return new Al(e)}clearedOneInstance(){}}
1315
1315
  /**
1316
1316
  * @license
1317
1317
  * Copyright 2020 Google LLC
@@ -1425,7 +1425,7 @@ async function(e,t,r=!1){const{auth:n}=e,i="reauthenticate";try{const o=await dc
1425
1425
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1426
1426
  * See the License for the specific language governing permissions and
1427
1427
  * limitations under the License.
1428
- */const Wl=new Ja(2e3,1e4);class Kl extends ql{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,Kl.currentPopupAction&&Kl.currentPopupAction.cancel(),Kl.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ha(e,this.auth,"internal-error"),e}async onExecution(){$a(1===this.filter.length,"Popup operations only handle one event");const e=ml();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(Ba(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(Ba(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Kl.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,r;(null===(r=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===r?void 0:r.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(Ba(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,Wl.get())};e()}}Kl.currentPopupAction=null;
1428
+ */const Wl=new Ga(2e3,1e4);class Kl extends ql{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,Kl.currentPopupAction&&Kl.currentPopupAction.cancel(),Kl.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ha(e,this.auth,"internal-error"),e}async onExecution(){$a(1===this.filter.length,"Popup operations only handle one event");const e=ml();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(Ba(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(Ba(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Kl.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,r;(null===(r=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===r?void 0:r.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(Ba(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,Wl.get())};e()}}Kl.currentPopupAction=null;
1429
1429
  /**
1430
1430
  * @license
1431
1431
  * Copyright 2020 Google LLC
@@ -1442,7 +1442,7 @@ async function(e,t,r=!1){const{auth:n}=e,i="reauthenticate";try{const o=await dc
1442
1442
  * See the License for the specific language governing permissions and
1443
1443
  * limitations under the License.
1444
1444
  */
1445
- const Gl="pendingRedirect",Jl=new Map;class Yl extends ql{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=Jl.get(this.auth._key());if(!e){try{const t=await async function(e,t){const r=function(e){return Ec(Gl,e.config.apiKey,e.name)}(t),n=function(e){return yc(e._redirectPersistence)}(e);if(!(await n._isAvailable()))return!1;const i="true"===await n._get(r);return await n._remove(r),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(Ld){e=()=>Promise.reject(Ld)}Jl.set(this.auth._key(),e)}return this.bypassAuthState||Jl.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Ql(e,t){Jl.set(e._key(),t)}async function Xl(e,t,r=!1){const n=Fc(e),i=
1445
+ const Jl="pendingRedirect",Gl=new Map;class Yl extends ql{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=Gl.get(this.auth._key());if(!e){try{const t=await async function(e,t){const r=function(e){return Ec(Jl,e.config.apiKey,e.name)}(t),n=function(e){return yc(e._redirectPersistence)}(e);if(!(await n._isAvailable()))return!1;const i="true"===await n._get(r);return await n._remove(r),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(Ld){e=()=>Promise.reject(Ld)}Gl.set(this.auth._key(),e)}return this.bypassAuthState||Gl.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Ql(e,t){Gl.set(e._key(),t)}async function Xl(e,t,r=!1){const n=Fc(e),i=
1446
1446
  /**
1447
1447
  * @license
1448
1448
  * Copyright 2021 Google LLC
@@ -1524,7 +1524,7 @@ const ru=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nu=/^https?/;async function iu(e
1524
1524
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1525
1525
  * See the License for the specific language governing permissions and
1526
1526
  * limitations under the License.
1527
- */const su=new Ja(3e4,6e4);function au(){const e=_l().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let r=0;r<e.CP.length;r++)e.CP[r]=null}let cu=null;function lu(e){return cu=cu||function(e){return new Promise(((t,r)=>{var n,i,o;function s(){au(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{au(),r(Ba(e,"network-request-failed"))},timeout:su.get()})}if(null===(i=null===(n=_l().gapi)||void 0===n?void 0:n.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=_l().gapi)||void 0===o?void 0:o.load)){const t=Hc("iframefcb");return _l()[t]=()=>{gapi.load?s():r(Ba(e,"network-request-failed"))},zc(`https://apis.google.com/js/api.js?onload=${t}`).catch((e=>r(e)))}s()}})).catch((e=>{throw cu=null,e}))}(e),cu}
1527
+ */const su=new Ga(3e4,6e4);function au(){const e=_l().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let r=0;r<e.CP.length;r++)e.CP[r]=null}let cu=null;function lu(e){return cu=cu||function(e){return new Promise(((t,r)=>{var n,i,o;function s(){au(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{au(),r(Ba(e,"network-request-failed"))},timeout:su.get()})}if(null===(i=null===(n=_l().gapi)||void 0===n?void 0:n.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=_l().gapi)||void 0===o?void 0:o.load)){const t=Hc("iframefcb");return _l()[t]=()=>{gapi.load?s():r(Ba(e,"network-request-failed"))},zc(`https://apis.google.com/js/api.js?onload=${t}`).catch((e=>r(e)))}s()}})).catch((e=>{throw cu=null,e}))}(e),cu}
1528
1528
  /**
1529
1529
  * @license
1530
1530
  * Copyright 2020 Google LLC.
@@ -1540,7 +1540,7 @@ const ru=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nu=/^https?/;async function iu(e
1540
1540
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1541
1541
  * See the License for the specific language governing permissions and
1542
1542
  * limitations under the License.
1543
- */const uu=new Ja(5e3,15e3),du="__/auth/iframe",hu="emulator/auth/iframe",pu={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fu=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function mu(e){const t=e.config;Ha(t.authDomain,e,"auth-domain-config-required");const r=t.emulator?Ya(t,hu):`https://${e.config.authDomain}/${du}`,n={apiKey:t.apiKey,appName:e.name,v:da},i=fu.get(e.config.apiHost);i&&(n.eid=i);const o=e._getFrameworks();return o.length&&(n.fw=o.join(",")),`${r}?${ws(n).slice(1)}`}
1543
+ */const uu=new Ga(5e3,15e3),du="__/auth/iframe",hu="emulator/auth/iframe",pu={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fu=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function mu(e){const t=e.config;Ha(t.authDomain,e,"auth-domain-config-required");const r=t.emulator?Ya(t,hu):`https://${e.config.authDomain}/${du}`,n={apiKey:t.apiKey,appName:e.name,v:da},i=fu.get(e.config.apiHost);i&&(n.eid=i);const o=e._getFrameworks();return o.length&&(n.fw=o.join(",")),`${r}?${ws(n).slice(1)}`}
1544
1544
  /**
1545
1545
  * @license
1546
1546
  * Copyright 2020 Google LLC.
@@ -1687,11 +1687,11 @@ pa("firebase","10.5.2","app");let xu=null,Lu=null;const Du=()=>{if(!xu){if(!Lu)t
1687
1687
  ${()=>({marginBottom:"0.75rem",fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600"})}
1688
1688
  `,Ku=f("div")`
1689
1689
  ${()=>({marginBottom:"1rem"})}
1690
- `,Gu=f("input")`
1690
+ `,Ju=f("input")`
1691
1691
  ${()=>({maxHeight:"3.5rem",borderRadius:"0.375rem",borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgb(248 249 250 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem"})}
1692
1692
  height: 48px;
1693
1693
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s !important;
1694
- `,Ju=f("div")`
1694
+ `,Gu=f("div")`
1695
1695
  ${()=>({marginBottom:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600"})}
1696
1696
  `,Yu=f("div")`
1697
1697
  ${()=>({display:"flex",alignItems:"center",justifyContent:"space-between"})}
@@ -1710,8 +1710,8 @@ pa("firebase","10.5.2","app");let xu=null,Lu=null;const Du=()=>{if(!xu){if(!Lu)t
1710
1710
  & > .spin {
1711
1711
  ${()=>({height:"5rem",width:"5rem",borderWidth:"4px","--tw-text-opacity":"1",color:"rgb(46 102 247 / var(--tw-text-opacity))"})}
1712
1712
  }
1713
- `,ed=({onClick:e,disabled:t,children:r})=>{const n=we(!0),[i,o]=ge(!1);return ve((()=>()=>{n.current=!1}),[]),ui(Vu,{onClick:()=>{o(!0),e().finally((()=>{n.current&&o(!1)}))},disabled:t,"data-loading":i,children:[i&&ui(zu,{}),r]})},td=/\D/g,rd=({onChangeText:e})=>{const t=ke((e=>{var t;(null==(t=e.key)?void 0:t.replace(td,""))||e.preventDefault()}),[]);return ui(Qu,{type:"text",maxLength:1,onKeyDown:t,onChange:t=>e(t.currentTarget.value),onCopy:e=>e.preventDefault(),onPaste:e=>e.preventDefault(),onDrag:e=>e.preventDefault(),onDrop:e=>e.preventDefault(),onFocus:e=>e.currentTarget&&e.currentTarget.select()})},nd=({onChangeText:e})=>{const t=we(""),r=we(Array(6).fill(null));ve((()=>{var e;const t=null==(e=r.current[0])?void 0:e.base;null==t||t.focus()}),[]);const n=ke(((n,i)=>{n&&(e=>{var t,n;const i=null==(t=r.current[e+1])?void 0:t.base;if(i)i.focus();else{const t=null==(n=r.current[e])?void 0:n.base;null==t||t.blur()}})(i);const o=t.current,s=o.substring(0,i)+n+o.substring(i+1);t.current=s,e(s)}),[e]);return ui(Yu,{children:Array(6).fill("").map(((e,t)=>ui(rd,{ref:e=>r.current[t]=e,onChangeText:e=>{n(e,t)}},t)))})},id=()=>{const{authState:e,resendOtp:t,verifyOtp:r}=Bu(),[n,i]=ge(""),o=Ee((()=>"error"!==e.state||"verifying"!==e.occuredWhen&&"resending"!==e.occuredWhen?void 0:e.error),[e]),s=t,a=ke((async()=>{await r(n)}),[r,n]);return ui(N,{children:[ui(Wu,{children:"Verify your mobile number"}),ui(Ku,{children:"Enter your 6 digit verification code"}),ui(Ku,{children:["Didn't receive a code?"," ",ui($u,{onClick:s,children:ui(N,{children:"Resend"})})]}),ui(nd,{onChangeText:i}),ui(Xu,{children:o}),ui(ed,{disabled:!n,onClick:a,children:ui(N,{children:"Verify"})})]})},od=["+","Backspace","Delete",...[...Array(10).keys()].map(String)],sd=e=>e.startsWith("+"),ad=e=>"0"===e||"04"===e.substring(0,2),cd=()=>{const{authState:e,sendOtp:t}=Bu(),[r,n]=ge(""),[i,o]=ge(""),s=Ee((()=>sd(r)||ad(r)),[r]),a=ke((e=>{od.find((t=>t===e.key))||e.preventDefault()}),[]),c=ke((e=>{const t=(e=>e.replace(/ /g,""))(e.currentTarget.value),r=ad(t)?((e,t)=>{let r=0;return e.replace(/#/g,(()=>t[r++]??"")).trim()})("#### ### ### ### ### ### ###",t):t;n(r)}),[n]),l=ke((async()=>{const e=sd(r)?r:`+61${r}`;await t(e)}),[t,r]);return ve((()=>{"error"===e.state&&"sending"===e.occuredWhen?o(e.error):o("")}),[e]),ve((()=>{o(r&&!s?Nu.INVALID_PHONE_NUMBER:"")}),[r,s]),ui(N,{children:[ui(Wu,{children:"Enter your mobile number"}),ui(Ku,{children:"Connect your workplace to Flare using your personal mobile number"}),ui(Ju,{children:"Mobile number"}),ui(Gu,{type:"tel",autoFocus:!0,placeholder:"0400 000 000","aria-label":"Mobile number",value:r,onInput:c,onKeyDown:a}),ui(Xu,{children:i}),ui(ed,{onClick:l,disabled:!s,children:ui(N,{children:"Continue"})})]})},ld=()=>ui(Zu,{children:[ui(zu,{className:"spin"}),ui(Ku,{children:"Please wait while we process your information."})]}),ud="INVISIBLE_RECAPTCHA_VERIFIER_ID",dd=()=>{const{authState:e,init:t}=Bu(),[r,n]=ge(0);return ve((()=>{t(ud)}),[t]),ve((()=>{"sent"===e.state?n(1):"verifying"===e.state?n(2):"error"===e.state&&"verifying"===e.occuredWhen&&n(1)}),[e,n]),ui(N,{children:[ui(qu,{src:"https://www.flarehr.com/wp-content/uploads/2022/03/flare-logo.svg",alt:"Flare Logo"}),0===r&&ui(cd,{}),1===r&&ui(id,{}),2===r&&ui(ld,{}),ui("div",{id:ud})]})},hd=()=>ui(Fu,{children:ui(dd,{})}),pd=f("div")`
1713
+ `,ed=({onClick:e,disabled:t,children:r})=>{const n=we(!0),[i,o]=ge(!1);return ve((()=>()=>{n.current=!1}),[]),ui(Vu,{onClick:()=>{o(!0),e().finally((()=>{n.current&&o(!1)}))},disabled:t,"data-loading":i,children:[i&&ui(zu,{}),r]})},td=/\D/g,rd=({onChangeText:e})=>{const t=ke((e=>{var t;(null==(t=e.key)?void 0:t.replace(td,""))||e.preventDefault()}),[]);return ui(Qu,{type:"text",maxLength:1,onKeyDown:t,onChange:t=>e(t.currentTarget.value),onCopy:e=>e.preventDefault(),onPaste:e=>e.preventDefault(),onDrag:e=>e.preventDefault(),onDrop:e=>e.preventDefault(),onFocus:e=>e.currentTarget&&e.currentTarget.select()})},nd=({onChangeText:e})=>{const t=we(""),r=we(Array(6).fill(null));ve((()=>{var e;const t=null==(e=r.current[0])?void 0:e.base;null==t||t.focus()}),[]);const n=ke(((n,i)=>{n&&(e=>{var t,n;const i=null==(t=r.current[e+1])?void 0:t.base;if(i)i.focus();else{const t=null==(n=r.current[e])?void 0:n.base;null==t||t.blur()}})(i);const o=t.current,s=o.substring(0,i)+n+o.substring(i+1);t.current=s,e(s)}),[e]);return ui(Yu,{children:Array(6).fill("").map(((e,t)=>ui(rd,{ref:e=>r.current[t]=e,onChangeText:e=>{n(e,t)}},t)))})},id=()=>{const{authState:e,resendOtp:t,verifyOtp:r}=Bu(),[n,i]=ge(""),o=Ee((()=>"error"!==e.state||"verifying"!==e.occuredWhen&&"resending"!==e.occuredWhen?void 0:e.error),[e]),s=t,a=ke((async()=>{await r(n)}),[r,n]);return ui(N,{children:[ui(Wu,{children:"Verify your mobile number"}),ui(Ku,{children:"Enter your 6 digit verification code"}),ui(Ku,{children:["Didn't receive a code?"," ",ui($u,{onClick:s,children:ui(N,{children:"Resend"})})]}),ui(nd,{onChangeText:i}),ui(Xu,{children:o}),ui(ed,{disabled:!n,onClick:a,children:ui(N,{children:"Verify"})})]})},od=["+","Backspace","Delete",...[...Array(10).keys()].map(String)],sd=e=>e.startsWith("+"),ad=e=>"0"===e||"04"===e.substring(0,2),cd=()=>{const{authState:e,sendOtp:t}=Bu(),[r,n]=ge(""),[i,o]=ge(""),s=Ee((()=>sd(r)||ad(r)),[r]),a=ke((e=>{od.find((t=>t===e.key))||e.preventDefault()}),[]),c=ke((e=>{const t=(e=>e.replace(/ /g,""))(e.currentTarget.value),r=ad(t)?((e,t)=>{let r=0;return e.replace(/#/g,(()=>t[r++]??"")).trim()})("#### ### ### ### ### ### ###",t):t;n(r)}),[n]),l=ke((async()=>{const e=sd(r)?r:`+61${r}`;await t(e)}),[t,r]);return ve((()=>{"error"===e.state&&"sending"===e.occuredWhen?o(e.error):o("")}),[e]),ve((()=>{o(r&&!s?Nu.INVALID_PHONE_NUMBER:"")}),[r,s]),ui(N,{children:[ui(Wu,{children:"Enter your mobile number"}),ui(Ku,{children:"Connect your workplace to Flare using your personal mobile number"}),ui(Gu,{children:"Mobile number"}),ui(Ju,{type:"tel",autoFocus:!0,placeholder:"0400 000 000","aria-label":"Mobile number",value:r,onInput:c,onKeyDown:a}),ui(Xu,{children:i}),ui(ed,{onClick:l,disabled:!s,children:ui(N,{children:"Continue"})})]})},ld=()=>ui(Zu,{children:[ui(zu,{className:"spin"}),ui(Ku,{children:"Please wait while we process your information."})]}),ud="INVISIBLE_RECAPTCHA_VERIFIER_ID",dd=()=>{const{authState:e,init:t}=Bu(),[r,n]=ge(0);return ve((()=>{t(ud)}),[t]),ve((()=>{"sent"===e.state?n(1):"verifying"===e.state?n(2):"error"===e.state&&"verifying"===e.occuredWhen&&n(1)}),[e,n]),ui(N,{children:[ui(qu,{src:"https://www.flarehr.com/wp-content/uploads/2022/03/flare-logo.svg",alt:"Flare Logo"}),0===r&&ui(cd,{}),1===r&&ui(id,{}),2===r&&ui(ld,{}),ui("div",{id:ud})]})},hd=()=>ui(Fu,{children:ui(dd,{})}),pd=f("div")`
1714
1714
  ${()=>({display:"flex",flexDirection:"column",justifyContent:"center",paddingLeft:"3rem",paddingRight:"3rem",paddingTop:"3rem",paddingBottom:"3rem","--tw-text-opacity":"1",color:"rgb(25 44 84 / var(--tw-text-opacity))"})}
1715
1715
  width: 500px;
1716
1716
  height: 500px;
1717
- `,fd=e=>{const{idToken:t}=(()=>{const[e,t]=ge(""),r=Du().beforeAuthStateChanged((async e=>{t(await(null==e?void 0:e.getIdToken())??"")}));return ve((()=>r),[r]),{idToken:e}})(),[r,n]=ge(0),{apolloAccessToken:i}=e,[o,s]=ge("");vr((async e=>{try{switch(r){case 0:await(async e=>{var t;try{const r=await kr(i,e);return s((null==(t=r.linkRequest)?void 0:t.linkRequestId)??""),{isEstablished:r.isEstablished}}catch(Ld){throw`[Link Workplace]: Error when requesting a workplace link: ${Ld}`}})(e).then((e=>{e.isEstablished?n(5):n(1)}));break;case 1:t&&n(2);break;case 2:n(3);break;case 3:await(async(e,r)=>{const{sub:n}=Me(i);try{return await Ir(t,e,n,r)}catch(Ld){throw`[Link Workplace]: Error when trying to establish workplace link: ${Ld}`}})(o,e),n(5);break;case 5:rs()}}catch(Ld){console.log(Ld),n(4)}}),[r,t]);const a=void 0===r||0==r||3==r;return ui(pd,{children:[a&&ui(di,{isActive:a}),1===r&&ui(hd,{}),4===r&&ui(ts,{}),5===r&&ui(Qo,{})]})},md=e=>ui("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[ui("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",className:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),ui("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",className:"light"===e.theme?"fill-white":"fill-primary-base"})]}),gd=e=>{const[t,r]=ge(!1);return ui("button",{type:"button",className:`inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm 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 ${e.class} `,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){r(!0);try{await e.onClickPromise()}catch(n){}r(!1)}},children:[ui("div",{className:"relative "+(t?"invisible":""),children:e.children}),t&&ui("div",{className:"absolute animate-spin",children:ui(md,{theme:"light"})})]})},_d=({className:e,label:t,allowedKeyPattern:r,onChange:n,value:i,...o})=>{const s=ke((e=>{r.test(e.key)||e.preventDefault()}),[r]);return ui(N,{children:[ui("label",{className:"font-medium text-sm text-gray-900 text-left",children:ui("span",{children:t})}),ui("input",{type:"text",className:`p-2 border-0 ring-2 ring-gray-200 focus:outline-none focus-visible:ring-gray-500 text-base font-medium rounded-md shadow-sm w-full ${e}`,value:i,onKeyPress:s,onChange:e=>n(e.currentTarget.value),...o})]})},vd=({className:e,children:t})=>ui("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),yd=({className:e,children:t})=>ui("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),wd=e=>{switch(e){case"sign-up-viewed":case"sign-up-completed":case"sign-up-declined":return new Promise((()=>{}))}};var bd=Object.defineProperty,Ed=(e,t,r)=>(((e,t,r)=>{t in e?bd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let kd=new class{constructor(){Ed(this,"current",this.detect()),Ed(this,"handoffState","pending"),Ed(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}},Id=(e,t)=>{kd.isServer?ve(e,t):ye(e,t)};function Td(e){let t=we(e);return Id((()=>{t.current=e}),[e]),t}function Cd(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add((()=>e.removeEventListener(r,n,i)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=Cd();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Sd(){let[e]=ge(Cd);return ve((()=>()=>e.dispose()),[e]),e}let Rd=function(e){let t=Td(e);return bo.useCallback(((...e)=>t.current(...e)),[t])};function Od(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Eo&&Eo.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=ge(kd.isHandoffComplete);return t&&!1===kd.isHandoffComplete&&r(!1),ve((()=>{!0!==t&&r(!0)}),[t]),ve((()=>kd.handoff()),[]),!e&&t}function Ad(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=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(n,Ad),n}let Pd=Symbol();function Nd(...e){let t=we(e);ve((()=>{t.current=e}),[e]);let r=Rd((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Pd])))?void 0:r}function xd(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Ld,Dd,Md=((Dd=Md||{})[Dd.None=0]="None",Dd[Dd.RenderStrategy=1]="RenderStrategy",Dd[Dd.Static=2]="Static",Dd),Ud=((Ld=Ud||{})[Ld.Unmount=0]="Unmount",Ld[Ld.Hidden=1]="Hidden",Ld);function jd({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:s}){let a=Bd(t,e);if(o)return Fd(a,r,n,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=a;if(e)return Fd(t,r,n,s)}if(1&c){let{unmount:e=!0,...t}=a;return Ad(e?0:1,{0:()=>null,1:()=>Fd({...t,hidden:!0,style:{display:"none"}},r,n,s)})}return Fd(a,r,n,s)}function Fd(e,t={},r,n){let{as:i=r,children:o,refName:s="ref",...a}=Vd(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof o?o(t):o;"className"in a&&a.className&&"function"==typeof a.className&&(a.className=a.className(t));let u={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(u["data-headlessui-state"]=r.join(" "))}if(i===N&&Object.keys(Hd(a)).length>0){if(!so(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).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=l.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>xd(null==e?void 0:e.className(...t),a.className):xd(null==e?void 0:e.className,a.className),r=t?{className:t}:{};return co(l,Object.assign({},Bd(l.props,Hd(Vd(a,["ref"]))),u,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(l.ref,c.ref),r))}return O(i,Object.assign({},Vd(a,["ref"]),i!==N&&c,i!==N&&u),l)}function Bd(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let n in r)Object.assign(t,{[n](e,...t){let i=r[n];for(let r of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;r(e,...t)}}});return t}function zd(e){var t;return Object.assign(Ci(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Hd(e){let t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}function Vd(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let $d=re(null);$d.displayName="OpenClosedContext";var qd=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qd||{});function Wd(){return Ie($d)}function Kd({value:e,children:t}){return bo.createElement($d.Provider,{value:e},t)}function Gd(){let e=we(!1);return Id((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Jd(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yd(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Qd(e,t,r,n){let i=r?"enter":"leave",o=Cd(),s=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let a=Ad(i,{enter:()=>t.enter,leave:()=>t.leave}),c=Ad(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=Ad(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Yd(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Jd(e,...t.base,...a,...l),o.nextFrame((()=>{Yd(e,...t.base,...a,...l),Jd(e,...t.base,...a,...c),function(e,t){let r=Cd();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,s]=[n,i].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})),a=o+s;if(0!==a){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),a),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let n=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Yd(e,...t.base,...a),Jd(e,...t.base,...t.entered),s())))})),o.dispose}function Xd(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Zd=re(null);Zd.displayName="TransitionContext";var eh,th=((eh=th||{}).Visible="visible",eh.Hidden="hidden",eh);let rh=re(null);function nh(e){return"children"in e?nh(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ih(e,t){let r=Td(e),n=we([]),i=Gd(),o=Sd(),s=Rd(((e,t=Ud.Hidden)=>{let s=n.current.findIndex((({el:t})=>t===e));-1!==s&&(Ad(t,{[Ud.Unmount](){n.current.splice(s,1)},[Ud.Hidden](){n.current[s].state="hidden"}}),o.microTask((()=>{var e;!nh(n)&&i.current&&(null==(e=r.current)||e.call(r))})))})),a=Rd((e=>{let t=n.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>s(e,Ud.Unmount)})),c=we([]),l=we(Promise.resolve()),u=we({enter:[],leave:[],idle:[]}),d=Rd(((e,r,n)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(u.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?l.current=l.current.then((()=>null==t?void 0:t.wait.current)).then((()=>n(r))):n(r)})),h=Rd(((e,t,r)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return Ee((()=>({children:n,register:a,unregister:s,onStart:d,onStop:h,wait:l,chains:u})),[a,s,n,d,h,u,l])}function oh(){}rh.displayName="NestingContext";let sh=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ah(e){var t;let r={};for(let n of sh)r[n]=null!=(t=e[n])?t:oh;return r}let ch=Md.RenderStrategy;let lh=zd((function(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,s=we(null),a=Nd(s,t);Od();let c=Wd();if(void 0===r&&null!==c&&(r=(c&qd.Open)===qd.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=ge(r?"visible":"hidden"),d=ih((()=>{u("hidden")})),[h,p]=ge(!0),f=we([r]);Id((()=>{!1!==h&&f.current[f.current.length-1]!==r&&(f.current.push(r),p(!1))}),[f,r]);let m=Ee((()=>({show:r,appear:n,initial:h})),[r,n,h]);ve((()=>{if(r)u("visible");else if(nh(d)){let e=s.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")}),[r,d]);let g={unmount:i},_=Rd((()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),v=Rd((()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)}));return bo.createElement(rh.Provider,{value:d},bo.createElement(Zd.Provider,{value:m},jd({ourProps:{...g,as:N,children:bo.createElement(uh,{ref:a,...g,...o,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:N,features:ch,visible:"visible"===l,name:"Transition"})))})),uh=zd((function(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a,enter:c,enterFrom:l,enterTo:u,entered:d,leave:h,leaveFrom:p,leaveTo:f,...m}=e,g=we(null),_=Nd(g,t),v=null==(r=m.unmount)||r?Ud.Unmount:Ud.Hidden,{show:y,appear:w,initial:b}=function(){let e=Ie(Zd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,k]=ge(y?"visible":"hidden"),I=function(){let e=Ie(rh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:T,unregister:C}=I;ve((()=>T(g)),[T,g]),ve((()=>{if(v===Ud.Hidden&&g.current)return y&&"visible"!==E?void k("visible"):Ad(E,{hidden:()=>C(g),visible:()=>T(g)})}),[E,g,T,C,y,v]);let S=Td({base:Xd(m.className),enter:Xd(c),enterFrom:Xd(l),enterTo:Xd(u),entered:Xd(d),leave:Xd(h),leaveFrom:Xd(p),leaveTo:Xd(f)}),R=function(e){let t=we(ah(e));return ve((()=>{t.current=ah(e)}),[e]),t}({beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a}),O=Od();ve((()=>{if(O&&"visible"===E&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,E,O]);let A=w&&y&&b,P=!O||b&&!w?"idle":y?"enter":"leave",N=function(e=0){let[t,r]=ge(e),n=Gd(),i=ke((e=>{n.current&&r((t=>t|e))}),[t,n]),o=ke((e=>Boolean(t&e)),[t]),s=ke((e=>{n.current&&r((t=>t&~e))}),[r,n]),a=ke((e=>{n.current&&r((t=>t^e))}),[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}(0),x=Rd((e=>Ad(e,{enter:()=>{N.addFlag(qd.Opening),R.current.beforeEnter()},leave:()=>{N.addFlag(qd.Closing),R.current.beforeLeave()},idle:()=>{}}))),L=Rd((e=>Ad(e,{enter:()=>{N.removeFlag(qd.Opening),R.current.afterEnter()},leave:()=>{N.removeFlag(qd.Closing),R.current.afterLeave()},idle:()=>{}}))),D=ih((()=>{k("hidden"),C(g)}),I);!function({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let s=Gd(),a=Sd(),c=Td(r);Id((()=>{e&&(c.current="enter")}),[e]),Id((()=>{let e=Cd();a.add(e.dispose);let r=t.current;if(r&&"idle"!==c.current&&s.current)return e.dispose(),i.current(c.current),e.add(Qd(r,n.current,"enter"===c.current,(()=>{e.dispose(),o.current(c.current)}))),e.dispose}),[r])}({immediate:A,container:g,classes:S,direction:P,onStart:Td((e=>{D.onStart(g,e,x)})),onStop:Td((e=>{D.onStop(g,e,L),"leave"===e&&!nh(D)&&(k("hidden"),C(g))}))});let M=m,U={ref:_};return A?M={...M,className:xd(m.className,...S.current.enter,...S.current.enterFrom)}:(M.className=xd(m.className,null==(n=g.current)?void 0:n.className),""===M.className&&delete M.className),bo.createElement(rh.Provider,{value:D},bo.createElement(Kd,{value:Ad(E,{visible:qd.Open,hidden:qd.Closed})|N.flags},jd({ourProps:U,theirProps:M,defaultTag:"div",features:ch,visible:"visible"===E,name:"Transition.Child"})))})),dh=zd((function(e,t){let r=null!==Ie(Zd),n=null!==Wd();return bo.createElement(bo.Fragment,null,!r&&n?bo.createElement(lh,{ref:t,...e}):bo.createElement(uh,{ref:t,...e}))})),hh=Object.assign(lh,{Child:dh,Root:lh});const ph=({children:e})=>{const t=bo.Children.toArray(e),r=t.find((e=>e.type===fh)),n=t.find((e=>e.type===mh));return ui(hh,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",class:"opacity-0",children:ui("div",{className:"my-20 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[ui(hh,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6",children:r&&ui("div",{className:"flex items-center h-full",children:r})}),ui(hh,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",class:"opacity-0 -translate-y-6",children:n&&ui("div",{className:"flex items-center h-full",children:n})})]})})},fh=({children:e})=>ui(N,{children:e}),mh=({children:e})=>ui(N,{children:e});ph.Top=fh,ph.Bottom=mh;const gh=/^04\d{1,14}/,_h=/^\+[1-9]\d{1,14}/,vh=e=>_h.test(e),yh=()=>{const[e,t]=ge(""),r=Ee((()=>e.replace(/ /g,"")),[e]);return{setPhoneNumber:t,phoneNumber:{valid:Ee((()=>{return vh(r)||(e=r,gh.test(e));var e}),[r]),formatted:Ee((()=>vh(r)?r:`+61${r.replace(/^0+/,"")}`),[r]),masked:Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(r)),[r])}}},wh=({onSubmit:e,onDecline:t})=>{const{trace:r}={trace:wd},[n,i]=ge(""),{setPhoneNumber:o,phoneNumber:s}=yh();ve((()=>{r("sign-up-viewed")}),[r]);const a=ke((()=>(i(""),e(s).then((()=>r("sign-up-completed"))).catch(i))),[s,e,r]);return ke((()=>r("sign-up-declined").then(t)),[t,r]),ui(ph,{children:[ui(ph.Top,{children:ui("div",{className:"flex flex-col gap-5",children:[ui(vd,{children:"Create your Flare Benefits account"}),ui(yd,{children:"Confirm your mobile number below to create your Flare Benefits account"})]})}),ui(ph.Bottom,{children:ui("div",{className:"mt-5 md:w-[300px] text-left",children:[ui(_d,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full",label:"Australian Mobile Number",value:s.masked,onChange:o}),n&&ui("span",{className:"text-xs text-rose-500",children:n}),ui("div",{className:"mt-5 font-medium text-sm text-gray-900",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",ui("a",{className:"text-primary-base",href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",ui("a",{className:"text-primary-base",href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]}),ui(gd,{class:"mt-5 md:w-full text-white",disabled:!s.valid,onClickPromise:a,children:"Create account"}),!1]})})]})},bh=""+new URL("assets/check-b48de75e.svg",import.meta.url).href,Eh=({onContinue:e})=>ui(ph,{children:[ui(ph.Top,{children:ui("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:ui(bh,{className:"h-7 w-7"})})}),ui(ph.Bottom,{children:ui("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[ui(vd,{children:"You now have access to Flare Benefits"}),ui(yd,{children:"With your benefits account, you now have access to a range of exclusive benefits through your workplace."}),ui(gd,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),kh=""+new URL("assets/left-arrow-38f55b24.svg",import.meta.url).href,Ih=({className:e,onClick:t,...r})=>{const[n,i]=ge(!1);return ui("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:ke((()=>{if(!n)return i(!0),t().finally((()=>{i(!1)}))}),[n,t]),...r,children:[ui("div",{className:"relative "+(n?"invisible":""),children:r.children}),n&&ui("div",{className:"absolute animate-spin",children:ui(md,{theme:"primary"})})]})},Th=({children:e,...t})=>ui("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Ch=({open:e})=>ui(Th,{open:e,children:ui("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[ui("span",{className:"animate-spin",children:ui(md,{size:"lg"})}),ui(vd,{children:"Creating your account"}),ui("div",{children:[ui(yd,{children:"This can take up to 30 seconds."}),ui(yd,{children:"Please don't navigate away or refresh your browser."})]})]})}),Sh=({phoneNumber:e,onVerify:t,onResendOtp:r,onGoBack:n})=>{const{otp:i,setOtp:o}=(()=>{const[e,t]=ge("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[s,a]=ge(!1),[c,l]=ge(""),{countdown:u,restart:d}=(e=>{const[t,r]=ge(e),n=we(),i=ke((()=>{clearInterval(n.current)}),[]);return ve((()=>i),[i]),{countdown:t,restart:ke((()=>{let t=e;clearInterval(n.current),n.current=setInterval((()=>{t<0?clearInterval(n.current):r(t--)}),1e3)}),[e])}})(60);ve(d,[d]);const h=ke((()=>(a(!0),l(""),t(i.code).catch(l).finally((()=>{a(!1)})))),[t,i.code]),p=ke((()=>(l(""),r().then(d).catch(l))),[r,d]);return ui(N,{children:[ui(Ch,{open:s}),ui(ph,{children:[ui(ph.Top,{children:ui("div",{className:"flex flex-col gap-5",children:[ui(vd,{children:"Verify your mobile number"}),ui(yd,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),ui(ph.Bottom,{children:ui("div",{className:"mt-5 md:w-[300px] text-left",children:[ui(_d,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full",label:"Enter your verification code",onChange:o}),c&&ui("span",{className:"text-xs text-rose-500",children:c}),ui("p",{className:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",ui(Ih,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:p,children:"Resend SMS"}),0!==u&&ui(N,{children:["in ",u," secs"]})]}),ui(gd,{class:"mt-5 md:w-full text-white",disabled:!i.valid,onClickPromise:h,children:"Continue"}),ui(gd,{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()=>{n()},children:ui("span",{className:"flex gap-3",children:[ui("img",{src:kh}),"Back"]})})]})})]})]})},Rh=({onSignUp:e,onVerify:t,onResendOtp:r,onSuccess:n,onDecline:i})=>{const[o,s]=ge(""),{step:a,goBack:c,goNext:l}=(e=>{const[t,r]=ge(1),n=ke((()=>{const e=t-1;e>=1&&r(e)}),[t]),i=ke((()=>{const n=t+1;n<=e&&r(n)}),[t,e]);return{step:t,goBack:n,goNext:i}})(3),u=ke((t=>e(t.formatted).then((()=>{s(t.masked),l()}))),[l,e]),d=ke((e=>t(e).then((()=>{n()}))),[t,n]);return ui(N,{children:[1===a&&ui(wh,{onSubmit:u,onDecline:i}),2===a&&ui(Sh,{phoneNumber:o,onVerify:d,onResendOtp:r,onGoBack:c}),3===a&&ui(Eh,{onContinue:n})]})},Oh=e=>{var t,r;throw"Auth_SessionExpired"===(null==(r=null==(t=e.response)?void 0:t.data)?void 0:r.code)&&window.location.reload(),e};let Ah;const Ph=()=>Ah;var Nh=(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))(Nh||{});const xh=e=>{var t;const r=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Nh[null==r?void 0:r.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Lh=()=>{const[e,t]=ge(!1),{signUp:r,verifyOtp:n,resendOtp:i}={signUp:async e=>{await Ph().post("auth/signUp",{mobileNumber:e}).catch(xh)},verifyOtp:async e=>{await Ph().post("auth/verify",{otp:e}).catch(xh)},resendOtp:async()=>{await Ph().post("auth/resend").catch(xh)}},o=()=>{t(!0),rs()};return e?ui(Qo,{}):ui(N,{children:ui("div",{className:"font-inter",children:[ui("style",{children:".pointer-events-none{pointer-events:none!important}.invisible{visibility:hidden!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.top-0{top:0!important}.z-50{z-index:50!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mb-1{margin-bottom:.25rem!important}.ml-3{margin-left:.75rem!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-20{margin-top:5rem!important}.mt-5{margin-top:1.25rem!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.h-10{height:2.5rem!important}.h-16{height:4rem!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-7{height:1.75rem!important}.h-\\[1\\.25rem\\]{height:1.25rem!important}.h-\\[1\\.5rem\\]{height:1.5rem!important}.h-full{height:100%!important}.w-10{width:2.5rem!important}.w-16{width:4rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-7{width:1.75rem!important}.w-\\[1\\.25rem\\]{width:1.25rem!important}.w-\\[2\\.75rem\\]{width:2.75rem!important}.w-full{width:100%!important}.max-w-\\[40rem\\]{max-width:40rem!important}.max-w-\\[59\\.5rem\\]{max-width:59.5rem!important}.shrink-0{flex-shrink:0!important}.-translate-y-6{--tw-translate-y: -1.5rem !important;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))!important}.translate-x-0{--tw-translate-x: 0px !important;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))!important}.translate-x-\\[1\\.25rem\\]{--tw-translate-x: 1.25rem !important;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))!important}.translate-y-0{--tw-translate-y: 0px !important;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))!important}.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))!important}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.gap-5{gap:1.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-md{border-radius:.375rem!important}.border{border-width:1px!important}.border-0{border-width:0px!important}.border-2{border-width:2px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity))!important}.border-transparent{border-color:transparent!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity))!important}.bg-primary-base{background-color:var(--fl-color-primary)!important}.bg-transparent{background-color:transparent!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.fill-gray-200{fill:#e5e7eb!important}.fill-primary-base{fill:var(--fl-color-primary)!important}.fill-white{fill:#fff!important}.p-2{padding:.5rem!important}.px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-bold{font-weight:700!important}.font-medium{font-weight:500!important}.leading-5{line-height:1.25rem!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-primary-base{color:var(--fl-color-primary)!important}.text-rose-500{--tw-text-opacity: 1 !important;color:rgb(244 63 94 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.accent-primary-base{accent-color:var(--fl-color-primary)!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-gray-200{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity)) !important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.delay-300{transition-delay:.3s!important}.duration-200{transition-duration:.2s!important}.duration-700{transition-duration:.7s!important}.duration-\\[600ms\\]{transition-duration:.6s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}:root{--fl-color-primary_from_host: var(--fl-color-primary);--fl-color-primary-light_from_host: var(--fl-color-primary-light);--fl-color-primary-dark_from_host: var(--fl-color-primary-dark);--fl-color-primary-disabled_from_host: var(--fl-color-primary-disabled);--fl-color-primary-hover_from_host: var(--fl-color-primary-hover);--fl-color-primary-focus_from_host: var(--fl-color-primary-focus);--fl-color-primary-text_from_host: var(--fl-color-primary-text);--fl-color-secondary_from_host: var(--fl-color-secondary);--fl-color-secondary-light_from_host: var(--fl-color-secondary-light);--fl-color-secondary-dark_from_host: var(--fl-color-secondary-dark);--fl-color-secondary-disabled_from_host: var(--fl-color-secondary-disabled);--fl-color-secondary-hover_from_host: var(--fl-color-secondary-hover);--fl-color-secondary-focus_from_host: var(--fl-color-secondary-focus);--fl-color-secondary-text_from_host: var(--fl-color-secondary-text)}*{--fl-color-primary: var(--fl-color-primary_from_host, #1890ff);--fl-color-primary-light: var(--fl-color-primary-light_from_host, #74c0ff);--fl-color-primary-dark: var(--fl-color-primary-dark_from_host, #006bce);--fl-color-primary-disabled: var(--fl-color-primary-disabled_from_host, #f5f5f5);--fl-color-primary-hover: var(--fl-color-primary-hover_from_host, #40a9ff);--fl-color-primary-focus: var(--fl-color-primary-focus_from_host, #40a9ff);--fl-color-primary-text: var(--fl-color-primary-text_from_host, white);--fl-color-secondary: var(--fl-color-secondary_from_host, #d3d3d3);--fl-color-secondary-light: var(--fl-color-secondary-light_from_host, #e1e1e1);--fl-color-secondary-dark: var(--fl-color-secondary-dark_from_host, #cecece);--fl-color-secondary-disabled: var(--fl-color-secondary-disabled_from_host, #f5f5f5);--fl-color-secondary-hover: var(--fl-color-secondary-hover_from_host, #ebebeb);--fl-color-secondary-focus: var(--fl-color-secondary-focus_from_host, #ebebeb);--fl-color-secondary-text: var(--fl-color-secondary-text_from_host, #262626)}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)!important}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.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) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.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) !important}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px !important}.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) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity)) !important}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity)) !important}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75 !important}.disabled\\:cursor-text:disabled{cursor:text!important}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.disabled\\:px-0:disabled{padding-left:0!important;padding-right:0!important}.disabled\\:text-gray-300:disabled{--tw-text-opacity: 1 !important;color:rgb(209 213 219 / var(--tw-text-opacity))!important}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.disabled\\:opacity-75:disabled{opacity:.75!important}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent!important}@media (min-width: 768px){.md\\:grid{display:grid!important}.md\\:w-\\[240px\\]{width:240px!important}.md\\:w-\\[300px\\]{width:300px!important}.md\\:w-auto{width:auto!important}.md\\:w-full{width:100%!important}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.md\\:text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.md\\:transition-none{transition-property:none!important}}\n".toString()}),ui(Rh,{onSignUp:r,onVerify:n,onResendOtp:i,onSuccess:o,onDecline:o})]})})},Dh=f("div")([{display:"flex",alignItems:"center",justifyContent:"center"}]),Mh=async(e,t)=>{await(async e=>{if(br)return br;const t=e.replace(/\/?$/,"");return br=_r.create({baseURL:`${t}`}),((e,{onRequest:t,onRequestError:r,onResponse:n,onResponseError:i})=>{e.interceptors.request.use((async e=>(t&&await t(e),e)),(async e=>{throw r&&await r(e),e})),e.interceptors.response.use((async e=>(n&&await n(e),e)),(async e=>{throw i&&await i(e),e}))})(br,{onRequestError:yr,onResponseError:wr}),br})(e.backendUrl);const{googleCloud:r,identityProvider:n,isEstablished:i}=await(async(e,t)=>{if(!br)throw new Error("Api has not been initialized");return br.get("customer-profile/backend/v1.0/workplace-link/config",Er(e,t)).then((e=>e.data))})(e.apolloAccessToken,t);Lu=r;const o=e.backendUrl;var s,a;return s=o,a=e.apolloAccessToken,s=s.replace(/\/?$/,""),Ah=_r.create({baseURL:`${s}/benefits-onboarding/backend`,headers:{Authorization:`Bearer ${a}`}}),Ah.interceptors.response.use((e=>e),Oh),{identityProvider:n,isEstablished:i}};!function(n,i,o,s){c.p=i,e=n,t=o,r=s}(O);function Uh(){return(Uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var jh=["context","children"];function Fh(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(e,jh);return te(t,r)}function Bh(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=O(Fh,Uh({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],i={},o=0,s=t.attributes,a=t.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(i[s[o].name]=s[o].value,i[zh(s[o].name)]=s[o].value);for(o=a.length;o--;){var c=e(a[o],null),l=a[o].slot;l?i[l]=O($h,{name:l},c):n[o]=c}var u=r?O($h,null,n):n;return O(r||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ee:Z)(this._vdom,this._root)}function zh(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Hh(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[zh(e)]=r,this._vdom=te(this._vdom,n),Z(this._vdom,this._root)}}function Vh(){Z(this._vdom=null,this._root)}function $h(e,t){var r=this;return O("slot",Uh({},e,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}!function(e,t,r,n){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:n.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Bh,i.prototype.attributeChangedCallback=Hh,i.prototype.disconnectedCallback=Vh,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=r,r.forEach((function(e){Object.defineProperty(i.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 r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,i)}((e=>{const t={backendUrl:e["backend-url"],apolloAccessToken:e["access-token"]},[r,n]=ge(!1),i=we(""),[o,s]=ge("Initializing");return vr((async e=>{if(t.backendUrl)try{const r=await Mh(t,e);i.current=r.identityProvider,n(r.isEstablished),s("Initialized")}catch{s("Error")}}),[t.backendUrl]),r?ui(Qo,{}):ui(N,{children:["Initializing"===o&&ui(di,{isActive:!0}),"Error"===o&&ui(ts,{}),"Initialized"===o&&ui("div",{id:"preact_root",children:[ui(oi,{}),ui(Dh,{children:["google"===i.current&&ui(fd,{...t}),"adb2c"===i.current&&ui(ns,{...t}),"flare-app-identity"===i.current&&ui(Lh,{...t})]})]})]})}),"workplace-link",["backend-url","access-token"],{shadow:!1});
1717
+ `,fd=e=>{const{idToken:t}=(()=>{const[e,t]=ge(""),r=Du().beforeAuthStateChanged((async e=>{t(await(null==e?void 0:e.getIdToken())??"")}));return ve((()=>r),[r]),{idToken:e}})(),[r,n]=ge(0),{apolloAccessToken:i}=e,[o,s]=ge("");vr((async e=>{try{switch(r){case 0:await(async e=>{var t;try{const r=await kr(i,e);return s((null==(t=r.linkRequest)?void 0:t.linkRequestId)??""),{isEstablished:r.isEstablished}}catch(Ld){throw`[Link Workplace]: Error when requesting a workplace link: ${Ld}`}})(e).then((e=>{e.isEstablished?n(5):n(1)}));break;case 1:t&&n(2);break;case 2:n(3);break;case 3:await(async(e,r)=>{const{sub:n}=Me(i);try{return await Ir(t,e,n,r)}catch(Ld){throw`[Link Workplace]: Error when trying to establish workplace link: ${Ld}`}})(o,e),n(5);break;case 5:rs()}}catch(Ld){console.log(Ld),n(4)}}),[r,t]);const a=void 0===r||0==r||3==r;return ui(pd,{children:[a&&ui(di,{isActive:a}),1===r&&ui(hd,{}),4===r&&ui(ts,{}),5===r&&ui(Qo,{})]})},md=e=>ui("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[ui("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",className:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),ui("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",className:"light"===e.theme?"fill-white":"fill-primary-base"})]}),gd=e=>{const[t,r]=ge(!1);return ui("button",{type:"button",className:`inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm 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 ${e.class} `,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){r(!0);try{await e.onClickPromise()}catch(n){}r(!1)}},children:[ui("div",{className:"relative "+(t?"invisible":""),children:e.children}),t&&ui("div",{className:"absolute animate-spin",children:ui(md,{theme:"light"})})]})},_d=({className:e,label:t,allowedKeyPattern:r,onChange:n,value:i,...o})=>{const s=ke((e=>{r.test(e.key)||e.preventDefault()}),[r]);return ui(N,{children:[ui("label",{className:"font-medium text-sm text-gray-900 text-left",children:ui("span",{children:t})}),ui("input",{type:"text",className:`p-2 border-0 ring-2 ring-gray-200 focus:outline-none focus-visible:ring-gray-500 text-base font-medium rounded-md shadow-sm w-full ${e}`,value:i,onKeyPress:s,onChange:e=>n(e.currentTarget.value),...o})]})},vd=({className:e,children:t})=>ui("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),yd=({className:e,children:t})=>ui("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),wd=e=>{switch(e){case"sign-up-viewed":case"sign-up-completed":case"sign-up-declined":return new Promise((()=>{}))}};var bd=Object.defineProperty,Ed=(e,t,r)=>(((e,t,r)=>{t in e?bd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let kd=new class{constructor(){Ed(this,"current",this.detect()),Ed(this,"handoffState","pending"),Ed(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}},Id=(e,t)=>{kd.isServer?ve(e,t):ye(e,t)};function Td(e){let t=we(e);return Id((()=>{t.current=e}),[e]),t}function Cd(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add((()=>e.removeEventListener(r,n,i)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=Cd();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Sd(){let[e]=ge(Cd);return ve((()=>()=>e.dispose()),[e]),e}let Rd=function(e){let t=Td(e);return bo.useCallback(((...e)=>t.current(...e)),[t])};function Od(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Eo&&Eo.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=ge(kd.isHandoffComplete);return t&&!1===kd.isHandoffComplete&&r(!1),ve((()=>{!0!==t&&r(!0)}),[t]),ve((()=>kd.handoff()),[]),!e&&t}function Ad(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=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(n,Ad),n}let Pd=Symbol();function Nd(...e){let t=we(e);ve((()=>{t.current=e}),[e]);let r=Rd((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Pd])))?void 0:r}function xd(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Ld,Dd,Md=((Dd=Md||{})[Dd.None=0]="None",Dd[Dd.RenderStrategy=1]="RenderStrategy",Dd[Dd.Static=2]="Static",Dd),Ud=((Ld=Ud||{})[Ld.Unmount=0]="Unmount",Ld[Ld.Hidden=1]="Hidden",Ld);function jd({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:s}){let a=Bd(t,e);if(o)return Fd(a,r,n,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=a;if(e)return Fd(t,r,n,s)}if(1&c){let{unmount:e=!0,...t}=a;return Ad(e?0:1,{0:()=>null,1:()=>Fd({...t,hidden:!0,style:{display:"none"}},r,n,s)})}return Fd(a,r,n,s)}function Fd(e,t={},r,n){let{as:i=r,children:o,refName:s="ref",...a}=Vd(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof o?o(t):o;"className"in a&&a.className&&"function"==typeof a.className&&(a.className=a.className(t));let u={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(u["data-headlessui-state"]=r.join(" "))}if(i===N&&Object.keys(Hd(a)).length>0){if(!so(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).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=l.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>xd(null==e?void 0:e.className(...t),a.className):xd(null==e?void 0:e.className,a.className),r=t?{className:t}:{};return co(l,Object.assign({},Bd(l.props,Hd(Vd(a,["ref"]))),u,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(l.ref,c.ref),r))}return O(i,Object.assign({},Vd(a,["ref"]),i!==N&&c,i!==N&&u),l)}function Bd(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let n in r)Object.assign(t,{[n](e,...t){let i=r[n];for(let r of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;r(e,...t)}}});return t}function zd(e){var t;return Object.assign(Ci(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Hd(e){let t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}function Vd(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let $d=re(null);$d.displayName="OpenClosedContext";var qd=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qd||{});function Wd(){return Ie($d)}function Kd({value:e,children:t}){return bo.createElement($d.Provider,{value:e},t)}function Jd(){let e=we(!1);return Id((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Gd(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yd(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Qd(e,t,r,n){let i=r?"enter":"leave",o=Cd(),s=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let a=Ad(i,{enter:()=>t.enter,leave:()=>t.leave}),c=Ad(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=Ad(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Yd(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gd(e,...t.base,...a,...l),o.nextFrame((()=>{Yd(e,...t.base,...a,...l),Gd(e,...t.base,...a,...c),function(e,t){let r=Cd();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,s]=[n,i].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})),a=o+s;if(0!==a){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),a),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let n=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Yd(e,...t.base,...a),Gd(e,...t.base,...t.entered),s())))})),o.dispose}function Xd(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Zd=re(null);Zd.displayName="TransitionContext";var eh,th=((eh=th||{}).Visible="visible",eh.Hidden="hidden",eh);let rh=re(null);function nh(e){return"children"in e?nh(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ih(e,t){let r=Td(e),n=we([]),i=Jd(),o=Sd(),s=Rd(((e,t=Ud.Hidden)=>{let s=n.current.findIndex((({el:t})=>t===e));-1!==s&&(Ad(t,{[Ud.Unmount](){n.current.splice(s,1)},[Ud.Hidden](){n.current[s].state="hidden"}}),o.microTask((()=>{var e;!nh(n)&&i.current&&(null==(e=r.current)||e.call(r))})))})),a=Rd((e=>{let t=n.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>s(e,Ud.Unmount)})),c=we([]),l=we(Promise.resolve()),u=we({enter:[],leave:[],idle:[]}),d=Rd(((e,r,n)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(u.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?l.current=l.current.then((()=>null==t?void 0:t.wait.current)).then((()=>n(r))):n(r)})),h=Rd(((e,t,r)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return Ee((()=>({children:n,register:a,unregister:s,onStart:d,onStop:h,wait:l,chains:u})),[a,s,n,d,h,u,l])}function oh(){}rh.displayName="NestingContext";let sh=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ah(e){var t;let r={};for(let n of sh)r[n]=null!=(t=e[n])?t:oh;return r}let ch=Md.RenderStrategy;let lh=zd((function(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,s=we(null),a=Nd(s,t);Od();let c=Wd();if(void 0===r&&null!==c&&(r=(c&qd.Open)===qd.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=ge(r?"visible":"hidden"),d=ih((()=>{u("hidden")})),[h,p]=ge(!0),f=we([r]);Id((()=>{!1!==h&&f.current[f.current.length-1]!==r&&(f.current.push(r),p(!1))}),[f,r]);let m=Ee((()=>({show:r,appear:n,initial:h})),[r,n,h]);ve((()=>{if(r)u("visible");else if(nh(d)){let e=s.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")}),[r,d]);let g={unmount:i},_=Rd((()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),v=Rd((()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)}));return bo.createElement(rh.Provider,{value:d},bo.createElement(Zd.Provider,{value:m},jd({ourProps:{...g,as:N,children:bo.createElement(uh,{ref:a,...g,...o,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:N,features:ch,visible:"visible"===l,name:"Transition"})))})),uh=zd((function(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a,enter:c,enterFrom:l,enterTo:u,entered:d,leave:h,leaveFrom:p,leaveTo:f,...m}=e,g=we(null),_=Nd(g,t),v=null==(r=m.unmount)||r?Ud.Unmount:Ud.Hidden,{show:y,appear:w,initial:b}=function(){let e=Ie(Zd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,k]=ge(y?"visible":"hidden"),I=function(){let e=Ie(rh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:T,unregister:C}=I;ve((()=>T(g)),[T,g]),ve((()=>{if(v===Ud.Hidden&&g.current)return y&&"visible"!==E?void k("visible"):Ad(E,{hidden:()=>C(g),visible:()=>T(g)})}),[E,g,T,C,y,v]);let S=Td({base:Xd(m.className),enter:Xd(c),enterFrom:Xd(l),enterTo:Xd(u),entered:Xd(d),leave:Xd(h),leaveFrom:Xd(p),leaveTo:Xd(f)}),R=function(e){let t=we(ah(e));return ve((()=>{t.current=ah(e)}),[e]),t}({beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a}),O=Od();ve((()=>{if(O&&"visible"===E&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,E,O]);let A=w&&y&&b,P=!O||b&&!w?"idle":y?"enter":"leave",N=function(e=0){let[t,r]=ge(e),n=Jd(),i=ke((e=>{n.current&&r((t=>t|e))}),[t,n]),o=ke((e=>Boolean(t&e)),[t]),s=ke((e=>{n.current&&r((t=>t&~e))}),[r,n]),a=ke((e=>{n.current&&r((t=>t^e))}),[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}(0),x=Rd((e=>Ad(e,{enter:()=>{N.addFlag(qd.Opening),R.current.beforeEnter()},leave:()=>{N.addFlag(qd.Closing),R.current.beforeLeave()},idle:()=>{}}))),L=Rd((e=>Ad(e,{enter:()=>{N.removeFlag(qd.Opening),R.current.afterEnter()},leave:()=>{N.removeFlag(qd.Closing),R.current.afterLeave()},idle:()=>{}}))),D=ih((()=>{k("hidden"),C(g)}),I);!function({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let s=Jd(),a=Sd(),c=Td(r);Id((()=>{e&&(c.current="enter")}),[e]),Id((()=>{let e=Cd();a.add(e.dispose);let r=t.current;if(r&&"idle"!==c.current&&s.current)return e.dispose(),i.current(c.current),e.add(Qd(r,n.current,"enter"===c.current,(()=>{e.dispose(),o.current(c.current)}))),e.dispose}),[r])}({immediate:A,container:g,classes:S,direction:P,onStart:Td((e=>{D.onStart(g,e,x)})),onStop:Td((e=>{D.onStop(g,e,L),"leave"===e&&!nh(D)&&(k("hidden"),C(g))}))});let M=m,U={ref:_};return A?M={...M,className:xd(m.className,...S.current.enter,...S.current.enterFrom)}:(M.className=xd(m.className,null==(n=g.current)?void 0:n.className),""===M.className&&delete M.className),bo.createElement(rh.Provider,{value:D},bo.createElement(Kd,{value:Ad(E,{visible:qd.Open,hidden:qd.Closed})|N.flags},jd({ourProps:U,theirProps:M,defaultTag:"div",features:ch,visible:"visible"===E,name:"Transition.Child"})))})),dh=zd((function(e,t){let r=null!==Ie(Zd),n=null!==Wd();return bo.createElement(bo.Fragment,null,!r&&n?bo.createElement(lh,{ref:t,...e}):bo.createElement(uh,{ref:t,...e}))})),hh=Object.assign(lh,{Child:dh,Root:lh});const ph=({children:e})=>{const t=bo.Children.toArray(e),r=t.find((e=>e.type===fh)),n=t.find((e=>e.type===mh));return ui(hh,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",class:"opacity-0",children:ui("div",{className:"my-20 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[ui(hh,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6",children:r&&ui("div",{className:"flex items-center h-full",children:r})}),ui(hh,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",class:"opacity-0 -translate-y-6",children:n&&ui("div",{className:"flex items-center h-full",children:n})})]})})},fh=({children:e})=>ui(N,{children:e}),mh=({children:e})=>ui(N,{children:e});ph.Top=fh,ph.Bottom=mh;const gh=/^04\d{1,14}/,_h=/^\+[1-9]\d{1,14}/,vh=e=>_h.test(e),yh=()=>{const[e,t]=ge(""),r=Ee((()=>e.replace(/ /g,"")),[e]);return{setPhoneNumber:t,phoneNumber:{valid:Ee((()=>{return vh(r)||(e=r,gh.test(e));var e}),[r]),formatted:Ee((()=>vh(r)?r:`+61${r.replace(/^0+/,"")}`),[r]),masked:Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(r)),[r])}}},wh=({onSubmit:e,onDecline:t})=>{const{trace:r}={trace:wd},[n,i]=ge(""),{setPhoneNumber:o,phoneNumber:s}=yh();ve((()=>{r("sign-up-viewed")}),[r]);const a=ke((()=>(i(""),e(s).then((()=>r("sign-up-completed"))).catch(i))),[s,e,r]);return ke((()=>r("sign-up-declined").then(t)),[t,r]),ui(ph,{children:[ui(ph.Top,{children:ui("div",{className:"flex flex-col gap-5",children:[ui(vd,{children:"Join your workplace benefits program"}),ui(yd,{children:["Enter your ",ui("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),ui(ph.Bottom,{children:ui("div",{className:"mt-5 md:w-[300px] text-left",children:[ui(_d,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full",label:"Australian Mobile Number",value:s.masked,onChange:o}),n&&ui("span",{className:"text-xs text-rose-500",children:n}),ui("div",{className:"mt-5 font-medium text-sm text-gray-900",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",ui("a",{className:"text-primary-base",href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",ui("a",{className:"text-primary-base",href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]}),ui(gd,{class:"mt-5 md:w-full text-white",disabled:!s.valid,onClickPromise:a,children:"Join your workplace"}),!1]})})]})},bh=""+new URL("assets/check-b48de75e.svg",import.meta.url).href,Eh=({onContinue:e})=>ui(ph,{children:[ui(ph.Top,{children:ui("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:ui(bh,{className:"h-7 w-7"})})}),ui(ph.Bottom,{children:ui("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[ui(vd,{children:"You’ve joined your workplace benefits program"}),ui(yd,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),ui(gd,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),kh=""+new URL("assets/left-arrow-38f55b24.svg",import.meta.url).href,Ih=({className:e,onClick:t,...r})=>{const[n,i]=ge(!1);return ui("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:ke((()=>{if(!n)return i(!0),t().finally((()=>{i(!1)}))}),[n,t]),...r,children:[ui("div",{className:"relative "+(n?"invisible":""),children:r.children}),n&&ui("div",{className:"absolute animate-spin",children:ui(md,{theme:"primary"})})]})},Th=({children:e,...t})=>ui("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Ch=({open:e})=>ui(Th,{open:e,children:ui("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[ui("span",{className:"animate-spin",children:ui(md,{size:"lg"})}),ui(vd,{children:"Creating your account"}),ui("div",{children:[ui(yd,{children:"This can take up to 30 seconds."}),ui(yd,{children:"Please don't navigate away or refresh your browser."})]})]})}),Sh=({phoneNumber:e,onVerify:t,onResendOtp:r,onGoBack:n})=>{const{otp:i,setOtp:o}=(()=>{const[e,t]=ge("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[s,a]=ge(!1),[c,l]=ge(""),{countdown:u,restart:d}=(e=>{const[t,r]=ge(e),n=we(),i=ke((()=>{clearInterval(n.current)}),[]);return ve((()=>i),[i]),{countdown:t,restart:ke((()=>{let t=e;clearInterval(n.current),n.current=setInterval((()=>{t<0?clearInterval(n.current):r(t--)}),1e3)}),[e])}})(60);ve(d,[d]);const h=ke((()=>(a(!0),l(""),t(i.code).catch(l).finally((()=>{a(!1)})))),[t,i.code]),p=ke((()=>(l(""),r().then(d).catch(l))),[r,d]);return ui(N,{children:[ui(Ch,{open:s}),ui(ph,{children:[ui(ph.Top,{children:ui("div",{className:"flex flex-col gap-5",children:[ui(vd,{children:"Verify your mobile number"}),ui(yd,{children:["An SMS verification code has been sent to the number"," ",ui("span",{className:"dd-privacy-mask",children:e}),"."]})]})}),ui(ph.Bottom,{children:ui("div",{className:"mt-5 md:w-[300px] text-left",children:[ui(_d,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full",label:"Enter your verification code",onChange:o}),c&&ui("span",{className:"text-xs text-rose-500",children:c}),ui("p",{className:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",ui(Ih,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:p,children:"Resend SMS"}),0!==u&&ui(N,{children:["in ",u," secs"]})]}),ui(gd,{class:"mt-5 md:w-full text-white",disabled:!i.valid,onClickPromise:h,children:"Continue"}),ui(gd,{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()=>{n()},children:ui("span",{className:"flex gap-3",children:[ui("img",{src:kh}),"Back"]})})]})})]})]})},Rh=({onSignUp:e,onVerify:t,onResendOtp:r,onSuccess:n,onDecline:i})=>{const[o,s]=ge(""),{step:a,goBack:c,goNext:l}=(e=>{const[t,r]=ge(1),n=ke((()=>{const e=t-1;e>=1&&r(e)}),[t]),i=ke((()=>{const n=t+1;n<=e&&r(n)}),[t,e]);return{step:t,goBack:n,goNext:i}})(3),u=ke((t=>e(t.formatted).then((()=>{s(t.masked),l()}))),[l,e]),d=ke((e=>t(e).then((()=>{n()}))),[t,n]);return ui(N,{children:[1===a&&ui(wh,{onSubmit:u,onDecline:i}),2===a&&ui(Sh,{phoneNumber:o,onVerify:d,onResendOtp:r,onGoBack:c}),3===a&&ui(Eh,{onContinue:n})]})},Oh=e=>{var t,r;throw"Auth_SessionExpired"===(null==(r=null==(t=e.response)?void 0:t.data)?void 0:r.code)&&window.location.reload(),e};let Ah;const Ph=()=>Ah;var Nh=(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))(Nh||{});const xh=e=>{var t;const r=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Nh[null==r?void 0:r.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Lh=()=>{const[e,t]=ge(!1),{signUp:r,verifyOtp:n,resendOtp:i}={signUp:async e=>{await Ph().post("auth/signUp",{mobileNumber:e}).catch(xh)},verifyOtp:async e=>{await Ph().post("auth/verify",{otp:e}).catch(xh)},resendOtp:async()=>{await Ph().post("auth/resend").catch(xh)}},o=()=>{t(!0),rs()};return e?ui(Qo,{}):ui(N,{children:ui("div",{className:"font-inter",children:[ui("style",{children:".pointer-events-none{pointer-events:none!important}.invisible{visibility:hidden!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.top-0{top:0!important}.z-50{z-index:50!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mb-1{margin-bottom:.25rem!important}.ml-3{margin-left:.75rem!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-20{margin-top:5rem!important}.mt-5{margin-top:1.25rem!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.h-10{height:2.5rem!important}.h-16{height:4rem!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-7{height:1.75rem!important}.h-\\[1\\.25rem\\]{height:1.25rem!important}.h-\\[1\\.5rem\\]{height:1.5rem!important}.h-full{height:100%!important}.w-10{width:2.5rem!important}.w-16{width:4rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-7{width:1.75rem!important}.w-\\[1\\.25rem\\]{width:1.25rem!important}.w-\\[2\\.75rem\\]{width:2.75rem!important}.w-full{width:100%!important}.max-w-\\[40rem\\]{max-width:40rem!important}.max-w-\\[59\\.5rem\\]{max-width:59.5rem!important}.shrink-0{flex-shrink:0!important}.-translate-y-6{--tw-translate-y: -1.5rem !important;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))!important}.translate-x-0{--tw-translate-x: 0px !important;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))!important}.translate-x-\\[1\\.25rem\\]{--tw-translate-x: 1.25rem !important;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))!important}.translate-y-0{--tw-translate-y: 0px !important;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))!important}.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))!important}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.gap-5{gap:1.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-md{border-radius:.375rem!important}.border{border-width:1px!important}.border-0{border-width:0px!important}.border-2{border-width:2px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity))!important}.border-transparent{border-color:transparent!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity))!important}.bg-primary-base{background-color:var(--fl-color-primary)!important}.bg-transparent{background-color:transparent!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.fill-gray-200{fill:#e5e7eb!important}.fill-primary-base{fill:var(--fl-color-primary)!important}.fill-white{fill:#fff!important}.p-2{padding:.5rem!important}.px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-bold{font-weight:700!important}.font-medium{font-weight:500!important}.leading-5{line-height:1.25rem!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-primary-base{color:var(--fl-color-primary)!important}.text-rose-500{--tw-text-opacity: 1 !important;color:rgb(244 63 94 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.accent-primary-base{accent-color:var(--fl-color-primary)!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-gray-200{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity)) !important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.delay-300{transition-delay:.3s!important}.duration-200{transition-duration:.2s!important}.duration-700{transition-duration:.7s!important}.duration-\\[600ms\\]{transition-duration:.6s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}:root{--fl-color-primary_from_host: var(--fl-color-primary);--fl-color-primary-light_from_host: var(--fl-color-primary-light);--fl-color-primary-dark_from_host: var(--fl-color-primary-dark);--fl-color-primary-disabled_from_host: var(--fl-color-primary-disabled);--fl-color-primary-hover_from_host: var(--fl-color-primary-hover);--fl-color-primary-focus_from_host: var(--fl-color-primary-focus);--fl-color-primary-text_from_host: var(--fl-color-primary-text);--fl-color-secondary_from_host: var(--fl-color-secondary);--fl-color-secondary-light_from_host: var(--fl-color-secondary-light);--fl-color-secondary-dark_from_host: var(--fl-color-secondary-dark);--fl-color-secondary-disabled_from_host: var(--fl-color-secondary-disabled);--fl-color-secondary-hover_from_host: var(--fl-color-secondary-hover);--fl-color-secondary-focus_from_host: var(--fl-color-secondary-focus);--fl-color-secondary-text_from_host: var(--fl-color-secondary-text)}*{--fl-color-primary: var(--fl-color-primary_from_host, #1890ff);--fl-color-primary-light: var(--fl-color-primary-light_from_host, #74c0ff);--fl-color-primary-dark: var(--fl-color-primary-dark_from_host, #006bce);--fl-color-primary-disabled: var(--fl-color-primary-disabled_from_host, #f5f5f5);--fl-color-primary-hover: var(--fl-color-primary-hover_from_host, #40a9ff);--fl-color-primary-focus: var(--fl-color-primary-focus_from_host, #40a9ff);--fl-color-primary-text: var(--fl-color-primary-text_from_host, white);--fl-color-secondary: var(--fl-color-secondary_from_host, #d3d3d3);--fl-color-secondary-light: var(--fl-color-secondary-light_from_host, #e1e1e1);--fl-color-secondary-dark: var(--fl-color-secondary-dark_from_host, #cecece);--fl-color-secondary-disabled: var(--fl-color-secondary-disabled_from_host, #f5f5f5);--fl-color-secondary-hover: var(--fl-color-secondary-hover_from_host, #ebebeb);--fl-color-secondary-focus: var(--fl-color-secondary-focus_from_host, #ebebeb);--fl-color-secondary-text: var(--fl-color-secondary-text_from_host, #262626)}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)!important}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.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) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.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) !important}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px !important}.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) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity)) !important}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity)) !important}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75 !important}.disabled\\:cursor-text:disabled{cursor:text!important}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.disabled\\:px-0:disabled{padding-left:0!important;padding-right:0!important}.disabled\\:text-gray-300:disabled{--tw-text-opacity: 1 !important;color:rgb(209 213 219 / var(--tw-text-opacity))!important}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.disabled\\:opacity-75:disabled{opacity:.75!important}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent!important}@media (min-width: 768px){.md\\:grid{display:grid!important}.md\\:w-\\[240px\\]{width:240px!important}.md\\:w-\\[300px\\]{width:300px!important}.md\\:w-auto{width:auto!important}.md\\:w-full{width:100%!important}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.md\\:text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.md\\:transition-none{transition-property:none!important}}\n".toString()}),ui(Rh,{onSignUp:r,onVerify:n,onResendOtp:i,onSuccess:o,onDecline:o})]})})},Dh=f("div")([{display:"flex",alignItems:"center",justifyContent:"center"}]),Mh=async(e,t)=>{await(async e=>{if(br)return br;const t=e.replace(/\/?$/,"");return br=_r.create({baseURL:`${t}`}),((e,{onRequest:t,onRequestError:r,onResponse:n,onResponseError:i})=>{e.interceptors.request.use((async e=>(t&&await t(e),e)),(async e=>{throw r&&await r(e),e})),e.interceptors.response.use((async e=>(n&&await n(e),e)),(async e=>{throw i&&await i(e),e}))})(br,{onRequestError:yr,onResponseError:wr}),br})(e.backendUrl);const{googleCloud:r,identityProvider:n,isEstablished:i}=await(async(e,t)=>{if(!br)throw new Error("Api has not been initialized");return br.get("customer-profile/backend/v1.0/workplace-link/config",Er(e,t)).then((e=>e.data))})(e.apolloAccessToken,t);Lu=r;const o=e.backendUrl;var s,a;return s=o,a=e.apolloAccessToken,s=s.replace(/\/?$/,""),Ah=_r.create({baseURL:`${s}/benefits-onboarding/backend`,headers:{Authorization:`Bearer ${a}`}}),Ah.interceptors.response.use((e=>e),Oh),{identityProvider:n,isEstablished:i}};!function(n,i,o,s){c.p=i,e=n,t=o,r=s}(O);function Uh(){return(Uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var jh=["context","children"];function Fh(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(e,jh);return te(t,r)}function Bh(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=O(Fh,Uh({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],i={},o=0,s=t.attributes,a=t.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(i[s[o].name]=s[o].value,i[zh(s[o].name)]=s[o].value);for(o=a.length;o--;){var c=e(a[o],null),l=a[o].slot;l?i[l]=O($h,{name:l},c):n[o]=c}var u=r?O($h,null,n):n;return O(r||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ee:Z)(this._vdom,this._root)}function zh(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Hh(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[zh(e)]=r,this._vdom=te(this._vdom,n),Z(this._vdom,this._root)}}function Vh(){Z(this._vdom=null,this._root)}function $h(e,t){var r=this;return O("slot",Uh({},e,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}!function(e,t,r,n){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:n.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Bh,i.prototype.attributeChangedCallback=Hh,i.prototype.disconnectedCallback=Vh,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=r,r.forEach((function(e){Object.defineProperty(i.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 r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,i)}((e=>{const t={backendUrl:e["backend-url"],apolloAccessToken:e["access-token"]},[r,n]=ge(!1),i=we(""),[o,s]=ge("Initializing");return vr((async e=>{if(t.backendUrl)try{const r=await Mh(t,e);i.current=r.identityProvider,n(r.isEstablished),s("Initialized")}catch{s("Error")}}),[t.backendUrl]),r?ui(Qo,{}):ui(N,{children:["Initializing"===o&&ui(di,{isActive:!0}),"Error"===o&&ui(ts,{}),"Initialized"===o&&ui("div",{id:"preact_root",children:[ui(oi,{}),ui(Dh,{children:["google"===i.current&&ui(fd,{...t}),"adb2c"===i.current&&ui(ns,{...t}),"flare-app-identity"===i.current&&ui(Lh,{...t})]})]})]})}),"workplace-link",["backend-url","access-token"],{shadow:!1});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-customer-workplace-link",
3
- "version": "1.51.40325",
3
+ "version": "1.53.42686",
4
4
  "license": "MIT",
5
5
  "main": "build/bundle.js",
6
6
  "files": [