@flarehr/promoted-benefits-admin 1.3.6402 → 1.3.6535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var __defProp=Object.defineProperty,__typeError=t=>{throw TypeError(t)},__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),__accessCheck=(t,e,n)=>e.has(t)||__typeError("Cannot "+n),__privateGet=(t,e,n)=>(__accessCheck(t,e,"read from private field"),n?n.call(t):e.get(t)),__privateAdd=(t,e,n)=>e.has(t)?__typeError("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),__privateSet=(t,e,n,r)=>(__accessCheck(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),__privateMethod=(t,e,n)=>(__accessCheck(t,e,"access private method"),n),__privateWrapper=(t,e,n,r)=>({set _(r){__privateSet(t,e,r,n)},get _(){return __privateGet(t,e,r)}});!function(){"use strict";var t,e,n,r,i,o,s,a,l,u,c,d,h,p,f,m,v,g,y,_,w,b,x,S,k,E,P,T,A,C,R,O,M,F,L,D,V,I,j,B,N,U,G,W,H,$,z,q,K,Y,Q,X,Z,J,tt,et,nt,rt,it,ot,st,at,lt,ut,ct,dt,ht,pt,ft,mt,vt,gt,yt,_t,wt,bt,xt,St,kt,Et,Pt,Tt,At,Ct={},Rt=[],Ot=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Mt=Array.isArray;function Ft(t,e){for(var n in e)t[n]=e[n];return t}function Lt(t){var e=t.parentNode;e&&e.removeChild(t)}function Dt(t,e,n){var r,i,o,s={};for(o in e)"key"==o?r=e[o]:"ref"==o?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?yt.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return Vt(t,s,r,i,null)}function Vt(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++wt:i,__i:-1,__u:0};return null==i&&null!=_t.vnode&&_t.vnode(o),o}function It(){return{current:null}}function jt(t){return t.children}function Bt(t,e){this.props=t,this.context=e}function Nt(t,e){if(null==e)return t.__?Nt(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Nt(t):null}function Ut(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Ut(t)}}function Gt(t){(!t.__d&&(t.__d=!0)&&bt.push(t)&&!Wt.__r++||xt!==_t.debounceRendering)&&((xt=_t.debounceRendering)||St)(Wt)}function Wt(){var t,e,n,r,i,o,s,a;for(bt.sort(kt);t=bt.shift();)t.__d&&(e=bt.length,r=void 0,o=(i=(n=t).__v).__e,s=[],a=[],n.__P&&((r=Ft({},i)).__v=i.__v+1,_t.vnode&&_t.vnode(r),Xt(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,null==o?Nt(i):o,!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Zt(s,r,a),r.__e!=o&&Ut(r)),bt.length>e&&bt.sort(kt));Wt.__r=0}function Ht(t,e,n,r,i,o,s,a,l,u,c){var d,h,p,f,m,v=r&&r.__k||Rt,g=e.length;for(n.__d=l,function(t,e,n){var r,i,o,s,a,l=e.length,u=n.length,c=u,d=0;for(t.__k=[],r=0;r<l;r++)s=r+d,null!=(i=t.__k[r]=null==(i=e[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Vt(null,i,null,null,null):Mt(i)?Vt(jt,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Vt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=t,i.__b=t.__b+1,a=qt(i,n,s,c),i.__i=a,o=null,-1!==a&&(c--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof i.type&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:a>s?c>l-s?d+=a-s:d--:a<s&&(a==s-d?d-=a-s:d++),a!==r+d&&(i.__u|=65536))):(o=n[s])&&null==o.key&&o.__e&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=Nt(o)),te(o,o,!1),n[s]=null,c--);if(c)for(r=0;r<u;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=Nt(o)),te(o,o))}(n,e,v),l=n.__d,d=0;d<g;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?Ct:v[p.__i]||Ct,p.__i=d,Xt(t,p,h,i,o,s,a,l,u,c),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Jt(h.ref,null,p),c.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||h.__k===p.__k?l=$t(p,l,t):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function $t(t,e,n){var r,i;if("function"==typeof t.type){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=$t(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=Nt(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function zt(t,e){return e=e||[],null==t||"boolean"==typeof t||(Mt(t)?t.some((function(t){zt(t,e)})):e.push(t)),e}function qt(t,e,n,r){var i=t.key,o=t.type,s=n-1,a=n+1,l=e[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;s>=0||a<e.length;){if(s>=0){if((l=e[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function Kt(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||Ot.test(e)?n:n+"px"}function Yt(t,e,n,r,i){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Kt(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Kt(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Et,t.addEventListener(e,o?Tt:Pt,o)):t.removeEventListener(e,o?Tt:Pt,o);else{if("http://www.w3.org/2000/svg"==i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(s){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function Qt(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=Et++;else if(e.t<n.u)return;return n(_t.event?_t.event(e):e)}}}function Xt(t,e,n,r,i,o,s,a,l,u){var c,d,h,p,f,m,v,g,y,_,w,b,x,S,k,E,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(c=_t.__b)&&c(e);t:if("function"==typeof P)try{if(g=e.props,y="prototype"in P&&P.prototype.render,_=(c=P.contextType)&&r[c.__c],w=c?_?_.props.value:c.__:r,n.__c?v=(d=e.__c=n.__c).__=d.__E:(y?e.__c=d=new P(g,w):(e.__c=d=new Bt(g,w),d.constructor=P,d.render=ee),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ft({},d.__s)),Ft(d.__s,P.getDerivedStateFromProps(g,d.__s))),p=d.props,f=d.state,d.__v=e,h)y&&null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==P.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&s.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,f,m)}))}if(d.context=w,d.props=g,d.__P=t,d.__e=!1,x=_t.__r,S=0,y){for(d.state=d.__s,d.__d=!1,x&&x(e),c=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,x&&x(e),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=Ft(Ft({},r),d.getChildContext())),y&&!h&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,f)),Ht(t,Mt(E=null!=c&&c.type===jt&&null==c.key?c.props.children:c)?E:[E],e,n,r,i,o,s,a,l,u),d.base=e.__e,e.__u&=-161,d.__h.length&&s.push(d),v&&(d.__E=d.__=null)}catch(T){if(e.__v=null,l||null!=o){for(e.__u|=l?160:32;a&&8===a.nodeType&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else e.__e=n.__e,e.__k=n.__k;_t.__e(T,e,n)}else null==o&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=function(t,e,n,r,i,o,s,a,l){var u,c,d,h,p,f,m,v=n.props,g=e.props,y=e.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){t=p,o[u]=null;break}if(null==t){if(null===y)return document.createTextNode(g);t=document.createElementNS(i,y,g.is&&g),o=null,a=!1}if(null===y)v===g||a&&t.data===g||(t.data=g);else{if(o=o&&yt.call(t.childNodes),v=n.props||Ct,!a&&null!=o)for(v={},u=0;u<t.attributes.length;u++)v[(p=t.attributes[u]).name]=p.value;for(u in v)if(p=v[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=p;else if("key"!==u&&!(u in g)){if("value"==u&&"defaultValue"in g||"checked"==u&&"defaultChecked"in g)continue;Yt(t,u,null,p,i)}for(u in g)p=g[u],"children"==u?h=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?f=p:"checked"==u?m=p:"key"===u||a&&"function"!=typeof p||v[u]===p||Yt(t,u,p,v[u],i);if(c)a||d&&(c.__html===d.__html||c.__html===t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(d&&(t.innerHTML=""),Ht(t,Mt(h)?h:[h],e,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Nt(n,0),a,l),null!=o)for(u=o.length;u--;)null!=o[u]&&Lt(o[u]);a||(u="value",void 0!==f&&(f!==t[u]||"progress"===y&&!f||"option"===y&&f!==v[u])&&Yt(t,u,f,v[u],i),u="checked",void 0!==m&&m!==t[u]&&Yt(t,u,m,v[u],i))}return t}(n.__e,e,n,r,i,o,s,l,u);(c=_t.diffed)&&c(e)}function Zt(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)Jt(n[r],n[++r],n[++r]);_t.__c&&_t.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(n){_t.__e(n,e.__v)}}))}function Jt(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(i){_t.__e(i,n)}}function te(t,e,n){var r,i;if(_t.unmount&&_t.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Jt(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){_t.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&te(r[i],e,n||"function"!=typeof t.type);n||null==t.__e||Lt(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function ee(t,e,n){return this.constructor(t,n)}function ne(t,e,n){var r,i,o,s;_t.__&&_t.__(t,e),i=(r="function"==typeof n)?null:n&&n.__k||e.__k,o=[],s=[],Xt(e,t=(!r&&n||e).__k=Dt(jt,null,[t]),i||Ct,Ct,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?yt.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Zt(o,t,s)}function re(t,e){ne(t,e,re)}function ie(t,e,n){var r,i,o,s,a=Ft({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==o?r=e[o]:"ref"==o?i=e[o]:a[o]=void 0===e[o]&&void 0!==s?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?yt.call(arguments,2):n),Vt(t.type,a,r||t.key,i||t.ref,null)}function oe(t,e){var n={__c:e="__cC"+At++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,Gt(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}function se(){return(se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}yt=Rt.slice,_t={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},wt=0,Bt.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ft({},this.state),"function"==typeof t&&(t=t(Ft({},n),this.props)),t&&Ft(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),Gt(this))},Bt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Gt(this))},Bt.prototype.render=jt,bt=[],St="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kt=function(t,e){return t.__v.__b-e.__v.__b},Wt.__r=0,Et=0,Pt=Qt(!1),Tt=Qt(!0),At=0;var ae=["context","children"];function le(t){return this.getChildContext=function(){return t.context},ie(t.children,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,ae))}function ue(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=Dt(le,se({},this._props,{context:t.detail.context}),function t(e,n){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var r=[],i={},o=0,s=e.attributes,a=e.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(i[s[o].name]=s[o].value,i[ce(s[o].name)]=s[o].value);for(o=a.length;o--;){var l=t(a[o],null),u=a[o].slot;u?i[u]=Dt(pe,{name:u},l):r[o]=l}var c=n?Dt(pe,null,r):r;return Dt(n||e.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?re:ne)(this._vdom,this._root)}function ce(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function de(t,e,n){if(this._vdom){var r={};r[t]=n=null==n?void 0:n,r[ce(t)]=n,this._vdom=ie(this._vdom,r),ne(this._vdom,this._root)}}function he(){ne(this._vdom=null,this._root)}function pe(t,e){var n=this;return Dt("slot",se({},t,{ref:function(t){t?(n.ref=t,n._listener||(n._listener=function(t){t.stopPropagation(),t.detail.context=e},t.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var fe=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(Cy){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})),this.tags=[],this.ctr=0},t}(),me="-ms-",ve="-moz-",ge="-webkit-",ye="comm",_e="rule",we="decl",be="@keyframes",xe=Math.abs,Se=String.fromCharCode,ke=Object.assign;function Ee(t){return t.trim()}function Pe(t,e,n){return t.replace(e,n)}function Te(t,e){return t.indexOf(e)}function Ae(t,e){return 0|t.charCodeAt(e)}function Ce(t,e,n){return t.slice(e,n)}function Re(t){return t.length}function Oe(t){return t.length}function Me(t,e){return e.push(t),t}var Fe=1,Le=1,De=0,Ve=0,Ie=0,je="";function Be(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Fe,column:Le,length:s,return:""}}function Ne(t,e){return ke(Be("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ue(){return Ie=Ve<De?Ae(je,Ve++):0,Le++,10===Ie&&(Le=1,Fe++),Ie}function Ge(){return Ae(je,Ve)}function We(){return Ve}function He(t,e){return Ce(je,t,e)}function $e(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ze(t){return Fe=Le=1,De=Re(je=t),Ve=0,[]}function qe(t){return je="",t}function Ke(t){return Ee(He(Ve-1,Xe(91===t?t+2:40===t?t+1:t)))}function Ye(t){for(;(Ie=Ge())&&Ie<33;)Ue();return $e(t)>2||$e(Ie)>3?"":" "}function Qe(t,e){for(;--e&&Ue()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return He(t,We()+(e<6&&32==Ge()&&32==Ue()))}function Xe(t){for(;Ue();)switch(Ie){case t:return Ve;case 34:case 39:34!==t&&39!==t&&Xe(Ie);break;case 40:41===t&&Xe(t);break;case 92:Ue()}return Ve}function Ze(t,e){for(;Ue()&&t+Ie!==57&&(t+Ie!==84||47!==Ge()););return"/*"+He(e,Ve-1)+"*"+Se(47===t?t:Ue())}function Je(t){for(;!$e(Ge());)Ue();return He(t,Ve)}function tn(t){return qe(en("",null,null,null,[""],t=ze(t),0,[0],t))}function en(t,e,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,h=0,p=0,f=0,m=1,v=1,g=1,y=0,_="",w=i,b=o,x=r,S=_;v;)switch(f=y,y=Ue()){case 40:if(108!=f&&58==Ae(S,d-1)){-1!=Te(S+=Pe(Ke(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Ke(y);break;case 9:case 10:case 13:case 32:S+=Ye(f);break;case 92:S+=Qe(We()-1,7);continue;case 47:switch(Ge()){case 42:case 47:Me(rn(Ze(Ue(),We()),e,n),l);break;default:S+="/"}break;case 123*m:a[u++]=Re(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(S=Pe(S,/\f/g,"")),p>0&&Re(S)-d&&Me(p>32?on(S+";",r,n,d-1):on(Pe(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Me(x=nn(S,e,n,u,c,i,a,_,w=[],b=[],d),o),123===y)if(0===c)en(S,e,x,x,w,o,d,a,b);else switch(99===h&&110===Ae(S,3)?100:h){case 100:case 108:case 109:case 115:en(t,x,x,r&&Me(nn(t,x,x,0,0,i,a,_,i,w=[],d),b),i,b,d,a,r?w:b);break;default:en(S,x,x,x,[""],b,0,a,b)}}u=c=p=0,m=g=1,_=S="",d=s;break;case 58:d=1+Re(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(Ie=Ve>0?Ae(je,--Ve):0,Le--,10===Ie&&(Le=1,Fe--),Ie))continue;switch(S+=Se(y),y*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:a[u++]=(Re(S)-1)*g,g=1;break;case 64:45===Ge()&&(S+=Ke(Ue())),h=Ge(),c=d=Re(_=S+=Je(We())),y++;break;case 45:45===f&&2==Re(S)&&(m=0)}}return o}function nn(t,e,n,r,i,o,s,a,l,u,c){for(var d=i-1,h=0===i?o:[""],p=Oe(h),f=0,m=0,v=0;f<r;++f)for(var g=0,y=Ce(t,d+1,d=xe(m=s[f])),_=t;g<p;++g)(_=Ee(m>0?h[g]+" "+y:Pe(y,/&\f/g,h[g])))&&(l[v++]=_);return Be(t,e,n,0===i?_e:a,l,u,c)}function rn(t,e,n){return Be(t,e,n,ye,Se(Ie),Ce(t,2,-2),0)}function on(t,e,n,r){return Be(t,e,n,we,Ce(t,0,r),Ce(t,r+1,-1),r)}function sn(t,e){for(var n="",r=Oe(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function an(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case we:return t.return=t.return||t.value;case ye:return"";case be:return t.return=t.value+"{"+sn(t.children,r)+"}";case _e:t.value=t.props.join(",")}return Re(n=sn(t.children,r))?t.return=t.value+"{"+n+"}":""}function ln(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var un=function(t,e,n){for(var r=0,i=0;r=i,i=Ge(),38===r&&12===i&&(e[n]=1),!$e(i);)Ue();return He(t,Ve)},cn=function(t,e){return qe(function(t,e){var n=-1,r=44;do{switch($e(r)){case 0:38===r&&12===Ge()&&(e[n]=1),t[n]+=un(Ve-1,e,n);break;case 2:t[n]+=Ke(r);break;case 4:if(44===r){t[++n]=58===Ge()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=Se(r)}}while(r=Ue());return t}(ze(t),e))},dn=new WeakMap,hn=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||dn.get(n))&&!r){dn.set(t,!0);for(var i=[],o=cn(e,i),s=n.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)t.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},pn=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function fn(t,e){switch(function(t,e){return 45^Ae(t,0)?(((e<<2^Ae(t,0))<<2^Ae(t,1))<<2^Ae(t,2))<<2^Ae(t,3):0}(t,e)){case 5103:return ge+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ge+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ge+t+ve+t+me+t+t;case 6828:case 4268:return ge+t+me+t+t;case 6165:return ge+t+me+"flex-"+t+t;case 5187:return ge+t+Pe(t,/(\w+).+(:[^]+)/,ge+"box-$1$2"+me+"flex-$1$2")+t;case 5443:return ge+t+me+"flex-item-"+Pe(t,/flex-|-self/,"")+t;case 4675:return ge+t+me+"flex-line-pack"+Pe(t,/align-content|flex-|-self/,"")+t;case 5548:return ge+t+me+Pe(t,"shrink","negative")+t;case 5292:return ge+t+me+Pe(t,"basis","preferred-size")+t;case 6060:return ge+"box-"+Pe(t,"-grow","")+ge+t+me+Pe(t,"grow","positive")+t;case 4554:return ge+Pe(t,/([^-])(transform)/g,"$1"+ge+"$2")+t;case 6187:return Pe(Pe(Pe(t,/(zoom-|grab)/,ge+"$1"),/(image-set)/,ge+"$1"),t,"")+t;case 5495:case 3959:return Pe(t,/(image-set\([^]*)/,ge+"$1$`$1");case 4968:return Pe(Pe(t,/(.+:)(flex-)?(.*)/,ge+"box-pack:$3"+me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ge+t+t;case 4095:case 3583:case 4068:case 2532:return Pe(t,/(.+)-inline(.+)/,ge+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Re(t)-1-e>6)switch(Ae(t,e+1)){case 109:if(45!==Ae(t,e+4))break;case 102:return Pe(t,/(.+:)(.+)-([^]+)/,"$1"+ge+"$2-$3$1"+ve+(108==Ae(t,e+3)?"$3":"$2-$3"))+t;case 115:return~Te(t,"stretch")?fn(Pe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==Ae(t,e+1))break;case 6444:switch(Ae(t,Re(t)-3-(~Te(t,"!important")&&10))){case 107:return Pe(t,":",":"+ge)+t;case 101:return Pe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ge+(45===Ae(t,14)?"inline-":"")+"box$3$1"+ge+"$2$3$1"+me+"$2box$3")+t}break;case 5936:switch(Ae(t,e+11)){case 114:return ge+t+me+Pe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ge+t+me+Pe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ge+t+me+Pe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ge+t+me+t+t}return t}var mn,vn,gn,yn,_n=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case we:t.return=fn(t.value,t.length);break;case be:return sn([Ne(t,{value:Pe(t.value,"@","@"+ge)})],r);case _e:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Ne(t,{props:[Pe(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return sn([Ne(t,{props:[Pe(e,/:(plac\w+)/,":"+ge+"input-$1")]}),Ne(t,{props:[Pe(e,/:(plac\w+)/,":-moz-$1")]}),Ne(t,{props:[Pe(e,/:(plac\w+)/,me+"input-$1")]})],r)}return""}))}}],wn=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var r,i,o=t.stylisPlugins||_n,s={},a=[];r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)s[e[n]]=!0;a.push(t)}));var l,u,c,d,h=[an,(d=function(t){l.insert(t)},function(t){t.root||(t=t.return)&&d(t)})],p=(u=[hn,pn].concat(o,h),c=Oe(u),function(t,e,n,r){for(var i="",o=0;o<c;o++)i+=u[o](t,e,n,r)||"";return i});i=function(t,e,n,r){l=n,sn(tn(t?t+"{"+e.styles+"}":e.styles),p),r&&(f.inserted[e.name]=!0)};var f={key:e,sheet:new fe({key:e,container:r,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(a),f},bn=0,xn=[],Sn=_t,kn=Sn.__b,En=Sn.__r,Pn=Sn.diffed,Tn=Sn.__c,An=Sn.unmount,Cn=Sn.__;function Rn(t,e){Sn.__h&&Sn.__h(vn,t,bn||e),bn=0;var n=vn.__H||(vn.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function On(t){return bn=1,Mn(Kn,t)}function Mn(t,e,n){var r=Rn(mn++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Kn(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=vn,!vn.u)){var i=function(t,e,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(t){return!!t.__c}));if(i.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var s=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&r.__c.props===t)&&(!o||o.call(this,t,e,n))};vn.u=!0;var o=vn.shouldComponentUpdate,s=vn.componentWillUpdate;vn.componentWillUpdate=function(t,e,n){if(this.__e){var r=o;o=void 0,i(t,e,n),o=r}s&&s.call(this,t,e,n)},vn.shouldComponentUpdate=i}return r.__N||r.__}function Fn(t,e){var n=Rn(mn++,3);!Sn.__s&&qn(n.__H,e)&&(n.__=t,n.i=e,vn.__H.__h.push(n))}function Ln(t,e){var n=Rn(mn++,4);!Sn.__s&&qn(n.__H,e)&&(n.__=t,n.i=e,vn.__h.push(n))}function Dn(t){return bn=5,In((function(){return{current:t}}),[])}function Vn(t,e,n){bn=6,Ln((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function In(t,e){var n=Rn(mn++,7);return qn(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function jn(t,e){return bn=8,In((function(){return t}),e)}function Bn(t){var e=vn.context[t.__c],n=Rn(mn++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(vn)),e.props.value):t.__}function Nn(t,e){Sn.useDebugValue&&Sn.useDebugValue(e?e(t):t)}function Un(){var t=Rn(mn++,11);if(!t.__){for(var e=vn.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function Gn(){for(var t;t=xn.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach($n),t.__H.__h.forEach(zn),t.__H.__h=[]}catch(F_){t.__H.__h=[],Sn.__e(F_,t.__v)}}Sn.__b=function(t){vn=null,kn&&kn(t)},Sn.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Cn&&Cn(t,e)},Sn.__r=function(t){En&&En(t),mn=0;var e=(vn=t.__c).__H;e&&(gn===vn?(e.__h=[],vn.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach($n),e.__h.forEach(zn),e.__h=[],mn=0)),gn=vn},Sn.diffed=function(t){Pn&&Pn(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==xn.push(e)&&yn===Sn.requestAnimationFrame||((yn=Sn.requestAnimationFrame)||Hn)(Gn)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),gn=vn=null},Sn.__c=function(t,e){e.some((function(t){try{t.__h.forEach($n),t.__h=t.__h.filter((function(t){return!t.__||zn(t)}))}catch(h_){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Sn.__e(h_,t.__v)}})),Tn&&Tn(t,e)},Sn.unmount=function(t){An&&An(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{$n(t)}catch(n){e=n}})),n.__H=void 0,e&&Sn.__e(e,n.__v))};var Wn="function"==typeof requestAnimationFrame;function Hn(t){var e,n=function(){clearTimeout(r),Wn&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Wn&&(e=requestAnimationFrame(n))}function $n(t){var e=vn,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),vn=e}function zn(t){var e=vn;t.__c=t.__(),vn=e}function qn(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Kn(t,e){return"function"==typeof e?e(t):e}function Yn(t,e){for(var n in e)t[n]=e[n];return t}function Qn(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function Xn(t,e){this.props=t,this.context=e}function Zn(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:Qn(this.props,t)}function r(e){return this.shouldComponentUpdate=n,Dt(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xn.prototype=new Bt).isPureReactComponent=!0,Xn.prototype.shouldComponentUpdate=function(t,e){return Qn(this.props,t)||Qn(this.state,e)};var Jn=_t.__b;_t.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Jn&&Jn(t)};var tr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function er(t){function e(e){var n=Yn({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=tr,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var nr=function(t,e){return null==t?null:zt(zt(t).map(e))},rr={map:nr,forEach:nr,count:function(t){return t?zt(t).length:0},only:function(t){var e=zt(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:zt},ir=_t.__e;_t.__e=function(t,e,n,r){if(t.then)for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e);ir(t,e,n,r)};var or=_t.unmount;function sr(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=Yn({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return sr(t,e,n)}))),t}function ar(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return ar(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function lr(){this.__u=0,this.t=null,this.__b=null}function ur(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function cr(t){var e,n,r;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return Dt(n,i)}return i.displayName="Lazy",i.__f=!0,i}function dr(){this.u=null,this.o=null}_t.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),or&&or(t)},(lr.prototype=new Bt).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ur(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=ar(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},lr.prototype.componentWillUnmount=function(){this.t=[]},lr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=sr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&Dt(jt,null,t.fallback);return i&&(i.__u&=-33),[Dt(jt,null,e.__a?null:t.children),i]};var hr=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function pr(t){return this.getChildContext=function(){return t.context},t.children}function fr(t){var e=this,n=t.i;e.componentWillUnmount=function(){ne(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),ne(Dt(pr,{context:e.context},t.__v),e.l)}function mr(t,e){var n=Dt(fr,{__v:t,i:e});return n.containerInfo=e,n}(dr.prototype=new Bt).__a=function(t){var e=this,n=ur(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),hr(e,t,r)):i()};n?n(o):o()}},dr.prototype.render=function(t){this.u=null,this.o=new Map;var e=zt(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},dr.prototype.componentDidUpdate=dr.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){hr(t,n,e)}))};var vr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,gr=/^(?: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]/,yr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_r=/[A-Z0-9]/g,wr="undefined"!=typeof document,br=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function xr(t,e,n){return null==e.__k&&(e.textContent=""),ne(t,e),"function"==typeof n&&n(),t?t.__c:null}function Sr(t,e,n){return re(t,e),"function"==typeof n&&n(),t?t.__c:null}Bt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(Bt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var kr=_t.event;function Er(){}function Pr(){return this.cancelBubble}function Tr(){return this.defaultPrevented}_t.event=function(t){return kr&&(t=kr(t)),t.persist=Er,t.isPropagationStopped=Pr,t.isDefaultPrevented=Tr,t.nativeEvent=t};var Ar,Cr={enumerable:!1,configurable:!0,get:function(){return this.class}},Rr=_t.vnode;_t.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,r={},i=-1===n.indexOf("-");for(var o in e){var s=e[o];if(!("value"===o&&"defaultValue"in e&&null==s||wr&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||br(e.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":yr.test(o)&&(o=a):a=o="oninput":i&&gr.test(o)?o=o.replace(_r,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=zt(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=zt(e.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),e.class&&!e.className?(r.class=e.class,Object.defineProperty(r,"className",Cr)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r}(t),t.$$typeof=vr,Rr&&Rr(t)};var Or=_t.__r;_t.__r=function(t){Or&&Or(t),Ar=t.__c};var Mr=_t.diffed;_t.diffed=function(t){Mr&&Mr(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),Ar=null};var Fr={ReactCurrentDispatcher:{current:{readContext:function(t){return Ar.__n[t.__c].props.value},useCallback:jn,useContext:Bn,useDebugValue:Nn,useDeferredValue:$r,useEffect:Fn,useId:Un,useImperativeHandle:Vn,useInsertionEffect:qr,useLayoutEffect:Ln,useMemo:In,useReducer:Mn,useRef:Dn,useState:On,useSyncExternalStore:Yr,useTransition:zr}}};function Lr(t){return Dt.bind(null,t)}function Dr(t){return!!t&&t.$$typeof===vr}function Vr(t){return Dr(t)&&t.type===jt}function Ir(t){return!!t&&!!t.displayName&&("string"==typeof t.displayName||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function jr(t){return Dr(t)?ie.apply(null,arguments):t}function Br(t){return!!t.__k&&(ne(null,t),!0)}function Nr(t){return t&&(t.base||1===t.nodeType&&t)||null}var Ur=function(t,e){return t(e)},Gr=function(t,e){return t(e)},Wr=jt;function Hr(t){t()}function $r(t){return t}function zr(){return[!1,Hr]}var qr=Ln,Kr=Dr;function Yr(t,e){var n=e(),r=On({h:{__:n,v:e}}),i=r[0].h,o=r[1];return Ln((function(){i.__=n,i.v=e,Qr(i)&&o({h:i})}),[t,n,e]),Fn((function(){return Qr(i)&&o({h:i}),t((function(){Qr(i)&&o({h:i})}))}),[t]),n}function Qr(t){var e,n,r=t.v,i=t.__;try{var o=r();return!((e=i)===(n=o)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(s){return!0}}var Xr={useState:On,useId:Un,useReducer:Mn,useEffect:Fn,useLayoutEffect:Ln,useInsertionEffect:qr,useTransition:zr,useDeferredValue:$r,useSyncExternalStore:Yr,startTransition:Hr,useRef:Dn,useImperativeHandle:Vn,useMemo:In,useCallback:jn,useContext:Bn,useDebugValue:Nn,version:"17.0.2",Children:rr,render:xr,hydrate:Sr,unmountComponentAtNode:Br,createPortal:mr,createElement:Dt,createContext:oe,createFactory:Lr,cloneElement:jr,createRef:It,Fragment:jt,isValidElement:Dr,isElement:Kr,isFragment:Vr,isMemo:Ir,findDOMNode:Nr,Component:Bt,PureComponent:Xn,memo:Zn,forwardRef:er,flushSync:Gr,unstable_batchedUpdates:Ur,StrictMode:Wr,Suspense:lr,SuspenseList:dr,lazy:cr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fr};const Zr=Object.freeze(Object.defineProperty({__proto__:null,Children:rr,Component:Bt,Fragment:jt,PureComponent:Xn,StrictMode:Wr,Suspense:lr,SuspenseList:dr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fr,cloneElement:jr,createContext:oe,createElement:Dt,createFactory:Lr,createPortal:mr,createRef:It,default:Xr,findDOMNode:Nr,flushSync:Gr,forwardRef:er,hydrate:Sr,isElement:Kr,isFragment:Vr,isMemo:Ir,isValidElement:Dr,lazy:cr,memo:Zn,render:xr,startTransition:Hr,unmountComponentAtNode:Br,unstable_batchedUpdates:Ur,useCallback:jn,useContext:Bn,useDebugValue:Nn,useDeferredValue:$r,useEffect:Fn,useErrorBoundary:function(t){var e=Rn(mn++,10),n=On();return e.__=t,vn.componentDidCatch||(vn.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]},useId:Un,useImperativeHandle:Vn,useInsertionEffect:qr,useLayoutEffect:Ln,useMemo:In,useReducer:Mn,useRef:Dn,useState:On,useSyncExternalStore:Yr,useTransition:zr,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));function Jr(){return Jr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jr.apply(null,arguments)}var ti={exports:{}},ei={},ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.element"):60103,ii=ni?Symbol.for("react.portal"):60106,oi=ni?Symbol.for("react.fragment"):60107,si=ni?Symbol.for("react.strict_mode"):60108,ai=ni?Symbol.for("react.profiler"):60114,li=ni?Symbol.for("react.provider"):60109,ui=ni?Symbol.for("react.context"):60110,ci=ni?Symbol.for("react.async_mode"):60111,di=ni?Symbol.for("react.concurrent_mode"):60111,hi=ni?Symbol.for("react.forward_ref"):60112,pi=ni?Symbol.for("react.suspense"):60113,fi=ni?Symbol.for("react.suspense_list"):60120,mi=ni?Symbol.for("react.memo"):60115,vi=ni?Symbol.for("react.lazy"):60116,gi=ni?Symbol.for("react.block"):60121,yi=ni?Symbol.for("react.fundamental"):60117,_i=ni?Symbol.for("react.responder"):60118,wi=ni?Symbol.for("react.scope"):60119;function bi(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case ri:switch(t=t.type){case ci:case di:case oi:case ai:case si:case pi:return t;default:switch(t=t&&t.$$typeof){case ui:case hi:case vi:case mi:case li:return t;default:return e}}case ii:return e}}}function xi(t){return bi(t)===di}ei.AsyncMode=ci,ei.ConcurrentMode=di,ei.ContextConsumer=ui,ei.ContextProvider=li,ei.Element=ri,ei.ForwardRef=hi,ei.Fragment=oi,ei.Lazy=vi,ei.Memo=mi,ei.Portal=ii,ei.Profiler=ai,ei.StrictMode=si,ei.Suspense=pi,ei.isAsyncMode=function(t){return xi(t)||bi(t)===ci},ei.isConcurrentMode=xi,ei.isContextConsumer=function(t){return bi(t)===ui},ei.isContextProvider=function(t){return bi(t)===li},ei.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===ri},ei.isForwardRef=function(t){return bi(t)===hi},ei.isFragment=function(t){return bi(t)===oi},ei.isLazy=function(t){return bi(t)===vi},ei.isMemo=function(t){return bi(t)===mi},ei.isPortal=function(t){return bi(t)===ii},ei.isProfiler=function(t){return bi(t)===ai},ei.isStrictMode=function(t){return bi(t)===si},ei.isSuspense=function(t){return bi(t)===pi},ei.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===oi||t===di||t===ai||t===si||t===pi||t===fi||"object"==typeof t&&null!==t&&(t.$$typeof===vi||t.$$typeof===mi||t.$$typeof===li||t.$$typeof===ui||t.$$typeof===hi||t.$$typeof===yi||t.$$typeof===_i||t.$$typeof===wi||t.$$typeof===gi)},ei.typeOf=bi,ti.exports=ei;var Si=ti.exports,ki={};ki[Si.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ki[Si.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Ei(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "})),r}var Pi=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},Ti=function(t,e,n){Pi(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var i=e;do{t.insert(e===i?"."+r:"",i,t.sheet,!0),i=i.next}while(void 0!==i)}};var Ai={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ci=!1,Ri=/[A-Z]|^ms/g,Oi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mi=function(t){return 45===t.charCodeAt(1)},Fi=function(t){return null!=t&&"boolean"!=typeof t},Li=ln((function(t){return Mi(t)?t:t.replace(Ri,"-$&").toLowerCase()})),Di=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Oi,(function(t,e,n){return ji={name:e,styles:n,next:ji},e}))}return 1===Ai[t]||Mi(t)||"number"!=typeof e||0===e?e:e+"px"},Vi="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ii(t,e,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return ji={name:i.name,styles:i.styles,next:ji},i.name;var o=n;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)ji={name:s.name,styles:s.styles,next:ji},s=s.next;return o.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ii(t,e,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s){var a=s;null!=e&&void 0!==e[a]?r+=o+"{"+e[a]+"}":Fi(a)&&(r+=Li(o)+":"+Di(o,a)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&Ci)throw new Error(Vi);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=e&&void 0!==e[s[0]]){var l=Ii(t,e,s);switch(o){case"animation":case"animationName":r+=Li(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<s.length;u++)Fi(s[u])&&(r+=Li(o)+":"+Di(o,s[u])+";")}}return r}(t,e,n);case"function":if(void 0!==t){var a=ji,l=n(t);return ji=a,Ii(t,e,l)}}var u=n;if(null==e)return u;var c=e[u];return void 0!==c?c:u}var ji,Bi=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Ni(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";ji=void 0;var o=t[0];null==o||void 0===o.raw?(r=!1,i+=Ii(n,e,o)):i+=o[0];for(var s=1;s<t.length;s++){if(i+=Ii(n,e,t[s]),r)i+=o[s]}Bi.lastIndex=0;for(var a,l="";null!==(a=Bi.exec(i));)l+="-"+a[1];var u=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:ji}}var Ui=!!Zr.useInsertionEffect&&Zr.useInsertionEffect,Gi=Ui||function(t){return t()},Wi=Ui||Ln,Hi=oe("undefined"!=typeof HTMLElement?wn({key:"css"}):null),$i=Hi.Provider,zi=function(t){return er((function(e,n){var r=Bn(Hi);return t(e,r,n)}))},qi=oe({}),Ki={}.hasOwnProperty,Yi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qi=function(t,e){var n={};for(var r in e)Ki.call(e,r)&&(n[r]=e[r]);return n[Yi]=t,n},Xi=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return Pi(e,n,r),Gi((function(){return Ti(e,n,r)})),null},Zi=zi((function(t,e,n){var r=t.css;"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var i=t[Yi],o=[r],s="";"string"==typeof t.className?s=Ei(e.registered,o,t.className):null!=t.className&&(s=t.className+" ");var a=Ni(o,void 0,Bn(qi));s+=e.key+"-"+a.name;var l={};for(var u in t)Ki.call(t,u)&&"css"!==u&&u!==Yi&&(l[u]=t[u]);return l.className=s,n&&(l.ref=n),Dt(jt,null,Dt(Xi,{cache:e,serialized:a,isStringTag:"string"==typeof i}),Dt(i,l))})),Ji=zi((function(t,e){var n=Ni([t.styles],void 0,Bn(qi)),r=Dn();return Wi((function(){var t=e.key+"-global",i=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),o=!1,s=document.querySelector('style[data-emotion="'+t+" "+n.name+'"]');return e.sheet.tags.length&&(i.before=e.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",t),i.hydrate([s])),r.current=[i,o],function(){i.flush()}}),[e]),Wi((function(){var t=r.current,i=t[0];if(t[1])t[1]=!1;else{if(void 0!==n.next&&Ti(e,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}e.insert("",n,i,!1)}}),[e,n.name]),null}));function to(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ni(e)}var eo=0;function no(t,e,n,r,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)"ref"==a?s=e[a]:l[a]=e[a];var u={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--eo,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof t&&(s=t.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return _t.vnode&&_t.vnode(u),u}var ro=jt;function io(t,e,n){return Ki.call(e,"css")?no(Zi,Qi(t,e),n):no(t,e,n)}function oo(t,e,n){return Ki.call(e,"css")?no(Zi,Qi(t,e),n):no(t,e,n)}const so=to({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),ao=()=>oo(jt,{children:[io(Ji,{styles:to`
|
|
2
2
|
${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")",backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")"},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")"},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
|
|
3
|
-
`}),io(Ji,{styles:so})]});let lo;const uo=()=>Bn(lo);class co extends Error{constructor(t,e){super(t),__publicField(this,"response"),this.response=e}}const ho=async(t,e,n,r)=>{await po(t,e,n,r,!0)},po=async(t,e,n,r,i)=>{const o=await fetch(t,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.3.6402",authorization:`Bearer ${e}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!o.ok)throw new co(`[API Error] Status: ${o.statusText}. Response: ${await o.text()}`,o);return i?{}:await o.json()},fo=t=>async e=>{const n=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`);return ho(n,t.accessToken,"POST",e)},mo=t=>e=>async n=>{const r=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion/${e}`);return ho(r,t.accessToken,"PUT",n)},vo=()=>{const t=uo();return{getAllPromotions:(e=t.backend,async()=>{const t=new URL(`${e.url}/promoted-benefits/admin/v1.0/promotion`);return po(t,e.accessToken,"GET")}),createPromotion:fo(t.backend),updatePromotion:mo(t.backend)};var e};var go=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yo="undefined"==typeof window||"Deno"in globalThis;function _o(){}function wo(t){return"number"==typeof t&&t>=0&&t!==1/0}function bo(t,e){return Math.max(t+(e||0)-Date.now(),0)}function xo(t,e){return"function"==typeof t?t(e):t}function So(t,e){return"function"==typeof t?t(e):t}function ko(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=t;if(s)if(r){if(e.queryHash!==Po(s,e.options))return!1}else if(!Ao(e.queryKey,s))return!1;if("all"!==n){const t=e.isActive();if("active"===n&&!t)return!1;if("inactive"===n&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&((!i||i===e.state.fetchStatus)&&!(o&&!o(e)))}function Eo(t,e){const{exact:n,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(To(e.options.mutationKey)!==To(o))return!1}else if(!Ao(e.options.mutationKey,o))return!1}return(!r||e.state.status===r)&&!(i&&!i(e))}function Po(t,e){return((null==e?void 0:e.queryKeyHashFn)||To)(t)}function To(t){return JSON.stringify(t,((t,e)=>Mo(e)?Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],t)),{}):e))}function Ao(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some((n=>!Ao(t[n],e[n]))))}function Co(t,e){if(t===e)return t;const n=Oo(t)&&Oo(e);if(n||Mo(t)&&Mo(e)){const r=n?t:Object.keys(t),i=r.length,o=n?e:Object.keys(e),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const i=n?u:o[u];(!n&&r.includes(i)||n)&&void 0===t[i]&&void 0===e[i]?(a[i]=void 0,l++):(a[i]=Co(t[i],e[i]),a[i]===t[i]&&void 0!==t[i]&&l++)}return i===s&&l===i?t:a}return e}function Ro(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Oo(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Mo(t){if(!Fo(t))return!1;const e=t.constructor;if(void 0===e)return!0;const n=e.prototype;return!!Fo(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}function Fo(t){return"[object Object]"===Object.prototype.toString.call(t)}function Lo(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?Co(t,e):e}function Do(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Vo(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Io=Symbol();function jo(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==Io?t.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}var Bo=new(r=class extends go{constructor(){super(),__privateAdd(this,t),__privateAdd(this,e),__privateAdd(this,n),__privateSet(this,n,(t=>{if(!yo&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}))}onSubscribe(){__privateGet(this,e)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=__privateGet(this,e))||t.call(this),__privateSet(this,e,void 0))}setEventListener(t){var r;__privateSet(this,n,t),null==(r=__privateGet(this,e))||r.call(this),__privateSet(this,e,t((t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})))}setFocused(e){__privateGet(this,t)!==e&&(__privateSet(this,t,e),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach((e=>{e(t)}))}isFocused(){var e;return"boolean"==typeof __privateGet(this,t)?__privateGet(this,t):"hidden"!==(null==(e=globalThis.document)?void 0:e.visibilityState)}},t=new WeakMap,e=new WeakMap,n=new WeakMap,r),No=new(a=class extends go{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,s),__privateSet(this,s,(t=>{if(!yo&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,s))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,void 0))}setEventListener(t){var e;__privateSet(this,s,t),null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,t(this.setOnline.bind(this)))}setOnline(t){__privateGet(this,i)!==t&&(__privateSet(this,i,t),this.listeners.forEach((e=>{e(t)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,s=new WeakMap,a);function Uo(t){return Math.min(1e3*2**t,3e4)}function Go(t){return"online"!==(t??"online")||No.isOnline()}var Wo=class extends Error{constructor(t){super("CancelledError"),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}};function Ho(t){return t instanceof Wo}function $o(t){let e,n,r,i=!1,o=0,s=!1;const a=new Promise(((t,e)=>{n=t,r=e})),l=()=>Bo.isFocused()&&("always"===t.networkMode||No.isOnline())&&t.canRun(),u=()=>Go(t.networkMode)&&t.canRun(),c=r=>{var i;s||(s=!0,null==(i=t.onSuccess)||i.call(t,r),null==e||e(),n(r))},d=n=>{var i;s||(s=!0,null==(i=t.onError)||i.call(t,n),null==e||e(),r(n))},h=()=>new Promise((n=>{var r;e=t=>{(s||l())&&n(t)},null==(r=t.onPause)||r.call(t)})).then((()=>{var n;e=void 0,s||null==(n=t.onContinue)||n.call(t)})),p=()=>{if(s)return;let e;const n=0===o?t.initialPromise:void 0;try{e=n??t.fn()}catch(r){e=Promise.reject(r)}Promise.resolve(e).then(c).catch((e=>{var n;if(s)return;const r=t.retry??(yo?0:3),a=t.retryDelay??Uo,u="function"==typeof a?a(o,e):a,c=!0===r||"number"==typeof r&&o<r||"function"==typeof r&&r(o,e);var f;!i&&c?(o++,null==(n=t.onFail)||n.call(t,o,e),(f=u,new Promise((t=>{setTimeout(t,f)}))).then((()=>l()?void 0:h())).then((()=>{i?d(e):p()}))):d(e)}))};return{promise:a,cancel:e=>{var n;s||(d(new Wo(e)),null==(n=t.abort)||n.call(t))},continue:()=>(null==e||e(),a),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:u,start:()=>(u()?p():h().then(p),a)}}var zo=function(){let t=[],e=0,n=t=>{t()},r=t=>{t()},i=t=>setTimeout(t,0);const o=r=>{e?t.push(r):i((()=>{n(r)}))};return{batch:o=>{let s;e++;try{s=o()}finally{e--,e||(()=>{const e=t;t=[],e.length&&i((()=>{r((()=>{e.forEach((t=>{n(t)}))}))}))})()}return s},batchCalls:t=>(...e)=>{o((()=>{t(...e)}))},schedule:o,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{i=t}}}(),qo=(u=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wo(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(yo?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,u),Ko=(y=class extends qo{constructor(t){super(),__privateAdd(this,v),__privateAdd(this,c),__privateAdd(this,d),__privateAdd(this,h),__privateAdd(this,p),__privateAdd(this,f),__privateAdd(this,m),__privateSet(this,m,!1),__privateSet(this,f,t.defaultOptions),this.setOptions(t.options),this.observers=[],__privateSet(this,h,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,__privateSet(this,c,function(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=t.state??__privateGet(this,c),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return null==(t=__privateGet(this,p))?void 0:t.promise}setOptions(t){this.options={...__privateGet(this,f),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,h).remove(this)}setData(t,e){const n=Lo(this.state.data,t,this.options);return __privateMethod(this,v,g).call(this,{data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}setState(t,e){__privateMethod(this,v,g).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,n;const r=null==(e=__privateGet(this,p))?void 0:e.promise;return null==(n=__privateGet(this,p))||n.cancel(t),r?r.then(_o).catch(_o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,c))}isActive(){return this.observers.some((t=>!1!==So(t.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((t=>t.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!bo(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find((t=>t.shouldFetchOnWindowFocus()));null==e||e.refetch({cancelRefetch:!1}),null==(t=__privateGet(this,p))||t.continue()}onOnline(){var t;const e=this.observers.find((t=>t.shouldFetchOnReconnect()));null==e||e.refetch({cancelRefetch:!1}),null==(t=__privateGet(this,p))||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),__privateGet(this,h).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter((e=>e!==t)),this.observers.length||(__privateGet(this,p)&&(__privateGet(this,m)?__privateGet(this,p).cancel({revert:!0}):__privateGet(this,p).cancelRetry()),this.scheduleGc()),__privateGet(this,h).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,v,g).call(this,{type:"invalidate"})}fetch(t,e){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,p))return __privateGet(this,p).continueRetry(),__privateGet(this,p).promise;if(t&&this.setOptions(t),!this.options.queryFn){const t=this.observers.find((t=>t.options.queryFn));t&&this.setOptions(t.options)}const o=new AbortController,s=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(__privateSet(this,m,!0),o.signal)})},a={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const t=jo(this.options,e),n={queryKey:this.queryKey,meta:this.meta};return s(n),__privateSet(this,m,!1),this.options.persister?this.options.persister(t,n,this):t(n)}};s(a),null==(n=this.options.behavior)||n.onFetch(a,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=a.fetchOptions)?void 0:r.meta)||__privateMethod(this,v,g).call(this,{type:"fetch",meta:null==(i=a.fetchOptions)?void 0:i.meta});const l=t=>{var e,n,r,i;Ho(t)&&t.silent||__privateMethod(this,v,g).call(this,{type:"error",error:t}),Ho(t)||(null==(n=(e=__privateGet(this,h).config).onError)||n.call(e,t,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return __privateSet(this,p,$o({initialPromise:null==e?void 0:e.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:t=>{var e,n,r,i;if(void 0!==t){try{this.setData(t)}catch(o){return void l(o)}null==(n=(e=__privateGet(this,h).config).onSuccess)||n.call(e,t,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(t,e)=>{__privateMethod(this,v,g).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{__privateMethod(this,v,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,v,g).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),__privateGet(this,p).start()}},c=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakSet,g=function(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...Yo(e.data,this.options),fetchMeta:t.meta??null};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return Ho(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...e,error:n,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),zo.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate()})),__privateGet(this,h).notify({query:this,type:"updated",action:t})}))},y);function Yo(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}var Qo=(w=class extends go{constructor(t={}){super(),__privateAdd(this,_),this.config=t,__privateSet(this,_,new Map)}build(t,e,n){const r=e.queryKey,i=e.queryHash??Po(r,e);let o=this.get(i);return o||(o=new Ko({cache:this,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){__privateGet(this,_).has(t.queryHash)||(__privateGet(this,_).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=__privateGet(this,_).get(t.queryHash);e&&(t.destroy(),e===t&&__privateGet(this,_).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zo.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}get(t){return __privateGet(this,_).get(t)}getAll(){return[...__privateGet(this,_).values()]}find(t){const e={exact:!0,...t};return this.getAll().find((t=>ko(e,t)))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter((e=>ko(t,e))):e}notify(t){zo.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}onFocus(){zo.batch((()=>{this.getAll().forEach((t=>{t.onFocus()}))}))}onOnline(){zo.batch((()=>{this.getAll().forEach((t=>{t.onOnline()}))}))}},_=new WeakMap,w),Xo=(P=class extends qo{constructor(t){super(),__privateAdd(this,k),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,S),this.mutationId=t.mutationId,__privateSet(this,x,t.mutationCache),__privateSet(this,b,[]),this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){__privateGet(this,b).includes(t)||(__privateGet(this,b).push(t),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){__privateSet(this,b,__privateGet(this,b).filter((e=>e!==t))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var t;return(null==(t=__privateGet(this,S))?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var e,n,r,i,o,s,a,l,u,c,d,h,p,f,m,v,g,y,_,w;__privateSet(this,S,$o({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{__privateMethod(this,k,E).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{__privateMethod(this,k,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,k,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,P=!__privateGet(this,S).canStart();try{if(!b){__privateMethod(this,k,E).call(this,{type:"pending",variables:t,isPaused:P}),await(null==(n=(e=__privateGet(this,x).config).onMutate)?void 0:n.call(e,t,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,t));o!==this.state.context&&__privateMethod(this,k,E).call(this,{type:"pending",context:o,variables:t,isPaused:P})}const p=await __privateGet(this,S).start();return await(null==(s=(o=__privateGet(this,x).config).onSuccess)?void 0:s.call(o,p,t,this.state.context,this)),await(null==(l=(a=this.options).onSuccess)?void 0:l.call(a,p,t,this.state.context)),await(null==(c=(u=__privateGet(this,x).config).onSettled)?void 0:c.call(u,p,null,this.state.variables,this.state.context,this)),await(null==(h=(d=this.options).onSettled)?void 0:h.call(d,p,null,t,this.state.context)),__privateMethod(this,k,E).call(this,{type:"success",data:p}),p}catch(T){try{throw await(null==(f=(p=__privateGet(this,x).config).onError)?void 0:f.call(p,T,t,this.state.context,this)),await(null==(v=(m=this.options).onError)?void 0:v.call(m,T,t,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,t,this.state.context)),T}finally{__privateMethod(this,k,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,S=new WeakMap,k=new WeakSet,E=function(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),zo.batch((()=>{__privateGet(this,b).forEach((e=>{e.onMutationUpdate(t)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:t})}))},P);var Zo=(C=class extends go{constructor(t={}){super(),__privateAdd(this,T),__privateAdd(this,A),this.config=t,__privateSet(this,T,new Map),__privateSet(this,A,Date.now())}build(t,e,n){const r=new Xo({mutationCache:this,mutationId:++__privateWrapper(this,A)._,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){const e=Jo(t),n=__privateGet(this,T).get(e)??[];n.push(t),__privateGet(this,T).set(e,n),this.notify({type:"added",mutation:t})}remove(t){var e;const n=Jo(t);if(__privateGet(this,T).has(n)){const r=null==(e=__privateGet(this,T).get(n))?void 0:e.filter((e=>e!==t));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:t})}canRun(t){var e;const n=null==(e=__privateGet(this,T).get(Jo(t)))?void 0:e.find((t=>"pending"===t.state.status));return!n||n===t}runNext(t){var e;const n=null==(e=__privateGet(this,T).get(Jo(t)))?void 0:e.find((e=>e!==t&&e.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){zo.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(t){const e={exact:!0,...t};return this.getAll().find((t=>Eo(e,t)))}findAll(t={}){return this.getAll().filter((e=>Eo(t,e)))}notify(t){zo.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}resumePausedMutations(){const t=this.getAll().filter((t=>t.state.isPaused));return zo.batch((()=>Promise.all(t.map((t=>t.continue().catch(_o))))))}},T=new WeakMap,A=new WeakMap,C);function Jo(t){var e;return(null==(e=t.options.scope)?void 0:e.id)??String(t.mutationId)}function ts(t){return{onFetch:(e,n)=>{var r,i,o,s,a;const l=e.options,u=null==(o=null==(i=null==(r=e.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,c=(null==(s=e.state.data)?void 0:s.pages)||[],d=(null==(a=e.state.data)?void 0:a.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const f=async()=>{let n=!1;const r=jo(e.options,e.fetchOptions),i=async(t,i,o)=>{if(n)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);const s={queryKey:e.queryKey,pageParam:i,direction:o?"backward":"forward",meta:e.options.meta};var a;a=s,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(e.signal.aborted?n=!0:e.signal.addEventListener("abort",(()=>{n=!0})),e.signal)});const l=await r(s),{maxPages:u}=e.options,c=o?Vo:Do;return{pages:c(t.pages,l,u),pageParams:c(t.pageParams,i,u)}};if(u&&c.length){const t="backward"===u,e={pages:c,pageParams:d},n=(t?ns:es)(l,e);h=await i(e,n,t)}else{const e=t??c.length;do{const t=0===p?d[0]??l.initialPageParam:es(l,h);if(p>0&&null==t)break;h=await i(h,t),p++}while(p<e)}return h};e.options.persister?e.fetchFn=()=>{var t,r;return null==(r=(t=e.options).persister)?void 0:r.call(t,f,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=f}}}function es(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function ns(t,{pages:e,pageParams:n}){var r;return e.length>0?null==(r=t.getPreviousPageParam)?void 0:r.call(t,e[0],e,n[0],n):void 0}var rs=(j=class{constructor(t={}){__privateAdd(this,R),__privateAdd(this,O),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,L),__privateAdd(this,D),__privateAdd(this,V),__privateAdd(this,I),__privateSet(this,R,t.queryCache||new Qo),__privateSet(this,O,t.mutationCache||new Zo),__privateSet(this,M,t.defaultOptions||{}),__privateSet(this,F,new Map),__privateSet(this,L,new Map),__privateSet(this,D,0)}mount(){__privateWrapper(this,D)._++,1===__privateGet(this,D)&&(__privateSet(this,V,Bo.subscribe((async t=>{t&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,No.subscribe((async t=>{t&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var t,e;__privateWrapper(this,D)._--,0===__privateGet(this,D)&&(null==(t=__privateGet(this,V))||t.call(this),__privateSet(this,V,void 0),null==(e=__privateGet(this,I))||e.call(this),__privateSet(this,I,void 0))}isFetching(t){return __privateGet(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return __privateGet(this,O).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const n=this.defaultQueryOptions({queryKey:t});return null==(e=__privateGet(this,R).get(n.queryHash))?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(void 0===e)return this.fetchQuery(t);{const n=this.defaultQueryOptions(t),r=__privateGet(this,R).build(this,n);return t.revalidateIfStale&&r.isStaleByTime(xo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return __privateGet(this,R).findAll(t).map((({queryKey:t,state:e})=>[t,e.data]))}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=__privateGet(this,R).get(r.queryHash),o=function(t,e){return"function"==typeof t?t(e):t}(e,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,R).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return zo.batch((()=>__privateGet(this,R).findAll(t).map((({queryKey:t})=>[t,this.setQueryData(t,e,n)]))))}getQueryState(t){var e;const n=this.defaultQueryOptions({queryKey:t});return null==(e=__privateGet(this,R).get(n.queryHash))?void 0:e.state}removeQueries(t){const e=__privateGet(this,R);zo.batch((()=>{e.findAll(t).forEach((t=>{e.remove(t)}))}))}resetQueries(t,e){const n=__privateGet(this,R),r={type:"active",...t};return zo.batch((()=>(n.findAll(t).forEach((t=>{t.reset()})),this.refetchQueries(r,e))))}cancelQueries(t={},e={}){const n={revert:!0,...e},r=zo.batch((()=>__privateGet(this,R).findAll(t).map((t=>t.cancel(n)))));return Promise.all(r).then(_o).catch(_o)}invalidateQueries(t={},e={}){return zo.batch((()=>{if(__privateGet(this,R).findAll(t).forEach((t=>{t.invalidate()})),"none"===t.refetchType)return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)}))}refetchQueries(t={},e){const n={...e,cancelRefetch:(null==e?void 0:e.cancelRefetch)??!0},r=zo.batch((()=>__privateGet(this,R).findAll(t).filter((t=>!t.isDisabled())).map((t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(_o)),"paused"===t.state.fetchStatus?Promise.resolve():e}))));return Promise.all(r).then(_o)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const n=__privateGet(this,R).build(this,e);return n.isStaleByTime(xo(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(_o).catch(_o)}fetchInfiniteQuery(t){return t.behavior=ts(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(_o).catch(_o)}ensureInfiniteQueryData(t){return t.behavior=ts(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return No.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,M)}setDefaultOptions(t){__privateSet(this,M,t)}setQueryDefaults(t,e){__privateGet(this,F).set(To(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...__privateGet(this,F).values()];let n={};return e.forEach((e=>{Ao(t,e.queryKey)&&(n={...n,...e.defaultOptions})})),n}setMutationDefaults(t,e){__privateGet(this,L).set(To(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...__privateGet(this,L).values()];let n={};return e.forEach((e=>{Ao(t,e.mutationKey)&&(n={...n,...e.defaultOptions})})),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...__privateGet(this,M).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Po(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),!0!==e.enabled&&e.queryFn===Io&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:{...__privateGet(this,M).mutations,...(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,O).clear()}},R=new WeakMap,O=new WeakMap,M=new WeakMap,F=new WeakMap,L=new WeakMap,D=new WeakMap,V=new WeakMap,I=new WeakMap,j),is=(ut=class extends go{constructor(t,e){super(),__privateAdd(this,J),__privateAdd(this,B),__privateAdd(this,N),__privateAdd(this,U),__privateAdd(this,G),__privateAdd(this,W),__privateAdd(this,H),__privateAdd(this,$),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,Y),__privateAdd(this,Q),__privateAdd(this,X),__privateAdd(this,Z,new Set),this.options=e,__privateSet(this,B,t),__privateSet(this,$,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,N).addObserver(this),os(__privateGet(this,N),this.options)?__privateMethod(this,J,tt).call(this):this.updateResult(),__privateMethod(this,J,it).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ss(__privateGet(this,N),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ss(__privateGet(this,N),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,J,ot).call(this),__privateMethod(this,J,st).call(this),__privateGet(this,N).removeObserver(this)}setOptions(t,e){const n=this.options,r=__privateGet(this,N);if(this.options=__privateGet(this,B).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof So(this.options.enabled,__privateGet(this,N)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,J,at).call(this),__privateGet(this,N).setOptions(this.options),n._defaulted&&!Ro(this.options,n)&&__privateGet(this,B).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,N),observer:this});const i=this.hasListeners();i&&as(__privateGet(this,N),r,this.options,n)&&__privateMethod(this,J,tt).call(this),this.updateResult(e),!i||__privateGet(this,N)===r&&So(this.options.enabled,__privateGet(this,N))===So(n.enabled,__privateGet(this,N))&&xo(this.options.staleTime,__privateGet(this,N))===xo(n.staleTime,__privateGet(this,N))||__privateMethod(this,J,et).call(this);const o=__privateMethod(this,J,nt).call(this);!i||__privateGet(this,N)===r&&So(this.options.enabled,__privateGet(this,N))===So(n.enabled,__privateGet(this,N))&&o===__privateGet(this,X)||__privateMethod(this,J,rt).call(this,o)}getOptimisticResult(t){const e=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),t),n=this.createResult(e,t);return function(t,e){if(!Ro(t.getCurrentResult(),e))return!0;return!1}(this,n)&&(__privateSet(this,G,n),__privateSet(this,H,this.options),__privateSet(this,W,__privateGet(this,N).state)),n}getCurrentResult(){return __privateGet(this,G)}trackResult(t,e){const n={};return Object.keys(t).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==e||e(r),t[r])})})),n}trackProp(t){__privateGet(this,Z).add(t)}getCurrentQuery(){return __privateGet(this,N)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=__privateGet(this,B).defaultQueryOptions(t),n=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),e);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,e)))}fetch(t){return __privateMethod(this,J,tt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,G))))}createResult(t,e){var n;const r=__privateGet(this,N),i=this.options,o=__privateGet(this,G),s=__privateGet(this,W),a=__privateGet(this,H),l=t!==r?t.state:__privateGet(this,U),{state:u}=t;let c,d={...u},h=!1;if(e._optimisticResults){const n=this.hasListeners(),o=!n&&os(t,e),s=n&&as(t,r,e,i);(o||s)&&(d={...d,...Yo(u.data,t.options)}),"isRestoring"===e._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:m}=d;if(e.select&&void 0!==d.data)if(o&&d.data===(null==s?void 0:s.data)&&e.select===__privateGet(this,z))c=__privateGet(this,q);else try{__privateSet(this,z,e.select),c=e.select(d.data),c=Lo(null==o?void 0:o.data,c,e),__privateSet(this,q,c),__privateSet(this,$,null)}catch(b){__privateSet(this,$,b)}else c=d.data;if(void 0!==e.placeholderData&&void 0===c&&"pending"===m){let t;if((null==o?void 0:o.isPlaceholderData)&&e.placeholderData===(null==a?void 0:a.placeholderData))t=o.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(null==(n=__privateGet(this,K))?void 0:n.state.data,__privateGet(this,K)):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),__privateSet(this,$,null)}catch(b){__privateSet(this,$,b)}void 0!==t&&(m="success",c=Lo(null==o?void 0:o.data,t,e),h=!0)}__privateGet(this,$)&&(p=__privateGet(this,$),c=__privateGet(this,q),f=Date.now(),m="error");const v="fetching"===d.fetchStatus,g="pending"===m,y="error"===m,_=g&&v,w=void 0!==c;return{status:m,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===m,isError:y,isInitialLoading:_,isLoading:_,data:c,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:h,isRefetchError:y&&w,isStale:ls(t,e),refetch:this.refetch}}updateResult(t){const e=__privateGet(this,G),n=this.createResult(__privateGet(this,N),this.options);if(__privateSet(this,W,__privateGet(this,N).state),__privateSet(this,H,this.options),void 0!==__privateGet(this,W).data&&__privateSet(this,K,__privateGet(this,N)),Ro(n,e))return;__privateSet(this,G,n);const r={};!1!==(null==t?void 0:t.listeners)&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,G)).some((t=>{const n=t;return __privateGet(this,G)[n]!==e[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,J,lt).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,J,it).call(this)}},B=new WeakMap,N=new WeakMap,U=new WeakMap,G=new WeakMap,W=new WeakMap,H=new WeakMap,$=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,Y=new WeakMap,Q=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,tt=function(t){__privateMethod(this,J,at).call(this);let e=__privateGet(this,N).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(_o)),e},et=function(){__privateMethod(this,J,ot).call(this);const t=xo(this.options.staleTime,__privateGet(this,N));if(yo||__privateGet(this,G).isStale||!wo(t))return;const e=bo(__privateGet(this,G).dataUpdatedAt,t);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,G).isStale||this.updateResult()}),e+1))},nt=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,N)):this.options.refetchInterval)??!1},rt=function(t){__privateMethod(this,J,st).call(this),__privateSet(this,X,t),!yo&&!1!==So(this.options.enabled,__privateGet(this,N))&&wo(__privateGet(this,X))&&0!==__privateGet(this,X)&&__privateSet(this,Q,setInterval((()=>{(this.options.refetchIntervalInBackground||Bo.isFocused())&&__privateMethod(this,J,tt).call(this)}),__privateGet(this,X)))},it=function(){__privateMethod(this,J,et).call(this),__privateMethod(this,J,rt).call(this,__privateMethod(this,J,nt).call(this))},ot=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},st=function(){__privateGet(this,Q)&&(clearInterval(__privateGet(this,Q)),__privateSet(this,Q,void 0))},at=function(){const t=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),this.options);if(t===__privateGet(this,N))return;const e=__privateGet(this,N);__privateSet(this,N,t),__privateSet(this,U,t.state),this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))},lt=function(t){zo.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t(__privateGet(this,G))})),__privateGet(this,B).getQueryCache().notify({query:__privateGet(this,N),type:"observerResultsUpdated"})}))},ut);function os(t,e){return function(t,e){return!1!==So(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&ss(t,e,e.refetchOnMount)}function ss(t,e,n){if(!1!==So(e.enabled,t)){const r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&ls(t,e)}return!1}function as(t,e,n,r){return(t!==e||!1===So(r.enabled,t))&&(!n.suspense||"error"!==t.state.status)&&ls(t,n)}function ls(t,e){return!1!==So(e.enabled,t)&&t.isStaleByTime(xo(e.staleTime,t))}var us=(gt=class extends go{constructor(t,e){super(),__privateAdd(this,ft),__privateAdd(this,ct),__privateAdd(this,dt),__privateAdd(this,ht),__privateAdd(this,pt),__privateSet(this,ct,t),this.setOptions(e),this.bindMethods(),__privateMethod(this,ft,mt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const n=this.options;this.options=__privateGet(this,ct).defaultMutationOptions(t),Ro(this.options,n)||__privateGet(this,ct).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,ht),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&To(n.mutationKey)!==To(this.options.mutationKey)?this.reset():"pending"===(null==(e=__privateGet(this,ht))?void 0:e.state.status)&&__privateGet(this,ht).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||null==(t=__privateGet(this,ht))||t.removeObserver(this)}onMutationUpdate(t){__privateMethod(this,ft,mt).call(this),__privateMethod(this,ft,vt).call(this,t)}getCurrentResult(){return __privateGet(this,dt)}reset(){var t;null==(t=__privateGet(this,ht))||t.removeObserver(this),__privateSet(this,ht,void 0),__privateMethod(this,ft,mt).call(this),__privateMethod(this,ft,vt).call(this)}mutate(t,e){var n;return __privateSet(this,pt,e),null==(n=__privateGet(this,ht))||n.removeObserver(this),__privateSet(this,ht,__privateGet(this,ct).getMutationCache().build(__privateGet(this,ct),this.options)),__privateGet(this,ht).addObserver(this),__privateGet(this,ht).execute(t)}},ct=new WeakMap,dt=new WeakMap,ht=new WeakMap,pt=new WeakMap,ft=new WeakSet,mt=function(){var t;const e=(null==(t=__privateGet(this,ht))?void 0:t.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,dt,{...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset})},vt=function(t){zo.batch((()=>{var e,n,r,i,o,s,a,l;if(__privateGet(this,pt)&&this.hasListeners()){const u=__privateGet(this,dt).variables,c=__privateGet(this,dt).context;"success"===(null==t?void 0:t.type)?(null==(n=(e=__privateGet(this,pt)).onSuccess)||n.call(e,t.data,u,c),null==(i=(r=__privateGet(this,pt)).onSettled)||i.call(r,t.data,null,u,c)):"error"===(null==t?void 0:t.type)&&(null==(s=(o=__privateGet(this,pt)).onError)||s.call(o,t.error,u,c),null==(l=(a=__privateGet(this,pt)).onSettled)||l.call(a,void 0,t.error,u,c))}this.listeners.forEach((t=>{t(__privateGet(this,dt))}))}))},gt),cs=oe(void 0),ds=t=>{const e=Bn(cs);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},hs=({client:t,children:e})=>(Fn((()=>(t.mount(),()=>{t.unmount()})),[t]),no(cs.Provider,{value:t,children:e})),ps=oe(!1),fs=()=>Bn(ps);ps.Provider;var ms=oe(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),vs=()=>Bn(ms);function gs(t,e){return"function"==typeof t?t(...e):!!t}function ys(){}var _s=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},ws=t=>{Fn((()=>{t.clearReset()}),[t])},bs=({result:t,errorResetBoundary:e,throwOnError:n,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&gs(n,[t.error,r]),xs=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ss=(t,e)=>(null==t?void 0:t.suspense)&&e.isPending,ks=(t,e,n)=>e.fetchOptimistic(t).catch((()=>{n.clearReset()}));function Es(t,e){return function(t,e){var n,r,i,o;const s=ds(),a=fs(),l=vs(),u=s.defaultQueryOptions(t);null==(r=null==(n=s.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,u),u._optimisticResults=a?"isRestoring":"optimistic",xs(u),_s(u,l),ws(l);const[c]=On((()=>new e(s,u))),d=c.getOptimisticResult(u);if(Yr(jn((t=>{const e=a?()=>{}:c.subscribe(zo.batchCalls(t));return c.updateResult(),e}),[c,a]),(()=>c.getCurrentResult())),Fn((()=>{c.setOptions(u,{listeners:!1})}),[u,c]),Ss(u,d))throw ks(u,c,l);if(bs({result:d,errorResetBoundary:l,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash)}))throw d.error;return null==(o=null==(i=s.getDefaultOptions().queries)?void 0:i._experimental_afterQuery)||o.call(i,u,d),u.notifyOnChangeProps?d:c.trackResult(d)}(t,is)}var Ps=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ts=ln((function(t){return Ps.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),As=function(t){return"theme"!==t},Cs=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Ts:As},Rs=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},Os=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return Pi(e,n,r),Gi((function(){return Ti(e,n,r)})),null},Ms=function t(e,n){var r,i,o=e.__emotion_real===e,s=o&&e.__emotion_base||e;void 0!==n&&(r=n.label,i=n.target);var a=Rs(e,n,o),l=a||Cs(s),u=!l("as");return function(){var c=arguments,d=o&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p<h;p++)d.push(c[p],c[0][p])}var f=zi((function(t,e,n){var r=u&&t.as||s,o="",c=[],h=t;if(null==t.theme){for(var p in h={},t)h[p]=t[p];h.theme=Bn(qi)}"string"==typeof t.className?o=Ei(e.registered,c,t.className):null!=t.className&&(o=t.className+" ");var f=Ni(d.concat(c),e.registered,h);o+=e.key+"-"+f.name,void 0!==i&&(o+=" "+i);var m=u&&void 0===a?Cs(r):l,v={};for(var g in t)u&&"as"===g||m(g)&&(v[g]=t[g]);return v.className=o,n&&(v.ref=n),Dt(jt,null,Dt(Os,{cache:e,serialized:f,isStringTag:"string"==typeof r}),Dt(r,v))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=e.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(e,r){return t(e,Jr({},n,r,{shouldForwardProp:Rs(f,r,!0)})).apply(void 0,d)},f}}.bind();function Fs({title:t,titleId:e,...n},r){return Dt("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":e},n),t?Dt("title",{id:e},t):null,Dt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){Ms[t]=Ms(t)}));const Ls=er(Fs);function Ds({title:t,titleId:e,...n},r){return Dt("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":e},n),t?Dt("title",{id:e},t):null,Dt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Vs=er(Ds),Is=Ms.td`
|
|
3
|
+
`}),io(Ji,{styles:so})]});let lo;const uo=()=>Bn(lo);class co extends Error{constructor(t,e){super(t),__publicField(this,"response"),this.response=e}}const ho=async(t,e,n,r)=>{await po(t,e,n,r,!0)},po=async(t,e,n,r,i)=>{const o=await fetch(t,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.3.6535",authorization:`Bearer ${e}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!o.ok)throw new co(`[API Error] Status: ${o.statusText}. Response: ${await o.text()}`,o);return i?{}:await o.json()},fo=t=>async e=>{const n=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`);return ho(n,t.accessToken,"POST",e)},mo=t=>e=>async n=>{const r=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion/${e}`);return ho(r,t.accessToken,"PUT",n)},vo=()=>{const t=uo();return{getAllPromotions:(e=t.backend,async()=>{const t=new URL(`${e.url}/promoted-benefits/admin/v1.0/promotion`);return po(t,e.accessToken,"GET")}),createPromotion:fo(t.backend),updatePromotion:mo(t.backend)};var e};var go=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yo="undefined"==typeof window||"Deno"in globalThis;function _o(){}function wo(t){return"number"==typeof t&&t>=0&&t!==1/0}function bo(t,e){return Math.max(t+(e||0)-Date.now(),0)}function xo(t,e){return"function"==typeof t?t(e):t}function So(t,e){return"function"==typeof t?t(e):t}function ko(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=t;if(s)if(r){if(e.queryHash!==Po(s,e.options))return!1}else if(!Ao(e.queryKey,s))return!1;if("all"!==n){const t=e.isActive();if("active"===n&&!t)return!1;if("inactive"===n&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&((!i||i===e.state.fetchStatus)&&!(o&&!o(e)))}function Eo(t,e){const{exact:n,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(To(e.options.mutationKey)!==To(o))return!1}else if(!Ao(e.options.mutationKey,o))return!1}return(!r||e.state.status===r)&&!(i&&!i(e))}function Po(t,e){return((null==e?void 0:e.queryKeyHashFn)||To)(t)}function To(t){return JSON.stringify(t,((t,e)=>Mo(e)?Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],t)),{}):e))}function Ao(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some((n=>!Ao(t[n],e[n]))))}function Co(t,e){if(t===e)return t;const n=Oo(t)&&Oo(e);if(n||Mo(t)&&Mo(e)){const r=n?t:Object.keys(t),i=r.length,o=n?e:Object.keys(e),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const i=n?u:o[u];(!n&&r.includes(i)||n)&&void 0===t[i]&&void 0===e[i]?(a[i]=void 0,l++):(a[i]=Co(t[i],e[i]),a[i]===t[i]&&void 0!==t[i]&&l++)}return i===s&&l===i?t:a}return e}function Ro(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Oo(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Mo(t){if(!Fo(t))return!1;const e=t.constructor;if(void 0===e)return!0;const n=e.prototype;return!!Fo(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}function Fo(t){return"[object Object]"===Object.prototype.toString.call(t)}function Lo(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?Co(t,e):e}function Do(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Vo(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Io=Symbol();function jo(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==Io?t.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}var Bo=new(r=class extends go{constructor(){super(),__privateAdd(this,t),__privateAdd(this,e),__privateAdd(this,n),__privateSet(this,n,(t=>{if(!yo&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}))}onSubscribe(){__privateGet(this,e)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=__privateGet(this,e))||t.call(this),__privateSet(this,e,void 0))}setEventListener(t){var r;__privateSet(this,n,t),null==(r=__privateGet(this,e))||r.call(this),__privateSet(this,e,t((t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})))}setFocused(e){__privateGet(this,t)!==e&&(__privateSet(this,t,e),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach((e=>{e(t)}))}isFocused(){var e;return"boolean"==typeof __privateGet(this,t)?__privateGet(this,t):"hidden"!==(null==(e=globalThis.document)?void 0:e.visibilityState)}},t=new WeakMap,e=new WeakMap,n=new WeakMap,r),No=new(a=class extends go{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,s),__privateSet(this,s,(t=>{if(!yo&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,s))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,void 0))}setEventListener(t){var e;__privateSet(this,s,t),null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,t(this.setOnline.bind(this)))}setOnline(t){__privateGet(this,i)!==t&&(__privateSet(this,i,t),this.listeners.forEach((e=>{e(t)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,s=new WeakMap,a);function Uo(t){return Math.min(1e3*2**t,3e4)}function Go(t){return"online"!==(t??"online")||No.isOnline()}var Wo=class extends Error{constructor(t){super("CancelledError"),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}};function Ho(t){return t instanceof Wo}function $o(t){let e,n,r,i=!1,o=0,s=!1;const a=new Promise(((t,e)=>{n=t,r=e})),l=()=>Bo.isFocused()&&("always"===t.networkMode||No.isOnline())&&t.canRun(),u=()=>Go(t.networkMode)&&t.canRun(),c=r=>{var i;s||(s=!0,null==(i=t.onSuccess)||i.call(t,r),null==e||e(),n(r))},d=n=>{var i;s||(s=!0,null==(i=t.onError)||i.call(t,n),null==e||e(),r(n))},h=()=>new Promise((n=>{var r;e=t=>{(s||l())&&n(t)},null==(r=t.onPause)||r.call(t)})).then((()=>{var n;e=void 0,s||null==(n=t.onContinue)||n.call(t)})),p=()=>{if(s)return;let e;const n=0===o?t.initialPromise:void 0;try{e=n??t.fn()}catch(r){e=Promise.reject(r)}Promise.resolve(e).then(c).catch((e=>{var n;if(s)return;const r=t.retry??(yo?0:3),a=t.retryDelay??Uo,u="function"==typeof a?a(o,e):a,c=!0===r||"number"==typeof r&&o<r||"function"==typeof r&&r(o,e);var f;!i&&c?(o++,null==(n=t.onFail)||n.call(t,o,e),(f=u,new Promise((t=>{setTimeout(t,f)}))).then((()=>l()?void 0:h())).then((()=>{i?d(e):p()}))):d(e)}))};return{promise:a,cancel:e=>{var n;s||(d(new Wo(e)),null==(n=t.abort)||n.call(t))},continue:()=>(null==e||e(),a),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:u,start:()=>(u()?p():h().then(p),a)}}var zo=function(){let t=[],e=0,n=t=>{t()},r=t=>{t()},i=t=>setTimeout(t,0);const o=r=>{e?t.push(r):i((()=>{n(r)}))};return{batch:o=>{let s;e++;try{s=o()}finally{e--,e||(()=>{const e=t;t=[],e.length&&i((()=>{r((()=>{e.forEach((t=>{n(t)}))}))}))})()}return s},batchCalls:t=>(...e)=>{o((()=>{t(...e)}))},schedule:o,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{i=t}}}(),qo=(u=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wo(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(yo?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,u),Ko=(y=class extends qo{constructor(t){super(),__privateAdd(this,v),__privateAdd(this,c),__privateAdd(this,d),__privateAdd(this,h),__privateAdd(this,p),__privateAdd(this,f),__privateAdd(this,m),__privateSet(this,m,!1),__privateSet(this,f,t.defaultOptions),this.setOptions(t.options),this.observers=[],__privateSet(this,h,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,__privateSet(this,c,function(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=t.state??__privateGet(this,c),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return null==(t=__privateGet(this,p))?void 0:t.promise}setOptions(t){this.options={...__privateGet(this,f),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,h).remove(this)}setData(t,e){const n=Lo(this.state.data,t,this.options);return __privateMethod(this,v,g).call(this,{data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}setState(t,e){__privateMethod(this,v,g).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,n;const r=null==(e=__privateGet(this,p))?void 0:e.promise;return null==(n=__privateGet(this,p))||n.cancel(t),r?r.then(_o).catch(_o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,c))}isActive(){return this.observers.some((t=>!1!==So(t.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((t=>t.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!bo(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find((t=>t.shouldFetchOnWindowFocus()));null==e||e.refetch({cancelRefetch:!1}),null==(t=__privateGet(this,p))||t.continue()}onOnline(){var t;const e=this.observers.find((t=>t.shouldFetchOnReconnect()));null==e||e.refetch({cancelRefetch:!1}),null==(t=__privateGet(this,p))||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),__privateGet(this,h).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter((e=>e!==t)),this.observers.length||(__privateGet(this,p)&&(__privateGet(this,m)?__privateGet(this,p).cancel({revert:!0}):__privateGet(this,p).cancelRetry()),this.scheduleGc()),__privateGet(this,h).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,v,g).call(this,{type:"invalidate"})}fetch(t,e){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,p))return __privateGet(this,p).continueRetry(),__privateGet(this,p).promise;if(t&&this.setOptions(t),!this.options.queryFn){const t=this.observers.find((t=>t.options.queryFn));t&&this.setOptions(t.options)}const o=new AbortController,s=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(__privateSet(this,m,!0),o.signal)})},a={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const t=jo(this.options,e),n={queryKey:this.queryKey,meta:this.meta};return s(n),__privateSet(this,m,!1),this.options.persister?this.options.persister(t,n,this):t(n)}};s(a),null==(n=this.options.behavior)||n.onFetch(a,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=a.fetchOptions)?void 0:r.meta)||__privateMethod(this,v,g).call(this,{type:"fetch",meta:null==(i=a.fetchOptions)?void 0:i.meta});const l=t=>{var e,n,r,i;Ho(t)&&t.silent||__privateMethod(this,v,g).call(this,{type:"error",error:t}),Ho(t)||(null==(n=(e=__privateGet(this,h).config).onError)||n.call(e,t,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return __privateSet(this,p,$o({initialPromise:null==e?void 0:e.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:t=>{var e,n,r,i;if(void 0!==t){try{this.setData(t)}catch(o){return void l(o)}null==(n=(e=__privateGet(this,h).config).onSuccess)||n.call(e,t,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(t,e)=>{__privateMethod(this,v,g).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{__privateMethod(this,v,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,v,g).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),__privateGet(this,p).start()}},c=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakSet,g=function(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...Yo(e.data,this.options),fetchMeta:t.meta??null};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return Ho(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...e,error:n,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),zo.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate()})),__privateGet(this,h).notify({query:this,type:"updated",action:t})}))},y);function Yo(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}var Qo=(w=class extends go{constructor(t={}){super(),__privateAdd(this,_),this.config=t,__privateSet(this,_,new Map)}build(t,e,n){const r=e.queryKey,i=e.queryHash??Po(r,e);let o=this.get(i);return o||(o=new Ko({cache:this,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){__privateGet(this,_).has(t.queryHash)||(__privateGet(this,_).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=__privateGet(this,_).get(t.queryHash);e&&(t.destroy(),e===t&&__privateGet(this,_).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zo.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}get(t){return __privateGet(this,_).get(t)}getAll(){return[...__privateGet(this,_).values()]}find(t){const e={exact:!0,...t};return this.getAll().find((t=>ko(e,t)))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter((e=>ko(t,e))):e}notify(t){zo.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}onFocus(){zo.batch((()=>{this.getAll().forEach((t=>{t.onFocus()}))}))}onOnline(){zo.batch((()=>{this.getAll().forEach((t=>{t.onOnline()}))}))}},_=new WeakMap,w),Xo=(P=class extends qo{constructor(t){super(),__privateAdd(this,k),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,S),this.mutationId=t.mutationId,__privateSet(this,x,t.mutationCache),__privateSet(this,b,[]),this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){__privateGet(this,b).includes(t)||(__privateGet(this,b).push(t),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){__privateSet(this,b,__privateGet(this,b).filter((e=>e!==t))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var t;return(null==(t=__privateGet(this,S))?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var e,n,r,i,o,s,a,l,u,c,d,h,p,f,m,v,g,y,_,w;__privateSet(this,S,$o({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{__privateMethod(this,k,E).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{__privateMethod(this,k,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,k,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,P=!__privateGet(this,S).canStart();try{if(!b){__privateMethod(this,k,E).call(this,{type:"pending",variables:t,isPaused:P}),await(null==(n=(e=__privateGet(this,x).config).onMutate)?void 0:n.call(e,t,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,t));o!==this.state.context&&__privateMethod(this,k,E).call(this,{type:"pending",context:o,variables:t,isPaused:P})}const p=await __privateGet(this,S).start();return await(null==(s=(o=__privateGet(this,x).config).onSuccess)?void 0:s.call(o,p,t,this.state.context,this)),await(null==(l=(a=this.options).onSuccess)?void 0:l.call(a,p,t,this.state.context)),await(null==(c=(u=__privateGet(this,x).config).onSettled)?void 0:c.call(u,p,null,this.state.variables,this.state.context,this)),await(null==(h=(d=this.options).onSettled)?void 0:h.call(d,p,null,t,this.state.context)),__privateMethod(this,k,E).call(this,{type:"success",data:p}),p}catch(T){try{throw await(null==(f=(p=__privateGet(this,x).config).onError)?void 0:f.call(p,T,t,this.state.context,this)),await(null==(v=(m=this.options).onError)?void 0:v.call(m,T,t,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,t,this.state.context)),T}finally{__privateMethod(this,k,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,S=new WeakMap,k=new WeakSet,E=function(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),zo.batch((()=>{__privateGet(this,b).forEach((e=>{e.onMutationUpdate(t)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:t})}))},P);var Zo=(C=class extends go{constructor(t={}){super(),__privateAdd(this,T),__privateAdd(this,A),this.config=t,__privateSet(this,T,new Map),__privateSet(this,A,Date.now())}build(t,e,n){const r=new Xo({mutationCache:this,mutationId:++__privateWrapper(this,A)._,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){const e=Jo(t),n=__privateGet(this,T).get(e)??[];n.push(t),__privateGet(this,T).set(e,n),this.notify({type:"added",mutation:t})}remove(t){var e;const n=Jo(t);if(__privateGet(this,T).has(n)){const r=null==(e=__privateGet(this,T).get(n))?void 0:e.filter((e=>e!==t));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:t})}canRun(t){var e;const n=null==(e=__privateGet(this,T).get(Jo(t)))?void 0:e.find((t=>"pending"===t.state.status));return!n||n===t}runNext(t){var e;const n=null==(e=__privateGet(this,T).get(Jo(t)))?void 0:e.find((e=>e!==t&&e.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){zo.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(t){const e={exact:!0,...t};return this.getAll().find((t=>Eo(e,t)))}findAll(t={}){return this.getAll().filter((e=>Eo(t,e)))}notify(t){zo.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}resumePausedMutations(){const t=this.getAll().filter((t=>t.state.isPaused));return zo.batch((()=>Promise.all(t.map((t=>t.continue().catch(_o))))))}},T=new WeakMap,A=new WeakMap,C);function Jo(t){var e;return(null==(e=t.options.scope)?void 0:e.id)??String(t.mutationId)}function ts(t){return{onFetch:(e,n)=>{var r,i,o,s,a;const l=e.options,u=null==(o=null==(i=null==(r=e.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,c=(null==(s=e.state.data)?void 0:s.pages)||[],d=(null==(a=e.state.data)?void 0:a.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const f=async()=>{let n=!1;const r=jo(e.options,e.fetchOptions),i=async(t,i,o)=>{if(n)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);const s={queryKey:e.queryKey,pageParam:i,direction:o?"backward":"forward",meta:e.options.meta};var a;a=s,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(e.signal.aborted?n=!0:e.signal.addEventListener("abort",(()=>{n=!0})),e.signal)});const l=await r(s),{maxPages:u}=e.options,c=o?Vo:Do;return{pages:c(t.pages,l,u),pageParams:c(t.pageParams,i,u)}};if(u&&c.length){const t="backward"===u,e={pages:c,pageParams:d},n=(t?ns:es)(l,e);h=await i(e,n,t)}else{const e=t??c.length;do{const t=0===p?d[0]??l.initialPageParam:es(l,h);if(p>0&&null==t)break;h=await i(h,t),p++}while(p<e)}return h};e.options.persister?e.fetchFn=()=>{var t,r;return null==(r=(t=e.options).persister)?void 0:r.call(t,f,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=f}}}function es(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function ns(t,{pages:e,pageParams:n}){var r;return e.length>0?null==(r=t.getPreviousPageParam)?void 0:r.call(t,e[0],e,n[0],n):void 0}var rs=(j=class{constructor(t={}){__privateAdd(this,R),__privateAdd(this,O),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,L),__privateAdd(this,D),__privateAdd(this,V),__privateAdd(this,I),__privateSet(this,R,t.queryCache||new Qo),__privateSet(this,O,t.mutationCache||new Zo),__privateSet(this,M,t.defaultOptions||{}),__privateSet(this,F,new Map),__privateSet(this,L,new Map),__privateSet(this,D,0)}mount(){__privateWrapper(this,D)._++,1===__privateGet(this,D)&&(__privateSet(this,V,Bo.subscribe((async t=>{t&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,No.subscribe((async t=>{t&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var t,e;__privateWrapper(this,D)._--,0===__privateGet(this,D)&&(null==(t=__privateGet(this,V))||t.call(this),__privateSet(this,V,void 0),null==(e=__privateGet(this,I))||e.call(this),__privateSet(this,I,void 0))}isFetching(t){return __privateGet(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return __privateGet(this,O).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const n=this.defaultQueryOptions({queryKey:t});return null==(e=__privateGet(this,R).get(n.queryHash))?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(void 0===e)return this.fetchQuery(t);{const n=this.defaultQueryOptions(t),r=__privateGet(this,R).build(this,n);return t.revalidateIfStale&&r.isStaleByTime(xo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return __privateGet(this,R).findAll(t).map((({queryKey:t,state:e})=>[t,e.data]))}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=__privateGet(this,R).get(r.queryHash),o=function(t,e){return"function"==typeof t?t(e):t}(e,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,R).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return zo.batch((()=>__privateGet(this,R).findAll(t).map((({queryKey:t})=>[t,this.setQueryData(t,e,n)]))))}getQueryState(t){var e;const n=this.defaultQueryOptions({queryKey:t});return null==(e=__privateGet(this,R).get(n.queryHash))?void 0:e.state}removeQueries(t){const e=__privateGet(this,R);zo.batch((()=>{e.findAll(t).forEach((t=>{e.remove(t)}))}))}resetQueries(t,e){const n=__privateGet(this,R),r={type:"active",...t};return zo.batch((()=>(n.findAll(t).forEach((t=>{t.reset()})),this.refetchQueries(r,e))))}cancelQueries(t={},e={}){const n={revert:!0,...e},r=zo.batch((()=>__privateGet(this,R).findAll(t).map((t=>t.cancel(n)))));return Promise.all(r).then(_o).catch(_o)}invalidateQueries(t={},e={}){return zo.batch((()=>{if(__privateGet(this,R).findAll(t).forEach((t=>{t.invalidate()})),"none"===t.refetchType)return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)}))}refetchQueries(t={},e){const n={...e,cancelRefetch:(null==e?void 0:e.cancelRefetch)??!0},r=zo.batch((()=>__privateGet(this,R).findAll(t).filter((t=>!t.isDisabled())).map((t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(_o)),"paused"===t.state.fetchStatus?Promise.resolve():e}))));return Promise.all(r).then(_o)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const n=__privateGet(this,R).build(this,e);return n.isStaleByTime(xo(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(_o).catch(_o)}fetchInfiniteQuery(t){return t.behavior=ts(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(_o).catch(_o)}ensureInfiniteQueryData(t){return t.behavior=ts(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return No.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,M)}setDefaultOptions(t){__privateSet(this,M,t)}setQueryDefaults(t,e){__privateGet(this,F).set(To(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...__privateGet(this,F).values()];let n={};return e.forEach((e=>{Ao(t,e.queryKey)&&(n={...n,...e.defaultOptions})})),n}setMutationDefaults(t,e){__privateGet(this,L).set(To(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...__privateGet(this,L).values()];let n={};return e.forEach((e=>{Ao(t,e.mutationKey)&&(n={...n,...e.defaultOptions})})),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...__privateGet(this,M).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Po(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),!0!==e.enabled&&e.queryFn===Io&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:{...__privateGet(this,M).mutations,...(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,O).clear()}},R=new WeakMap,O=new WeakMap,M=new WeakMap,F=new WeakMap,L=new WeakMap,D=new WeakMap,V=new WeakMap,I=new WeakMap,j),is=(ut=class extends go{constructor(t,e){super(),__privateAdd(this,J),__privateAdd(this,B),__privateAdd(this,N),__privateAdd(this,U),__privateAdd(this,G),__privateAdd(this,W),__privateAdd(this,H),__privateAdd(this,$),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,Y),__privateAdd(this,Q),__privateAdd(this,X),__privateAdd(this,Z,new Set),this.options=e,__privateSet(this,B,t),__privateSet(this,$,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,N).addObserver(this),os(__privateGet(this,N),this.options)?__privateMethod(this,J,tt).call(this):this.updateResult(),__privateMethod(this,J,it).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ss(__privateGet(this,N),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ss(__privateGet(this,N),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,J,ot).call(this),__privateMethod(this,J,st).call(this),__privateGet(this,N).removeObserver(this)}setOptions(t,e){const n=this.options,r=__privateGet(this,N);if(this.options=__privateGet(this,B).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof So(this.options.enabled,__privateGet(this,N)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,J,at).call(this),__privateGet(this,N).setOptions(this.options),n._defaulted&&!Ro(this.options,n)&&__privateGet(this,B).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,N),observer:this});const i=this.hasListeners();i&&as(__privateGet(this,N),r,this.options,n)&&__privateMethod(this,J,tt).call(this),this.updateResult(e),!i||__privateGet(this,N)===r&&So(this.options.enabled,__privateGet(this,N))===So(n.enabled,__privateGet(this,N))&&xo(this.options.staleTime,__privateGet(this,N))===xo(n.staleTime,__privateGet(this,N))||__privateMethod(this,J,et).call(this);const o=__privateMethod(this,J,nt).call(this);!i||__privateGet(this,N)===r&&So(this.options.enabled,__privateGet(this,N))===So(n.enabled,__privateGet(this,N))&&o===__privateGet(this,X)||__privateMethod(this,J,rt).call(this,o)}getOptimisticResult(t){const e=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),t),n=this.createResult(e,t);return function(t,e){if(!Ro(t.getCurrentResult(),e))return!0;return!1}(this,n)&&(__privateSet(this,G,n),__privateSet(this,H,this.options),__privateSet(this,W,__privateGet(this,N).state)),n}getCurrentResult(){return __privateGet(this,G)}trackResult(t,e){const n={};return Object.keys(t).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==e||e(r),t[r])})})),n}trackProp(t){__privateGet(this,Z).add(t)}getCurrentQuery(){return __privateGet(this,N)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=__privateGet(this,B).defaultQueryOptions(t),n=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),e);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,e)))}fetch(t){return __privateMethod(this,J,tt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,G))))}createResult(t,e){var n;const r=__privateGet(this,N),i=this.options,o=__privateGet(this,G),s=__privateGet(this,W),a=__privateGet(this,H),l=t!==r?t.state:__privateGet(this,U),{state:u}=t;let c,d={...u},h=!1;if(e._optimisticResults){const n=this.hasListeners(),o=!n&&os(t,e),s=n&&as(t,r,e,i);(o||s)&&(d={...d,...Yo(u.data,t.options)}),"isRestoring"===e._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:m}=d;if(e.select&&void 0!==d.data)if(o&&d.data===(null==s?void 0:s.data)&&e.select===__privateGet(this,z))c=__privateGet(this,q);else try{__privateSet(this,z,e.select),c=e.select(d.data),c=Lo(null==o?void 0:o.data,c,e),__privateSet(this,q,c),__privateSet(this,$,null)}catch(b){__privateSet(this,$,b)}else c=d.data;if(void 0!==e.placeholderData&&void 0===c&&"pending"===m){let t;if((null==o?void 0:o.isPlaceholderData)&&e.placeholderData===(null==a?void 0:a.placeholderData))t=o.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(null==(n=__privateGet(this,K))?void 0:n.state.data,__privateGet(this,K)):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),__privateSet(this,$,null)}catch(b){__privateSet(this,$,b)}void 0!==t&&(m="success",c=Lo(null==o?void 0:o.data,t,e),h=!0)}__privateGet(this,$)&&(p=__privateGet(this,$),c=__privateGet(this,q),f=Date.now(),m="error");const v="fetching"===d.fetchStatus,g="pending"===m,y="error"===m,_=g&&v,w=void 0!==c;return{status:m,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===m,isError:y,isInitialLoading:_,isLoading:_,data:c,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:h,isRefetchError:y&&w,isStale:ls(t,e),refetch:this.refetch}}updateResult(t){const e=__privateGet(this,G),n=this.createResult(__privateGet(this,N),this.options);if(__privateSet(this,W,__privateGet(this,N).state),__privateSet(this,H,this.options),void 0!==__privateGet(this,W).data&&__privateSet(this,K,__privateGet(this,N)),Ro(n,e))return;__privateSet(this,G,n);const r={};!1!==(null==t?void 0:t.listeners)&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,G)).some((t=>{const n=t;return __privateGet(this,G)[n]!==e[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,J,lt).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,J,it).call(this)}},B=new WeakMap,N=new WeakMap,U=new WeakMap,G=new WeakMap,W=new WeakMap,H=new WeakMap,$=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,Y=new WeakMap,Q=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,tt=function(t){__privateMethod(this,J,at).call(this);let e=__privateGet(this,N).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(_o)),e},et=function(){__privateMethod(this,J,ot).call(this);const t=xo(this.options.staleTime,__privateGet(this,N));if(yo||__privateGet(this,G).isStale||!wo(t))return;const e=bo(__privateGet(this,G).dataUpdatedAt,t);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,G).isStale||this.updateResult()}),e+1))},nt=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,N)):this.options.refetchInterval)??!1},rt=function(t){__privateMethod(this,J,st).call(this),__privateSet(this,X,t),!yo&&!1!==So(this.options.enabled,__privateGet(this,N))&&wo(__privateGet(this,X))&&0!==__privateGet(this,X)&&__privateSet(this,Q,setInterval((()=>{(this.options.refetchIntervalInBackground||Bo.isFocused())&&__privateMethod(this,J,tt).call(this)}),__privateGet(this,X)))},it=function(){__privateMethod(this,J,et).call(this),__privateMethod(this,J,rt).call(this,__privateMethod(this,J,nt).call(this))},ot=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},st=function(){__privateGet(this,Q)&&(clearInterval(__privateGet(this,Q)),__privateSet(this,Q,void 0))},at=function(){const t=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),this.options);if(t===__privateGet(this,N))return;const e=__privateGet(this,N);__privateSet(this,N,t),__privateSet(this,U,t.state),this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))},lt=function(t){zo.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t(__privateGet(this,G))})),__privateGet(this,B).getQueryCache().notify({query:__privateGet(this,N),type:"observerResultsUpdated"})}))},ut);function os(t,e){return function(t,e){return!1!==So(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&ss(t,e,e.refetchOnMount)}function ss(t,e,n){if(!1!==So(e.enabled,t)){const r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&ls(t,e)}return!1}function as(t,e,n,r){return(t!==e||!1===So(r.enabled,t))&&(!n.suspense||"error"!==t.state.status)&&ls(t,n)}function ls(t,e){return!1!==So(e.enabled,t)&&t.isStaleByTime(xo(e.staleTime,t))}var us=(gt=class extends go{constructor(t,e){super(),__privateAdd(this,ft),__privateAdd(this,ct),__privateAdd(this,dt),__privateAdd(this,ht),__privateAdd(this,pt),__privateSet(this,ct,t),this.setOptions(e),this.bindMethods(),__privateMethod(this,ft,mt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const n=this.options;this.options=__privateGet(this,ct).defaultMutationOptions(t),Ro(this.options,n)||__privateGet(this,ct).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,ht),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&To(n.mutationKey)!==To(this.options.mutationKey)?this.reset():"pending"===(null==(e=__privateGet(this,ht))?void 0:e.state.status)&&__privateGet(this,ht).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||null==(t=__privateGet(this,ht))||t.removeObserver(this)}onMutationUpdate(t){__privateMethod(this,ft,mt).call(this),__privateMethod(this,ft,vt).call(this,t)}getCurrentResult(){return __privateGet(this,dt)}reset(){var t;null==(t=__privateGet(this,ht))||t.removeObserver(this),__privateSet(this,ht,void 0),__privateMethod(this,ft,mt).call(this),__privateMethod(this,ft,vt).call(this)}mutate(t,e){var n;return __privateSet(this,pt,e),null==(n=__privateGet(this,ht))||n.removeObserver(this),__privateSet(this,ht,__privateGet(this,ct).getMutationCache().build(__privateGet(this,ct),this.options)),__privateGet(this,ht).addObserver(this),__privateGet(this,ht).execute(t)}},ct=new WeakMap,dt=new WeakMap,ht=new WeakMap,pt=new WeakMap,ft=new WeakSet,mt=function(){var t;const e=(null==(t=__privateGet(this,ht))?void 0:t.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,dt,{...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset})},vt=function(t){zo.batch((()=>{var e,n,r,i,o,s,a,l;if(__privateGet(this,pt)&&this.hasListeners()){const u=__privateGet(this,dt).variables,c=__privateGet(this,dt).context;"success"===(null==t?void 0:t.type)?(null==(n=(e=__privateGet(this,pt)).onSuccess)||n.call(e,t.data,u,c),null==(i=(r=__privateGet(this,pt)).onSettled)||i.call(r,t.data,null,u,c)):"error"===(null==t?void 0:t.type)&&(null==(s=(o=__privateGet(this,pt)).onError)||s.call(o,t.error,u,c),null==(l=(a=__privateGet(this,pt)).onSettled)||l.call(a,void 0,t.error,u,c))}this.listeners.forEach((t=>{t(__privateGet(this,dt))}))}))},gt),cs=oe(void 0),ds=t=>{const e=Bn(cs);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},hs=({client:t,children:e})=>(Fn((()=>(t.mount(),()=>{t.unmount()})),[t]),no(cs.Provider,{value:t,children:e})),ps=oe(!1),fs=()=>Bn(ps);ps.Provider;var ms=oe(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),vs=()=>Bn(ms);function gs(t,e){return"function"==typeof t?t(...e):!!t}function ys(){}var _s=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},ws=t=>{Fn((()=>{t.clearReset()}),[t])},bs=({result:t,errorResetBoundary:e,throwOnError:n,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&gs(n,[t.error,r]),xs=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ss=(t,e)=>(null==t?void 0:t.suspense)&&e.isPending,ks=(t,e,n)=>e.fetchOptimistic(t).catch((()=>{n.clearReset()}));function Es(t,e){return function(t,e){var n,r,i,o;const s=ds(),a=fs(),l=vs(),u=s.defaultQueryOptions(t);null==(r=null==(n=s.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,u),u._optimisticResults=a?"isRestoring":"optimistic",xs(u),_s(u,l),ws(l);const[c]=On((()=>new e(s,u))),d=c.getOptimisticResult(u);if(Yr(jn((t=>{const e=a?()=>{}:c.subscribe(zo.batchCalls(t));return c.updateResult(),e}),[c,a]),(()=>c.getCurrentResult())),Fn((()=>{c.setOptions(u,{listeners:!1})}),[u,c]),Ss(u,d))throw ks(u,c,l);if(bs({result:d,errorResetBoundary:l,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash)}))throw d.error;return null==(o=null==(i=s.getDefaultOptions().queries)?void 0:i._experimental_afterQuery)||o.call(i,u,d),u.notifyOnChangeProps?d:c.trackResult(d)}(t,is)}var Ps=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ts=ln((function(t){return Ps.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),As=function(t){return"theme"!==t},Cs=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Ts:As},Rs=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},Os=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return Pi(e,n,r),Gi((function(){return Ti(e,n,r)})),null},Ms=function t(e,n){var r,i,o=e.__emotion_real===e,s=o&&e.__emotion_base||e;void 0!==n&&(r=n.label,i=n.target);var a=Rs(e,n,o),l=a||Cs(s),u=!l("as");return function(){var c=arguments,d=o&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p<h;p++)d.push(c[p],c[0][p])}var f=zi((function(t,e,n){var r=u&&t.as||s,o="",c=[],h=t;if(null==t.theme){for(var p in h={},t)h[p]=t[p];h.theme=Bn(qi)}"string"==typeof t.className?o=Ei(e.registered,c,t.className):null!=t.className&&(o=t.className+" ");var f=Ni(d.concat(c),e.registered,h);o+=e.key+"-"+f.name,void 0!==i&&(o+=" "+i);var m=u&&void 0===a?Cs(r):l,v={};for(var g in t)u&&"as"===g||m(g)&&(v[g]=t[g]);return v.className=o,n&&(v.ref=n),Dt(jt,null,Dt(Os,{cache:e,serialized:f,isStringTag:"string"==typeof r}),Dt(r,v))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=e.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(e,r){return t(e,Jr({},n,r,{shouldForwardProp:Rs(f,r,!0)})).apply(void 0,d)},f}}.bind();function Fs({title:t,titleId:e,...n},r){return Dt("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":e},n),t?Dt("title",{id:e},t):null,Dt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){Ms[t]=Ms(t)}));const Ls=er(Fs);function Ds({title:t,titleId:e,...n},r){return Dt("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":e},n),t?Dt("title",{id:e},t):null,Dt("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Vs=er(Ds),Is=Ms.td`
|
|
4
4
|
${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
5
5
|
`,js=Ms.td`
|
|
6
6
|
${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}
|