@flarehr/promoted-benefits-ui 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function t(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(n){if(n.ep)return;n.ep=!0;const r=t(n);fetch(n.href,r)}})();var M,p,pe,C,ee,he,B,ve,S={},me=[],He=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Q=Array.isArray;function P(e,_){for(var t in _)e[t]=_[t];return e}function ye(e){var _=e.parentNode;_&&_.removeChild(e)}function Ee(e,_,t){var o,n,r,c={};for(r in _)r=="key"?o=_[r]:r=="ref"?n=_[r]:c[r]=_[r];if(arguments.length>2&&(c.children=arguments.length>3?M.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)c[r]===void 0&&(c[r]=e.defaultProps[r]);return W(e,c,o,n,null)}function W(e,_,t,o,n){var r={type:e,props:_,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++pe,__i:-1,__u:0};return n==null&&p.vnode!=null&&p.vnode(r),r}function V(e){return e.children}function D(e,_){this.props=e,this.context=_}function $(e,_){if(_==null)return e.__?$(e.__,e.__i+1):null;for(var t;_<e.__k.length;_++)if((t=e.__k[_])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?$(e):null}function ge(e){var _,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,_=0;_<e.__k.length;_++)if((t=e.__k[_])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return ge(e)}}function j(e){(!e.__d&&(e.__d=!0)&&C.push(e)&&!O.__r++||ee!==p.debounceRendering)&&((ee=p.debounceRendering)||he)(O)}function O(){var e,_,t,o,n,r,c,l,s;for(C.sort(B);e=C.shift();)e.__d&&(_=C.length,o=void 0,r=(n=(t=e).__v).__e,l=[],s=[],(c=t.__P)&&((o=P({},n)).__v=n.__v+1,p.vnode&&p.vnode(o),J(c,o,n,t.__n,c.ownerSVGElement!==void 0,32&n.__u?[r]:null,l,r??$(n),!!(32&n.__u),s),o.__v=n.__v,o.__.__k[o.__i]=o,we(l,o,s),o.__e!=r&&ge(o)),C.length>_&&C.sort(B));O.__r=0}function be(e,_,t,o,n,r,c,l,s,u,f){var i,d,a,y,w,g=o&&o.__k||me,h=_.length;for(t.__d=s,Se(t,_,g),s=t.__d,i=0;i<h;i++)(a=t.__k[i])!=null&&typeof a!="boolean"&&typeof a!="function"&&(d=a.__i===-1?S:g[a.__i]||S,a.__i=i,J(e,a,d,n,r,c,l,s,u,f),y=a.__e,a.ref&&d.ref!=a.ref&&(d.ref&&X(d.ref,null,a),f.push(a.ref,a.__c||y,a)),w==null&&y!=null&&(w=y),65536&a.__u||d.__k===a.__k?(y||d.__e!=s||(s=$(d)),s=ke(a,s,e)):typeof a.type=="function"&&a.__d!==void 0?s=a.__d:y&&(s=y.nextSibling),a.__d=void 0,a.__u&=-196609);t.__d=s,t.__e=w}function Se(e,_,t){var o,n,r,c,l,s=_.length,u=t.length,f=u,i=0;for(e.__k=[],o=0;o<s;o++)c=o+i,(n=e.__k[o]=(n=_[o])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?W(null,n,null,null,null):Q(n)?W(V,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?W(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=e,n.__b=e.__b+1,l=Ue(n,t,c,f),n.__i=l,r=null,l!==-1&&(f--,(r=t[l])&&(r.__u|=131072)),r==null||r.__v===null?(l==-1&&i--,typeof n.type!="function"&&(n.__u|=65536)):l!==c&&(l===c+1?i++:l>c?f>s-c?i+=l-c:i--:l<c?l==c-1&&(i=l-c):i=0,l!==o+i&&(n.__u|=65536))):(r=t[c])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=$(r)),z(r,r,!1),t[c]=null,f--);if(f)for(o=0;o<u;o++)(r=t[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=$(r)),z(r,r))}function ke(e,_,t){var o,n;if(typeof e.type=="function"){for(o=e.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=e,_=ke(o[n],_,t));return _}e.__e!=_&&(t.insertBefore(e.__e,_||null),_=e.__e);do _=_&&_.nextSibling;while(_!=null&&_.nodeType===8);return _}function Ue(e,_,t,o){var n=e.key,r=e.type,c=t-1,l=t+1,s=_[t];if(s===null||s&&n==s.key&&r===s.type&&!(131072&s.__u))return t;if(o>(s!=null&&!(131072&s.__u)?1:0))for(;c>=0||l<_.length;){if(c>=0){if((s=_[c])&&!(131072&s.__u)&&n==s.key&&r===s.type)return c;c--}if(l<_.length){if((s=_[l])&&!(131072&s.__u)&&n==s.key&&r===s.type)return l;l++}}return-1}function _e(e,_,t){_[0]==="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||He.test(_)?t:t+"px"}function A(e,_,t,o,n){var r;e:if(_==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(_ in o)t&&_ in t||_e(e.style,_,"");if(t)for(_ in t)o&&t[_]===o[_]||_e(e.style,_,t[_])}else if(_[0]==="o"&&_[1]==="n")r=_!==(_=_.replace(/(PointerCapture)$|Capture$/i,"$1")),_=_.toLowerCase()in e||_==="onFocusOut"||_==="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+r]=t,t?o?t.u=o.u:(t.u=Date.now(),e.addEventListener(_,r?ne:te,r)):e.removeEventListener(_,r?ne:te,r);else{if(n)_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!=="width"&&_!=="height"&&_!=="href"&&_!=="list"&&_!=="form"&&_!=="tabIndex"&&_!=="download"&&_!=="rowSpan"&&_!=="colSpan"&&_!=="role"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!=="-"?e.removeAttribute(_):e.setAttribute(_,t))}}function te(e){if(this.l){var _=this.l[e.type+!1];if(e.t){if(e.t<=_.u)return}else e.t=Date.now();return _(p.event?p.event(e):e)}}function ne(e){if(this.l)return this.l[e.type+!0](p.event?p.event(e):e)}function J(e,_,t,o,n,r,c,l,s,u){var f,i,d,a,y,w,g,h,b,x,N,E,Z,L,R,k=_.type;if(_.constructor!==void 0)return null;128&t.__u&&(s=!!(32&t.__u),r=[l=_.__e=t.__e]),(f=p.__b)&&f(_);e:if(typeof k=="function")try{if(h=_.props,b=(f=k.contextType)&&o[f.__c],x=f?b?b.props.value:f.__:o,t.__c?g=(i=_.__c=t.__c).__=i.__E:("prototype"in k&&k.prototype.render?_.__c=i=new k(h,x):(_.__c=i=new D(h,x),i.constructor=k,i.render=Le),b&&b.sub(i),i.props=h,i.state||(i.state={}),i.context=x,i.__n=o,d=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),k.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=P({},i.__s)),P(i.__s,k.getDerivedStateFromProps(h,i.__s))),a=i.props,y=i.state,i.__v=_,d)k.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(k.getDerivedStateFromProps==null&&h!==a&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(h,x),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(h,i.__s,x)===!1||_.__v===t.__v)){for(_.__v!==t.__v&&(i.props=h,i.state=i.__s,i.__d=!1),_.__e=t.__e,_.__k=t.__k,_.__k.forEach(function(T){T&&(T.__=_)}),N=0;N<i._sb.length;N++)i.__h.push(i._sb[N]);i._sb=[],i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(h,i.__s,x),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(a,y,w)})}if(i.context=x,i.props=h,i.__P=e,i.__e=!1,E=p.__r,Z=0,"prototype"in k&&k.prototype.render){for(i.state=i.__s,i.__d=!1,E&&E(_),f=i.render(i.props,i.state,i.context),L=0;L<i._sb.length;L++)i.__h.push(i._sb[L]);i._sb=[]}else do i.__d=!1,E&&E(_),f=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++Z<25);i.state=i.__s,i.getChildContext!=null&&(o=P(P({},o),i.getChildContext())),d||i.getSnapshotBeforeUpdate==null||(w=i.getSnapshotBeforeUpdate(a,y)),be(e,Q(R=f!=null&&f.type===V&&f.key==null?f.props.children:f)?R:[R],_,t,o,n,r,c,l,s,u),i.base=_.__e,_.__u&=-161,i.__h.length&&c.push(i),g&&(i.__E=i.__=null)}catch(T){_.__v=null,s||r!=null?(_.__e=l,_.__u|=s?160:32,r[r.indexOf(l)]=null):(_.__e=t.__e,_.__k=t.__k),p.__e(T,_,t)}else r==null&&_.__v===t.__v?(_.__k=t.__k,_.__e=t.__e):_.__e=Ne(t.__e,_,t,o,n,r,c,s,u);(f=p.diffed)&&f(_)}function we(e,_,t){_.__d=void 0;for(var o=0;o<t.length;o++)X(t[o],t[++o],t[++o]);p.__c&&p.__c(_,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){p.__e(r,n.__v)}})}function Ne(e,_,t,o,n,r,c,l,s){var u,f,i,d,a,y,w,g=t.props,h=_.props,b=_.type;if(b==="svg"&&(n=!0),r!=null){for(u=0;u<r.length;u++)if((a=r[u])&&"setAttribute"in a==!!b&&(b?a.localName===b:a.nodeType===3)){e=a,r[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(h);e=n?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,h.is&&h),r=null,l=!1}if(b===null)g===h||l&&e.data===h||(e.data=h);else{if(r=r&&M.call(e.childNodes),g=t.props||S,!l&&r!=null)for(g={},u=0;u<e.attributes.length;u++)g[(a=e.attributes[u]).name]=a.value;for(u in g)a=g[u],u=="children"||(u=="dangerouslySetInnerHTML"?i=a:u==="key"||u in h||A(e,u,null,a,n));for(u in h)a=h[u],u=="children"?d=a:u=="dangerouslySetInnerHTML"?f=a:u=="value"?y=a:u=="checked"?w=a:u==="key"||l&&typeof a!="function"||g[u]===a||A(e,u,a,g[u],n);if(f)l||i&&(f.__html===i.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),_.__k=[];else if(i&&(e.innerHTML=""),be(e,Q(d)?d:[d],_,t,o,n&&b!=="foreignObject",r,c,r?r[0]:t.__k&&$(t,0),l,s),r!=null)for(u=r.length;u--;)r[u]!=null&&ye(r[u]);l||(u="value",y!==void 0&&(y!==e[u]||b==="progress"&&!y||b==="option"&&y!==g[u])&&A(e,u,y,g[u],!1),u="checked",w!==void 0&&w!==e[u]&&A(e,u,w,g[u],!1))}return e}function X(e,_,t){try{typeof e=="function"?e(_):e.current=_}catch(o){p.__e(o,t)}}function z(e,_,t){var o,n;if(p.unmount&&p.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||X(o,null,_)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){p.__e(r,_)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(n=0;n<o.length;n++)o[n]&&z(o[n],_,t||typeof e.type!="function");t||e.__e==null||ye(e.__e),e.__=e.__e=e.__d=void 0}function Le(e,_,t){return this.constructor(e,t)}function Te(e,_,t){var o,n,r,c;p.__&&p.__(e,_),n=(o=typeof t=="function")?null:t&&t.__k||_.__k,r=[],c=[],J(_,e=(!o&&t||_).__k=Ee(V,null,[e]),n||S,S,_.ownerSVGElement!==void 0,!o&&t?[t]:n?null:_.firstChild?M.call(_.childNodes):null,r,!o&&t?t:n?n.__e:_.firstChild,o,c),we(r,e,c)}function xe(e,_){var t={__c:_="__cC"+ve++,__:e,Consumer:function(o,n){return o.children(n)},Provider:function(o){var n,r;return this.getChildContext||(n=[],(r={})[_]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&n.some(function(l){l.__e=!0,j(l)})},this.sub=function(c){n.push(c);var l=c.componentWillUnmount;c.componentWillUnmount=function(){n.splice(n.indexOf(c),1),l&&l.call(c)}}),o.children}};return t.Provider.__=t.Consumer.contextType=t}M=me.slice,p={__e:function(e,_,t,o){for(var n,r,c;_=_.__;)if((n=_.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),c=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,o||{}),c=n.__d),c)return n.__E=n}catch(l){e=l}throw e}},pe=0,D.prototype.setState=function(e,_){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},t),this.props)),e&&P(t,e),e!=null&&this.__v&&(_&&this._sb.push(_),j(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),j(this))},D.prototype.render=V,C=[],he=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B=function(e,_){return e.__v.__b-_.__v.__b},O.__r=0,ve=0;var Ae=0;function H(e,_,t,o,n,r){var c,l,s={};for(l in _)l=="ref"?c=_[l]:s[l]=_[l];var u={type:e,props:s,key:t,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ae,__i:-1,__u:0,__source:n,__self:r};if(typeof e=="function"&&(c=e.defaultProps))for(l in c)s[l]===void 0&&(s[l]=c[l]);return p.vnode&&p.vnode(u),u}var U,v,q,oe,G=0,Pe=[],F=[],m=p,re=m.__b,ie=m.__r,ce=m.diffed,le=m.__c,ue=m.unmount,se=m.__;function Y(e,_){m.__h&&m.__h(v,e,G||_),G=0;var t=v.__H||(v.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:F}),t.__[e]}function ae(e){return G=1,We(Ce,e)}function We(e,_,t){var o=Y(U++,2);if(o.t=e,!o.__c&&(o.__=[t?t(_):Ce(void 0,_),function(l){var s=o.__N?o.__N[0]:o.__[0],u=o.t(s,l);s!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=v,!v.u)){var n=function(l,s,u){if(!o.__c.__H)return!0;var f=o.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!r||r.call(this,l,s,u);var i=!1;return f.forEach(function(d){if(d.__N){var a=d.__[0];d.__=d.__N,d.__N=void 0,a!==d.__[0]&&(i=!0)}}),!(!i&&o.__c.props===l)&&(!r||r.call(this,l,s,u))};v.u=!0;var r=v.shouldComponentUpdate,c=v.componentWillUpdate;v.componentWillUpdate=function(l,s,u){if(this.__e){var f=r;r=void 0,n(l,s,u),r=f}c&&c.call(this,l,s,u)},v.shouldComponentUpdate=n}return o.__N||o.__}function De(e,_){var t=Y(U++,3);!m.__s&&Me(t.__H,_)&&(t.__=e,t.i=_,v.__H.__h.push(t))}function Fe(e){var _=v.context[e.__c],t=Y(U++,9);return t.c=e,_?(t.__==null&&(t.__=!0,_.sub(v)),_.props.value):e.__}function Ie(){for(var e;e=Pe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(I),e.__H.__h.forEach(K),e.__H.__h=[]}catch(_){e.__H.__h=[],m.__e(_,e.__v)}}m.__b=function(e){v=null,re&&re(e)},m.__=function(e,_){e&&_.__k&&_.__k.__m&&(e.__m=_.__k.__m),se&&se(e,_)},m.__r=function(e){ie&&ie(e),U=0;var _=(v=e.__c).__H;_&&(q===v?(_.__h=[],v.__h=[],_.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=F,t.__N=t.i=void 0})):(_.__h.forEach(I),_.__h.forEach(K),_.__h=[],U=0)),q=v},m.diffed=function(e){ce&&ce(e);var _=e.__c;_&&_.__H&&(_.__H.__h.length&&(Pe.push(_)!==1&&oe===m.requestAnimationFrame||((oe=m.requestAnimationFrame)||Oe)(Ie)),_.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==F&&(t.__=t.__V),t.i=void 0,t.__V=F})),q=v=null},m.__c=function(e,_){_.some(function(t){try{t.__h.forEach(I),t.__h=t.__h.filter(function(o){return!o.__||K(o)})}catch(o){_.some(function(n){n.__h&&(n.__h=[])}),_=[],m.__e(o,t.__v)}}),le&&le(e,_)},m.unmount=function(e){ue&&ue(e);var _,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(o){try{I(o)}catch(n){_=n}}),t.__H=void 0,_&&m.__e(_,t.__v))};var fe=typeof requestAnimationFrame=="function";function Oe(e){var _,t=function(){clearTimeout(o),fe&&cancelAnimationFrame(_),setTimeout(e)},o=setTimeout(t,100);fe&&(_=requestAnimationFrame(t))}function I(e){var _=v,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),v=_}function K(e){var _=v;e.__c=e.__(),v=_}function Me(e,_){return!e||e.length!==_.length||_.some(function(t,o){return t!==e[o]})}function Ce(e,_){return typeof _=="function"?_(e):_}let $e=xe({});const Ve=e=>$e=xe({...e}),Re=()=>Fe($e),de=e=>({accessToken:e==null?void 0:e.access_token,isLoggedIn:!!(e!=null&&e.access_token),expiresIn:e==null?void 0:e.expires_in}),qe={clientId:"apollo-promoted-benefits-app"},Be=async(e,_,t,o)=>{try{const n=new Headers;n.append("Content-Type","application/x-www-form-urlencoded");const r=new URLSearchParams;r.append("grant_type","authorization_code"),r.append("code",_),r.append("client_id",t),r.append("redirect_uri",o);const c=await fetch(`${e}/connect/token`,{method:"POST",headers:n,body:r});if(c.ok)return await c.json();throw new Error("Unexpected result from backend")}catch{throw new Error("Unexpected result from backend")}},je=e=>new URLSearchParams(window.location.search).get(e)??"",ze=()=>{const e=window.location.hostname;switch(!0){case(e.startsWith("autodev")||e.startsWith("localhost")):return"https://autodev-identity.flarehr.com";case e.startsWith("test"):return"https://test-identity.flarehr.com";case e.startsWith("sandbox"):return"https://sandbox-identity.flarehr.com";case e.startsWith("identity"):return"https://identity.flarehr.com"}},Ge=()=>{const e=ze(),_=je("code"),t=qe.clientId,o=`${window.location.origin}/promoted-benefits/app/v1.0/`;if(!e)throw new Error("identity url cannot be null");if(!_)throw new Error("auth code cannot be null");return Be(e,_,t,o)},Ke=()=>{const[e,_]=ae({}),[t,o]=ae(!1);Ve(e);const n=Re();return De(()=>{(async()=>{if(!t)try{const r=await Ge();r&&(_(de(r)),o(!0))}catch{_(de({})),o(!0)}})()},[]),t?n.isLoggedIn?H("div",{className:"text-3xl font-bold",children:H("h1",{children:"Hello World!"})}):H("div",{className:"text-3xl font-bold danger",children:H("h1",{children:"Auth failed"})}):H("p",{children:"Loading..."})};Te(H(Ke,{}),document.body);
package/dist/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  margin: 0;
9
9
  }
10
10
  </style>
11
- <script type="module" crossorigin src="/promoted-benefits/app/v1.0/assets/index-BZDI9Zmm.js"></script>
11
+ <script type="module" crossorigin src="/promoted-benefits/app/v1.0/assets/index-Dfr4aj6a.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/promoted-benefits/app/v1.0/assets/index-BRG82v_N.css">
13
13
  </head>
14
14
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/promoted-benefits-ui",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Flare Promoted Benefits",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -1 +0,0 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function t(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=t(n);fetch(n.href,r)}})();var F,d,J,w,z,Q,W,C={},X=[],ne=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function P(_,e){for(var t in e)_[t]=e[t];return _}function Y(_){var e=_.parentNode;e&&e.removeChild(_)}function oe(_,e,t){var i,n,r,l={};for(r in e)r=="key"?i=e[r]:r=="ref"?n=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?F.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)l[r]===void 0&&(l[r]=_.defaultProps[r]);return N(_,l,i,n,null)}function N(_,e,t,i,n){var r={type:_,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++J,__i:-1,__u:0};return n==null&&d.vnode!=null&&d.vnode(r),r}function O(_){return _.children}function M(_,e){this.props=_,this.context=e}function x(_,e){if(e==null)return _.__?x(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?x(_):null}function Z(_){var e,t;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null){_.__e=_.__c.base=t.__e;break}return Z(_)}}function G(_){(!_.__d&&(_.__d=!0)&&w.push(_)&&!U.__r++||z!==d.debounceRendering)&&((z=d.debounceRendering)||Q)(U)}function U(){var _,e,t,i,n,r,l,s,f;for(w.sort(W);_=w.shift();)_.__d&&(e=w.length,i=void 0,r=(n=(t=_).__v).__e,s=[],f=[],(l=t.__P)&&((i=P({},n)).__v=n.__v+1,d.vnode&&d.vnode(i),B(l,i,n,t.__n,l.ownerSVGElement!==void 0,32&n.__u?[r]:null,s,r??x(n),!!(32&n.__u),f),i.__v=n.__v,i.__.__k[i.__i]=i,te(s,i,f),i.__e!=r&&Z(i)),w.length>e&&w.sort(W));U.__r=0}function ee(_,e,t,i,n,r,l,s,f,u,p){var o,v,c,h,b,y=i&&i.__k||X,a=e.length;for(t.__d=f,re(t,e,y),f=t.__d,o=0;o<a;o++)(c=t.__k[o])!=null&&typeof c!="boolean"&&typeof c!="function"&&(v=c.__i===-1?C:y[c.__i]||C,c.__i=o,B(_,c,v,n,r,l,s,f,u,p),h=c.__e,c.ref&&v.ref!=c.ref&&(v.ref&&R(v.ref,null,c),p.push(c.ref,c.__c||h,c)),b==null&&h!=null&&(b=h),65536&c.__u||v.__k===c.__k?(h||v.__e!=f||(f=x(v)),f=_e(c,f,_)):typeof c.type=="function"&&c.__d!==void 0?f=c.__d:h&&(f=h.nextSibling),c.__d=void 0,c.__u&=-196609);t.__d=f,t.__e=b}function re(_,e,t){var i,n,r,l,s,f=e.length,u=t.length,p=u,o=0;for(_.__k=[],i=0;i<f;i++)l=i+o,(n=_.__k[i]=(n=e[i])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?N(null,n,null,null,null):I(n)?N(O,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?N(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=_,n.__b=_.__b+1,s=ie(n,t,l,p),n.__i=s,r=null,s!==-1&&(p--,(r=t[s])&&(r.__u|=131072)),r==null||r.__v===null?(s==-1&&o--,typeof n.type!="function"&&(n.__u|=65536)):s!==l&&(s===l+1?o++:s>l?p>f-l?o+=s-l:o--:s<l?s==l-1&&(o=s-l):o=0,s!==i+o&&(n.__u|=65536))):(r=t[l])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=x(r)),$(r,r,!1),t[l]=null,p--);if(p)for(i=0;i<u;i++)(r=t[i])!=null&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=x(r)),$(r,r))}function _e(_,e,t){var i,n;if(typeof _.type=="function"){for(i=_.__k,n=0;i&&n<i.length;n++)i[n]&&(i[n].__=_,e=_e(i[n],e,t));return e}_.__e!=e&&(t.insertBefore(_.__e,e||null),e=_.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ie(_,e,t,i){var n=_.key,r=_.type,l=t-1,s=t+1,f=e[t];if(f===null||f&&n==f.key&&r===f.type&&!(131072&f.__u))return t;if(i>(f!=null&&!(131072&f.__u)?1:0))for(;l>=0||s<e.length;){if(l>=0){if((f=e[l])&&!(131072&f.__u)&&n==f.key&&r===f.type)return l;l--}if(s<e.length){if((f=e[s])&&!(131072&f.__u)&&n==f.key&&r===f.type)return s;s++}}return-1}function V(_,e,t){e[0]==="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||ne.test(e)?t:t+"px"}function E(_,e,t,i,n){var r;e:if(e==="style")if(typeof t=="string")_.style.cssText=t;else{if(typeof i=="string"&&(_.style.cssText=i=""),i)for(e in i)t&&e in t||V(_.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||V(_.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in _||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=t,t?i?t.u=i.u:(t.u=Date.now(),_.addEventListener(e,r?K:q,r)):_.removeEventListener(e,r?K:q,r);else{if(n)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in _)try{_[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!=="-"?_.removeAttribute(e):_.setAttribute(e,t))}}function q(_){if(this.l){var e=this.l[_.type+!1];if(_.t){if(_.t<=e.u)return}else _.t=Date.now();return e(d.event?d.event(_):_)}}function K(_){if(this.l)return this.l[_.type+!0](d.event?d.event(_):_)}function B(_,e,t,i,n,r,l,s,f,u){var p,o,v,c,h,b,y,a,m,k,D,S,j,L,H,g=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(f=!!(32&t.__u),r=[s=e.__e=t.__e]),(p=d.__b)&&p(e);e:if(typeof g=="function")try{if(a=e.props,m=(p=g.contextType)&&i[p.__c],k=p?m?m.props.value:p.__:i,t.__c?y=(o=e.__c=t.__c).__=o.__E:("prototype"in g&&g.prototype.render?e.__c=o=new g(a,k):(e.__c=o=new M(a,k),o.constructor=g,o.render=se),m&&m.sub(o),o.props=a,o.state||(o.state={}),o.context=k,o.__n=i,v=o.__d=!0,o.__h=[],o._sb=[]),o.__s==null&&(o.__s=o.state),g.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=P({},o.__s)),P(o.__s,g.getDerivedStateFromProps(a,o.__s))),c=o.props,h=o.state,o.__v=e,v)g.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else{if(g.getDerivedStateFromProps==null&&a!==c&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(a,k),!o.__e&&(o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(a,o.__s,k)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(o.props=a,o.state=o.__s,o.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(T){T&&(T.__=e)}),D=0;D<o._sb.length;D++)o.__h.push(o._sb[D]);o._sb=[],o.__h.length&&l.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(a,o.__s,k),o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(c,h,b)})}if(o.context=k,o.props=a,o.__P=_,o.__e=!1,S=d.__r,j=0,"prototype"in g&&g.prototype.render){for(o.state=o.__s,o.__d=!1,S&&S(e),p=o.render(o.props,o.state,o.context),L=0;L<o._sb.length;L++)o.__h.push(o._sb[L]);o._sb=[]}else do o.__d=!1,S&&S(e),p=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++j<25);o.state=o.__s,o.getChildContext!=null&&(i=P(P({},i),o.getChildContext())),v||o.getSnapshotBeforeUpdate==null||(b=o.getSnapshotBeforeUpdate(c,h)),ee(_,I(H=p!=null&&p.type===O&&p.key==null?p.props.children:p)?H:[H],e,t,i,n,r,l,s,f,u),o.base=e.__e,e.__u&=-161,o.__h.length&&l.push(o),y&&(o.__E=o.__=null)}catch(T){e.__v=null,f||r!=null?(e.__e=s,e.__u|=f?160:32,r[r.indexOf(s)]=null):(e.__e=t.__e,e.__k=t.__k),d.__e(T,e,t)}else r==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=le(t.__e,e,t,i,n,r,l,f,u);(p=d.diffed)&&p(e)}function te(_,e,t){e.__d=void 0;for(var i=0;i<t.length;i++)R(t[i],t[++i],t[++i]);d.__c&&d.__c(e,_),_.some(function(n){try{_=n.__h,n.__h=[],_.some(function(r){r.call(n)})}catch(r){d.__e(r,n.__v)}})}function le(_,e,t,i,n,r,l,s,f){var u,p,o,v,c,h,b,y=t.props,a=e.props,m=e.type;if(m==="svg"&&(n=!0),r!=null){for(u=0;u<r.length;u++)if((c=r[u])&&"setAttribute"in c==!!m&&(m?c.localName===m:c.nodeType===3)){_=c,r[u]=null;break}}if(_==null){if(m===null)return document.createTextNode(a);_=n?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,a.is&&a),r=null,s=!1}if(m===null)y===a||s&&_.data===a||(_.data=a);else{if(r=r&&F.call(_.childNodes),y=t.props||C,!s&&r!=null)for(y={},u=0;u<_.attributes.length;u++)y[(c=_.attributes[u]).name]=c.value;for(u in y)c=y[u],u=="children"||(u=="dangerouslySetInnerHTML"?o=c:u==="key"||u in a||E(_,u,null,c,n));for(u in a)c=a[u],u=="children"?v=c:u=="dangerouslySetInnerHTML"?p=c:u=="value"?h=c:u=="checked"?b=c:u==="key"||s&&typeof c!="function"||y[u]===c||E(_,u,c,y[u],n);if(p)s||o&&(p.__html===o.__html||p.__html===_.innerHTML)||(_.innerHTML=p.__html),e.__k=[];else if(o&&(_.innerHTML=""),ee(_,I(v)?v:[v],e,t,i,n&&m!=="foreignObject",r,l,r?r[0]:t.__k&&x(t,0),s,f),r!=null)for(u=r.length;u--;)r[u]!=null&&Y(r[u]);s||(u="value",h!==void 0&&(h!==_[u]||m==="progress"&&!h||m==="option"&&h!==y[u])&&E(_,u,h,y[u],!1),u="checked",b!==void 0&&b!==_[u]&&E(_,u,b,y[u],!1))}return _}function R(_,e,t){try{typeof _=="function"?_(e):_.current=e}catch(i){d.__e(i,t)}}function $(_,e,t){var i,n;if(d.unmount&&d.unmount(_),(i=_.ref)&&(i.current&&i.current!==_.__e||R(i,null,e)),(i=_.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){d.__e(r,e)}i.base=i.__P=null,_.__c=void 0}if(i=_.__k)for(n=0;n<i.length;n++)i[n]&&$(i[n],e,t||typeof _.type!="function");t||_.__e==null||Y(_.__e),_.__=_.__e=_.__d=void 0}function se(_,e,t){return this.constructor(_,t)}function ue(_,e,t){var i,n,r,l;d.__&&d.__(_,e),n=(i=typeof t=="function")?null:t&&t.__k||e.__k,r=[],l=[],B(e,_=(!i&&t||e).__k=oe(O,null,[_]),n||C,C,e.ownerSVGElement!==void 0,!i&&t?[t]:n?null:e.firstChild?F.call(e.childNodes):null,r,!i&&t?t:n?n.__e:e.firstChild,i,l),te(r,_,l)}F=X.slice,d={__e:function(_,e,t,i){for(var n,r,l;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(_)),l=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(_,i||{}),l=n.__d),l)return n.__E=n}catch(s){_=s}throw _}},J=0,M.prototype.setState=function(_,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof _=="function"&&(_=_(P({},t),this.props)),_&&P(t,_),_!=null&&this.__v&&(e&&this._sb.push(e),G(this))},M.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),G(this))},M.prototype.render=O,w=[],Q=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,W=function(_,e){return _.__v.__b-e.__v.__b},U.__r=0;var fe=0;function A(_,e,t,i,n,r){var l,s,f={};for(s in e)s=="ref"?l=e[s]:f[s]=e[s];var u={type:_,props:f,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--fe,__i:-1,__u:0,__source:n,__self:r};if(typeof _=="function"&&(l=_.defaultProps))for(s in l)f[s]===void 0&&(f[s]=l[s]);return d.vnode&&d.vnode(u),u}const ce=()=>A("div",{className:"text-3xl font-bold",children:A("h1",{children:"Hello World!"})});ue(A(ce,{}),document.body);