@flarehr/promoted-benefits-admin 0.3.896 → 0.3.1360

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.html CHANGED
@@ -1,13 +1,16 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Test Site</title>
8
- <script type="module" crossorigin src="/index.js"></script>
9
- </head>
10
- <body>
11
- <promoted-benefits-admin backend-url="" access-token="none"></promoted-benefits-admin>
12
- </body>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Test Site</title>
8
+ <script type="module" crossorigin src="/index.js"></script>
9
+ </head>
10
+ <body>
11
+ <promoted-benefits-admin
12
+ hash-route-base="/"
13
+ backend-url="http://localhost:5173"
14
+ access-token=""></promoted-benefits-admin>
15
+ </body>
13
16
  </html>
package/dist/index.js CHANGED
@@ -1,3 +1,45 @@
1
- !function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={};var t,n,r,o,i,a,c,u,s,l,_,f={},p=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,n,r){var o,i,a,c={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:c[a]=n[a];if(arguments.length>2&&(c.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return g(e,c,o,i,null)}function g(e,t,o,i,a){var c={type:e,props:t,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=n.vnode&&n.vnode(c),c}function w(){return{current:null}}function b(e){return e.children}function k(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function C(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!E.__r++||i!==n.debounceRendering)&&((i=n.debounceRendering)||a)(E)}function E(){var e,t,r,i,a,u,s,l;for(o.sort(c);e=o.shift();)e.__d&&(t=o.length,i=void 0,u=(a=(r=e).__v).__e,s=[],l=[],r.__P&&((i=m({},a)).__v=a.__v+1,n.vnode&&n.vnode(i),M(r.__P,i,a,r.__n,r.__P.namespaceURI,32&a.__u?[u]:null,s,null==u?x(a):u,!!(32&a.__u),l),i.__v=a.__v,i.__.__k[i.__i]=i,z(s,i,l),i.__e!=u&&S(i)),o.length>t&&o.sort(c));E.__r=0}function P(e,t,n,r,o,i,a,c,u,s,l){var _,d,m,v,y,w=r&&r.__k||p,k=t.length;for(n.__d=u,function(e,t,n){var r,o,i,a,c,u=t.length,s=n.length,l=s,_=0;for(e.__k=[],r=0;r<u;r++)a=r+_,null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?g(null,o,null,null,null):h(o)?g(b,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?g(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,c=A(o,n,a,l),o.__i=c,i=null,-1!==c&&(l--,(i=n[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&_--,"function"!=typeof o.type&&(o.__u|=65536)):c!==a&&(c==a-1?_--:c==a+1?_++:c>a?l>u-a?_+=c-a:_--:c<a&&(c==a-_?_-=c-a:_++),c!==r+_&&(o.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=x(i)),L(i,i,!1),n[a]=null,l--);if(l)for(r=0;r<s;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=x(i)),L(i,i))}(n,t,w),u=n.__d,_=0;_<k;_++)null!=(m=n.__k[_])&&"boolean"!=typeof m&&"function"!=typeof m&&(d=-1===m.__i?f:w[m.__i]||f,m.__i=_,M(e,m,d,o,i,a,c,u,s,l),v=m.__e,m.ref&&d.ref!=m.ref&&(d.ref&&H(d.ref,null,m),l.push(m.ref,m.__c||v,m)),null==y&&null!=v&&(y=v),65536&m.__u||d.__k===m.__k?u=$(m,u,e):"function"==typeof m.type&&void 0!==m.__d?u=m.__d:v&&(u=v.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=u,n.__e=y}function $(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=$(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=x(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function A(e,t,n,r){var o=e.key,i=e.type,a=n-1,c=n+1,u=t[n];if(null===u||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(null==u||131072&u.__u?0:1))for(;a>=0||c<t.length;){if(a>=0){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(c<t.length){if((u=t[c])&&!(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function O(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function T(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=u,e.addEventListener(t,i?l:s,i)):e.removeEventListener(t,i?l:s,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function R(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=u++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function M(e,r,o,i,a,c,u,s,l,_){var p,d,y,g,w,S,C,E,$,N,A,O,R,M,z,H,L=r.type;if(void 0!==r.constructor)return null;128&o.__u&&(l=!!(32&o.__u),c=[s=r.__e=o.__e]),(p=n.__b)&&p(r);e:if("function"==typeof L)try{if(E=r.props,$="prototype"in L&&L.prototype.render,N=(p=L.contextType)&&i[p.__c],A=p?N?N.props.value:p.__:i,o.__c?C=(d=r.__c=o.__c).__=d.__E:($?r.__c=d=new L(E,A):(r.__c=d=new k(E,A),d.constructor=L,d.render=I),N&&N.sub(d),d.props=E,d.state||(d.state={}),d.context=A,d.__n=i,y=d.__d=!0,d.__h=[],d._sb=[]),$&&null==d.__s&&(d.__s=d.state),$&&null!=L.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,L.getDerivedStateFromProps(E,d.__s))),g=d.props,w=d.state,d.__v=r,y)$&&null==L.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),$&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if($&&null==L.getDerivedStateFromProps&&E!==g&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(E,A),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(E,d.__s,A)||r.__v===o.__v)){for(r.__v!==o.__v&&(d.props=E,d.state=d.__s,d.__d=!1),r.__e=o.__e,r.__k=o.__k,r.__k.forEach((function(e){e&&(e.__=r)})),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(E,d.__s,A),$&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(g,w,S)}))}if(d.context=A,d.props=E,d.__P=e,d.__e=!1,R=n.__r,M=0,$){for(d.state=d.__s,d.__d=!1,R&&R(r),p=d.render(d.props,d.state,d.context),z=0;z<d._sb.length;z++)d.__h.push(d._sb[z]);d._sb=[]}else do{d.__d=!1,R&&R(r),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++M<25);d.state=d.__s,null!=d.getChildContext&&(i=m(m({},i),d.getChildContext())),$&&!y&&null!=d.getSnapshotBeforeUpdate&&(S=d.getSnapshotBeforeUpdate(g,w)),P(e,h(H=null!=p&&p.type===b&&null==p.key?p.props.children:p)?H:[H],r,o,i,a,c,u,s,l,_),d.base=r.__e,r.__u&=-161,d.__h.length&&u.push(d),C&&(d.__E=d.__=null)}catch(W){if(r.__v=null,l||null!=c){for(r.__u|=l?160:32;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;c[c.indexOf(s)]=null,r.__e=s}else r.__e=o.__e,r.__k=o.__k;n.__e(W,r,o)}else null==c&&r.__v===o.__v?(r.__k=o.__k,r.__e=o.__e):r.__e=function(e,n,r,o,i,a,c,u,s){var l,_,p,d,m,y,g,w=r.props,b=n.props,k=n.type;if("svg"===k?i="http://www.w3.org/2000/svg":"math"===k?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(l=0;l<a.length;l++)if((m=a[l])&&"setAttribute"in m==!!k&&(k?m.localName===k:3===m.nodeType)){e=m,a[l]=null;break}if(null==e){if(null===k)return document.createTextNode(b);e=document.createElementNS(i,k,b.is&&b),a=null,u=!1}if(null===k)w===b||u&&e.data===b||(e.data=b);else{if(a=a&&t.call(e.childNodes),w=r.props||f,!u&&null!=a)for(w={},l=0;l<e.attributes.length;l++)w[(m=e.attributes[l]).name]=m.value;for(l in w)if(m=w[l],"children"==l);else if("dangerouslySetInnerHTML"==l)p=m;else if("key"!==l&&!(l in b)){if("value"==l&&"defaultValue"in b||"checked"==l&&"defaultChecked"in b)continue;T(e,l,null,m,i)}for(l in b)m=b[l],"children"==l?d=m:"dangerouslySetInnerHTML"==l?_=m:"value"==l?y=m:"checked"==l?g=m:"key"===l||u&&"function"!=typeof m||w[l]===m||T(e,l,m,w[l],i);if(_)u||p&&(_.__html===p.__html||_.__html===e.innerHTML)||(e.innerHTML=_.__html),n.__k=[];else if(p&&(e.innerHTML=""),P(e,h(d)?d:[d],n,r,o,"foreignObject"===k?"http://www.w3.org/1999/xhtml":i,a,c,a?a[0]:r.__k&&x(r,0),u,s),null!=a)for(l=a.length;l--;)null!=a[l]&&v(a[l]);u||(l="value",void 0!==y&&(y!==e[l]||"progress"===k&&!y||"option"===k&&y!==w[l])&&T(e,l,y,w[l],i),l="checked",void 0!==g&&g!==e[l]&&T(e,l,g,w[l],i))}return e}(o.__e,r,o,i,a,c,u,l,_);(p=n.diffed)&&p(r)}function z(e,t,r){t.__d=void 0;for(var o=0;o<r.length;o++)H(r[o],r[++o],r[++o]);n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){n.__e(r,t.__v)}}))}function H(e,t,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(i){n.__e(i,r)}}function L(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||H(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){n.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&L(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||v(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function I(e,t,n){return this.constructor(e,n)}function W(e,r,o){var i,a,c,u;n.__&&n.__(e,r),a=(i="function"==typeof o)?null:o&&o.__k||r.__k,c=[],u=[],M(r,e=(!i&&o||r).__k=y(b,null,[e]),a||f,f,r.namespaceURI,!i&&o?[o]:a?null:r.firstChild?t.call(r.childNodes):null,c,!i&&o?o:a?a.__e:r.firstChild,i,u),z(c,e,u)}function U(e,t){W(e,t,U)}function F(e,n,r){var o,i,a,c,u=m({},e.props);for(a in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),n)"key"==a?o=n[a]:"ref"==a?i=n[a]:u[a]=void 0===n[a]&&void 0!==c?c[a]:n[a];return arguments.length>2&&(u.children=arguments.length>3?t.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)}function D(e,t){var n={__c:t="__cC"+_++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,C(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t=p.slice,n={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},r=0,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},k.prototype.render=b,o=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,u=0,s=R(!1),l=R(!0),_=0;var V=["context","children"];function B(e){return this.getChildContext=function(){return e.context},F(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,V))}function q(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=y(B,j({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,c=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[G(a[i].name)]=a[i].value);for(i=c.length;i--;){var u=e(c[i],null),s=c[i].slot;s?o[s]=y(K,{name:s},u):r[i]=u}var l=n?y(K,null,r):r;return y(n||t.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?U:W)(this._vdom,this._root)}function G(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Y(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[G(e)]=n,this._vdom=F(this._vdom,r),W(this._vdom,this._root)}}function Z(){W(this._vdom=null,this._root)}function K(e,t){var n=this;return y("slot",j({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var J=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Q="-ms-",X="-moz-",ee="-webkit-",te="comm",ne="rule",re="decl",oe="@keyframes",ie=Math.abs,ae=String.fromCharCode,ce=Object.assign;function ue(e){return e.trim()}function se(e,t,n){return e.replace(t,n)}function le(e,t){return e.indexOf(t)}function _e(e,t){return 0|e.charCodeAt(t)}function fe(e,t,n){return e.slice(t,n)}function pe(e){return e.length}function de(e){return e.length}function he(e,t){return t.push(e),e}var me=1,ve=1,ye=0,ge=0,we=0,be="";function ke(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:me,column:ve,length:a,return:""}}function xe(e,t){return ce(ke("",null,null,"",null,null,0),e,{length:-e.length},t)}function Se(){return we=ge<ye?_e(be,ge++):0,ve++,10===we&&(ve=1,me++),we}function Ce(){return _e(be,ge)}function Ee(){return ge}function Pe(e,t){return fe(be,e,t)}function $e(e){switch(e){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 Ne(e){return me=ve=1,ye=pe(be=e),ge=0,[]}function Ae(e){return be="",e}function Oe(e){return ue(Pe(ge-1,Me(91===e?e+2:40===e?e+1:e)))}function Te(e){for(;(we=Ce())&&we<33;)Se();return $e(e)>2||$e(we)>3?"":" "}function Re(e,t){for(;--t&&Se()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Pe(e,Ee()+(t<6&&32==Ce()&&32==Se()))}function Me(e){for(;Se();)switch(we){case e:return ge;case 34:case 39:34!==e&&39!==e&&Me(we);break;case 40:41===e&&Me(e);break;case 92:Se()}return ge}function ze(e,t){for(;Se()&&e+we!==57&&(e+we!==84||47!==Ce()););return"/*"+Pe(t,ge-1)+"*"+ae(47===e?e:Se())}function He(e){for(;!$e(Ce());)Se();return Pe(e,ge)}function Le(e){return Ae(Ie("",null,null,null,[""],e=Ne(e),0,[0],e))}function Ie(e,t,n,r,o,i,a,c,u){for(var s=0,l=0,_=a,f=0,p=0,d=0,h=1,m=1,v=1,y=0,g="",w=o,b=i,k=r,x=g;m;)switch(d=y,y=Se()){case 40:if(108!=d&&58==_e(x,_-1)){-1!=le(x+=se(Oe(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=Oe(y);break;case 9:case 10:case 13:case 32:x+=Te(d);break;case 92:x+=Re(Ee()-1,7);continue;case 47:switch(Ce()){case 42:case 47:he(Ue(ze(Se(),Ee()),t,n),u);break;default:x+="/"}break;case 123*h:c[s++]=pe(x)*v;case 125*h:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+l:-1==v&&(x=se(x,/\f/g,"")),p>0&&pe(x)-_&&he(p>32?Fe(x+";",r,n,_-1):Fe(se(x," ","")+";",r,n,_-2),u);break;case 59:x+=";";default:if(he(k=We(x,t,n,s,l,o,c,g,w=[],b=[],_),i),123===y)if(0===l)Ie(x,t,k,k,w,i,_,c,b);else switch(99===f&&110===_e(x,3)?100:f){case 100:case 108:case 109:case 115:Ie(e,k,k,r&&he(We(e,k,k,0,0,o,c,g,o,w=[],_),b),o,b,_,c,r?w:b);break;default:Ie(x,k,k,k,[""],b,0,c,b)}}s=l=p=0,h=v=1,g=x="",_=a;break;case 58:_=1+pe(x),p=d;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==(we=ge>0?_e(be,--ge):0,ve--,10===we&&(ve=1,me--),we))continue;switch(x+=ae(y),y*h){case 38:v=l>0?1:(x+="\f",-1);break;case 44:c[s++]=(pe(x)-1)*v,v=1;break;case 64:45===Ce()&&(x+=Oe(Se())),f=Ce(),l=_=pe(g=x+=He(Ee())),y++;break;case 45:45===d&&2==pe(x)&&(h=0)}}return i}function We(e,t,n,r,o,i,a,c,u,s,l){for(var _=o-1,f=0===o?i:[""],p=de(f),d=0,h=0,m=0;d<r;++d)for(var v=0,y=fe(e,_+1,_=ie(h=a[d])),g=e;v<p;++v)(g=ue(h>0?f[v]+" "+y:se(y,/&\f/g,f[v])))&&(u[m++]=g);return ke(e,t,n,0===o?ne:c,u,s,l)}function Ue(e,t,n){return ke(e,t,n,te,ae(we),fe(e,2,-2),0)}function Fe(e,t,n,r){return ke(e,t,n,re,fe(e,0,r),fe(e,r+1,-1),r)}function De(e,t){for(var n="",r=de(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function je(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case re:return e.return=e.return||e.value;case te:return"";case oe:return e.return=e.value+"{"+De(e.children,r)+"}";case ne:e.value=e.props.join(",")}return pe(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ve(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Be=function(e,t,n){for(var r=0,o=0;r=o,o=Ce(),38===r&&12===o&&(t[n]=1),!$e(o);)Se();return Pe(e,ge)},qe=function(e,t){return Ae(function(e,t){var n=-1,r=44;do{switch($e(r)){case 0:38===r&&12===Ce()&&(t[n]=1),e[n]+=Be(ge-1,t,n);break;case 2:e[n]+=Oe(r);break;case 4:if(44===r){e[++n]=58===Ce()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ae(r)}}while(r=Se());return e}(Ne(e),t))},Ge=new WeakMap,Ye=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ge.get(n))&&!r){Ge.set(e,!0);for(var o=[],i=qe(t,o),a=n.props,c=0,u=0;c<i.length;c++)for(var s=0;s<a.length;s++,u++)e.props[u]=o[c]?i[c].replace(/&\f/g,a[s]):a[s]+" "+i[c]}}},Ze=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ke(e,t){switch(function(e,t){return 45^_e(e,0)?(((t<<2^_e(e,0))<<2^_e(e,1))<<2^_e(e,2))<<2^_e(e,3):0}(e,t)){case 5103:return ee+"print-"+e+e;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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+X+e+Q+e+e;case 6828:case 4268:return ee+e+Q+e+e;case 6165:return ee+e+Q+"flex-"+e+e;case 5187:return ee+e+se(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return ee+e+Q+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ee+e+Q+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+Q+se(e,"shrink","negative")+e;case 5292:return ee+e+Q+se(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+se(e,"-grow","")+ee+e+Q+se(e,"grow","positive")+e;case 4554:return ee+se(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ee+"$1$2")+e;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(pe(e)-1-t>6)switch(_e(e,t+1)){case 109:if(45!==_e(e,t+4))break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+X+(108==_e(e,t+3)?"$3":"$2-$3"))+e;case 115:return~le(e,"stretch")?Ke(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_e(e,t+1))break;case 6444:switch(_e(e,pe(e)-3-(~le(e,"!important")&&10))){case 107:return se(e,":",":"+ee)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(45===_e(e,14)?"inline-":"")+"box$3$1"+ee+"$2$3$1"+Q+"$2box$3")+e}break;case 5936:switch(_e(e,t+11)){case 114:return ee+e+Q+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+Q+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+Q+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+Q+e+e}return e}var Je,Qe,Xe,et,tt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case re:e.return=Ke(e.value,e.length);break;case oe:return De([xe(e,{value:se(e.value,"@","@"+ee)})],r);case ne:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([xe(e,{props:[se(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return De([xe(e,{props:[se(t,/:(plac\w+)/,":"+ee+"input-$1")]}),xe(e,{props:[se(t,/:(plac\w+)/,":-moz-$1")]}),xe(e,{props:[se(t,/:(plac\w+)/,Q+"input-$1")]})],r)}return""}))}}],nt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||tt,a={},c=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;c.push(e)}));var u,s,l,_,f=[je,(_=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&_(e)})],p=(s=[Ye,Ze].concat(i,f),l=de(s),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=s[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,De(Le(e?e+"{"+t.styles+"}":t.styles),p),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new J({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(c),d},rt=0,ot=[],it=n,at=it.__b,ct=it.__r,ut=it.diffed,st=it.__c,lt=it.unmount,_t=it.__;function ft(e,t){it.__h&&it.__h(Qe,e,rt||t),rt=0;var n=Qe.__H||(Qe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function pt(e){return rt=1,dt(At,e)}function dt(e,t,n){var r=ft(Je++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):At(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Qe,!Qe.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};Qe.u=!0;var i=Qe.shouldComponentUpdate,a=Qe.componentWillUpdate;Qe.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},Qe.shouldComponentUpdate=o}return r.__N||r.__}function ht(e,t){var n=ft(Je++,3);!it.__s&&Nt(n.__H,t)&&(n.__=e,n.i=t,Qe.__H.__h.push(n))}function mt(e,t){var n=ft(Je++,4);!it.__s&&Nt(n.__H,t)&&(n.__=e,n.i=t,Qe.__h.push(n))}function vt(e){return rt=5,gt((function(){return{current:e}}),[])}function yt(e,t,n){rt=6,mt((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function gt(e,t){var n=ft(Je++,7);return Nt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function wt(e,t){return rt=8,gt((function(){return e}),t)}function bt(e){var t=Qe.context[e.__c],n=ft(Je++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Qe)),t.props.value):e.__}function kt(e,t){it.useDebugValue&&it.useDebugValue(t?t(e):e)}function xt(){var e=ft(Je++,11);if(!e.__){for(var t=Qe.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function St(){for(var e;e=ot.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pt),e.__H.__h.forEach($t),e.__H.__h=[]}catch(t){e.__H.__h=[],it.__e(t,e.__v)}}it.__b=function(e){Qe=null,at&&at(e)},it.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_t&&_t(e,t)},it.__r=function(e){ct&&ct(e),Je=0;var t=(Qe=e.__c).__H;t&&(Xe===Qe?(t.__h=[],Qe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Pt),t.__h.forEach($t),t.__h=[],Je=0)),Xe=Qe},it.diffed=function(e){ut&&ut(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ot.push(t)&&et===it.requestAnimationFrame||((et=it.requestAnimationFrame)||Et)(St)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),Xe=Qe=null},it.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Pt),e.__h=e.__h.filter((function(e){return!e.__||$t(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],it.__e(n,e.__v)}})),st&&st(e,t)},it.unmount=function(e){lt&&lt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Pt(e)}catch(n){t=n}})),n.__H=void 0,t&&it.__e(t,n.__v))};var Ct="function"==typeof requestAnimationFrame;function Et(e){var t,n=function(){clearTimeout(r),Ct&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ct&&(t=requestAnimationFrame(n))}function Pt(e){var t=Qe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Qe=t}function $t(e){var t=Qe;e.__c=e.__(),Qe=t}function Nt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function At(e,t){return"function"==typeof t?t(e):t}function Ot(e,t){for(var n in t)e[n]=t[n];return e}function Tt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Rt(e,t){this.props=e,this.context=t}function Mt(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Tt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Rt.prototype=new k).isPureReactComponent=!0,Rt.prototype.shouldComponentUpdate=function(e,t){return Tt(this.props,e)||Tt(this.state,t)};var zt=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),zt&&zt(e)};var Ht="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Lt(e){function t(t){var n=Ot({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ht,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var It=function(e,t){return null==e?null:N(N(e).map(t))},Wt={map:It,forEach:It,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Ut=n.__e;n.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ut(e,t,n,r)};var Ft=n.unmount;function Dt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Ot({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Dt(e,t,n)}))),e}function jt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return jt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Vt(){this.__u=0,this.t=null,this.__b=null}function Bt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qt(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Gt(){this.u=null,this.o=null}n.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ft&&Ft(e)},(Vt.prototype=new k).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Bt(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=jt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Dt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&y(b,null,e.fallback);return o&&(o.__u&=-33),[y(b,null,t.__a?null:e.children),o]};var Yt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Zt(e){return this.getChildContext=function(){return e.context},e.children}function Kt(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),W(y(Zt,{context:t.context},e.__v),t.l)}function Jt(e,t){var n=y(Kt,{__v:e,i:t});return n.containerInfo=t,n}(Gt.prototype=new k).__a=function(e){var t=this,n=Bt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Yt(t,e,r)):o()};n?n(i):i()}},Gt.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Gt.prototype.componentDidUpdate=Gt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Yt(e,n,t)}))};var Qt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Xt=/^(?: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]/,en=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tn=/[A-Z0-9]/g,nn="undefined"!=typeof document,rn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function on(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function an(e,t,n){return U(e,t),"function"==typeof n&&n(),e?e.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var cn=n.event;function un(){}function sn(){return this.cancelBubble}function ln(){return this.defaultPrevented}n.event=function(e){return cn&&(e=cn(e)),e.persist=un,e.isPropagationStopped=sn,e.isDefaultPrevented=ln,e.nativeEvent=e};var _n,fn={enumerable:!1,configurable:!0,get:function(){return this.class}},pn=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||nn&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||rn(t.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":en.test(i)&&(i=c):c=i="oninput":o&&Xt.test(i)?i=i.replace(tn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&r[i=c]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",fn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Qt,pn&&pn(e)};var dn=n.__r;n.__r=function(e){dn&&dn(e),_n=e.__c};var hn=n.diffed;n.diffed=function(e){hn&&hn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),_n=null};var mn={ReactCurrentDispatcher:{current:{readContext:function(e){return _n.__n[e.__c].props.value},useCallback:wt,useContext:bt,useDebugValue:kt,useDeferredValue:$n,useEffect:ht,useId:xt,useImperativeHandle:yt,useInsertionEffect:An,useLayoutEffect:mt,useMemo:gt,useReducer:dt,useRef:vt,useState:pt,useSyncExternalStore:Tn,useTransition:Nn}}};function vn(e){return y.bind(null,e)}function yn(e){return!!e&&e.$$typeof===Qt}function gn(e){return yn(e)&&e.type===b}function wn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function bn(e){return yn(e)?F.apply(null,arguments):e}function kn(e){return!!e.__k&&(W(null,e),!0)}function xn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Sn=function(e,t){return e(t)},Cn=function(e,t){return e(t)},En=b;function Pn(e){e()}function $n(e){return e}function Nn(){return[!1,Pn]}var An=mt,On=yn;function Tn(e,t){var n=t(),r=pt({h:{__:n,v:t}}),o=r[0].h,i=r[1];return mt((function(){o.__=n,o.v=t,Rn(o)&&i({h:o})}),[e,n,t]),ht((function(){return Rn(o)&&i({h:o}),e((function(){Rn(o)&&i({h:o})}))}),[e]),n}function Rn(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Mn={useState:pt,useId:xt,useReducer:dt,useEffect:ht,useLayoutEffect:mt,useInsertionEffect:An,useTransition:Nn,useDeferredValue:$n,useSyncExternalStore:Tn,startTransition:Pn,useRef:vt,useImperativeHandle:yt,useMemo:gt,useCallback:wt,useContext:bt,useDebugValue:kt,version:"17.0.2",Children:Wt,render:on,hydrate:an,unmountComponentAtNode:kn,createPortal:Jt,createElement:y,createContext:D,createFactory:vn,cloneElement:bn,createRef:w,Fragment:b,isValidElement:yn,isElement:On,isFragment:gn,isMemo:wn,findDOMNode:xn,Component:k,PureComponent:Rt,memo:Mt,forwardRef:Lt,flushSync:Cn,unstable_batchedUpdates:Sn,StrictMode:En,Suspense:Vt,SuspenseList:Gt,lazy:qt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:mn};const zn=Object.freeze(Object.defineProperty({__proto__:null,Children:Wt,Component:k,Fragment:b,PureComponent:Rt,StrictMode:En,Suspense:Vt,SuspenseList:Gt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:mn,cloneElement:bn,createContext:D,createElement:y,createFactory:vn,createPortal:Jt,createRef:w,default:Mn,findDOMNode:xn,flushSync:Cn,forwardRef:Lt,hydrate:an,isElement:On,isFragment:gn,isMemo:wn,isValidElement:yn,lazy:qt,memo:Mt,render:on,startTransition:Pn,unmountComponentAtNode:kn,unstable_batchedUpdates:Sn,useCallback:wt,useContext:bt,useDebugValue:kt,useDeferredValue:$n,useEffect:ht,useErrorBoundary:function(e){var t=ft(Je++,10),n=pt();return t.__=e,Qe.componentDidCatch||(Qe.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:xt,useImperativeHandle:yt,useInsertionEffect:An,useLayoutEffect:mt,useMemo:gt,useReducer:dt,useRef:vt,useState:pt,useSyncExternalStore:Tn,useTransition:Nn,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var Hn={exports:{}},Ln={},In="function"==typeof Symbol&&Symbol.for,Wn=In?Symbol.for("react.element"):60103,Un=In?Symbol.for("react.portal"):60106,Fn=In?Symbol.for("react.fragment"):60107,Dn=In?Symbol.for("react.strict_mode"):60108,jn=In?Symbol.for("react.profiler"):60114,Vn=In?Symbol.for("react.provider"):60109,Bn=In?Symbol.for("react.context"):60110,qn=In?Symbol.for("react.async_mode"):60111,Gn=In?Symbol.for("react.concurrent_mode"):60111,Yn=In?Symbol.for("react.forward_ref"):60112,Zn=In?Symbol.for("react.suspense"):60113,Kn=In?Symbol.for("react.suspense_list"):60120,Jn=In?Symbol.for("react.memo"):60115,Qn=In?Symbol.for("react.lazy"):60116,Xn=In?Symbol.for("react.block"):60121,er=In?Symbol.for("react.fundamental"):60117,tr=In?Symbol.for("react.responder"):60118,nr=In?Symbol.for("react.scope"):60119;function rr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Wn:switch(e=e.type){case qn:case Gn:case Fn:case jn:case Dn:case Zn:return e;default:switch(e=e&&e.$$typeof){case Bn:case Yn:case Qn:case Jn:case Vn:return e;default:return t}}case Un:return t}}}function or(e){return rr(e)===Gn}Ln.AsyncMode=qn,Ln.ConcurrentMode=Gn,Ln.ContextConsumer=Bn,Ln.ContextProvider=Vn,Ln.Element=Wn,Ln.ForwardRef=Yn,Ln.Fragment=Fn,Ln.Lazy=Qn,Ln.Memo=Jn,Ln.Portal=Un,Ln.Profiler=jn,Ln.StrictMode=Dn,Ln.Suspense=Zn,Ln.isAsyncMode=function(e){return or(e)||rr(e)===qn},Ln.isConcurrentMode=or,Ln.isContextConsumer=function(e){return rr(e)===Bn},Ln.isContextProvider=function(e){return rr(e)===Vn},Ln.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Wn},Ln.isForwardRef=function(e){return rr(e)===Yn},Ln.isFragment=function(e){return rr(e)===Fn},Ln.isLazy=function(e){return rr(e)===Qn},Ln.isMemo=function(e){return rr(e)===Jn},Ln.isPortal=function(e){return rr(e)===Un},Ln.isProfiler=function(e){return rr(e)===jn},Ln.isStrictMode=function(e){return rr(e)===Dn},Ln.isSuspense=function(e){return rr(e)===Zn},Ln.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fn||e===Gn||e===jn||e===Dn||e===Zn||e===Kn||"object"==typeof e&&null!==e&&(e.$$typeof===Qn||e.$$typeof===Jn||e.$$typeof===Vn||e.$$typeof===Bn||e.$$typeof===Yn||e.$$typeof===er||e.$$typeof===tr||e.$$typeof===nr||e.$$typeof===Xn)},Ln.typeOf=rr,Hn.exports=Ln;var ir=Hn.exports,ar={};ar[ir.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ar[ir.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function cr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var ur=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},sr=function(e,t,n){ur(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var lr={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},_r=!1,fr=/[A-Z]|^ms/g,pr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dr=function(e){return 45===e.charCodeAt(1)},hr=function(e){return null!=e&&"boolean"!=typeof e},mr=Ve((function(e){return dr(e)?e:e.replace(fr,"-$&").toLowerCase()})),vr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pr,(function(e,t,n){return wr={name:t,styles:n,next:wr},t}))}return 1===lr[e]||dr(e)||"number"!=typeof t||0===t?t:t+"px"},yr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gr(e,t,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 o=n;if(1===o.anim)return wr={name:o.name,styles:o.styles,next:wr},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)wr={name:a.name,styles:a.styles,next:wr},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gr(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var c=a;null!=t&&void 0!==t[c]?r+=i+"{"+t[c]+"}":hr(c)&&(r+=mr(i)+":"+vr(i,c)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&_r)throw new Error(yr);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=gr(e,t,a);switch(i){case"animation":case"animationName":r+=mr(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var s=0;s<a.length;s++)hr(a[s])&&(r+=mr(i)+":"+vr(i,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var c=wr,u=n(e);return wr=c,gr(e,t,u)}}var s=n;if(null==t)return s;var l=t[s];return void 0!==l?l:s}var wr,br=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function kr(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";wr=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=gr(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=gr(n,t,e[a]),r)o+=i[a]}br.lastIndex=0;for(var c,u="";null!==(c=br.exec(o));)u+="-"+c[1];var s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:s,styles:o,next:wr}}var xr=!!zn.useInsertionEffect&&zn.useInsertionEffect,Sr=xr||function(e){return e()},Cr=xr||mt,Er=D("undefined"!=typeof HTMLElement?nt({key:"css"}):null),Pr=Er.Provider,$r=function(e){return Lt((function(t,n){var r=bt(Er);return e(t,r,n)}))},Nr=D({}),Ar={}.hasOwnProperty,Or="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tr=function(e,t){var n={};for(var r in t)Ar.call(t,r)&&(n[r]=t[r]);return n[Or]=e,n},Rr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ur(t,n,r),Sr((function(){return sr(t,n,r)})),null},Mr=$r((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Or],i=[r],a="";"string"==typeof e.className?a=cr(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var c=kr(i,void 0,bt(Nr));a+=t.key+"-"+c.name;var u={};for(var s in e)Ar.call(e,s)&&"css"!==s&&s!==Or&&(u[s]=e[s]);return u.className=a,n&&(u.ref=n),y(b,null,y(Rr,{cache:t,serialized:c,isStringTag:"string"==typeof o}),y(o,u))})),zr=$r((function(e,t){var n=kr([e.styles],void 0,bt(Nr)),r=vt();return Cr((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Cr((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&sr(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function Hr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kr(t)}var Lr=0;function Ir(e,t,r,o,i,a){t||(t={});var c,u,s=t;if("ref"in s)for(u in s={},t)"ref"==u?c=t[u]:s[u]=t[u];var l={type:e,props:s,key:r,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Lr,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(c=e.defaultProps))for(u in c)void 0===s[u]&&(s[u]=c[u]);return n.vnode&&n.vnode(l),l}var Wr=b;function Ur(e,t,n){return Ar.call(t,"css")?Ir(Mr,Tr(e,t),n):Ir(e,t,n)}function Fr(e,t,n){return Ar.call(t,"css")?Ir(Mr,Tr(e,t),n):Ir(e,t,n)}const Dr=Hr({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"}}),jr=()=>Fr(b,{children:[Ur(zr,{styles:Hr`
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
- `}),Ur(zr,{styles:Dr})]}),Vr=qt((()=>function(t,n){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),o=(null==t?void 0:t.nonce)||(null==t?void 0:t.getAttribute("nonce"));r=Promise.all(n.map((t=>{if((t=function(e){return"/"+e}(t))in e)return;e[t]=!0;const n=t.endsWith(".css"),r=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${r}`))return;const i=document.createElement("link");return i.rel=n?"stylesheet":"modulepreload",n||(i.as="script"),i.crossOrigin="",i.href=t,o&&i.setAttribute("nonce",o),document.head.appendChild(i),n?new Promise(((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return r.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}((()=>import("./assets/app-DtcLxUcr.js")),[])));!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=q,o.prototype.attributeChangedCallback=Y,o.prototype.disconnectedCallback=Z,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((()=>{const e=vt(null),{EmotionProvider:t}=((e,t)=>{const[n,r]=pt();return ht((()=>{if(t&&t.current){const n=t=>{document.getElementsByTagName(e).length>0?t():requestAnimationFrame((()=>n(t)))};n((()=>{r(nt({container:t.current,key:e}))}))}}),[e,t]),{EmotionProvider:({children:e})=>n?Ur(Pr,{value:n,children:e}):Ur(Wr,{})}})("promoted-benefits-admin",e);return Fr(Wr,{children:[Ur("head",{ref:e}),Fr(t,{children:[Ur(jr,{}),Ur("body",{children:Ur(Vt,{fallback:Ur(Wr,{children:"Loading..."}),children:Ur(Vr,{})})})]})]})}),"promoted-benefits-admin",["backend-url","access-token"],{shadow:!0});export{Nr as T,y as _,cr as g,sr as i,Ur as j,b as k,Ve as m,ur as r,kr as s,Sr as u,$r as w,bt as x};
1
+ var t,e,n,i,r,o,s,a,l,c,u,h,d,p,f,m,v,g,y,w,b,_,x,S,k,P,C,T,A,E,R,M,O,D,L,F,V,j,B,U,W,I,N,$,H,z,q,K,G,Q,Y,X,Z,J,tt,et,nt,it,rt,ot,st,at,lt,ct,ut=Object.defineProperty,ht=t=>{throw TypeError(t)},dt=(t,e,n)=>((t,e,n)=>e in t?ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),pt=(t,e,n)=>e.has(t)||ht("Cannot "+n),ft=(t,e,n)=>(pt(t,e,"read from private field"),n?n.call(t):e.get(t)),mt=(t,e,n)=>e.has(t)?ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),vt=(t,e,n,i)=>(pt(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),gt=(t,e,n)=>(pt(t,e,"access private method"),n),yt=(t,e,n,i)=>({set _(i){vt(t,e,i,n)},get _(){return ft(t,e,i)}});!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))e(t);new MutationObserver((t=>{for(const n of t)if("childList"===n.type)for(const t of n.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&e(t)})).observe(document,{childList:!0,subtree:!0})}function e(t){if(t.ep)return;t.ep=!0;const e=function(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?e.credentials="include":"anonymous"===t.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(t);fetch(t.href,e)}}();var wt,bt,_t,xt,St,kt,Pt,Ct,Tt,At,Et,Rt={},Mt=[],Ot=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Dt=Array.isArray;function Lt(t,e){for(var n in e)t[n]=e[n];return t}function Ft(t){var e=t.parentNode;e&&e.removeChild(t)}function Vt(t,e,n){var i,r,o,s={};for(o in e)"key"==o?i=e[o]:"ref"==o?r=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?wt.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 jt(t,s,i,r,null)}function jt(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++_t:r,__i:-1,__u:0};return null==r&&null!=bt.vnode&&bt.vnode(o),o}function Bt(){return{current:null}}function Ut(t){return t.children}function Wt(t,e){this.props=t,this.context=e}function It(t,e){if(null==e)return t.__?It(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?It(t):null}function Nt(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 Nt(t)}}function $t(t){(!t.__d&&(t.__d=!0)&&xt.push(t)&&!Ht.__r++||St!==bt.debounceRendering)&&((St=bt.debounceRendering)||kt)(Ht)}function Ht(){var t,e,n,i,r,o,s,a;for(xt.sort(Pt);t=xt.shift();)t.__d&&(e=xt.length,i=void 0,o=(r=(n=t).__v).__e,s=[],a=[],n.__P&&((i=Lt({},r)).__v=r.__v+1,bt.vnode&&bt.vnode(i),Zt(n.__P,i,r,n.__n,n.__P.namespaceURI,32&r.__u?[o]:null,s,null==o?It(r):o,!!(32&r.__u),a),i.__v=r.__v,i.__.__k[i.__i]=i,Jt(s,i,a),i.__e!=o&&Nt(i)),xt.length>e&&xt.sort(Pt));Ht.__r=0}function zt(t,e,n,i,r,o,s,a,l,c,u){var h,d,p,f,m,v=i&&i.__k||Mt,g=e.length;for(n.__d=l,function(t,e,n){var i,r,o,s,a,l=e.length,c=n.length,u=c,h=0;for(t.__k=[],i=0;i<l;i++)s=i+h,null!=(r=t.__k[i]=null==(r=e[i])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?jt(null,r,null,null,null):Dt(r)?jt(Ut,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?jt(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,a=Gt(r,n,s,u),r.__i=a,o=null,-1!==a&&(u--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&h--,"function"!=typeof r.type&&(r.__u|=65536)):a!==s&&(a==s-1?h--:a==s+1?h++:a>s?u>l-s?h+=a-s:h--:a<s&&(a==s-h?h-=a-s:h++),a!==i+h&&(r.__u|=65536))):(o=n[s])&&null==o.key&&o.__e&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=It(o)),ee(o,o,!1),n[s]=null,u--);if(u)for(i=0;i<c;i++)null!=(o=n[i])&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=It(o)),ee(o,o))}(n,e,v),l=n.__d,h=0;h<g;h++)null!=(p=n.__k[h])&&"boolean"!=typeof p&&"function"!=typeof p&&(d=-1===p.__i?Rt:v[p.__i]||Rt,p.__i=h,Zt(t,p,d,r,o,s,a,l,c,u),f=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&te(d.ref,null,p),u.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||d.__k===p.__k?l=qt(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 qt(t,e,n){var i,r;if("function"==typeof t.type){for(i=t.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=t,e=qt(i[r],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=It(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function Kt(t,e){return e=e||[],null==t||"boolean"==typeof t||(Dt(t)?t.some((function(t){Kt(t,e)})):e.push(t)),e}function Gt(t,e,n,i){var r=t.key,o=t.type,s=n-1,a=n+1,l=e[n];if(null===l||l&&r==l.key&&o===l.type&&!(131072&l.__u))return n;if(i>(null==l||131072&l.__u?0:1))for(;s>=0||a<e.length;){if(s>=0){if((l=e[s])&&!(131072&l.__u)&&r==l.key&&o===l.type)return s;s--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&r==l.key&&o===l.type)return a;a++}}return-1}function Qt(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,i,r){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||Qt(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||Qt(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?i?n.u=i.u:(n.u=Ct,t.addEventListener(e,o?At:Tt,o)):t.removeEventListener(e,o?At:Tt,o);else{if("http://www.w3.org/2000/svg"==r)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 Xt(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=Ct++;else if(e.t<n.u)return;return n(bt.event?bt.event(e):e)}}}function Zt(t,e,n,i,r,o,s,a,l,c){var u,h,d,p,f,m,v,g,y,w,b,_,x,S,k,P,C=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(u=bt.__b)&&u(e);t:if("function"==typeof C)try{if(g=e.props,y="prototype"in C&&C.prototype.render,w=(u=C.contextType)&&i[u.__c],b=u?w?w.props.value:u.__:i,n.__c?v=(h=e.__c=n.__c).__=h.__E:(y?e.__c=h=new C(g,b):(e.__c=h=new Wt(g,b),h.constructor=C,h.render=ne),w&&w.sub(h),h.props=g,h.state||(h.state={}),h.context=b,h.__n=i,d=h.__d=!0,h.__h=[],h._sb=[]),y&&null==h.__s&&(h.__s=h.state),y&&null!=C.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=Lt({},h.__s)),Lt(h.__s,C.getDerivedStateFromProps(g,h.__s))),p=h.props,f=h.state,h.__v=e,d)y&&null==C.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),y&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(y&&null==C.getDerivedStateFromProps&&g!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,b),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,b)||e.__v===n.__v)){for(e.__v!==n.__v&&(h.props=g,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[],h.__h.length&&s.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,b),y&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,f,m)}))}if(h.context=b,h.props=g,h.__P=t,h.__e=!1,x=bt.__r,S=0,y){for(h.state=h.__s,h.__d=!1,x&&x(e),u=h.render(h.props,h.state,h.context),k=0;k<h._sb.length;k++)h.__h.push(h._sb[k]);h._sb=[]}else do{h.__d=!1,x&&x(e),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++S<25);h.state=h.__s,null!=h.getChildContext&&(i=Lt(Lt({},i),h.getChildContext())),y&&!d&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(p,f)),zt(t,Dt(P=null!=u&&u.type===Ut&&null==u.key?u.props.children:u)?P:[P],e,n,i,r,o,s,a,l,c),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),v&&(h.__E=h.__=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;bt.__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,i,r,o,s,a,l){var c,u,h,d,p,f,m,v=n.props,g=e.props,y=e.type;if("svg"===y?r="http://www.w3.org/2000/svg":"math"===y?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){t=p,o[c]=null;break}if(null==t){if(null===y)return document.createTextNode(g);t=document.createElementNS(r,y,g.is&&g),o=null,a=!1}if(null===y)v===g||a&&t.data===g||(t.data=g);else{if(o=o&&wt.call(t.childNodes),v=n.props||Rt,!a&&null!=o)for(v={},c=0;c<t.attributes.length;c++)v[(p=t.attributes[c]).name]=p.value;for(c in v)if(p=v[c],"children"==c);else if("dangerouslySetInnerHTML"==c)h=p;else if("key"!==c&&!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;Yt(t,c,null,p,r)}for(c in g)p=g[c],"children"==c?d=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?f=p:"checked"==c?m=p:"key"===c||a&&"function"!=typeof p||v[c]===p||Yt(t,c,p,v[c],r);if(u)a||h&&(u.__html===h.__html||u.__html===t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(h&&(t.innerHTML=""),zt(t,Dt(d)?d:[d],e,n,i,"foreignObject"===y?"http://www.w3.org/1999/xhtml":r,o,s,o?o[0]:n.__k&&It(n,0),a,l),null!=o)for(c=o.length;c--;)null!=o[c]&&Ft(o[c]);a||(c="value",void 0!==f&&(f!==t[c]||"progress"===y&&!f||"option"===y&&f!==v[c])&&Yt(t,c,f,v[c],r),c="checked",void 0!==m&&m!==t[c]&&Yt(t,c,m,v[c],r))}return t}(n.__e,e,n,i,r,o,s,l,c);(u=bt.diffed)&&u(e)}function Jt(t,e,n){e.__d=void 0;for(var i=0;i<n.length;i++)te(n[i],n[++i],n[++i]);bt.__c&&bt.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(n){bt.__e(n,e.__v)}}))}function te(t,e,n){try{if("function"==typeof t){var i="function"==typeof t.__u;i&&t.__u(),i&&null==e||(t.__u=t(e))}else t.current=e}catch(r){bt.__e(r,n)}}function ee(t,e,n){var i,r;if(bt.unmount&&bt.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||te(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){bt.__e(o,e)}i.base=i.__P=null}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&ee(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||Ft(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function ne(t,e,n){return this.constructor(t,n)}function ie(t,e,n){var i,r,o,s;bt.__&&bt.__(t,e),r=(i="function"==typeof n)?null:n&&n.__k||e.__k,o=[],s=[],Zt(e,t=(!i&&n||e).__k=Vt(Ut,null,[t]),r||Rt,Rt,e.namespaceURI,!i&&n?[n]:r?null:e.firstChild?wt.call(e.childNodes):null,o,!i&&n?n:r?r.__e:e.firstChild,i,s),Jt(o,t,s)}function re(t,e){ie(t,e,re)}function oe(t,e,n){var i,r,o,s,a=Lt({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==o?i=e[o]:"ref"==o?r=e[o]:a[o]=void 0===e[o]&&void 0!==s?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?wt.call(arguments,2):n),jt(t.type,a,i||t.key,r||t.ref,null)}function se(t,e){var n={__c:e="__cC"+Et++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,$t(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 ae(){return(ae=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}wt=Mt.slice,bt={__e:function(t,e,n,i){for(var r,o,s;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(t)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,i||{}),s=r.__d),s)return r.__E=r}catch(a){t=a}throw t}},_t=0,Wt.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Lt({},this.state),"function"==typeof t&&(t=t(Lt({},n),this.props)),t&&Lt(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),$t(this))},Wt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),$t(this))},Wt.prototype.render=Ut,xt=[],kt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pt=function(t,e){return t.__v.__b-e.__v.__b},Ht.__r=0,Ct=0,Tt=Xt(!1),At=Xt(!0),Et=0;var le=["context","children"];function ce(t){return this.getChildContext=function(){return t.context},oe(t.children,function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}(t,le))}function ue(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=Vt(ce,ae({},this._props,{context:t.detail.context}),function t(e,n){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var i=[],r={},o=0,s=e.attributes,a=e.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(r[s[o].name]=s[o].value,r[he(s[o].name)]=s[o].value);for(o=a.length;o--;){var l=t(a[o],null),c=a[o].slot;c?r[c]=Vt(fe,{name:c},l):i[o]=l}var u=n?Vt(fe,null,i):i;return Vt(n||e.nodeName.toLowerCase(),r,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?re:ie)(this._vdom,this._root)}function he(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function de(t,e,n){if(this._vdom){var i={};i[t]=n=null==n?void 0:n,i[he(t)]=n,this._vdom=oe(this._vdom,i),ie(this._vdom,this._root)}}function pe(){ie(this._vdom=null,this._root)}function fe(t,e){var n=this;return Vt("slot",ae({},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 me=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(i){}}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}(),ve="-ms-",ge="-moz-",ye="-webkit-",we="comm",be="rule",_e="decl",xe="@keyframes",Se=Math.abs,ke=String.fromCharCode,Pe=Object.assign;function Ce(t){return t.trim()}function Te(t,e,n){return t.replace(e,n)}function Ae(t,e){return t.indexOf(e)}function Ee(t,e){return 0|t.charCodeAt(e)}function Re(t,e,n){return t.slice(e,n)}function Me(t){return t.length}function Oe(t){return t.length}function De(t,e){return e.push(t),t}var Le=1,Fe=1,Ve=0,je=0,Be=0,Ue="";function We(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:Le,column:Fe,length:s,return:""}}function Ie(t,e){return Pe(We("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ne(){return Be=je<Ve?Ee(Ue,je++):0,Fe++,10===Be&&(Fe=1,Le++),Be}function $e(){return Ee(Ue,je)}function He(){return je}function ze(t,e){return Re(Ue,t,e)}function qe(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 Ke(t){return Le=Fe=1,Ve=Me(Ue=t),je=0,[]}function Ge(t){return Ue="",t}function Qe(t){return Ce(ze(je-1,Ze(91===t?t+2:40===t?t+1:t)))}function Ye(t){for(;(Be=$e())&&Be<33;)Ne();return qe(t)>2||qe(Be)>3?"":" "}function Xe(t,e){for(;--e&&Ne()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return ze(t,He()+(e<6&&32==$e()&&32==Ne()))}function Ze(t){for(;Ne();)switch(Be){case t:return je;case 34:case 39:34!==t&&39!==t&&Ze(Be);break;case 40:41===t&&Ze(t);break;case 92:Ne()}return je}function Je(t,e){for(;Ne()&&t+Be!==57&&(t+Be!==84||47!==$e()););return"/*"+ze(e,je-1)+"*"+ke(47===t?t:Ne())}function tn(t){for(;!qe($e());)Ne();return ze(t,je)}function en(t){return Ge(nn("",null,null,null,[""],t=Ke(t),0,[0],t))}function nn(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,h=s,d=0,p=0,f=0,m=1,v=1,g=1,y=0,w="",b=r,_=o,x=i,S=w;v;)switch(f=y,y=Ne()){case 40:if(108!=f&&58==Ee(S,h-1)){-1!=Ae(S+=Te(Qe(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Qe(y);break;case 9:case 10:case 13:case 32:S+=Ye(f);break;case 92:S+=Xe(He()-1,7);continue;case 47:switch($e()){case 42:case 47:De(on(Je(Ne(),He()),e,n),l);break;default:S+="/"}break;case 123*m:a[c++]=Me(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==g&&(S=Te(S,/\f/g,"")),p>0&&Me(S)-h&&De(p>32?sn(S+";",i,n,h-1):sn(Te(S," ","")+";",i,n,h-2),l);break;case 59:S+=";";default:if(De(x=rn(S,e,n,c,u,r,a,w,b=[],_=[],h),o),123===y)if(0===u)nn(S,e,x,x,b,o,h,a,_);else switch(99===d&&110===Ee(S,3)?100:d){case 100:case 108:case 109:case 115:nn(t,x,x,i&&De(rn(t,x,x,0,0,r,a,w,r,b=[],h),_),r,_,h,a,i?b:_);break;default:nn(S,x,x,x,[""],_,0,a,_)}}c=u=p=0,m=g=1,w=S="",h=s;break;case 58:h=1+Me(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(Be=je>0?Ee(Ue,--je):0,Fe--,10===Be&&(Fe=1,Le--),Be))continue;switch(S+=ke(y),y*m){case 38:g=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Me(S)-1)*g,g=1;break;case 64:45===$e()&&(S+=Qe(Ne())),d=$e(),u=h=Me(w=S+=tn(He())),y++;break;case 45:45===f&&2==Me(S)&&(m=0)}}return o}function rn(t,e,n,i,r,o,s,a,l,c,u){for(var h=r-1,d=0===r?o:[""],p=Oe(d),f=0,m=0,v=0;f<i;++f)for(var g=0,y=Re(t,h+1,h=Se(m=s[f])),w=t;g<p;++g)(w=Ce(m>0?d[g]+" "+y:Te(y,/&\f/g,d[g])))&&(l[v++]=w);return We(t,e,n,0===r?be:a,l,c,u)}function on(t,e,n){return We(t,e,n,we,ke(Be),Re(t,2,-2),0)}function sn(t,e,n,i){return We(t,e,n,_e,Re(t,0,i),Re(t,i+1,-1),i)}function an(t,e){for(var n="",i=Oe(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function ln(t,e,n,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case _e:return t.return=t.return||t.value;case we:return"";case xe:return t.return=t.value+"{"+an(t.children,i)+"}";case be:t.value=t.props.join(",")}return Me(n=an(t.children,i))?t.return=t.value+"{"+n+"}":""}function cn(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 i=0,r=0;i=r,r=$e(),38===i&&12===r&&(e[n]=1),!qe(r);)Ne();return ze(t,je)},hn=function(t,e){return Ge(function(t,e){var n=-1,i=44;do{switch(qe(i)){case 0:38===i&&12===$e()&&(e[n]=1),t[n]+=un(je-1,e,n);break;case 2:t[n]+=Qe(i);break;case 4:if(44===i){t[++n]=58===$e()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=ke(i)}}while(i=Ne());return t}(Ke(t),e))},dn=new WeakMap,pn=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,i=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))&&!i){dn.set(t,!0);for(var r=[],o=hn(e,r),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)t.props[l]=r[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},fn=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function mn(t,e){switch(function(t,e){return 45^Ee(t,0)?(((e<<2^Ee(t,0))<<2^Ee(t,1))<<2^Ee(t,2))<<2^Ee(t,3):0}(t,e)){case 5103:return ye+"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 ye+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ye+t+ge+t+ve+t+t;case 6828:case 4268:return ye+t+ve+t+t;case 6165:return ye+t+ve+"flex-"+t+t;case 5187:return ye+t+Te(t,/(\w+).+(:[^]+)/,ye+"box-$1$2"+ve+"flex-$1$2")+t;case 5443:return ye+t+ve+"flex-item-"+Te(t,/flex-|-self/,"")+t;case 4675:return ye+t+ve+"flex-line-pack"+Te(t,/align-content|flex-|-self/,"")+t;case 5548:return ye+t+ve+Te(t,"shrink","negative")+t;case 5292:return ye+t+ve+Te(t,"basis","preferred-size")+t;case 6060:return ye+"box-"+Te(t,"-grow","")+ye+t+ve+Te(t,"grow","positive")+t;case 4554:return ye+Te(t,/([^-])(transform)/g,"$1"+ye+"$2")+t;case 6187:return Te(Te(Te(t,/(zoom-|grab)/,ye+"$1"),/(image-set)/,ye+"$1"),t,"")+t;case 5495:case 3959:return Te(t,/(image-set\([^]*)/,ye+"$1$`$1");case 4968:return Te(Te(t,/(.+:)(flex-)?(.*)/,ye+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ye+t+t;case 4095:case 3583:case 4068:case 2532:return Te(t,/(.+)-inline(.+)/,ye+"$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(Me(t)-1-e>6)switch(Ee(t,e+1)){case 109:if(45!==Ee(t,e+4))break;case 102:return Te(t,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+ge+(108==Ee(t,e+3)?"$3":"$2-$3"))+t;case 115:return~Ae(t,"stretch")?mn(Te(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==Ee(t,e+1))break;case 6444:switch(Ee(t,Me(t)-3-(~Ae(t,"!important")&&10))){case 107:return Te(t,":",":"+ye)+t;case 101:return Te(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ye+(45===Ee(t,14)?"inline-":"")+"box$3$1"+ye+"$2$3$1"+ve+"$2box$3")+t}break;case 5936:switch(Ee(t,e+11)){case 114:return ye+t+ve+Te(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ye+t+ve+Te(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ye+t+ve+Te(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ye+t+ve+t+t}return t}var vn,gn,yn,wn,bn=[function(t,e,n,i){if(t.length>-1&&!t.return)switch(t.type){case _e:t.return=mn(t.value,t.length);break;case xe:return an([Ie(t,{value:Te(t.value,"@","@"+ye)})],i);case be: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 an([Ie(t,{props:[Te(e,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return an([Ie(t,{props:[Te(e,/:(plac\w+)/,":"+ye+"input-$1")]}),Ie(t,{props:[Te(e,/:(plac\w+)/,":-moz-$1")]}),Ie(t,{props:[Te(e,/:(plac\w+)/,ve+"input-$1")]})],i)}return""}))}}],_n=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 i,r,o=t.stylisPlugins||bn,s={},a=[];i=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,c,u,h,d=[ln,(h=function(t){l.insert(t)},function(t){t.root||(t=t.return)&&h(t)})],p=(c=[pn,fn].concat(o,d),u=Oe(c),function(t,e,n,i){for(var r="",o=0;o<u;o++)r+=c[o](t,e,n,i)||"";return r});r=function(t,e,n,i){l=n,an(en(t?t+"{"+e.styles+"}":e.styles),p),i&&(f.inserted[e.name]=!0)};var f={key:e,sheet:new me({key:e,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:r};return f.sheet.hydrate(a),f},xn=0,Sn=[],kn=bt,Pn=kn.__b,Cn=kn.__r,Tn=kn.diffed,An=kn.__c,En=kn.unmount,Rn=kn.__;function Mn(t,e){kn.__h&&kn.__h(gn,t,xn||e),xn=0;var n=gn.__H||(gn.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function On(t){return xn=1,Dn(Qn,t)}function Dn(t,e,n){var i=Mn(vn++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):Qn(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=gn,!gn.u)){var r=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return!!t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var s=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&i.__c.props===t)&&(!o||o.call(this,t,e,n))};gn.u=!0;var o=gn.shouldComponentUpdate,s=gn.componentWillUpdate;gn.componentWillUpdate=function(t,e,n){if(this.__e){var i=o;o=void 0,r(t,e,n),o=i}s&&s.call(this,t,e,n)},gn.shouldComponentUpdate=r}return i.__N||i.__}function Ln(t,e){var n=Mn(vn++,3);!kn.__s&&Gn(n.__H,e)&&(n.__=t,n.i=e,gn.__H.__h.push(n))}function Fn(t,e){var n=Mn(vn++,4);!kn.__s&&Gn(n.__H,e)&&(n.__=t,n.i=e,gn.__h.push(n))}function Vn(t){return xn=5,Bn((function(){return{current:t}}),[])}function jn(t,e,n){xn=6,Fn((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 Bn(t,e){var n=Mn(vn++,7);return Gn(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Un(t,e){return xn=8,Bn((function(){return t}),e)}function Wn(t){var e=gn.context[t.__c],n=Mn(vn++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(gn)),e.props.value):t.__}function In(t,e){kn.useDebugValue&&kn.useDebugValue(e?e(t):t)}function Nn(){var t=Mn(vn++,11);if(!t.__){for(var e=gn.__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 $n(){for(var t;t=Sn.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(qn),t.__H.__h.forEach(Kn),t.__H.__h=[]}catch(e){t.__H.__h=[],kn.__e(e,t.__v)}}kn.__b=function(t){gn=null,Pn&&Pn(t)},kn.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Rn&&Rn(t,e)},kn.__r=function(t){Cn&&Cn(t),vn=0;var e=(gn=t.__c).__H;e&&(yn===gn?(e.__h=[],gn.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach(qn),e.__h.forEach(Kn),e.__h=[],vn=0)),yn=gn},kn.diffed=function(t){Tn&&Tn(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Sn.push(e)&&wn===kn.requestAnimationFrame||((wn=kn.requestAnimationFrame)||zn)($n)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),yn=gn=null},kn.__c=function(t,e){e.some((function(t){try{t.__h.forEach(qn),t.__h=t.__h.filter((function(t){return!t.__||Kn(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],kn.__e(n,t.__v)}})),An&&An(t,e)},kn.unmount=function(t){En&&En(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{qn(t)}catch(n){e=n}})),n.__H=void 0,e&&kn.__e(e,n.__v))};var Hn="function"==typeof requestAnimationFrame;function zn(t){var e,n=function(){clearTimeout(i),Hn&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Hn&&(e=requestAnimationFrame(n))}function qn(t){var e=gn,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),gn=e}function Kn(t){var e=gn;t.__c=t.__(),gn=e}function Gn(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Qn(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 Xn(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function Zn(t,e){this.props=t,this.context=e}function Jn(t,e){function n(t){var n=this.props.ref,i=n==t.ref;return!i&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!i:Xn(this.props,t)}function i(e){return this.shouldComponentUpdate=n,Vt(t,e)}return i.displayName="Memo("+(t.displayName||t.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(Zn.prototype=new Wt).isPureReactComponent=!0,Zn.prototype.shouldComponentUpdate=function(t,e){return Xn(this.props,t)||Xn(this.state,e)};var ti=bt.__b;bt.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ti&&ti(t)};var ei="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ni(t){function e(e){var n=Yn({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=ei,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ii=function(t,e){return null==t?null:Kt(Kt(t).map(e))},ri={map:ii,forEach:ii,count:function(t){return t?Kt(t).length:0},only:function(t){var e=Kt(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:Kt},oi=bt.__e;bt.__e=function(t,e,n,i){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);oi(t,e,n,i)};var si=bt.unmount;function ai(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 ai(t,e,n)}))),t}function li(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return li(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 ci(){this.__u=0,this.t=null,this.__b=null}function ui(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function hi(t){var e,n,i;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){i=t})),i)throw i;if(!n)throw e;return Vt(n,r)}return r.displayName="Lazy",r.__f=!0,r}function di(){this.u=null,this.o=null}bt.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),si&&si(t)},(ci.prototype=new Wt).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=ui(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=li(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}};i.__u++||32&e.__u||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(s,s)},ci.prototype.componentWillUnmount=function(){this.t=[]},ci.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=ai(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&Vt(Ut,null,t.fallback);return r&&(r.__u&=-33),[Vt(Ut,null,e.__a?null:t.children),r]};var pi=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 fi(t){return this.getChildContext=function(){return t.context},t.children}function mi(t){var e=this,n=t.i;e.componentWillUnmount=function(){ie(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)}}),ie(Vt(fi,{context:e.context},t.__v),e.l)}function vi(t,e){var n=Vt(mi,{__v:t,i:e});return n.containerInfo=e,n}(di.prototype=new Wt).__a=function(t){var e=this,n=ui(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),pi(e,t,i)):r()};n?n(o):o()}},di.prototype.render=function(t){this.u=null,this.o=new Map;var e=Kt(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},di.prototype.componentDidUpdate=di.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){pi(t,n,e)}))};var gi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yi=/^(?: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]/,wi=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bi=/[A-Z0-9]/g,_i="undefined"!=typeof document,xi=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function Si(t,e,n){return null==e.__k&&(e.textContent=""),ie(t,e),"function"==typeof n&&n(),t?t.__c:null}function ki(t,e,n){return re(t,e),"function"==typeof n&&n(),t?t.__c:null}Wt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(Wt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Pi=bt.event;function Ci(){}function Ti(){return this.cancelBubble}function Ai(){return this.defaultPrevented}bt.event=function(t){return Pi&&(t=Pi(t)),t.persist=Ci,t.isPropagationStopped=Ti,t.isDefaultPrevented=Ai,t.nativeEvent=t};var Ei,Ri={enumerable:!1,configurable:!0,get:function(){return this.class}},Mi=bt.vnode;bt.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={},r=-1===n.indexOf("-");for(var o in e){var s=e[o];if(!("value"===o&&"defaultValue"in e&&null==s||_i&&"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||xi(e.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":wi.test(o)&&(o=a):a=o="oninput":r&&yi.test(o)?o=o.replace(bi,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&i[o=a]&&(o="oninputCapture"),i[o]=s}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=Kt(e.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=Kt(e.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Ri)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=gi,Mi&&Mi(t)};var Oi=bt.__r;bt.__r=function(t){Oi&&Oi(t),Ei=t.__c};var Di=bt.diffed;bt.diffed=function(t){Di&&Di(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),Ei=null};var Li={ReactCurrentDispatcher:{current:{readContext:function(t){return Ei.__n[t.__c].props.value},useCallback:Un,useContext:Wn,useDebugValue:In,useDeferredValue:qi,useEffect:Ln,useId:Nn,useImperativeHandle:jn,useInsertionEffect:Gi,useLayoutEffect:Fn,useMemo:Bn,useReducer:Dn,useRef:Vn,useState:On,useSyncExternalStore:Yi,useTransition:Ki}}};function Fi(t){return Vt.bind(null,t)}function Vi(t){return!!t&&t.$$typeof===gi}function ji(t){return Vi(t)&&t.type===Ut}function Bi(t){return!!t&&!!t.displayName&&("string"==typeof t.displayName||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Ui(t){return Vi(t)?oe.apply(null,arguments):t}function Wi(t){return!!t.__k&&(ie(null,t),!0)}function Ii(t){return t&&(t.base||1===t.nodeType&&t)||null}var Ni=function(t,e){return t(e)},$i=function(t,e){return t(e)},Hi=Ut;function zi(t){t()}function qi(t){return t}function Ki(){return[!1,zi]}var Gi=Fn,Qi=Vi;function Yi(t,e){var n=e(),i=On({h:{__:n,v:e}}),r=i[0].h,o=i[1];return Fn((function(){r.__=n,r.v=e,Xi(r)&&o({h:r})}),[t,n,e]),Ln((function(){return Xi(r)&&o({h:r}),t((function(){Xi(r)&&o({h:r})}))}),[t]),n}function Xi(t){var e,n,i=t.v,r=t.__;try{var o=i();return!((e=r)===(n=o)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(s){return!0}}var Zi={useState:On,useId:Nn,useReducer:Dn,useEffect:Ln,useLayoutEffect:Fn,useInsertionEffect:Gi,useTransition:Ki,useDeferredValue:qi,useSyncExternalStore:Yi,startTransition:zi,useRef:Vn,useImperativeHandle:jn,useMemo:Bn,useCallback:Un,useContext:Wn,useDebugValue:In,version:"17.0.2",Children:ri,render:Si,hydrate:ki,unmountComponentAtNode:Wi,createPortal:vi,createElement:Vt,createContext:se,createFactory:Fi,cloneElement:Ui,createRef:Bt,Fragment:Ut,isValidElement:Vi,isElement:Qi,isFragment:ji,isMemo:Bi,findDOMNode:Ii,Component:Wt,PureComponent:Zn,memo:Jn,forwardRef:ni,flushSync:$i,unstable_batchedUpdates:Ni,StrictMode:Hi,Suspense:ci,SuspenseList:di,lazy:hi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Li};const Ji=Object.freeze(Object.defineProperty({__proto__:null,Children:ri,Component:Wt,Fragment:Ut,PureComponent:Zn,StrictMode:Hi,Suspense:ci,SuspenseList:di,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Li,cloneElement:Ui,createContext:se,createElement:Vt,createFactory:Fi,createPortal:vi,createRef:Bt,default:Zi,findDOMNode:Ii,flushSync:$i,forwardRef:ni,hydrate:ki,isElement:Qi,isFragment:ji,isMemo:Bi,isValidElement:Vi,lazy:hi,memo:Jn,render:Si,startTransition:zi,unmountComponentAtNode:Wi,unstable_batchedUpdates:Ni,useCallback:Un,useContext:Wn,useDebugValue:In,useDeferredValue:qi,useEffect:Ln,useErrorBoundary:function(t){var e=Mn(vn++,10),n=On();return e.__=t,gn.componentDidCatch||(gn.componentDidCatch=function(t,i){e.__&&e.__(t,i),n[1](t)}),[n[0],function(){n[1](void 0)}]},useId:Nn,useImperativeHandle:jn,useInsertionEffect:Gi,useLayoutEffect:Fn,useMemo:Bn,useReducer:Dn,useRef:Vn,useState:On,useSyncExternalStore:Yi,useTransition:Ki,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));function tr(){return tr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},tr.apply(null,arguments)}var er={exports:{}},nr={},ir="function"==typeof Symbol&&Symbol.for,rr=ir?Symbol.for("react.element"):60103,or=ir?Symbol.for("react.portal"):60106,sr=ir?Symbol.for("react.fragment"):60107,ar=ir?Symbol.for("react.strict_mode"):60108,lr=ir?Symbol.for("react.profiler"):60114,cr=ir?Symbol.for("react.provider"):60109,ur=ir?Symbol.for("react.context"):60110,hr=ir?Symbol.for("react.async_mode"):60111,dr=ir?Symbol.for("react.concurrent_mode"):60111,pr=ir?Symbol.for("react.forward_ref"):60112,fr=ir?Symbol.for("react.suspense"):60113,mr=ir?Symbol.for("react.suspense_list"):60120,vr=ir?Symbol.for("react.memo"):60115,gr=ir?Symbol.for("react.lazy"):60116,yr=ir?Symbol.for("react.block"):60121,wr=ir?Symbol.for("react.fundamental"):60117,br=ir?Symbol.for("react.responder"):60118,_r=ir?Symbol.for("react.scope"):60119;function xr(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case rr:switch(t=t.type){case hr:case dr:case sr:case lr:case ar:case fr:return t;default:switch(t=t&&t.$$typeof){case ur:case pr:case gr:case vr:case cr:return t;default:return e}}case or:return e}}}function Sr(t){return xr(t)===dr}nr.AsyncMode=hr,nr.ConcurrentMode=dr,nr.ContextConsumer=ur,nr.ContextProvider=cr,nr.Element=rr,nr.ForwardRef=pr,nr.Fragment=sr,nr.Lazy=gr,nr.Memo=vr,nr.Portal=or,nr.Profiler=lr,nr.StrictMode=ar,nr.Suspense=fr,nr.isAsyncMode=function(t){return Sr(t)||xr(t)===hr},nr.isConcurrentMode=Sr,nr.isContextConsumer=function(t){return xr(t)===ur},nr.isContextProvider=function(t){return xr(t)===cr},nr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===rr},nr.isForwardRef=function(t){return xr(t)===pr},nr.isFragment=function(t){return xr(t)===sr},nr.isLazy=function(t){return xr(t)===gr},nr.isMemo=function(t){return xr(t)===vr},nr.isPortal=function(t){return xr(t)===or},nr.isProfiler=function(t){return xr(t)===lr},nr.isStrictMode=function(t){return xr(t)===ar},nr.isSuspense=function(t){return xr(t)===fr},nr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===sr||t===dr||t===lr||t===ar||t===fr||t===mr||"object"==typeof t&&null!==t&&(t.$$typeof===gr||t.$$typeof===vr||t.$$typeof===cr||t.$$typeof===ur||t.$$typeof===pr||t.$$typeof===wr||t.$$typeof===br||t.$$typeof===_r||t.$$typeof===yr)},nr.typeOf=xr,er.exports=nr;var kr=er.exports,Pr={};Pr[kr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pr[kr.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Cr(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):i+=n+" "})),i}var Tr=function(t,e,n){var i=t.key+"-"+e.name;!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles)},Ar=function(t,e,n){Tr(t,e,n);var i=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var r=e;do{t.insert(e===r?"."+i:"",r,t.sheet,!0),r=r.next}while(void 0!==r)}};var Er={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},Rr=!1,Mr=/[A-Z]|^ms/g,Or=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dr=function(t){return 45===t.charCodeAt(1)},Lr=function(t){return null!=t&&"boolean"!=typeof t},Fr=cn((function(t){return Dr(t)?t:t.replace(Mr,"-$&").toLowerCase()})),Vr=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Or,(function(t,e,n){return Ur={name:e,styles:n,next:Ur},e}))}return 1===Er[t]||Dr(t)||"number"!=typeof e||0===e?e:e+"px"},jr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Br(t,e,n){if(null==n)return"";var i=n;if(void 0!==i.__emotion_styles)return i;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return Ur={name:r.name,styles:r.styles,next:Ur},r.name;var o=n;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)Ur={name:s.name,styles:s.styles,next:Ur},s=s.next;return o.styles+";"}return function(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Br(t,e,n[r])+";";else for(var o in n){var s=n[o];if("object"!=typeof s){var a=s;null!=e&&void 0!==e[a]?i+=o+"{"+e[a]+"}":Lr(a)&&(i+=Fr(o)+":"+Vr(o,a)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&Rr)throw new Error(jr);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=e&&void 0!==e[s[0]]){var l=Br(t,e,s);switch(o){case"animation":case"animationName":i+=Fr(o)+":"+l+";";break;default:i+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Lr(s[c])&&(i+=Fr(o)+":"+Vr(o,s[c])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var a=Ur,l=n(t);return Ur=a,Br(t,e,l)}}var c=n;if(null==e)return c;var u=e[c];return void 0!==u?u:c}var Ur,Wr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Ir(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,r="";Ur=void 0;var o=t[0];null==o||void 0===o.raw?(i=!1,r+=Br(n,e,o)):r+=o[0];for(var s=1;s<t.length;s++){if(r+=Br(n,e,t[s]),i)r+=o[s]}Wr.lastIndex=0;for(var a,l="";null!==(a=Wr.exec(r));)l+="-"+a[1];var c=function(t){for(var e,n=0,i=0,r=t.length;r>=4;++i,r-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:Ur}}var Nr=!!Ji.useInsertionEffect&&Ji.useInsertionEffect,$r=Nr||function(t){return t()},Hr=Nr||Fn,zr=se("undefined"!=typeof HTMLElement?_n({key:"css"}):null),qr=zr.Provider,Kr=function(t){return ni((function(e,n){var i=Wn(zr);return t(e,i,n)}))},Gr=se({}),Qr={}.hasOwnProperty,Yr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xr=function(t,e){var n={};for(var i in e)Qr.call(e,i)&&(n[i]=e[i]);return n[Yr]=t,n},Zr=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;return Tr(e,n,i),$r((function(){return Ar(e,n,i)})),null},Jr=Kr((function(t,e,n){var i=t.css;"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var r=t[Yr],o=[i],s="";"string"==typeof t.className?s=Cr(e.registered,o,t.className):null!=t.className&&(s=t.className+" ");var a=Ir(o,void 0,Wn(Gr));s+=e.key+"-"+a.name;var l={};for(var c in t)Qr.call(t,c)&&"css"!==c&&c!==Yr&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),Vt(Ut,null,Vt(Zr,{cache:e,serialized:a,isStringTag:"string"==typeof r}),Vt(r,l))})),to=Kr((function(t,e){var n=Ir([t.styles],void 0,Wn(Gr)),i=Vn();return Hr((function(){var t=e.key+"-global",r=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&&(r.before=e.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",t),r.hydrate([s])),i.current=[r,o],function(){r.flush()}}),[e]),Hr((function(){var t=i.current,r=t[0];if(t[1])t[1]=!1;else{if(void 0!==n.next&&Ar(e,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}e.insert("",n,r,!1)}}),[e,n.name]),null}));function eo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ir(e)}var no=0;function io(t,e,n,i,r,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 c={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--no,__i:-1,__u:0,__source:r,__self:o};if("function"==typeof t&&(s=t.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return bt.vnode&&bt.vnode(c),c}var ro=Ut;function oo(t,e,n){return Qr.call(e,"css")?io(Jr,Xr(t,e),n):io(t,e,n)}function so(t,e,n){return Qr.call(e,"css")?io(Jr,Xr(t,e),n):io(t,e,n)}const ao=eo({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"}}),lo=()=>so(Ut,{children:[oo(to,{styles:eo`
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
+ `}),oo(to,{styles:ao})]});let co;class uo extends Error{constructor(t,e){super(t),dt(this,"response"),this.response=e}}const ho=t=>async()=>(async(t,e,n,i,r)=>{const o=await fetch(t,{method:n,body:void 0,headers:{"content-type":"application/json","x-app-version":"0.3.1360",authorization:`Bearer ${e}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!o.ok)throw new uo(`[API] Fetch error: ${o.statusText}. Url: ${n} ${t}`,o);return r?{}:await o.json()})(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`),t.accessToken,"GET"),po=()=>{const t=Wn(co);return{getAllPromotions:ho(t.backend)}};var fo=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(){}},mo="undefined"==typeof window||"Deno"in globalThis;function vo(){}function go(t){return"number"==typeof t&&t>=0&&t!==1/0}function yo(t,e){return Math.max(t+(e||0)-Date.now(),0)}function wo(t,e){return"function"==typeof t?t(e):t}function bo(t,e){return"function"==typeof t?t(e):t}function _o(t,e){const{type:n="all",exact:i,fetchStatus:r,predicate:o,queryKey:s,stale:a}=t;if(s)if(i){if(e.queryHash!==So(s,e.options))return!1}else if(!Po(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)&&((!r||r===e.state.fetchStatus)&&!(o&&!o(e)))}function xo(t,e){const{exact:n,status:i,predicate:r,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(ko(e.options.mutationKey)!==ko(o))return!1}else if(!Po(e.options.mutationKey,o))return!1}return(!i||e.state.status===i)&&!(r&&!r(e))}function So(t,e){return((null==e?void 0:e.queryKeyHashFn)||ko)(t)}function ko(t){return JSON.stringify(t,((t,e)=>Eo(e)?Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],t)),{}):e))}function Po(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some((n=>!Po(t[n],e[n]))))}function Co(t,e){if(t===e)return t;const n=Ao(t)&&Ao(e);if(n||Eo(t)&&Eo(e)){const i=n?t:Object.keys(t),r=i.length,o=n?e:Object.keys(e),s=o.length,a=n?[]:{};let l=0;for(let c=0;c<s;c++){const r=n?c:o[c];(!n&&i.includes(r)||n)&&void 0===t[r]&&void 0===e[r]?(a[r]=void 0,l++):(a[r]=Co(t[r],e[r]),a[r]===t[r]&&void 0!==t[r]&&l++)}return r===s&&l===r?t:a}return e}function To(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 Ao(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Eo(t){if(!Ro(t))return!1;const e=t.constructor;if(void 0===e)return!0;const n=e.prototype;return!!Ro(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype)}function Ro(t){return"[object Object]"===Object.prototype.toString.call(t)}function Mo(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?Co(t,e):e}function Oo(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function Do(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var Lo=Symbol();function Fo(t,e){return!t.queryFn&&(null==e?void 0:e.initialPromise)?()=>e.initialPromise:t.queryFn&&t.queryFn!==Lo?t.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}var Vo=new(i=class extends fo{constructor(){super(),mt(this,t),mt(this,e),mt(this,n),vt(this,n,(t=>{if(!mo&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}))}onSubscribe(){ft(this,e)||this.setEventListener(ft(this,n))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=ft(this,e))||t.call(this),vt(this,e,void 0))}setEventListener(t){var i;vt(this,n,t),null==(i=ft(this,e))||i.call(this),vt(this,e,t((t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})))}setFocused(e){ft(this,t)!==e&&(vt(this,t,e),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach((e=>{e(t)}))}isFocused(){var e;return"boolean"==typeof ft(this,t)?ft(this,t):"hidden"!==(null==(e=globalThis.document)?void 0:e.visibilityState)}},t=new WeakMap,e=new WeakMap,n=new WeakMap,i),jo=new(a=class extends fo{constructor(){super(),mt(this,r,!0),mt(this,o),mt(this,s),vt(this,s,(t=>{if(!mo&&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(){ft(this,o)||this.setEventListener(ft(this,s))}onUnsubscribe(){var t;this.hasListeners()||(null==(t=ft(this,o))||t.call(this),vt(this,o,void 0))}setEventListener(t){var e;vt(this,s,t),null==(e=ft(this,o))||e.call(this),vt(this,o,t(this.setOnline.bind(this)))}setOnline(t){ft(this,r)!==t&&(vt(this,r,t),this.listeners.forEach((e=>{e(t)})))}isOnline(){return ft(this,r)}},r=new WeakMap,o=new WeakMap,s=new WeakMap,a);function Bo(t){return Math.min(1e3*2**t,3e4)}function Uo(t){return"online"!==(t??"online")||jo.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 Io(t){return t instanceof Wo}function No(t){let e,n,i,r=!1,o=0,s=!1;const a=new Promise(((t,e)=>{n=t,i=e})),l=()=>Vo.isFocused()&&("always"===t.networkMode||jo.isOnline())&&t.canRun(),c=()=>Uo(t.networkMode)&&t.canRun(),u=i=>{var r;s||(s=!0,null==(r=t.onSuccess)||r.call(t,i),null==e||e(),n(i))},h=n=>{var r;s||(s=!0,null==(r=t.onError)||r.call(t,n),null==e||e(),i(n))},d=()=>new Promise((n=>{var i;e=t=>{(s||l())&&n(t)},null==(i=t.onPause)||i.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(i){e=Promise.reject(i)}Promise.resolve(e).then(u).catch((e=>{var n;if(s)return;const i=t.retry??(mo?0:3),a=t.retryDelay??Bo,c="function"==typeof a?a(o,e):a,u=!0===i||"number"==typeof i&&o<i||"function"==typeof i&&i(o,e);var f;!r&&u?(o++,null==(n=t.onFail)||n.call(t,o,e),(f=c,new Promise((t=>{setTimeout(t,f)}))).then((()=>l()?void 0:d())).then((()=>{r?h(e):p()}))):h(e)}))};return{promise:a,cancel:e=>{var n;s||(h(new Wo(e)),null==(n=t.abort)||n.call(t))},continue:()=>(null==e||e(),a),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:c,start:()=>(c()?p():d().then(p),a)}}var $o=function(){let t=[],e=0,n=t=>{t()},i=t=>{t()},r=t=>setTimeout(t,0);const o=i=>{e?t.push(i):r((()=>{n(i)}))};return{batch:o=>{let s;e++;try{s=o()}finally{e--,e||(()=>{const e=t;t=[],e.length&&r((()=>{i((()=>{e.forEach((t=>{n(t)}))}))}))})()}return s},batchCalls:t=>(...e)=>{o((()=>{t(...e)}))},schedule:o,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{r=t}}}(),Ho=(c=class{constructor(){mt(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),go(this.gcTime)&&vt(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(mo?1/0:3e5))}clearGcTimeout(){ft(this,l)&&(clearTimeout(ft(this,l)),vt(this,l,void 0))}},l=new WeakMap,c),zo=(y=class extends Ho{constructor(t){super(),mt(this,v),mt(this,u),mt(this,h),mt(this,d),mt(this,p),mt(this,f),mt(this,m),vt(this,m,!1),vt(this,f,t.defaultOptions),this.setOptions(t.options),this.observers=[],vt(this,d,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,vt(this,u,function(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,i=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??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??ft(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return null==(t=ft(this,p))?void 0:t.promise}setOptions(t){this.options={...ft(this,f),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||ft(this,d).remove(this)}setData(t,e){const n=Mo(this.state.data,t,this.options);return gt(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){gt(this,v,g).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,n;const i=null==(e=ft(this,p))?void 0:e.promise;return null==(n=ft(this,p))||n.cancel(t),i?i.then(vo).catch(vo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ft(this,u))}isActive(){return this.observers.some((t=>!1!==bo(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||!yo(this.state.dataUpdatedAt,t)}onFocus(){var t;const e=this.observers.find((t=>t.shouldFetchOnWindowFocus()));null==e||e.refetch({cancelRefetch:!1}),null==(t=ft(this,p))||t.continue()}onOnline(){var t;const e=this.observers.find((t=>t.shouldFetchOnReconnect()));null==e||e.refetch({cancelRefetch:!1}),null==(t=ft(this,p))||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ft(this,d).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter((e=>e!==t)),this.observers.length||(ft(this,p)&&(ft(this,m)?ft(this,p).cancel({revert:!0}):ft(this,p).cancelRetry()),this.scheduleGc()),ft(this,d).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gt(this,v,g).call(this,{type:"invalidate"})}fetch(t,e){var n,i,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(ft(this,p))return ft(this,p).continueRetry(),ft(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:()=>(vt(this,m,!0),o.signal)})},a={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const t=Fo(this.options,e),n={queryKey:this.queryKey,meta:this.meta};return s(n),vt(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),vt(this,h,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(i=a.fetchOptions)?void 0:i.meta)||gt(this,v,g).call(this,{type:"fetch",meta:null==(r=a.fetchOptions)?void 0:r.meta});const l=t=>{var e,n,i,r;Io(t)&&t.silent||gt(this,v,g).call(this,{type:"error",error:t}),Io(t)||(null==(n=(e=ft(this,d).config).onError)||n.call(e,t,this),null==(r=(i=ft(this,d).config).onSettled)||r.call(i,this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return vt(this,p,No({initialPromise:null==e?void 0:e.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:t=>{var e,n,i,r;if(void 0!==t){try{this.setData(t)}catch(o){return void l(o)}null==(n=(e=ft(this,d).config).onSuccess)||n.call(e,t,this),null==(r=(i=ft(this,d).config).onSettled)||r.call(i,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)=>{gt(this,v,g).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{gt(this,v,g).call(this,{type:"pause"})},onContinue:()=>{gt(this,v,g).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ft(this,p).start()}},u=new WeakMap,h=new WeakMap,d=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,...qo(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 Io(n)&&n.revert&&ft(this,h)?{...ft(this,h),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),$o.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate()})),ft(this,d).notify({query:this,type:"updated",action:t})}))},y);function qo(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uo(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}var Ko=(b=class extends fo{constructor(t={}){super(),mt(this,w),this.config=t,vt(this,w,new Map)}build(t,e,n){const i=e.queryKey,r=e.queryHash??So(i,e);let o=this.get(r);return o||(o=new zo({cache:this,queryKey:i,queryHash:r,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){ft(this,w).has(t.queryHash)||(ft(this,w).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=ft(this,w).get(t.queryHash);e&&(t.destroy(),e===t&&ft(this,w).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$o.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}get(t){return ft(this,w).get(t)}getAll(){return[...ft(this,w).values()]}find(t){const e={exact:!0,...t};return this.getAll().find((t=>_o(e,t)))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter((e=>_o(t,e))):e}notify(t){$o.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}onFocus(){$o.batch((()=>{this.getAll().forEach((t=>{t.onFocus()}))}))}onOnline(){$o.batch((()=>{this.getAll().forEach((t=>{t.onOnline()}))}))}},w=new WeakMap,b),Go=(C=class extends Ho{constructor(t){super(),mt(this,k),mt(this,_),mt(this,x),mt(this,S),this.mutationId=t.mutationId,vt(this,x,t.mutationCache),vt(this,_,[]),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){ft(this,_).includes(t)||(ft(this,_).push(t),this.clearGcTimeout(),ft(this,x).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){vt(this,_,ft(this,_).filter((e=>e!==t))),this.scheduleGc(),ft(this,x).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ft(this,_).length||("pending"===this.state.status?this.scheduleGc():ft(this,x).remove(this))}continue(){var t;return(null==(t=ft(this,S))?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var e,n,i,r,o,s,a,l,c,u,h,d,p,f,m,v,g,y,w,b;vt(this,S,No({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(t,e)=>{gt(this,k,P).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{gt(this,k,P).call(this,{type:"pause"})},onContinue:()=>{gt(this,k,P).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ft(this,x).canRun(this)}));const _="pending"===this.state.status,C=!ft(this,S).canStart();try{if(!_){gt(this,k,P).call(this,{type:"pending",variables:t,isPaused:C}),await(null==(n=(e=ft(this,x).config).onMutate)?void 0:n.call(e,t,this));const o=await(null==(r=(i=this.options).onMutate)?void 0:r.call(i,t));o!==this.state.context&&gt(this,k,P).call(this,{type:"pending",context:o,variables:t,isPaused:C})}const p=await ft(this,S).start();return await(null==(s=(o=ft(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==(u=(c=ft(this,x).config).onSettled)?void 0:u.call(c,p,null,this.state.variables,this.state.context,this)),await(null==(d=(h=this.options).onSettled)?void 0:d.call(h,p,null,t,this.state.context)),gt(this,k,P).call(this,{type:"success",data:p}),p}catch(T){try{throw await(null==(f=(p=ft(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=ft(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(b=(w=this.options).onSettled)?void 0:b.call(w,void 0,T,t,this.state.context)),T}finally{gt(this,k,P).call(this,{type:"error",error:T})}}finally{ft(this,x).runNext(this)}}},_=new WeakMap,x=new WeakMap,S=new WeakMap,k=new WeakSet,P=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),$o.batch((()=>{ft(this,_).forEach((e=>{e.onMutationUpdate(t)})),ft(this,x).notify({mutation:this,type:"updated",action:t})}))},C);var Qo=(E=class extends fo{constructor(t={}){super(),mt(this,T),mt(this,A),this.config=t,vt(this,T,new Map),vt(this,A,Date.now())}build(t,e,n){const i=new Go({mutationCache:this,mutationId:++yt(this,A)._,options:t.defaultMutationOptions(e),state:n});return this.add(i),i}add(t){const e=Yo(t),n=ft(this,T).get(e)??[];n.push(t),ft(this,T).set(e,n),this.notify({type:"added",mutation:t})}remove(t){var e;const n=Yo(t);if(ft(this,T).has(n)){const i=null==(e=ft(this,T).get(n))?void 0:e.filter((e=>e!==t));i&&(0===i.length?ft(this,T).delete(n):ft(this,T).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var e;const n=null==(e=ft(this,T).get(Yo(t)))?void 0:e.find((t=>"pending"===t.state.status));return!n||n===t}runNext(t){var e;const n=null==(e=ft(this,T).get(Yo(t)))?void 0:e.find((e=>e!==t&&e.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){$o.batch((()=>{this.getAll().forEach((t=>{this.remove(t)}))}))}getAll(){return[...ft(this,T).values()].flat()}find(t){const e={exact:!0,...t};return this.getAll().find((t=>xo(e,t)))}findAll(t={}){return this.getAll().filter((e=>xo(t,e)))}notify(t){$o.batch((()=>{this.listeners.forEach((e=>{e(t)}))}))}resumePausedMutations(){const t=this.getAll().filter((t=>t.state.isPaused));return $o.batch((()=>Promise.all(t.map((t=>t.continue().catch(vo))))))}},T=new WeakMap,A=new WeakMap,E);function Yo(t){var e;return(null==(e=t.options.scope)?void 0:e.id)??String(t.mutationId)}function Xo(t){return{onFetch:(e,n)=>{var i,r,o,s,a;const l=e.options,c=null==(o=null==(r=null==(i=e.fetchOptions)?void 0:i.meta)?void 0:r.fetchMore)?void 0:o.direction,u=(null==(s=e.state.data)?void 0:s.pages)||[],h=(null==(a=e.state.data)?void 0:a.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const f=async()=>{let n=!1;const i=Fo(e.options,e.fetchOptions),r=async(t,r,o)=>{if(n)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);const s={queryKey:e.queryKey,pageParam:r,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 i(s),{maxPages:c}=e.options,u=o?Do:Oo;return{pages:u(t.pages,l,c),pageParams:u(t.pageParams,r,c)}};if(c&&u.length){const t="backward"===c,e={pages:u,pageParams:h},n=(t?Jo:Zo)(l,e);d=await r(e,n,t)}else{const e=t??u.length;do{const t=0===p?h[0]??l.initialPageParam:Zo(l,d);if(p>0&&null==t)break;d=await r(d,t),p++}while(p<e)}return d};e.options.persister?e.fetchFn=()=>{var t,i;return null==(i=(t=e.options).persister)?void 0:i.call(t,f,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=f}}}function Zo(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function Jo(t,{pages:e,pageParams:n}){var i;return e.length>0?null==(i=t.getPreviousPageParam)?void 0:i.call(t,e[0],e,n[0],n):void 0}var ts=(B=class{constructor(t={}){mt(this,R),mt(this,M),mt(this,O),mt(this,D),mt(this,L),mt(this,F),mt(this,V),mt(this,j),vt(this,R,t.queryCache||new Ko),vt(this,M,t.mutationCache||new Qo),vt(this,O,t.defaultOptions||{}),vt(this,D,new Map),vt(this,L,new Map),vt(this,F,0)}mount(){yt(this,F)._++,1===ft(this,F)&&(vt(this,V,Vo.subscribe((async t=>{t&&(await this.resumePausedMutations(),ft(this,R).onFocus())}))),vt(this,j,jo.subscribe((async t=>{t&&(await this.resumePausedMutations(),ft(this,R).onOnline())}))))}unmount(){var t,e;yt(this,F)._--,0===ft(this,F)&&(null==(t=ft(this,V))||t.call(this),vt(this,V,void 0),null==(e=ft(this,j))||e.call(this),vt(this,j,void 0))}isFetching(t){return ft(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return ft(this,M).findAll({...t,status:"pending"}).length}getQueryData(t){var e;const n=this.defaultQueryOptions({queryKey:t});return null==(e=ft(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),i=ft(this,R).build(this,n);return t.revalidateIfStale&&i.isStaleByTime(wo(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return ft(this,R).findAll(t).map((({queryKey:t,state:e})=>[t,e.data]))}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),r=ft(this,R).get(i.queryHash),o=function(t,e){return"function"==typeof t?t(e):t}(e,null==r?void 0:r.state.data);if(void 0!==o)return ft(this,R).build(this,i).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return $o.batch((()=>ft(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=ft(this,R).get(n.queryHash))?void 0:e.state}removeQueries(t){const e=ft(this,R);$o.batch((()=>{e.findAll(t).forEach((t=>{e.remove(t)}))}))}resetQueries(t,e){const n=ft(this,R),i={type:"active",...t};return $o.batch((()=>(n.findAll(t).forEach((t=>{t.reset()})),this.refetchQueries(i,e))))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=$o.batch((()=>ft(this,R).findAll(t).map((t=>t.cancel(n)))));return Promise.all(i).then(vo).catch(vo)}invalidateQueries(t={},e={}){return $o.batch((()=>{if(ft(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},i=$o.batch((()=>ft(this,R).findAll(t).filter((t=>!t.isDisabled())).map((t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(vo)),"paused"===t.state.fetchStatus?Promise.resolve():e}))));return Promise.all(i).then(vo)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const n=ft(this,R).build(this,e);return n.isStaleByTime(wo(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(vo).catch(vo)}fetchInfiniteQuery(t){return t.behavior=Xo(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(vo).catch(vo)}ensureInfiniteQueryData(t){return t.behavior=Xo(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return jo.isOnline()?ft(this,M).resumePausedMutations():Promise.resolve()}getQueryCache(){return ft(this,R)}getMutationCache(){return ft(this,M)}getDefaultOptions(){return ft(this,O)}setDefaultOptions(t){vt(this,O,t)}setQueryDefaults(t,e){ft(this,D).set(ko(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...ft(this,D).values()];let n={};return e.forEach((e=>{Po(t,e.queryKey)&&(n={...n,...e.defaultOptions})})),n}setMutationDefaults(t,e){ft(this,L).set(ko(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...ft(this,L).values()];let n={};return e.forEach((e=>{Po(t,e.mutationKey)&&(n={...n,...e.defaultOptions})})),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...ft(this,O).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=So(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===Lo&&(e.enabled=!1),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:{...ft(this,O).mutations,...(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){ft(this,R).clear(),ft(this,M).clear()}},R=new WeakMap,M=new WeakMap,O=new WeakMap,D=new WeakMap,L=new WeakMap,F=new WeakMap,V=new WeakMap,j=new WeakMap,B),es=(ct=class extends fo{constructor(t,e){super(),mt(this,J),mt(this,U),mt(this,W),mt(this,I),mt(this,N),mt(this,$),mt(this,H),mt(this,z),mt(this,q),mt(this,K),mt(this,G),mt(this,Q),mt(this,Y),mt(this,X),mt(this,Z,new Set),this.options=e,vt(this,U,t),vt(this,z,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(ft(this,W).addObserver(this),ns(ft(this,W),this.options)?gt(this,J,tt).call(this):this.updateResult(),gt(this,J,rt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return is(ft(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return is(ft(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gt(this,J,ot).call(this),gt(this,J,st).call(this),ft(this,W).removeObserver(this)}setOptions(t,e){const n=this.options,i=ft(this,W);if(this.options=ft(this,U).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof bo(this.options.enabled,ft(this,W)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");gt(this,J,at).call(this),ft(this,W).setOptions(this.options),n._defaulted&&!To(this.options,n)&&ft(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:ft(this,W),observer:this});const r=this.hasListeners();r&&rs(ft(this,W),i,this.options,n)&&gt(this,J,tt).call(this),this.updateResult(e),!r||ft(this,W)===i&&bo(this.options.enabled,ft(this,W))===bo(n.enabled,ft(this,W))&&wo(this.options.staleTime,ft(this,W))===wo(n.staleTime,ft(this,W))||gt(this,J,et).call(this);const o=gt(this,J,nt).call(this);!r||ft(this,W)===i&&bo(this.options.enabled,ft(this,W))===bo(n.enabled,ft(this,W))&&o===ft(this,X)||gt(this,J,it).call(this,o)}getOptimisticResult(t){const e=ft(this,U).getQueryCache().build(ft(this,U),t),n=this.createResult(e,t);return function(t,e){if(!To(t.getCurrentResult(),e))return!0;return!1}(this,n)&&(vt(this,N,n),vt(this,H,this.options),vt(this,$,ft(this,W).state)),n}getCurrentResult(){return ft(this,N)}trackResult(t,e){const n={};return Object.keys(t).forEach((i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),null==e||e(i),t[i])})})),n}trackProp(t){ft(this,Z).add(t)}getCurrentQuery(){return ft(this,W)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=ft(this,U).defaultQueryOptions(t),n=ft(this,U).getQueryCache().build(ft(this,U),e);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,e)))}fetch(t){return gt(this,J,tt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then((()=>(this.updateResult(),ft(this,N))))}createResult(t,e){var n;const i=ft(this,W),r=this.options,o=ft(this,N),s=ft(this,$),a=ft(this,H),l=t!==i?t.state:ft(this,I),{state:c}=t;let u,h={...c},d=!1;if(e._optimisticResults){const n=this.hasListeners(),o=!n&&ns(t,e),s=n&&rs(t,i,e,r);(o||s)&&(h={...h,...qo(c.data,t.options)}),"isRestoring"===e._optimisticResults&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:m}=h;if(e.select&&void 0!==h.data)if(o&&h.data===(null==s?void 0:s.data)&&e.select===ft(this,q))u=ft(this,K);else try{vt(this,q,e.select),u=e.select(h.data),u=Mo(null==o?void 0:o.data,u,e),vt(this,K,u),vt(this,z,null)}catch(_){vt(this,z,_)}else u=h.data;if(void 0!==e.placeholderData&&void 0===u&&"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=ft(this,G))?void 0:n.state.data,ft(this,G)):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),vt(this,z,null)}catch(_){vt(this,z,_)}void 0!==t&&(m="success",u=Mo(null==o?void 0:o.data,t,e),d=!0)}ft(this,z)&&(p=ft(this,z),u=ft(this,K),f=Date.now(),m="error");const v="fetching"===h.fetchStatus,g="pending"===m,y="error"===m,w=g&&v,b=void 0!==u;return{status:m,fetchStatus:h.fetchStatus,isPending:g,isSuccess:"success"===m,isError:y,isInitialLoading:w,isLoading:w,data:u,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:y&&!b,isPaused:"paused"===h.fetchStatus,isPlaceholderData:d,isRefetchError:y&&b,isStale:os(t,e),refetch:this.refetch}}updateResult(t){const e=ft(this,N),n=this.createResult(ft(this,W),this.options);if(vt(this,$,ft(this,W).state),vt(this,H,this.options),void 0!==ft(this,$).data&&vt(this,G,ft(this,W)),To(n,e))return;vt(this,N,n);const i={};!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&&!ft(this,Z).size)return!0;const i=new Set(n??ft(this,Z));return this.options.throwOnError&&i.add("error"),Object.keys(ft(this,N)).some((t=>{const n=t;return ft(this,N)[n]!==e[n]&&i.has(n)}))})()&&(i.listeners=!0),gt(this,J,lt).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&gt(this,J,rt).call(this)}},U=new WeakMap,W=new WeakMap,I=new WeakMap,N=new WeakMap,$=new WeakMap,H=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,tt=function(t){gt(this,J,at).call(this);let e=ft(this,W).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(vo)),e},et=function(){gt(this,J,ot).call(this);const t=wo(this.options.staleTime,ft(this,W));if(mo||ft(this,N).isStale||!go(t))return;const e=yo(ft(this,N).dataUpdatedAt,t);vt(this,Q,setTimeout((()=>{ft(this,N).isStale||this.updateResult()}),e+1))},nt=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(ft(this,W)):this.options.refetchInterval)??!1},it=function(t){gt(this,J,st).call(this),vt(this,X,t),!mo&&!1!==bo(this.options.enabled,ft(this,W))&&go(ft(this,X))&&0!==ft(this,X)&&vt(this,Y,setInterval((()=>{(this.options.refetchIntervalInBackground||Vo.isFocused())&&gt(this,J,tt).call(this)}),ft(this,X)))},rt=function(){gt(this,J,et).call(this),gt(this,J,it).call(this,gt(this,J,nt).call(this))},ot=function(){ft(this,Q)&&(clearTimeout(ft(this,Q)),vt(this,Q,void 0))},st=function(){ft(this,Y)&&(clearInterval(ft(this,Y)),vt(this,Y,void 0))},at=function(){const t=ft(this,U).getQueryCache().build(ft(this,U),this.options);if(t===ft(this,W))return;const e=ft(this,W);vt(this,W,t),vt(this,I,t.state),this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))},lt=function(t){$o.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t(ft(this,N))})),ft(this,U).getQueryCache().notify({query:ft(this,W),type:"observerResultsUpdated"})}))},ct);function ns(t,e){return function(t,e){return!1!==bo(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&is(t,e,e.refetchOnMount)}function is(t,e,n){if(!1!==bo(e.enabled,t)){const i="function"==typeof n?n(t):n;return"always"===i||!1!==i&&os(t,e)}return!1}function rs(t,e,n,i){return(t!==e||!1===bo(i.enabled,t))&&(!n.suspense||"error"!==t.state.status)&&os(t,n)}function os(t,e){return!1!==bo(e.enabled,t)&&t.isStaleByTime(wo(e.staleTime,t))}var ss=se(void 0),as=t=>{const e=Wn(ss);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},ls=({client:t,children:e})=>(Ln((()=>(t.mount(),()=>{t.unmount()})),[t]),io(ss.Provider,{value:t,children:e})),cs=se(!1),us=()=>Wn(cs);cs.Provider;var hs=se(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),ds=()=>Wn(hs);var ps=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},fs=t=>{Ln((()=>{t.clearReset()}),[t])},ms=({result:t,errorResetBoundary:e,throwOnError:n,query:i})=>{return t.isError&&!e.isReset()&&!t.isFetching&&i&&(r=n,o=[t.error,i],"function"==typeof r?r(...o):!!r);var r,o},vs=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3)))},gs=(t,e)=>(null==t?void 0:t.suspense)&&e.isPending,ys=(t,e,n)=>e.fetchOptimistic(t).catch((()=>{n.clearReset()}));function ws(t,e){return function(t,e){var n,i,r,o;const s=as(),a=us(),l=ds(),c=s.defaultQueryOptions(t);null==(i=null==(n=s.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||i.call(n,c),c._optimisticResults=a?"isRestoring":"optimistic",vs(c),ps(c,l),fs(l);const[u]=On((()=>new e(s,c))),h=u.getOptimisticResult(c);if(Yi(Un((t=>{const e=a?()=>{}:u.subscribe($o.batchCalls(t));return u.updateResult(),e}),[u,a]),(()=>u.getCurrentResult())),Ln((()=>{u.setOptions(c,{listeners:!1})}),[c,u]),gs(c,h))throw ys(c,u,l);if(ms({result:h,errorResetBoundary:l,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash)}))throw h.error;return null==(o=null==(r=s.getDefaultOptions().queries)?void 0:r._experimental_afterQuery)||o.call(r,c,h),c.notifyOnChangeProps?h:u.trackResult(h)}(t,es)}var bs=/^((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)-.*))$/,_s=cn((function(t){return bs.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),xs=function(t){return"theme"!==t},Ss=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?_s:xs},ks=function(t,e,n){var i;if(e){var r=e.shouldForwardProp;i=t.__emotion_forwardProp&&r?function(e){return t.__emotion_forwardProp(e)&&r(e)}:r}return"function"!=typeof i&&n&&(i=t.__emotion_forwardProp),i},Ps=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;return Tr(e,n,i),$r((function(){return Ar(e,n,i)})),null},Cs=function t(e,n){var i,r,o=e.__emotion_real===e,s=o&&e.__emotion_base||e;void 0!==n&&(i=n.label,r=n.target);var a=ks(e,n,o),l=a||Ss(s),c=!l("as");return function(){var u=arguments,h=o&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==u[0]||void 0===u[0].raw)h.push.apply(h,u);else{h.push(u[0][0]);for(var d=u.length,p=1;p<d;p++)h.push(u[p],u[0][p])}var f=Kr((function(t,e,n){var i=c&&t.as||s,o="",u=[],d=t;if(null==t.theme){for(var p in d={},t)d[p]=t[p];d.theme=Wn(Gr)}"string"==typeof t.className?o=Cr(e.registered,u,t.className):null!=t.className&&(o=t.className+" ");var f=Ir(h.concat(u),e.registered,d);o+=e.key+"-"+f.name,void 0!==r&&(o+=" "+r);var m=c&&void 0===a?Ss(i):l,v={};for(var g in t)c&&"as"===g||m(g)&&(v[g]=t[g]);return v.className=o,n&&(v.ref=n),Vt(Ut,null,Vt(Ps,{cache:e,serialized:f,isStringTag:"string"==typeof i}),Vt(i,v))}));return f.displayName=void 0!==i?i:"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=h,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+r}}),f.withComponent=function(e,i){return t(e,tr({},n,i,{shouldForwardProp:ks(f,i,!0)})).apply(void 0,h)},f}}.bind();["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){Cs[t]=Cs(t)}));const Ts=Cs.td`
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
+ `,As=Cs.td`
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))"}}
7
+ `,Es=Cs.span({display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--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, 0 0 #0000)","--tw-ring-inset":"inset"},(t=>t.className)),Rs=t=>{const e=new Date(t.value);return so(Ts,{children:[e.toLocaleDateString(),oo("br",{}),e.toLocaleTimeString()]})},Ms=(t,e)=>{var n;switch(null==e?void 0:e.kind){case"status":return oo(As,{children:oo(Es,{className:null==(n=e.styleOverrides)?void 0:n[t],children:t})});case"date":return oo(Rs,{value:t});default:return oo(Ts,{children:t})}},Os=t=>oo(ro,{children:so("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[so("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[so("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[oo("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:t.title}),oo("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:t.subtitle})]}),oo("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:oo("button",{type:"button",onClick:t.onAdd,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:t.addButtonText})})]}),oo("div",{css:{marginTop:"2rem",display:"flow-root"},children:oo("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:oo("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:oo("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--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)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:so("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[oo("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:oo("tr",{children:t.columns.map((t=>oo("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:t.name},t.field)))})}),oo("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:t.data.map(((e,n)=>oo("tr",{children:t.columns.map(((t,i)=>oo(Ut,{children:Ms(e[t.field],t.type)},`${e[t.field]}-${n}-${i}`)))},`${e[t.columns[0].field]}-${n}`)))})]})})})})})]})});
8
+ /**
9
+ * @remix-run/router v1.19.2
10
+ *
11
+ * Copyright (c) Remix Software Inc.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE.md file in the root directory of this source tree.
15
+ *
16
+ * @license MIT
17
+ */
18
+ function Ds(){return Ds=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ds.apply(this,arguments)}var Ls,Fs;(Fs=Ls||(Ls={})).Pop="POP",Fs.Push="PUSH",Fs.Replace="REPLACE";const Vs="popstate";function js(t){return void 0===t&&(t={}),function(t,e,n,i){void 0===i&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=Ls.Pop,l=null,c=u();null==c&&(c=0,s.replaceState(Ds({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function h(){a=Ls.Pop;let t=u(),e=null==t?null:t-c;c=t,l&&l({action:a,location:m.location,delta:e})}function d(t,e){a=Ls.Push;let i=Is(m.location,t,e);n&&n(i,t),c=u()+1;let h=Ws(i,c),d=m.createHref(i);try{s.pushState(h,"",d)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;r.location.assign(d)}o&&l&&l({action:a,location:m.location,delta:1})}function p(t,e){a=Ls.Replace;let i=Is(m.location,t,e);n&&n(i,t),c=u();let r=Ws(i,c),h=m.createHref(i);s.replaceState(r,"",h),o&&l&&l({action:a,location:m.location,delta:0})}function f(t){let e="null"!==r.location.origin?r.location.origin:r.location.href,n="string"==typeof t?t:Ns(t);return n=n.replace(/ $/,"%20"),Bs(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}let m={get action(){return a},get location(){return t(r,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(Vs,h),l=t,()=>{r.removeEventListener(Vs,h),l=null}},createHref:t=>e(r,t),createURL:f,encodeLocation(t){let e=f(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:d,replace:p,go:t=>s.go(t)};return m}((function(t,e){let{pathname:n="/",search:i="",hash:r=""}=$s(t.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),Is("",{pathname:n,search:i,hash:r},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let n=t.document.querySelector("base"),i="";if(n&&n.getAttribute("href")){let e=t.location.href,n=e.indexOf("#");i=-1===n?e:e.slice(0,n)}return i+"#"+("string"==typeof e?e:Ns(e))}),(function(t,e){Us("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}function Bs(t,e){if(!1===t||null==t)throw new Error(e)}function Us(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(n){}}}function Ws(t,e){return{usr:t.state,key:t.key,idx:e}}function Is(t,e,n,i){return void 0===n&&(n=null),Ds({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?$s(e):e,{state:n,key:e&&e.key||i||Math.random().toString(36).substr(2,8)})}function Ns(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(e+="#"===i.charAt(0)?i:"#"+i),e}function $s(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}var Hs,zs;function qs(t,e,n){return void 0===n&&(n="/"),function(t,e,n,i){let r="string"==typeof e?$s(e):e,o=sa(r.pathname||"/",n);if(null==o)return null;let s=Ks(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){let n=t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]));return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(s);let a=null;for(let l=0;null==a&&l<s.length;++l){let t=oa(o);a=ia(s[l],t,i)}return a}(t,e,n,!1)}function Ks(t,e,n,i){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===i&&(i="");let r=(t,r,o)=>{let s={relativePath:void 0===o?t.path||"":o,caseSensitive:!0===t.caseSensitive,childrenIndex:r,route:t};s.relativePath.startsWith("/")&&(Bs(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let a=ca([i,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(Bs(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),Ks(t.children,e,l,a)),(null!=t.path||t.index)&&e.push({path:a,score:na(a,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let i of Gs(t.path))r(t,e,i);else r(t,e)})),e}function Gs(t){let e=t.split("/");if(0===e.length)return[];let[n,...i]=e,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===i.length)return r?[o,""]:[o];let s=Gs(i.join("/")),a=[];return a.push(...s.map((t=>""===t?o:[o,t].join("/")))),r&&a.push(...s),a.map((e=>t.startsWith("/")&&""===e?"/":e))}(zs=Hs||(Hs={})).data="data",zs.deferred="deferred",zs.redirect="redirect",zs.error="error";const Qs=/^:[\w-]+$/,Ys=3,Xs=2,Zs=1,Js=10,ta=-2,ea=t=>"*"===t;function na(t,e){let n=t.split("/"),i=n.length;return n.some(ea)&&(i+=ta),e&&(i+=Xs),n.filter((t=>!ea(t))).reduce(((t,e)=>t+(Qs.test(e)?Ys:""===e?Zs:Js)),i)}function ia(t,e,n){let{routesMeta:i}=t,r={},o="/",s=[];for(let a=0;a<i.length;++a){let t=i[a],l=a===i.length-1,c="/"===o?e:e.slice(o.length)||"/",u=ra({path:t.relativePath,caseSensitive:t.caseSensitive,end:l},c),h=t.route;if(!u&&l&&n&&!i[i.length-1].route.index&&(u=ra({path:t.relativePath,caseSensitive:t.caseSensitive,end:!1},c)),!u)return null;Object.assign(r,u.params),s.push({params:r,pathname:ca([o,u.pathname]),pathnameBase:ua(ca([o,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(o=ca([o,u.pathnameBase]))}return s}function ra(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=function(t,e,n){void 0===e&&(e=!1);void 0===n&&(n=!0);Us("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,n)=>(i.push({paramName:e,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));t.endsWith("*")?(i.push({paramName:"*"}),r+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==t&&"/"!==t&&(r+="(?:(?=\\/|$))");let o=new RegExp(r,e?void 0:"i");return[o,i]}(t.path,t.caseSensitive,t.end),r=e.match(n);if(!r)return null;let o=r[0],s=o.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:i.reduce(((t,e,n)=>{let{paramName:i,isOptional:r}=e;if("*"===i){let t=a[n]||"";s=o.slice(0,o.length-t.length).replace(/(.)\/+$/,"$1")}const l=a[n];return t[i]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:o,pathnameBase:s,pattern:t}}function oa(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return Us(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function sa(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&"/"!==i?null:t.slice(n)||"/"}function aa(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function la(t,e,n,i){let r;void 0===i&&(i=!1),"string"==typeof t?r=$s(t):(r=Ds({},t),Bs(!r.pathname||!r.pathname.includes("?"),aa("?","pathname","search",r)),Bs(!r.pathname||!r.pathname.includes("#"),aa("#","pathname","hash",r)),Bs(!r.search||!r.search.includes("#"),aa("#","search","hash",r)));let o,s=""===t||""===r.pathname,a=s?"/":r.pathname;if(null==a)o=n;else{let t=e.length-1;if(!i&&a.startsWith("..")){let e=a.split("/");for(;".."===e[0];)e.shift(),t-=1;r.pathname=e.join("/")}o=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:n,search:i="",hash:r=""}="string"==typeof t?$s(t):t,o=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:o,search:ha(i),hash:da(r)}}(r,o),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const ca=t=>t.join("/").replace(/\/\/+/g,"/"),ua=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ha=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",da=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";const pa=["post","put","patch","delete"];new Set(pa);const fa=["get",...pa];
19
+ /**
20
+ * React Router v6.26.2
21
+ *
22
+ * Copyright (c) Remix Software Inc.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE.md file in the root directory of this source tree.
26
+ *
27
+ * @license MIT
28
+ */
29
+ function ma(){return ma=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ma.apply(this,arguments)}new Set(fa);const va=se(null),ga=se(null),ya=se(null),wa=se(null),ba=se({outlet:null,matches:[],isDataRoute:!1}),_a=se(null);function xa(){return null!=Wn(wa)}function Sa(){return xa()||Bs(!1),Wn(wa).location}function ka(t){Wn(ya).static||Fn(t)}function Pa(){let{isDataRoute:t}=Wn(ba);return t?function(){let{router:t}=function(){let t=Wn(va);return t||Bs(!1),t}(Ma.UseNavigateStable),e=Da(Oa.UseNavigateStable),n=Vn(!1);return ka((()=>{n.current=!0})),Un((function(i,r){void 0===r&&(r={}),n.current&&("number"==typeof i?t.navigate(i):t.navigate(i,ma({fromRouteId:e},r)))}),[t,e])}():function(){xa()||Bs(!1);let t=Wn(va),{basename:e,future:n,navigator:i}=Wn(ya),{matches:r}=Wn(ba),{pathname:o}=Sa(),s=JSON.stringify(function(t,e){let n=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?n.map(((t,e)=>e===n.length-1?t.pathname:t.pathnameBase)):n.map((t=>t.pathnameBase))}(r,n.v7_relativeSplatPath)),a=Vn(!1);return ka((()=>{a.current=!0})),Un((function(n,r){if(void 0===r&&(r={}),!a.current)return;if("number"==typeof n)return void i.go(n);let l=la(n,JSON.parse(s),o,"path"===r.relative);null==t&&"/"!==e&&(l.pathname="/"===l.pathname?e:ca([e,l.pathname])),(r.replace?i.replace:i.push)(l,r.state,r)}),[e,i,s,o,t])}()}function Ca(t,e){return function(t,e,n,i){xa()||Bs(!1);let{navigator:r}=Wn(ya),{matches:o}=Wn(ba),s=o[o.length-1],a=s?s.params:{};!s||s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c,u=Sa();if(e){var h;let t="string"==typeof e?$s(e):e;"/"===l||(null==(h=t.pathname)?void 0:h.startsWith(l))||Bs(!1),c=t}else c=u;let d=c.pathname||"/",p=d;if("/"!==l){let t=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(t.length).join("/")}let f=qs(t,{pathname:p}),m=function(t,e,n,i){var r;void 0===e&&(e=[]);void 0===n&&(n=null);void 0===i&&(i=null);if(null==t){var o;if(!n)return null;if(n.errors)t=n.matches;else{if(!(null!=(o=i)&&o.v7_partialHydration&&0===e.length&&!n.initialized&&n.matches.length>0))return null;t=n.matches}}let s=t,a=null==(r=n)?void 0:r.errors;if(null!=a){let t=s.findIndex((t=>t.route.id&&void 0!==(null==a?void 0:a[t.route.id])));t>=0||Bs(!1),s=s.slice(0,Math.min(s.length,t+1))}let l=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let u=0;u<s.length;u++){let t=s[u];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=u),t.route.id){let{loaderData:e,errors:i}=n,r=t.route.loader&&void 0===e[t.route.id]&&(!i||void 0===i[t.route.id]);if(t.route.lazy||r){l=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((t,i,r)=>{let o,u=!1,h=null,d=null;n&&(o=a&&i.route.id?a[i.route.id]:void 0,h=i.route.errorElement||Aa,l&&(c<0&&0===r?(u=!0,d=null):c===r&&(u=!0,d=i.route.hydrateFallbackElement||null)));let p=e.concat(s.slice(0,r+1)),f=()=>{let e;return e=o?h:u?d:i.route.Component?Vt(i.route.Component,null):i.route.element?i.route.element:t,Vt(Ra,{match:i,routeContext:{outlet:t,matches:p,isDataRoute:null!=n},children:e})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?Vt(Ea,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()}),null)}(f&&f.map((t=>Object.assign({},t,{params:Object.assign({},a,t.params),pathname:ca([l,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?l:ca([l,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),o,n,i);if(e&&m)return Vt(wa.Provider,{value:{location:ma({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ls.Pop}},m);return m}(t,e)}function Ta(){let t=function(){var t;let e=Wn(_a),n=function(){let t=Wn(ga);return t||Bs(!1),t}(Oa.UseRouteError),i=Da(Oa.UseRouteError);if(void 0!==e)return e;return null==(t=n.errors)?void 0:t[i]}(),e=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Vt(Ut,null,Vt("h2",null,"Unexpected Application Error!"),Vt("h3",{style:{fontStyle:"italic"}},e),n?Vt("pre",{style:i},n):null,null)}const Aa=Vt(Ta,null);class Ea extends Wt{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?Vt(ba.Provider,{value:this.props.routeContext},Vt(_a.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ra(t){let{routeContext:e,match:n,children:i}=t,r=Wn(va);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),Vt(ba.Provider,{value:e},i)}var Ma=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Ma||{}),Oa=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Oa||{});function Da(t){let e=function(){let t=Wn(ba);return t||Bs(!1),t}(),n=e.matches[e.matches.length-1];return n.route.id||Bs(!1),n.route.id}function La(t){Bs(!1)}function Fa(t){let{basename:e="/",children:n=null,location:i,navigationType:r=Ls.Pop,navigator:o,static:s=!1,future:a}=t;xa()&&Bs(!1);let l=e.replace(/^\/*/,"/"),c=Bn((()=>({basename:l,navigator:o,static:s,future:ma({v7_relativeSplatPath:!1},a)})),[l,a,o,s]);"string"==typeof i&&(i=$s(i));let{pathname:u="/",search:h="",hash:d="",state:p=null,key:f="default"}=i,m=Bn((()=>{let t=sa(u,l);return null==t?null:{location:{pathname:t,search:h,hash:d,state:p,key:f},navigationType:r}}),[l,u,h,d,p,f,r]);return null==m?null:Vt(ya.Provider,{value:c},Vt(wa.Provider,{children:n,value:m}))}function Va(t){let{children:e,location:n}=t;return Ca(ja(e),n)}function ja(t,e){void 0===e&&(e=[]);let n=[];return ri.forEach(t,((t,i)=>{if(!Vi(t))return;let r=[...e,i];if(t.type===Ut)return void n.push.apply(n,ja(t.props.children,r));t.type!==La&&Bs(!1),t.props.index&&t.props.children&&Bs(!1);let o={id:t.props.id||r.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(o.children=ja(t.props.children,r)),n.push(o)})),n}
30
+ /**
31
+ * React Router DOM v6.26.2
32
+ *
33
+ * Copyright (c) Remix Software Inc.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE.md file in the root directory of this source tree.
37
+ *
38
+ * @license MIT
39
+ */new Promise((()=>{}));try{window.__reactRouterVersion="6"}catch(Um){}const Ba=Ji.startTransition;function Ua(t){let{basename:e,children:n,future:i,window:r}=t,o=Vn();null==o.current&&(o.current=js({window:r,v5Compat:!0}));let s=o.current,[a,l]=On({action:s.action,location:s.location}),{v7_startTransition:c}=i||{},u=Un((t=>{c&&Ba?Ba((()=>l(t))):l(t)}),[l,c]);return Fn((()=>s.listen(u)),[s,u]),Vt(Fa,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:i})}var Wa,Ia,Na,$a;(Ia=Wa||(Wa={})).UseScrollRestoration="useScrollRestoration",Ia.UseSubmit="useSubmit",Ia.UseSubmitFetcher="useSubmitFetcher",Ia.UseFetcher="useFetcher",Ia.useViewTransitionState="useViewTransitionState",($a=Na||(Na={})).UseFetcher="useFetcher",$a.UseFetchers="useFetchers",$a.UseScrollRestoration="useScrollRestoration";const Ha=[{name:"Id",field:"id"},{name:"Category",field:"category"},{name:"Promotion Status",field:"promotionStatus",type:{kind:"status",styleOverrides:{Enabled:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},Disabled:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"}}}},{name:"Contentful Status",field:"contentfulStatus",type:{kind:"status",styleOverrides:{Linked:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},Unlinked:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"}}}},{name:"Created At",field:"createdAt",type:{kind:"date"}},{name:"Updated At",field:"updatedAt",type:{kind:"date"}}],za=()=>{const{getAllPromotions:t}=po(),e=Pa(),{isPending:n,error:i,data:r}=ws({queryKey:["getAllPromotions"],queryFn:t});switch(!0){case n:return oo(ro,{children:"Loading..."});case!!i:return so(ro,{children:["An error has occurred: ",i.message]});case!!r:return oo(Os,{columns:Ha,data:(o=r,o.data.map((t=>({id:t.id,category:t.category.title,promotionStatus:t.status,contentfulStatus:t.contentfulContent?"Linked":"Unlinked",createdAt:t.createdAt,updatedAt:t.updatedAt})))),title:"Promotions",subtitle:"A list of currently configured promoted benefits",addButtonText:"Add New Promotion",onAdd:()=>e("/add")});default:return oo(ro,{children:"No data returned from backend"})}var o};function qa(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>t(...e)),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function Ka(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const Ga=t=>Array.isArray(t);function Qa(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Ya(t){return"string"==typeof t||Array.isArray(t)}function Xa(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function Za(t,e,n,i){if("function"==typeof e){const[r,o]=Xa(i);e=e(void 0!==n?n:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[r,o]=Xa(i);e=e(void 0!==n?n:t.custom,r,o)}return e}function Ja(t,e,n){const i=t.getProps();return Za(i,e,void 0!==n?n:i.custom,t)}const tl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],el=["initial",...tl],nl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],il=new Set(nl),rl=t=>1e3*t,ol=t=>t/1e3,sl={type:"spring",stiffness:500,damping:25,restSpeed:10},al={type:"keyframes",duration:.8},ll={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cl=(t,{keyframes:e})=>e.length>2?al:il.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sl:ll;function ul(t,e){return t[e]||t.default||t}const hl=!1,dl=t=>null!==t;function pl(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(dl),o=e&&"loop"!==n&&e%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}const fl=t=>t;const ml=["read","resolveKeyframes","update","preRender","render","postRender"];function vl(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ml.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(s)}const l={schedule:(t,r=!1,s=!1)=>{const a=s&&i?e:n;return r&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{s=t,i?r=!0:(i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,r&&(r=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:h,postRender:d}=s,p=()=>{const o=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),h.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:ml.reduce(((e,o)=>{const a=s[o];return e[o]=(e,o=!1,s=!1)=>(n||(n=!0,i=!0,r.isProcessing||t(p)),a.schedule(e,o,s)),e}),{}),cancel:t=>{for(let e=0;e<ml.length;e++)s[ml[e]].cancel(t)},state:r,steps:s}}const{schedule:gl,cancel:yl,state:wl,steps:bl}=vl("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:fl,!0),_l=t=>/^0[^.\s]+$/u.test(t);let xl=fl;const Sl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),kl=t=>e=>"string"==typeof e&&e.startsWith(t),Pl=kl("--"),Cl=kl("var(--"),Tl=t=>!!Cl(t)&&Al.test(t.split("/*")[0].trim()),Al=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,El=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rl(t,e,n=1){const[i,r]=function(t){const e=El.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${null!=n?n:i}`,r]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return Sl(t)?parseFloat(t):t}return Tl(r)?Rl(r,e,n+1):r}const Ml=(t,e,n)=>n>e?e:n<t?t:n,Ol={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Dl={...Ol,transform:t=>Ml(0,1,t)},Ll={...Ol,default:1},Fl=t=>Math.round(1e5*t)/1e5,Vl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,jl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Bl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ul(t){return"string"==typeof t}const Wl=t=>({test:e=>Ul(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Il=Wl("deg"),Nl=Wl("%"),$l=Wl("px"),Hl=Wl("vh"),zl=Wl("vw"),ql={...Nl,parse:t=>Nl.parse(t)/100,transform:t=>Nl.transform(100*t)},Kl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gl=t=>t===Ol||t===$l,Ql=(t,e)=>parseFloat(t.split(", ")[e]),Yl=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Ql(r[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Ql(e[1],t):0}},Xl=new Set(["x","y","z"]),Zl=nl.filter((t=>!Xl.has(t)));const Jl={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Yl(4,13),y:Yl(5,14)};Jl.translateX=Jl.x,Jl.translateY=Jl.y;const tc=t=>e=>e.test(t),ec=[Ol,$l,Nl,Il,zl,Hl,{test:t=>"auto"===t,parse:t=>t}],nc=t=>ec.find(tc(t)),ic=new Set;let rc=!1,oc=!1;function sc(){if(oc){const t=Array.from(ic).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return Zl.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}oc=!1,rc=!1,ic.forEach((t=>t.complete())),ic.clear()}function ac(){ic.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(oc=!0)}))}class lc{constructor(t,e,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ic.add(this),rc||(rc=!0,gl.read(ac),gl.resolveKeyframes(sc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){const r=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ic.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ic.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const cc=(t,e)=>n=>Boolean(Ul(n)&&Bl.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),uc=(t,e,n)=>i=>{if(!Ul(i))return i;const[r,o,s,a]=i.match(Vl);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},hc={...Ol,transform:t=>Math.round((t=>Ml(0,255,t))(t))},dc={test:cc("rgb","red"),parse:uc("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+hc.transform(t)+", "+hc.transform(e)+", "+hc.transform(n)+", "+Fl(Dl.transform(i))+")"};const pc={test:cc("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:dc.transform},fc={test:cc("hsl","hue"),parse:uc("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Nl.transform(Fl(e))+", "+Nl.transform(Fl(n))+", "+Fl(Dl.transform(i))+")"},mc={test:t=>dc.test(t)||pc.test(t)||fc.test(t),parse:t=>dc.test(t)?dc.parse(t):fc.test(t)?fc.parse(t):pc.parse(t),transform:t=>Ul(t)?t:t.hasOwnProperty("red")?dc.transform(t):fc.transform(t)};const vc="number",gc="color",yc="var",wc="var(",bc="${}",_c=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xc(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const s=e.replace(_c,(t=>(mc.test(t)?(i.color.push(o),r.push(gc),n.push(mc.parse(t))):t.startsWith(wc)?(i.var.push(o),r.push(yc),n.push(t)):(i.number.push(o),r.push(vc),n.push(parseFloat(t))),++o,bc))).split(bc);return{values:n,split:s,indexes:i,types:r}}function Sc(t){return xc(t).values}function kc(t){const{split:e,types:n}=xc(t),i=e.length;return t=>{let r="";for(let o=0;o<i;o++)if(r+=e[o],void 0!==t[o]){const e=n[o];r+=e===vc?Fl(t[o]):e===gc?mc.transform(t[o]):t[o]}return r}}const Pc=t=>"number"==typeof t?0:t;const Cc={test:function(t){var e,n;return isNaN(t)&&Ul(t)&&((null===(e=t.match(Vl))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(jl))||void 0===n?void 0:n.length)||0)>0},parse:Sc,createTransformer:kc,getAnimatableNone:function(t){const e=Sc(t);return kc(t)(e.map(Pc))}},Tc=new Set(["brightness","contrast","saturate","opacity"]);function Ac(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Vl)||[];if(!i)return t;const r=n.replace(i,"");let o=Tc.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const Ec=/\b([a-z-]*)\(.*?\)/gu,Rc={...Cc,getAnimatableNone:t=>{const e=t.match(Ec);return e?e.map(Ac).join(" "):t}},Mc={...Ol,transform:Math.round},Oc={borderWidth:$l,borderTopWidth:$l,borderRightWidth:$l,borderBottomWidth:$l,borderLeftWidth:$l,borderRadius:$l,radius:$l,borderTopLeftRadius:$l,borderTopRightRadius:$l,borderBottomRightRadius:$l,borderBottomLeftRadius:$l,width:$l,maxWidth:$l,height:$l,maxHeight:$l,size:$l,top:$l,right:$l,bottom:$l,left:$l,padding:$l,paddingTop:$l,paddingRight:$l,paddingBottom:$l,paddingLeft:$l,margin:$l,marginTop:$l,marginRight:$l,marginBottom:$l,marginLeft:$l,rotate:Il,rotateX:Il,rotateY:Il,rotateZ:Il,scale:Ll,scaleX:Ll,scaleY:Ll,scaleZ:Ll,skew:Il,skewX:Il,skewY:Il,distance:$l,translateX:$l,translateY:$l,translateZ:$l,x:$l,y:$l,z:$l,perspective:$l,transformPerspective:$l,opacity:Dl,originX:ql,originY:ql,originZ:$l,zIndex:Mc,backgroundPositionX:$l,backgroundPositionY:$l,fillOpacity:Dl,strokeOpacity:Dl,numOctaves:Mc},Dc={...Oc,color:mc,backgroundColor:mc,outlineColor:mc,fill:mc,stroke:mc,borderColor:mc,borderTopColor:mc,borderRightColor:mc,borderBottomColor:mc,borderLeftColor:mc,filter:Rc,WebkitFilter:Rc},Lc=t=>Dc[t];function Fc(t,e){let n=Lc(t);return n!==Rc&&(n=Cc),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Vc=new Set(["auto","none","0"]);class jc extends lc{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),Tl(n))){const i=Rl(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Kl.has(n)||2!==t.length)return;const[i,r]=t,o=nc(i),s=nc(r);if(o!==s)if(Gl(o)&&Gl(s))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let r=0;r<t.length;r++)("number"==typeof(i=t[r])?0===i:null===i||"none"===i||"0"===i||_l(i))&&n.push(r);var i;n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){const e=t[r];"string"==typeof e&&!Vc.has(e)&&xc(e).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=Fc(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jl[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const r=e.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=Jl[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function Bc(t){let e;return()=>(void 0===e&&(e=t()),e)}let Uc;function Wc(){Uc=void 0}const Ic={now:()=>(void 0===Uc&&Ic.set(wl.isProcessing||hl?wl.timestamp:performance.now()),Uc),set:t=>{Uc=t,queueMicrotask(Wc)}},Nc=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Cc.test(t)&&"0"!==t||t.startsWith("url(")));class $c{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ic.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ac(),sc()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Ic.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:r,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){const r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],s=Nc(r,e),a=Nc(o,e);return!(!s||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||"spring"===n&&i)}(t,n,i,r)){if(!o)return null==a||a(pl(t,this.options,e)),null==s||s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}function Hc(t,e){return e?t*(1e3/e):0}const zc=5;function qc(t,e,n){const i=Math.max(e-zc,0);return Hc(n-t(i),e-i)}const Kc=.001,Gc=.01,Qc=10,Yc=.05,Xc=1;function Zc({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,o,s=1-e;s=Ml(Yc,Xc,s),t=Ml(Gc,Qc,ol(t)),s<1?(r=e=>{const i=e*s,r=i*t,o=i-n,a=tu(e,s),l=Math.exp(-r);return Kc-o/a*l},o=e=>{const i=e*s*t,o=i*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=tu(Math.pow(e,2),s);return(-r(e)+Kc>0?-1:1)*((o-a)*l)/c}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-Kc,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let r=1;r<Jc;r++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=rl(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}const Jc=12;function tu(t,e){return t*Math.sqrt(1-e*e)}const eu=["duration","bounce"],nu=["stiffness","damping","mass"];function iu(t,e){return e.some((e=>void 0!==t[e]))}function ru({keyframes:t,restDelta:e,restSpeed:n,...i}){const r=t[0],o=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iu(t,nu)&&iu(t,eu)){const n=Zc(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...i,velocity:-ol(i.velocity||0)}),p=h||0,f=l/(2*Math.sqrt(a*c)),m=o-r,v=ol(Math.sqrt(a/c)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),e||(e=g?.005:.5),f<1){const t=tu(v,f);y=e=>{const n=Math.exp(-f*v*e);return o-n*((p+f*v*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===f)y=t=>o-Math.exp(-v*t)*(m+(p+v*m)*t);else{const t=v*Math.sqrt(f*f-1);y=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return o-n*((p+f*v*m)*Math.sinh(i)+t*m*Math.cosh(i))/t}}return{calculatedDuration:d&&u||null,next:t=>{const i=y(t);if(d)s.done=t>=u;else{let r=0;f<1&&(r=0===t?rl(p):qc(y,t,i));const a=Math.abs(r)<=n,l=Math.abs(o-i)<=e;s.done=a&&l}return s.value=s.done?o:i,s}}}function ou({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let f=n*e;const m=h+f,v=void 0===s?m:s(m);v!==m&&(f=v-h);const g=t=>-f*Math.exp(-t/i),y=t=>v+g(t),w=t=>{const e=g(t),n=y(t);d.done=Math.abs(e)<=c,d.value=d.done?v:n};let b,_;const x=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(b=t,_=ru({keyframes:[d.value,p(d.value)],velocity:qc(y,t,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return x(0),{calculatedDuration:null,next:t=>{let e=!1;return _||void 0!==b||(e=!0,w(t),x(t)),void 0!==b&&t>=b?_.next(t-b):(!e&&w(t),d)}}}const su=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,au=1e-7,lu=12;function cu(t,e,n,i){if(t===e&&n===i)return fl;const r=e=>function(t,e,n,i,r){let o,s,a=0;do{s=e+(n-e)/2,o=su(s,i,r)-t,o>0?n=s:e=s}while(Math.abs(o)>au&&++a<lu);return s}(e,0,1,t,n);return t=>0===t||1===t?t:su(r(t),e,i)}const uu=cu(.42,0,1,1),hu=cu(0,0,.58,1),du=cu(.42,0,.58,1),pu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,fu=t=>e=>1-t(1-e),mu=t=>1-Math.sin(Math.acos(t)),vu=fu(mu),gu=pu(mu),yu=cu(.33,1.53,.69,.99),wu=fu(yu),bu={linear:fl,easeIn:uu,easeInOut:du,easeOut:hu,circIn:mu,circInOut:gu,circOut:vu,backIn:wu,backInOut:pu(wu),backOut:yu,anticipate:t=>(t*=2)<1?.5*wu(t):.5*(2-Math.pow(2,-10*(t-1)))},_u=t=>{if(Array.isArray(t)){xl(4===t.length);const[e,n,i,r]=t;return cu(e,n,i,r)}return"string"==typeof t?(xl(void 0!==bu[t]),bu[t]):t},xu=(t,e)=>n=>e(t(n)),Su=(...t)=>t.reduce(xu),ku=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},Pu=(t,e,n)=>t+(e-t)*n;function Cu(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Tu(t,e){return n=>n>0?e:t}const Au=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Eu=[pc,dc,fc];function Ru(t){const e=(n=t,Eu.find((t=>t.test(n))));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===fc&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=Cu(a,i,t+1/3),o=Cu(a,i,t),s=Cu(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(i)),i}const Mu=(t,e)=>{const n=Ru(t),i=Ru(e);if(!n||!i)return Tu(t,e);const r={...n};return t=>(r.red=Au(n.red,i.red,t),r.green=Au(n.green,i.green,t),r.blue=Au(n.blue,i.blue,t),r.alpha=Pu(n.alpha,i.alpha,t),dc.transform(r))},Ou=new Set(["none","hidden"]);function Du(t,e){return n=>Pu(t,e,n)}function Lu(t){return"number"==typeof t?Du:"string"==typeof t?Tl(t)?Tu:mc.test(t)?Mu:ju:Array.isArray(t)?Fu:"object"==typeof t?mc.test(t)?Mu:Vu:Tu}function Fu(t,e){const n=[...t],i=n.length,r=t.map(((t,n)=>Lu(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function Vu(t,e){const n={...t,...e},i={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=Lu(t[r])(t[r],e[r]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const ju=(t,e)=>{const n=Cc.createTransformer(e),i=xc(t),r=xc(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Ou.has(t)&&!r.values.length||Ou.has(e)&&!i.values.length?function(t,e){return Ou.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Su(Fu(function(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=l,r[s]++}return i}(i,r),r.values),n):Tu(t,e)};function Bu(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Pu(t,e,n);return Lu(t)(t,e)}function Uu(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(xl(o===e.length),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const i=[],r=n||Bu,o=t.length-1;for(let s=0;s<o;s++){let n=r(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]||fl:e;n=Su(t,n)}i.push(n)}return i}(e,i,r),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=ku(t[n],t[n+1],e);return s[n](i)};return n?e=>l(Ml(t[0],t[o-1],e)):l}function Wu(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=ku(0,e,i);t.push(Pu(n,1,r))}}(e,t.length-1),e}function Iu({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(_u):_u(i),o={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:Wu(e),t),a=Uu(s,e,{ease:Array.isArray(r)?r:(l=e,c=r,l.map((()=>c||du)).splice(0,l.length-1))});var l,c;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const Nu=t=>{const e=({timestamp:e})=>t(e);return{start:()=>gl.update(e,!0),stop:()=>yl(e),now:()=>wl.isProcessing?wl.timestamp:Ic.now()}},$u={decay:ou,inertia:ou,tween:Iu,keyframes:Iu,spring:ru},Hu=t=>t/100;class zu extends $c{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:r}=this.options,o=(null==i?void 0:i.KeyframeResolver)||lc;this.resolver=new o(r,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,s=$u[e]||Iu;let a,l;s!==Iu&&"number"!=typeof t[0]&&(a=Su(Hu,Bu(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});"mirror"===r&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(c));const{calculatedDuration:u}=c,h=u+i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:h,totalDuration:h*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return r.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,w=r;if(d){const t=Math.min(this.currentTime,c)/u;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,f&&(n-=f/u)):"mirror"===p&&(w=o)),y=Ml(0,1,n)*u}const b=g?{done:!1,value:a[0]}:w.next(y);s&&(b.value=s(b.value));let{done:_}=b;g||null===l||(_=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return x&&void 0!==i&&(b.value=pl(a,this.options,i)),m&&m(b.value),x&&this.finish(),b}get duration(){const{resolved:t}=this;return t?ol(t.calculatedDuration):0}get time(){return ol(this.currentTime)}set time(t){t=rl(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=ol(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Nu,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const qu=new Set(["opacity","clipPath","filter","transform"]),Ku=t=>Array.isArray(t)&&"number"==typeof t[0];function Gu(t){return Boolean(!t||"string"==typeof t&&t in Yu||Ku(t)||Array.isArray(t)&&t.every(Gu))}const Qu=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Yu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qu([0,.65,.55,1]),circOut:Qu([.55,0,1,.45]),backIn:Qu([.31,.01,.66,-.59]),backOut:Qu([.33,1.53,.69,.99])};function Xu(t){return Zu(t)||Yu.easeOut}function Zu(t){return t?Ku(t)?Qu(t):Array.isArray(t)?t.map(Xu):Yu[t]:void 0}const Ju=Bc((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class th extends $c{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new jc(r,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:i=300,times:r,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||!Gu(u.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...c}=this.options,u=function(t,e){const n=new zu({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),r.push(i.value),o+=10;return{times:void 0,keyframes:r,duration:o-10,ease:"linear"}}(t,c);1===(t=u.keyframes).length&&(t[1]=t[0]),i=u.duration,r=u.times,o=u.ease,s="keyframes"}var u;const h=function(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=Zu(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:i,times:r,ease:o});return h.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(h.timeline=this.pendingTimeline,this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:n}=this.options;a.set(pl(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return ol(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return ol(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=rl(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return fl;const{animation:n}=e;n.timeline=t,n.onfinish=null}else this.pendingTimeline=t;return fl}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:r,ease:o,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...c}=this.options,u=new zu({...c,keyframes:n,duration:i,type:r,ease:o,times:s,isGenerator:!0}),h=rl(this.time);t.setWithVelocity(u.sample(h-10).value,u.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=t;return Ju()&&n&&qu.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}}const eh=Bc((()=>void 0!==window.ScrollTimeline));class nh{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map((e=>{if(!eh()||!e.attachTimeline)return e.pause(),function(t,e){let n;const i=()=>{const{currentTime:i}=e,r=(null===i?0:i.value)/100;n!==r&&t(r),n=r};return gl.update(i,!0),()=>yl(i)}((t=>{e.time=e.duration*t}),t);e.attachTimeline(t)}));return()=>{e.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const ih=(t,e,n,i={},r,o,s)=>a=>{const l=ul(i,t)||{},c=l.delay||i.delay||0;let{elapsed:u=0}=i;u-=rl(c);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:t,motionValue:e,element:o?void 0:r};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(l)||(h={...h,...cl(t,h)}),h.duration&&(h.duration=rl(h.duration)),h.repeatDelay&&(h.repeatDelay=rl(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(d=!0)),d&&!o&&void 0!==e.get()){const t=pl(h.keyframes,l);if(void 0!==t)return gl.update((()=>{h.onUpdate(t),h.onComplete()})),new nh([])}return!o&&th.supports(h)?new th(h):new zu(h)},rh=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),oh=t=>Ga(t)?t[t.length-1]||0:t;function sh(t,e){-1===t.indexOf(e)&&t.push(e)}function ah(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class lh{constructor(){this.subscriptions=[]}add(t){return sh(this.subscriptions,t),()=>ah(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){const i=this.subscriptions[r];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class ch{constructor(t,e={}){this.version="11.5.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Ic.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Ic.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new lh);const n=this.events[t].add(e);return"change"===t?()=>{n(),gl.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ic.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Hc(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uh(t,e){return new ch(t,e)}function hh(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,uh(n))}const dh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ph="data-"+dh("framerAppearId");function fh(t){return t.props[ph]}function mh(t){return il.has(t)?"transform":qu.has(t)?dh(t):void 0}class vh extends ch{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const e=mh(t);if(!e)return;const n=this.counts.get(e)||0;this.counts.set(e,n+1),0===n&&(this.output.push(e),this.update());let i=!1;return()=>{if(i)return;i=!0;const t=this.counts.get(e)-1;this.counts.set(e,t),0===t&&(ah(this.output,e),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const gh=t=>Boolean(t&&t.getVelocity);function yh(t,e){var n;if(!t.applyWillChange)return;let i=t.getValue("willChange");return i||(null===(n=t.props.style)||void 0===n?void 0:n.willChange)||(i=new vh("auto"),t.addValue("willChange",i)),r=i,Boolean(gh(r)&&r.add)?i.add(e):void 0;var r}function wh({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function bh(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(s=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const h in l){const e=t.getValue(h,null!==(o=t.latestValues[h])&&void 0!==o?o:null),i=l[h];if(void 0===i||u&&wh(u,h))continue;const r={delay:n,...ul(s||{},h)};let a=!1;if(window.MotionHandoffAnimation){const e=fh(t);if(e){const t=window.MotionHandoffAnimation(e,h,gl);null!==t&&(r.startTime=t,a=!0)}}e.start(ih(h,e,i,t.shouldReduceMotion&&il.has(h)?{type:!1}:r,t,a,yh(t,h)));const d=e.animation;d&&c.push(d)}return a&&Promise.all(c).then((()=>{gl.update((()=>{a&&function(t,e){const n=Ja(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o)hh(t,s,oh(o[s]))}(t,a)}))})),c}function _h(t,e,n={}){var i;const r=Ja(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(bh(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,l=1===r?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(xh).forEach(((t,i)=>{t.notify("AnimationStart",e),s.push(_h(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,r+i,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then((()=>e()))}return Promise.all([s(),a(n.delay)])}function xh(t,e){return t.sortNodePosition(e)}const Sh=[...tl].reverse(),kh=tl.length;function Ph(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const r=e.map((e=>_h(t,e,n)));i=Promise.all(r)}else if("string"==typeof e)i=_h(t,e,n);else{const r="function"==typeof e?Ja(t,e,n.custom):e;i=Promise.all(bh(t,r,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function Ch(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Qa(e,t)}function Th(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ah(){return{animate:Th(!0),whileInView:Th(),whileHover:Th(),whileTap:Th(),whileDrag:Th(),whileFocus:Th(),exit:Th()}}class Eh{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Rh=0;const Mh={animation:{Feature:class extends Eh{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=Ph(t),n=Ah(),i=!0;const r=e=>(n,i)=>{var r;const o=Ja(t,i,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const s=t.getProps(),a=t.getVariantContext(!0)||{},l=[],c=new Set;let u={},h=1/0;for(let e=0;e<kh;e++){const d=Sh[e],p=n[d],f=void 0!==s[d]?s[d]:a[d],m=Ya(f),v=d===o?p.isActive:null;!1===v&&(h=e);let g=f===a[d]&&f!==s[d]&&m;if(g&&i&&t.manuallyAnimateOnMount&&(g=!1),p.protectedKeys={...u},!p.isActive&&null===v||!f&&!p.prevProp||Ka(f)||"boolean"==typeof f)continue;let y=Ch(p.prevProp,f)||d===o&&p.isActive&&!g&&m||e>h&&m,w=!1;const b=Array.isArray(f)?f:[f];let _=b.reduce(r(d),{});!1===v&&(_={});const{prevResolvedValues:x={}}=p,S={...x,..._},k=e=>{y=!0,c.has(e)&&(w=!0,c.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in S){const e=_[t],n=x[t];if(u.hasOwnProperty(t))continue;let i=!1;i=Ga(e)&&Ga(n)?!Qa(e,n):e!==n,i?null!=e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):p.protectedKeys[t]=!0}p.prevProp=f,p.prevResolvedValues=_,p.isActive&&(u={...u,..._}),i&&t.blockInitialAnimation&&(y=!1),!y||g&&!w||l.push(...b.map((t=>({animation:t,options:{type:d}}))))}if(c.size){const e={};c.forEach((n=>{const i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=null!=i?i:null})),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const s=o(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Ah(),i=!0}}}(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ka(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Eh{constructor(){super(...arguments),this.id=Rh++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Oh=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Dh(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const Lh=t=>e=>Oh(e)&&t(e,Dh(e));function Fh(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Vh(t,e,n,i){return Fh(t,e,Lh(n),i)}const jh=(t,e)=>Math.abs(t-e);class Bh{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Ih(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=jh(t.x,e.x),i=jh(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:r}=wl;this.history.push({...i,timestamp:r});const{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Uh(e,this.transformPagePoint),gl.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Ih("pointercancel"===t.type?this.lastMoveEventInfo:Uh(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!Oh(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=Uh(Dh(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=wl;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Ih(o,this.history)),this.removeListeners=Su(Vh(this.contextWindow,"pointermove",this.handlePointerMove),Vh(this.contextWindow,"pointerup",this.handlePointerUp),Vh(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yl(this.updatePoint)}}function Uh(t,e){return e?{point:e(t.point)}:t}function Wh(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ih({point:t},e){return{point:t,delta:Wh(t,$h(e)),offset:Wh(t,Nh(e)),velocity:Hh(e,.1)}}function Nh(t){return t[0]}function $h(t){return t[t.length-1]}function Hh(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=$h(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>rl(e)));)n--;if(!i)return{x:0,y:0};const o=ol(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zh(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const qh=zh("dragHorizontal"),Kh=zh("dragVertical");function Gh(t){let e=!1;if("y"===t)e=Kh();else if("x"===t)e=qh();else{const t=qh(),n=Kh();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Qh(){const t=Gh(!0);return!t||(t(),!1)}function Yh(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const Xh=.9999,Zh=1.0001,Jh=-.01,td=.01;function ed(t){return t.max-t.min}function nd(t,e,n,i=.5){t.origin=i,t.originPoint=Pu(e.min,e.max,t.origin),t.scale=ed(n)/ed(e),t.translate=Pu(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Xh&&t.scale<=Zh||isNaN(t.scale))&&(t.scale=1),(t.translate>=Jh&&t.translate<=td||isNaN(t.translate))&&(t.translate=0)}function id(t,e,n,i){nd(t.x,e.x,n.x,i?i.originX:void 0),nd(t.y,e.y,n.y,i?i.originY:void 0)}function rd(t,e,n){t.min=n.min+e.min,t.max=t.min+ed(e)}function od(t,e,n){t.min=e.min-n.min,t.max=t.min+ed(e)}function sd(t,e,n){od(t.x,e.x,n.x),od(t.y,e.y,n.y)}function ad(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ld(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const cd=.35;function ud(t,e,n){return{min:hd(t,e),max:hd(t,n)}}function hd(t,e){return"number"==typeof t?t:t[e]||0}const dd=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),pd=()=>({x:{min:0,max:0},y:{min:0,max:0}});function fd(t){return[t("x"),t("y")]}function md({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function vd(t){return void 0===t||1===t}function gd({scale:t,scaleX:e,scaleY:n}){return!vd(t)||!vd(e)||!vd(n)}function yd(t){return gd(t)||wd(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function wd(t){return bd(t.x)||bd(t.y)}function bd(t){return t&&"0%"!==t}function _d(t,e,n){return n+e*(t-n)}function xd(t,e,n,i,r){return void 0!==r&&(t=_d(t,r,i)),_d(t,n,i)+e}function Sd(t,e=0,n=1,i,r){t.min=xd(t.min,e,n,i,r),t.max=xd(t.max,e,n,i,r)}function kd(t,{x:e,y:n}){Sd(t.x,e.translate,e.scale,e.originPoint),Sd(t.y,n.translate,n.scale,n.originPoint)}const Pd=.999999999999,Cd=1.0000000000001;function Td(t,e){t.min=t.min+e,t.max=t.max+e}function Ad(t,e,n,i,r=.5){Sd(t,e,n,Pu(t.min,t.max,r),i)}function Ed(t,e){Ad(t.x,e.x,e.scaleX,e.scale,e.originX),Ad(t.y,e.y,e.scaleY,e.scale,e.originY)}function Rd(t,e){return md(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Md=({current:t})=>t?t.ownerDocument.defaultView:null,Od=new WeakMap;class Dd{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pd(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Bh(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Dh(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:r,onDragStart:o}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gh(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fd((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Nl.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=ed(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&gl.postRender((()=>o(t,e))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=yh(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>fd((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:Md(this.visualElement)})}stop(t,e){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&gl.postRender((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Ld(t,i,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?Pu(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?Pu(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&Yh(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:r}){return{x:ad(t.x,n,r),y:ad(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=cd){return!1===t?t=0:!0===t&&(t=cd),{x:ud(t,"left","right"),y:ud(t,"top","bottom")}}(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&fd((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Yh(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=function(t,e,n){const i=Rd(t,n),{scroll:r}=e;return r&&(Td(i.x,r.offset.x),Td(i.y,r.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:ld(t.x,e.x),y:ld(t.y,e.y)}}(i.layout.layoutBox,r);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=md(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=fd((s=>{if(!Ld(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const c=i?200:1e6,u=i?40:1e7,h={type:"inertia",velocity:n?t[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,h)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(ih(t,n,0,e,this.visualElement,!1,yh(this.visualElement,t)))}stopAnimation(){fd((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){fd((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fd((e=>{const{drag:n}=this.getProps();if(!Ld(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];r.set(t[e]-Pu(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Yh(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fd((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=ed(t),r=ed(e);return r>i?n=ku(e.min,e.max-i,t.min):i>r&&(n=ku(t.min,t.max-r,e.min)),Ml(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fd((e=>{if(!Ld(e,t,null))return;const n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(Pu(r,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Od.set(this.visualElement,this);const t=Vh(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();Yh(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),gl.read(e);const r=Fh(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(fd((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=cd,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function Ld(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Fd=t=>(e,n)=>{t&&gl.postRender((()=>t(e,n)))};const Vd=se(null);const jd=se({}),Bd=se({}),Ud={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wd(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Id={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!$l.test(t))return t;t=parseFloat(t)}return`${Wd(t,e.target.x)}% ${Wd(t,e.target.y)}%`}},Nd={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=Cc.parse(t);if(r.length>5)return i;const o=Cc.createTransformer(t),s="number"!=typeof r[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=Pu(a,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=c),"number"==typeof r[3+s]&&(r[3+s]/=c),o(r)}},$d={};const{schedule:Hd,cancel:zd}=vl(queueMicrotask,!1);class qd extends Wt{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;var o;o=Gd,Object.assign($d,o),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Ud.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o?(o.isPresent=r,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||gl.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hd.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kd(t){const[e,n]=function(){const t=Wn(Vd);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,r=Nn();Ln((()=>i(r)),[]);const o=Un((()=>n&&n(r)),[r,n]);return!e&&n?[!1,o]:[!0]}(),i=Wn(jd);return io(qd,{...t,layoutGroup:i,switchLayoutGroup:Wn(Bd),isPresent:e,safeToRemove:n})}const Gd={borderRadius:{...Id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Id,borderTopRightRadius:Id,borderBottomLeftRadius:Id,borderBottomRightRadius:Id,boxShadow:Nd},Qd=["TopLeft","TopRight","BottomLeft","BottomRight"],Yd=Qd.length,Xd=t=>"string"==typeof t?parseFloat(t):t,Zd=t=>"number"==typeof t||$l.test(t);function Jd(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const tp=np(0,.5,vu),ep=np(.5,.95,fl);function np(t,e,n){return i=>i<t?0:i>e?1:n(ku(t,e,i))}function ip(t,e){t.min=e.min,t.max=e.max}function rp(t,e){ip(t.x,e.x),ip(t.y,e.y)}function op(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sp(t,e,n,i,r){return t=_d(t-=e,1/n,i),void 0!==r&&(t=_d(t,1/r,i)),t}function ap(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){Nl.test(e)&&(e=parseFloat(e),e=Pu(s.min,s.max,e/100)-s.min);if("number"!=typeof e)return;let a=Pu(o.min,o.max,i);t===o&&(a-=e),t.min=sp(t.min,e,n,a,r),t.max=sp(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}const lp=["x","scaleX","originX"],cp=["y","scaleY","originY"];function up(t,e,n,i){ap(t.x,e,lp,n?n.x:void 0,i?i.x:void 0),ap(t.y,e,cp,n?n.y:void 0,i?i.y:void 0)}function hp(t){return 0===t.translate&&1===t.scale}function dp(t){return hp(t.x)&&hp(t.y)}function pp(t,e){return t.min===e.min&&t.max===e.max}function fp(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function mp(t,e){return fp(t.x,e.x)&&fp(t.y,e.y)}function vp(t){return ed(t.x)/ed(t.y)}function gp(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class yp{constructor(){this.members=[]}add(t){sh(this.members,t),t.scheduleRender()}remove(t){if(ah(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const wp=(t,e)=>t.depth-e.depth;class bp{constructor(){this.children=[],this.isDirty=!1}add(t){sh(this.children,t),this.isDirty=!0}remove(t){ah(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wp),this.isDirty=!1,this.children.forEach(t)}}function _p(t){const e=gh(t)?t.get():t;return rh(e)?e.toValue():e}const xp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Sp="undefined"!=typeof window&&void 0!==window.MotionDebug,kp=["","X","Y","Z"],Pp={visibility:"hidden"};let Cp=0;function Tp(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Ap(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=fh(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",gl,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Ap(i)}function Ep({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Cp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Sp&&(xp.totalNodes=xp.resolvedTargetDeltas=xp.recalculatedProjection=0),this.nodes.forEach(Op),this.nodes.forEach(Up),this.nodes.forEach(Wp),this.nodes.forEach(Dp),Sp&&window.MotionDebug.record(xp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new bp)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new lh),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:r,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||r)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Ic.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&(yl(i),t(o-e))};return gl.read(i,!0),()=>yl(i)}(i,250),Ud.hasAnimatedSinceResize&&(Ud.hasAnimatedSinceResize=!1,this.nodes.forEach(Bp))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||s.getDefaultTransition()||qp,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!mp(this.targetLayout,i)||n,c=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,c);const e={...ul(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Bp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ip),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ap(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let r=0;r<this.path.length;r++){const t=this.path[r];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Fp);this.isUpdating||this.nodes.forEach(Vp),this.isUpdating=!1,this.nodes.forEach(jp),this.nodes.forEach(Rp),this.nodes.forEach(Mp),this.clearAllSnapshots();const t=Ic.now();wl.delta=Ml(0,1e3/60,t-wl.timestamp),wl.timestamp=t,wl.isProcessing=!0,bl.update.process(wl),bl.preRender.process(wl),bl.render.process(wl),wl.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lp),this.sharedNodes.forEach(Np)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,gl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){gl.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pd(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!dp(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||yd(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Qp((i=n).x),Qp(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return pd();const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(Xp))){const{scroll:t}=this.root;t&&(Td(n.x,t.offset.x),Td(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=pd();if(rp(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:r,options:o}=e;e!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&rp(n,t),Td(n.x,r.offset.x),Td(n.y,r.offset.y))}return n}applyTransform(t,e=!1){const n=pd();rp(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Ed(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),yd(t.latestValues)&&Ed(n,t.latestValues)}return yd(this.latestValues)&&Ed(n,this.latestValues),n}removeTransform(t){const e=pd();rp(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!yd(t.latestValues))continue;gd(t.latestValues)&&t.updateSnapshot();const i=pd();rp(i,t.measurePageBox()),up(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return yd(this.latestValues)&&up(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==wl.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(this.layout&&(r||o)){if(this.resolvedRelativeTargetAt=wl.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pd(),this.relativeTargetOrigin=pd(),sd(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=pd(),this.targetWithTransforms=pd()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,rd(s.x,a.x,l.x),rd(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):rp(this.target,this.layout.layoutBox),kd(this.target,this.targetDelta)):rp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pd(),this.relativeTargetOrigin=pd(),sd(this.relativeTargetOrigin,this.target,t.target),rp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sp&&xp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!gd(this.parent.latestValues)&&!wd(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===wl.timestamp&&(i=!1),i)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;rp(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const r=n.length;if(!r)return;let o,s;e.x=e.y=1;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:r}=o.options;r&&r.props.style&&"contents"===r.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ed(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,kd(t,s)),i&&yd(o.latestValues)&&Ed(t,o.latestValues))}e.x<Cd&&e.x>Pd&&(e.x=1),e.y<Cd&&e.y>Pd&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=pd());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(op(this.prevProjectionDelta.x,this.projectionDelta.x),op(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),id(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&gp(this.projectionDelta.x,this.prevProjectionDelta.x)&&gp(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Sp&&xp.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=dd(),this.projectionDelta=dd(),this.projectionDeltaWithTransform=dd()}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},r={...this.latestValues},o=dd();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s=pd(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(zp));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,f,m,v;$p(o.x,t.x,n),$p(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sd(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=s,v=n,Hp(p.x,f.x,m.x,v),Hp(p.y,f.y,m.y,v),h&&(l=this.relativeTarget,d=h,pp(l.x,d.x)&&pp(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h=pd()),rp(h,this.relativeTarget)),a&&(this.animationValues=r,function(t,e,n,i,r,o){r?(t.opacity=Pu(0,void 0!==n.opacity?n.opacity:1,tp(i)),t.opacityExit=Pu(void 0!==e.opacity?e.opacity:1,0,ep(i))):o&&(t.opacity=Pu(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<Yd;s++){const r=`border${Qd[s]}Radius`;let o=Jd(e,r),a=Jd(n,r);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Zd(o)===Zd(a)?(t[r]=Math.max(Pu(Xd(o),Xd(a),i),0),(Nl.test(a)||Nl.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||n.rotate)&&(t.rotate=Pu(e.rotate||0,n.rotate||0,i))}(r,i,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=gl.update((()=>{Ud.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=gh(t)?t:uh(t);return i.start(ih("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Yp(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||pd();const e=ed(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=ed(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}rp(e,n),Ed(e,r),id(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new yp);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Tp("z",t,i,this.animationValues);for(let r=0;r<kp.length;r++)Tp(`rotate${kp[r]}`,t,i,this.animationValues),Tp(`skew${kp[r]}`,t,i,this.animationValues);t.render();for(const r in i)t.setStaticValue(r,i[r]),this.animationValues&&(this.animationValues[r]=i[r]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Pp;const i={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=_p(null==t?void 0:t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=_p(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!yd(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(null==n?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),r&&(i.transform=r(s,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const c in $d){if(void 0===s[c])continue;const{correct:t,applyTo:e}=$d[c],n="none"===i.transform?s[c]:t(s[c],o);if(e){const t=e.length;for(let r=0;r<t;r++)i[e[r]]=n}else i[c]=n}return this.options.layoutId&&(i.pointerEvents=o===this?_p(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Fp),this.root.sharedNodes.clear()}}}function Rp(t){t.updateLayout()}function Mp(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;"size"===r?fd((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],r=ed(i);i.min=e[t].min,i.max=i.min+r})):Yp(r,n.layoutBox,e)&&fd((i=>{const r=o?n.measuredBox[i]:n.layoutBox[i],s=ed(e[i]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+s)}));const s=dd();id(s,e,n.layoutBox);const a=dd();o?id(a,t.applyTransform(i,!0),n.measuredBox):id(a,e,n.layoutBox);const l=!dp(s);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:r,layout:o}=i;if(r&&o){const s=pd();sd(s,n.layoutBox,r.layoutBox);const a=pd();sd(a,e,o.layoutBox),mp(s,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Op(t){Sp&&xp.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Dp(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Lp(t){t.clearSnapshot()}function Fp(t){t.clearMeasurements()}function Vp(t){t.isLayoutDirty=!1}function jp(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Bp(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Up(t){t.resolveTargetDelta()}function Wp(t){t.calcProjection()}function Ip(t){t.resetSkewAndRotation()}function Np(t){t.removeLeadSnapshot()}function $p(t,e,n){t.translate=Pu(e.translate,0,n),t.scale=Pu(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Hp(t,e,n,i){t.min=Pu(e.min,n.min,i),t.max=Pu(e.max,n.max,i)}function zp(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const qp={duration:.45,ease:[.4,0,.1,1]},Kp=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Gp=Kp("applewebkit/")&&!Kp("chrome/")?Math.round:fl;function Qp(t){t.min=Gp(t.min),t.max=Gp(t.max)}function Yp(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=vp(e),r=vp(n),o=.2,!(Math.abs(i-r)<=o));var i,r,o}function Xp(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Zp=Ep({attachResizeListener:(t,e)=>Fh(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jp={current:void 0},tf=Ep({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Jp.current){const t=new Zp({});t.mount(window),t.setOptions({layoutScroll:!0}),Jp.current=t}return Jp.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ef={pan:{Feature:class extends Eh{constructor(){super(...arguments),this.removePointerDownListener=fl}onPointerDown(t){this.session=new Bh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Md(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Fd(t),onStart:Fd(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&gl.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Vh(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Eh{constructor(t){super(t),this.removeGroupControls=fl,this.removeListeners=fl,this.controls=new Dd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fl}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tf,MeasureLayout:Kd}};function nf(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd";return Vh(t.current,n,((n,r)=>{if("touch"===n.pointerType||Qh())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const s=o[i];s&&gl.postRender((()=>s(n,r)))}),{passive:!t.getProps()[i]})}const rf=(t,e)=>!!e&&(t===e||rf(t,e.parentElement));function of(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Dh(n))}const sf=new WeakMap,af=new WeakMap,lf=t=>{const e=sf.get(t.target);e&&e(t)},cf=t=>{t.forEach(lf)};function uf(t,e,n){const i=function({root:t,...e}){const n=t||document;af.has(n)||af.set(n,{});const i=af.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(cf,{root:t,...e})),i[r]}(e);return sf.set(t,n),i.observe(t),()=>{sf.delete(t),i.unobserve(t)}}const hf={some:0,all:1};const df={inView:{Feature:class extends Eh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:hf[i]};return uf(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,r&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Eh{constructor(){super(...arguments),this.removeStartListeners=fl,this.removeEndListeners=fl,this.removeAccessibleListeners=fl,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Vh(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:r}=this.node.getProps(),o=r||rf(this.node.current,t.target)?n:i;o&&gl.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),r=Vh(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Su(i,r),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Fh(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Fh(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&of("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&gl.postRender((()=>n(t,e)))}))})),of("down",((t,e)=>{this.startPress(t,e)}))})),e=Fh(this.node.current,"blur",(()=>{this.isPressing&&of("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Su(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&gl.postRender((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qh()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&gl.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Vh(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Fh(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Su(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Eh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(Um){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Su(Fh(this.node.current,"focus",(()=>this.onFocus())),Fh(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Eh{mount(){this.unmount=Su(nf(this.node,!0),nf(this.node,!1))}unmount(){}}}},pf={layout:{ProjectionNode:tf,MeasureLayout:Kd}},ff=se({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),mf=se({}),vf="undefined"!=typeof window,gf=vf?Fn:Ln,yf=se({strict:!1});let wf=!1;function bf(t,e,n,i,r){var o;const{visualElement:s}=Wn(mf),a=Wn(yf),l=Wn(Vd),c=Wn(ff).reducedMotion,u=Vn();i=i||a.renderer,!u.current&&i&&(u.current=i(t,{visualState:e,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const h=u.current,d=Wn(Bd);!h||h.projection||!r||"html"!==h.type&&"svg"!==h.type||function(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:xf(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:Boolean(s)||a&&Yh(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}(u.current,n,r,d),Gi((()=>{h&&h.update(n,l)}));const p=n[ph],f=Vn(Boolean(p)&&!window.MotionHandoffIsComplete&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,p)));return gf((()=>{h&&(h.updateFeatures(),Hd.render(h.render),f.current&&h.animationState&&h.animationState.animateChanges())})),Ln((()=>{h&&(!f.current&&h.animationState&&h.animationState.animateChanges(),f.current=!1,wf||(wf=!0,queueMicrotask(_f)))})),h}function _f(){window.MotionHandoffIsComplete=!0}function xf(t){if(t)return!1!==t.options.allowProjection?t.projection:xf(t.parent)}function Sf(t,e,n){return Un((i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):Yh(n)&&(n.current=i))}),[e])}function kf(t){return Ka(t.animate)||el.some((e=>Ya(t[e])))}function Pf(t){return Boolean(kf(t)||t.variants)}function Cf(t){const{initial:e,animate:n}=function(t,e){if(kf(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Ya(e)?e:void 0,animate:Ya(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,Wn(mf));return Bn((()=>({initial:e,animate:n})),[Tf(e),Tf(n)])}function Tf(t){return Array.isArray(t)?t.join(" "):t}const Af={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ef={};for(const Im in Af)Ef[Im]={isEnabled:t=>Af[Im].some((e=>!!t[e]))};const Rf=Symbol.for("motionComponentSymbol");function Mf({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){t&&function(t){for(const e in t)Ef[e]={...Ef[e],...t[e]}}(t);const o=ni((function(t,o){let s;const a={...Wn(ff),...t,layoutId:Of(t)},{isStatic:l}=a,c=Cf(t),u=i(t,l);if(!l&&vf){Wn(yf).strict;const t=function(t){const{drag:e,layout:n}=Ef;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(a);s=t.MeasureLayout,c.visualElement=bf(r,u,a,e,t.ProjectionNode)}return io(mf.Provider,{value:c,children:[s&&c.visualElement?io(s,{visualElement:c.visualElement,...a}):null,n(r,t,Sf(u,c.visualElement,o),u,l,c.visualElement)]})}));return o[Rf]=r,o}function Of({layoutId:t}){const e=Wn(jd).id;return e&&void 0!==t?e+"-"+t:t}const Df=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lf(t){return"string"==typeof t&&!t.includes("-")&&!!(Df.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ff(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const Vf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function jf(t,e,n,i){Ff(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(Vf.has(r)?r:dh(r),e.attrs[r])}function Bf(t,{layout:e,layoutId:n}){return il.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!$d[t]||"opacity"===t)}function Uf(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(gh(r[s])||e.style&&gh(e.style[s])||Bf(s,t)||void 0!==(null===(i=null==n?void 0:n.getValue(s))||void 0===i?void 0:i.liveStyle))&&(o[s]=r[s]);return n&&r&&"string"==typeof r.willChange&&(n.applyWillChange=!1),o}function Wf(t,e,n){const i=Uf(t,e,n);for(const r in t)if(gh(t[r])||gh(e[r])){i[-1!==nl.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return i}function If(t){const e=Vn(null);return null===e.current&&(e.current=t()),e.current}const Nf=t=>(e,n)=>{const i=Wn(mf),r=Wn(Vd),o=()=>function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:i},r,o,s,a){const l={latestValues:zf(r,o,s,!a&&t,e),renderState:n()};return i&&(l.mount=t=>i(r,t,l)),l}(t,e,i,r,n);return n?o():If(o)};function $f(t,e){const n=mh(e);n&&sh(t,n)}function Hf(t,e,n){const i=Array.isArray(e)?e:[e];for(let r=0;r<i.length;r++){const e=Za(t,i[r]);if(e){const{transitionEnd:t,transition:i,...r}=e;n(r,t)}}}function zf(t,e,n,i,r){var o;const s={},a=[],l=i&&void 0===(null===(o=t.style)||void 0===o?void 0:o.willChange),c=r(t,{});for(const v in c)s[v]=_p(c[v]);let{initial:u,animate:h}=t;const d=kf(t),p=Pf(t);e&&p&&!d&&!1!==t.inherit&&(void 0===u&&(u=e.initial),void 0===h&&(h=e.animate));let f=!!n&&!1===n.initial;f=f||!1===u;const m=f?h:u;return m&&"boolean"!=typeof m&&!Ka(m)&&Hf(t,m,((t,e)=>{for(const n in t){let e=t[n];if(Array.isArray(e)){e=e[f?e.length-1:0]}null!==e&&(s[n]=e)}for(const n in e)s[n]=e[n]})),l&&(h&&!1!==u&&!Ka(h)&&Hf(t,h,(t=>{for(const e in t)$f(a,e)})),a.length&&(s.willChange=a.join(","))),s}const qf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Kf=()=>({...qf(),attrs:{}}),Gf=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Qf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yf=nl.length;function Xf(t,e,n){const{style:i,vars:r,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const t=e[l];if(il.has(l))s=!0;else if(Pl(l))r[l]=t;else{const e=Gf(t,Oc[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(s||n?i.transform=function(t,e,n){let i="",r=!0;for(let o=0;o<Yf;o++){const s=nl[o],a=t[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Gf(a,Oc[s]);l||(r=!1,i+=`${Qf[s]||s}(${t}) `),n&&(e[s]=t)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}function Zf(t,e,n){return"string"==typeof t?t:$l.transform(e+n*t)}const Jf={offset:"stroke-dashoffset",array:"stroke-dasharray"},tm={offset:"strokeDashoffset",array:"strokeDasharray"};function em(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,h){if(Xf(t,c,h),u)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Zf(e,t.x,t.width)} ${Zf(n,t.y,t.height)}`}(f,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==s&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?Jf:tm;t[o.offset]=$l.transform(-i);const s=$l.transform(e),a=$l.transform(n);t[o.array]=`${s} ${a}`}(d,s,a,l,!1)}const nm=t=>"string"==typeof t&&"svg"===t.toLowerCase(),im={useVisualState:Nf({scrapeMotionValuesFromProps:Wf,createRenderState:Kf,onMount:(t,e,{renderState:n,latestValues:i})=>{gl.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(Um){n.dimensions={x:0,y:0,width:0,height:0}}})),gl.render((()=>{em(n,i,nm(e.tagName),t.transformTemplate),jf(e,n)}))}})},rm={useVisualState:Nf({applyWillChange:!0,scrapeMotionValuesFromProps:Uf,createRenderState:qf})};function om(t,e,n){for(const i in e)gh(e[i])||Bf(i,n)||(t[i]=e[i])}function sm(t,e){const n={};return om(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return Bn((()=>{const n=qf();return Xf(n,e,t),Object.assign({},n.vars,n.style)}),[e])}(t,e)),n}function am(t,e){const n={},i=sm(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const lm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function cm(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||lm.has(t)}let um=t=>!cm(t);try{(hm=require("@emotion/is-prop-valid").default)&&(um=t=>t.startsWith("on")?!cm(t):hm(t))}catch(Wm){}var hm;function dm(t,e,n,i){const r=Bn((()=>{const n=Kf();return em(n,e,nm(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};om(e,t.style,t),r.style={...e,...r.style}}return r}function pm(t=!1){return(e,n,i,{latestValues:r},o)=>{const s=(Lf(e)?dm:am)(n,r,o,e),a=function(t,e,n){const i={};for(const r in t)"values"===r&&"object"==typeof t.values||(um(r)||!0===n&&cm(r)||!e&&!cm(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(n,"string"==typeof e,t),l=e!==Ut?{...a,...s,ref:i}:{},{children:c}=n;return Vt(e,{...l,children:Bn((()=>gh(c)?c.get():c),[c])})}}function fm(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return Mf({...Lf(n)?im:rm,preloadedFeatures:t,useRender:pm(i),createVisualElement:e,Component:n})}}const mm={current:null},vm={current:!1};const gm=new WeakMap,ym=[...ec,mc,Cc],wm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bm=el.length;class _m{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,gl.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=kf(e),this.isVariantNode=Pf(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const h in u){const t=u[h];void 0!==a[h]&&gh(t)&&t.set(a[h],!1)}}mount(t){this.current=t,gm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),vm.current||function(){if(vm.current=!0,vf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mm.current=t.matches;t.addListener(e),e()}else mm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||mm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gm.delete(this.current),this.projection&&this.projection.unmount(),yl(this.notifyUpdate),yl(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=il.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&gl.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),r(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Ef){const e=Ef[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pd()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<wm.length;n++){const e=wm[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const r=e[i],o=n[i];if(gh(r))t.addValue(i,r);else if(gh(o))t.addValue(i,uh(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{const e=t.getStaticValue(i);t.addValue(i,uh(void 0!==e?e:r,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let n=0;n<bm;n++){const t=el[n],i=this.props[t];(Ya(i)||!1===i)&&(e[t]=i)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=uh(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var r;return null!=i&&("string"==typeof i&&(Sl(i)||_l(i))?i=parseFloat(i):(r=i,!ym.find(tc(r))&&Cc.test(e)&&(i=Fc(t,e))),this.setBaseTarget(t,gh(i)?i.get():i)),gh(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const r=Za(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||gh(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new lh),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class xm extends _m{constructor(){super(...arguments),this.KeyframeResolver=jc}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class Sm extends xm{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Ff}readValueFromInstance(t,e){if(il.has(e)){const t=Lc(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),r=(Pl(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Rd(t,e)}build(t,e,n){Xf(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Uf(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gh(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class km extends xm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pd}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(il.has(e)){const t=Lc(e);return t&&t.default||0}return e=Vf.has(e)?e:dh(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Wf(t,e,n)}build(t,e,n){em(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){jf(t,e,0,i)}mount(t){this.isSVGTag=nm(t.tagName),super.mount(t)}}const Pm=qa(fm({...Mh,...df,...ef,...pf},((t,e)=>Lf(t)?new km(e):new Sm(e,{allowProjection:t!==Ut}))));class Cm extends Wt{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Tm({children:t,isPresent:e}){const n=Nn(),i=Vn(null),r=Vn({width:0,height:0,top:0,left:0}),{nonce:o}=Wn(ff);return Gi((()=>{const{width:t,height:s,top:a,left:l}=r.current;if(e||!i.current||!t||!s)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${s}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[e]),io(Cm,{isPresent:e,childRef:i,sizeRef:r,children:Ui(t,{ref:i})})}const Am=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:s})=>{const a=If(Em),l=Nn(),c=Bn((()=>({id:l,initial:e,isPresent:n,custom:r,onExitComplete:t=>{a.set(t,!0);for(const e of a.values())if(!e)return;i&&i()},register:t=>(a.set(t,!1),()=>a.delete(t))})),o?[Math.random()]:[n]);return Bn((()=>{a.forEach(((t,e)=>a.set(e,!1)))}),[n]),Ln((()=>{!n&&!a.size&&i&&i()}),[n]),"popLayout"===s&&(t=io(Tm,{isPresent:n,children:t})),io(Vd.Provider,{value:c,children:t})};function Em(){return new Map}const Rm=t=>t.key||"";function Mm(t){const e=[];return ri.forEach(t,(t=>{Vi(t)&&e.push(t)})),e}const Om=({children:t,exitBeforeEnter:e,custom:n,initial:i=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=Bn((()=>Mm(t)),[t]),l=a.map(Rm),c=Vn(!0),u=Vn(a),h=If((()=>new Map)),[d,p]=On(a),[f,m]=On(a);gf((()=>{c.current=!1,u.current=a;for(let t=0;t<f.length;t++){const e=Rm(f[t]);l.includes(e)?h.delete(e):!0!==h.get(e)&&h.set(e,!1)}}),[f,l.length,l.join("-")]);const v=[];if(a!==d){let t=[...a];for(let e=0;e<f.length;e++){const n=f[e],i=Rm(n);l.includes(i)||(t.splice(e,0,n),v.push(n))}return"wait"===s&&v.length&&(t=v),m(Mm(t)),void p(a)}const{forceRender:g}=Wn(jd);return io(Ut,{children:f.map((t=>{const e=Rm(t),d=a===f||l.includes(e);return io(Am,{isPresent:d,initial:!(c.current&&!i)&&void 0,custom:d?void 0:n,presenceAffectsLayout:o,mode:s,onExitComplete:d?void 0:()=>{if(!h.has(e))return;h.set(e,!0);let t=!0;h.forEach((e=>{e||(t=!1)})),t&&(null==g||g(),m(u.current),r&&r())},children:t},e)}))})},Dm=Cs.input`
40
+ ${()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--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, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
41
+
42
+ ${({prefix:t})=>t?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}}
43
+
44
+ ${({hasError:t})=>t?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
45
+ `,Lm=ni((({label:t,id:e,type:n,placeholder:i,setPlaceholderOnFocus:r,value:o,className:s,onChange:a,onBlur:l,error:c},u)=>so("div",{className:s,children:[oo("label",{htmlFor:e,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:t}),oo("div",{css:{marginTop:"0.5rem"},children:oo(Dm,{type:n,value:o,name:e,id:e,placeholder:i,onChange:t=>{const e=t;e.target instanceof HTMLInputElement&&a(e.target.value.trim())},onBlur:t=>{const e=t;e.target instanceof HTMLInputElement&&l&&l(e.target.value.trim())},onFocus:()=>{i&&r&&!(null==o?void 0:o.trim())&&a(i)},hasError:!!c,ref:u})}),c&&oo("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:c})]}))),Fm=()=>{const t=Pa();return so("div",{css:{display:"flex",gap:"2rem",paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[oo("div",{css:{marginTop:"1rem",verticalAlign:"top"},children:oo("button",{onClick:()=>t("/"),children:"<"})}),so("form",{children:[oo("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0",marginTop:"calc(3rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(3rem * var(--tw-space-y-reverse))"}},children:so("div",{css:{borderBottomWidth:"1px",borderColor:"rgb(17 24 39 / 0.1)",paddingBottom:"3rem"},children:[oo("h2",{css:{fontSize:"1rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Add Promotion"}),oo("p",{css:{marginTop:"0.25rem",fontSize:"0.875rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},children:"Add a new promoted benefit"}),so("div",{css:{marginTop:"2.5rem",display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",columnGap:"1.5rem",rowGap:"2rem","@media (min-width: 640px)":{gridTemplateColumns:"repeat(6, minmax(0, 1fr))"}},children:[oo("div",{css:{"@media (min-width: 640px)":{gridColumn:"span 4 / span 4"}},children:oo(Lm,{label:"Id",id:"id",type:"text",onChange:()=>({})})}),oo("div",{css:{"@media (min-width: 640px)":{gridColumn:"span 4 / span 4"}},children:oo(Lm,{label:"Category",id:"category",type:"text",onChange:()=>({})})}),oo("div",{css:{"@media (min-width: 640px)":{gridColumn:"span 4 / span 4"}},children:so("fieldset",{children:[oo("legend",{css:{fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Is Enabled"}),oo("p",{css:{marginTop:"0.25rem",fontSize:"0.875rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},children:"Should the promoted benefit be enabled or disabled"}),so("div",{css:{marginTop:"1.5rem","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0",marginTop:"calc(1.5rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1.5rem * var(--tw-space-y-reverse))"}},children:[so("div",{css:{display:"flex",alignItems:"center",columnGap:"0.75rem"},children:[oo("input",{id:"enabled",name:"is-enabled",type:"radio",css:{height:"1rem",width:"1rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(79 70 229 / var(--tw-ring-opacity))"}}}),oo("label",{htmlFor:"enabled",css:{display:"block",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Enabled"})]}),so("div",{css:{display:"flex",alignItems:"center",columnGap:"0.75rem"},children:[oo("input",{id:"disabled",name:"is-enabled",type:"radio",css:{height:"1rem",width:"1rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(79 70 229 / var(--tw-ring-opacity))"}}}),oo("label",{htmlFor:"disabled",css:{display:"block",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Disabled"})]})]})]})})]})]})}),so("div",{css:{marginTop:"1.5rem",display:"flex",alignItems:"center",justifyContent:"flex-end",columnGap:"1.5rem"},children:[oo("button",{type:"button",css:{fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Cancel"}),oo("button",{type:"submit",css:{borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:"Save"})]})]})]})},Vm=t=>oo(Pm.div,{css:{position:"absolute",bottom:"0px",left:"0px",right:"0px",top:"0px"},initial:{x:"forward"===t.direction?"100%":"-100%"},animate:{x:"0"},exit:{x:"forward"===t.direction?"-100%":"100%"},transition:{duration:.5,type:"spring"},children:oo("div",{css:{overflow:"hidden","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:oo("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","@media (min-width: 640px)":{padding:"1.5rem"}},children:t.children})})}),jm=t=>{const e=Sa(),[n,i]=On("forward");var r;return r={backend:{url:t.backendUrl,accessToken:t.accessToken}},co=se({...r,backend:{url:r.backend.url.replace(/\/?$/,""),accessToken:r.backend.accessToken}}),Ln((()=>{if("/add"===e.pathname)i("backward");else i("forward")}),[e.pathname]),oo("div",{class:"mx-auto max-w-7xl sm:px-6 lg:px-8 relative",children:oo(Om,{initial:!1,children:so(Va,{location:e,children:[oo(La,{path:"/",element:oo(Vm,{direction:n,children:oo(za,{})})}),oo(La,{path:"/add",element:oo(Vm,{direction:n,children:oo(Fm,{})})})]},e.pathname)})})},Bm=new ts;!function(t,e,n,i){function r(){var e=Reflect.construct(HTMLElement,[],r);return e._vdomComponent=t,e._root=i&&i.shadow?e.attachShadow({mode:i.mode||"open"}):e,e}(r.prototype=Object.create(HTMLElement.prototype)).constructor=r,r.prototype.connectedCallback=ue,r.prototype.attributeChangedCallback=de,r.prototype.disconnectedCallback=pe,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),r.observedAttributes=n,n.forEach((function(t){Object.defineProperty(r.prototype,t,{get:function(){return this._vdom.props[t]},set:function(e){this._vdom?this.attributeChangedCallback(t,null,e):(this._props||(this._props={}),this._props[t]=e,this.connectedCallback());var n=typeof e;null!=e&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(t,e)}})})),customElements.define(e,r)}((t=>{const e=Vn(null),{EmotionProvider:n}=((t,e)=>{const[n,i]=On();return Ln((()=>{if(e&&e.current){const n=e=>{document.getElementsByTagName(t).length>0?e():requestAnimationFrame((()=>n(e)))};n((()=>{i(_n({container:e.current,key:t}))}))}}),[t,e]),{EmotionProvider:({children:t})=>n?oo(qr,{value:n,children:t}):oo(ro,{})}})("promoted-benefits-admin",e);return so(ro,{children:[oo("head",{ref:e}),oo(n,{children:oo(ls,{client:Bm,children:so(Ua,{basename:t.hashRouteBase,children:[oo(lo,{}),oo("body",{children:oo(jm,{...t})})]})})})]})}),"promoted-benefits-admin",["backend-url","access-token"],{shadow:!0});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/promoted-benefits-admin",
3
- "version": "0.3.896",
3
+ "version": "0.3.1360",
4
4
  "description": "Salpac FinOps Admin",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -27,8 +27,11 @@
27
27
  "@emotion/css": "^11.13.0",
28
28
  "@emotion/react": "^11.13.3",
29
29
  "@emotion/styled": "^11.13.0",
30
+ "@tanstack/react-query": "^5.56.2",
31
+ "framer-motion": "^11.5.4",
30
32
  "preact": "^10.23.2",
31
- "preact-custom-element": "^4.3.0"
33
+ "preact-custom-element": "^4.3.0",
34
+ "react-router-dom": "^6.26.2"
32
35
  },
33
36
  "devDependencies": {
34
37
  "@preact/preset-vite": "^2.9.0",
@@ -1,3 +0,0 @@
1
- import{m as e,w as t,x as r,g as a,s as i,_ as n,k as o,r as l,u as s,i as c,T as d,j as p}from"../index.js";function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},u.apply(null,arguments)}var m=/^((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)-.*))$/,f=e((function(e){return m.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),g=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:g},y=function(e,t,r){var a;if(t){var i=t.shouldForwardProp;a=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof a&&r&&(a=e.__emotion_forwardProp),a},v=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return l(t,r,a),s((function(){return c(t,r,a)})),null},b=function e(l,s){var c,p,m=l.__emotion_real===l,f=m&&l.__emotion_base||l;void 0!==s&&(c=s.label,p=s.target);var g=y(l,s,m),b=g||h(f),k=!b("as");return function(){var x=arguments,_=m&&void 0!==l.__emotion_styles?l.__emotion_styles.slice(0):[];if(void 0!==c&&_.push("label:"+c+";"),null==x[0]||void 0===x[0].raw)_.push.apply(_,x);else{_.push(x[0][0]);for(var w=x.length,P=1;P<w;P++)_.push(x[P],x[0][P])}var S=t((function(e,t,l){var s=k&&e.as||f,c="",u=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=r(d)}"string"==typeof e.className?c=a(t.registered,u,e.className):null!=e.className&&(c=e.className+" ");var x=i(_.concat(u),t.registered,m);c+=t.key+"-"+x.name,void 0!==p&&(c+=" "+p);var w=k&&void 0===g?h(s):b,P={};for(var S in e)k&&"as"===S||w(S)&&(P[S]=e[S]);return P.className=c,l&&(P.ref=l),n(o,null,n(v,{cache:t,serialized:x,isStringTag:"string"==typeof s}),n(s,P))}));return S.displayName=void 0!==c?c:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",S.defaultProps=l.defaultProps,S.__emotion_real=S,S.__emotion_base=f,S.__emotion_styles=_,S.__emotion_forwardProp=g,Object.defineProperty(S,"toString",{value:function(){return"."+p}}),S.withComponent=function(t,r){return e(t,u({},s,r,{shouldForwardProp:y(S,r,!0)})).apply(void 0,_)},S}}.bind();["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(e){b[e]=b(e)}));const k=b.div`
2
- ${{backgroundColor:"var(--fl-color-primary-400)"}}
3
- `,x=()=>p(k,{children:p("div",{css:{fontWeight:"700"},children:"Hello World"})});export{x as default};