| @@ -1,2 +1,172 @@ | ||
| 1 | 1 | /*! For license information please see entries.js.LICENSE.txt */ |
| 2 | -(()=>{var e,t,r={706:(e,t,r)=>{"use strict";r.d(t,{F:()=>ue,H:()=>L,a:()=>re,b:()=>de,c:()=>K,f:()=>ne,g:()=>G,h:()=>j,p:()=>f,r:()=>he});let s,n,o,a=!1,c=!1,i=!1,l=!1,d=null,u=!1;const p="undefined"!=typeof window?window:{},m=p.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),g=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),y=(e,t,r,s)=>{r&&r.map((([r,s,n])=>{const o=$(e,r),a=b(t,n),c=v(r);h.ael(o,s,a,c),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>h.rel(o,s,a,c)))}))},b=(e,t)=>r=>{try{256&e.$flags$?e.$lazyInstance$[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(e){ye(e)}},$=(e,t)=>8&t?p:e,v=e=>0!=(2&e),w=new WeakMap,C=(e,t)=>"sc-"+e.$tagName$,x={},k=e=>"object"==(e=typeof e)||"function"===e,j=(e,t,...r)=>{let s=null,n=null,o=null,a=!1,c=!1;const i=[],l=t=>{for(let r=0;r<t.length;r++)s=t[r],Array.isArray(s)?l(s):null!=s&&"boolean"!=typeof s&&((a="function"!=typeof e&&!k(s))&&(s=String(s)),a&&c?i[i.length-1].$text$+=s:i.push(a?S(null,s):s),c=a)};if(l(r),t){t.key&&(n=t.key),t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,E);const d=S(e,null);return d.$attrs$=t,i.length>0&&(d.$children$=i),d.$key$=n,d.$name$=o,d},S=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),L={},E={forEach:(e,t)=>e.map(P).forEach(t),map:(e,t)=>e.map(P).map(t).map(_)},P=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),_=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),j(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},I=(e,t,r,s,n,o)=>{if(r!==s){let a=ge(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,n=M(r),o=M(s);t.remove(...n.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!n.includes(e))))}else if("style"===t){for(const t in r)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)r&&s[t]===r[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if("key"===t);else if("ref"===t)s&&s(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=k(s);if((a||c&&null!==s)&&!n)try{if(e.tagName.includes("-"))e[t]=s;else{const n=null==s?"":s;"list"===t?a=!1:null!=r&&e[t]==n||(e[t]=n)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!a||4&o||n)&&!c&&(s=!0===s?"":s,e.setAttribute(t,s))}else t="-"===t[2]?t.slice(3):ge(p,c)?c.slice(2):c[2]+t.slice(3),r&&h.rel(e,t,r,!1),s&&h.ael(e,t,s,!1)}},R=/\s/,M=e=>e?e.split(R):[],N=(e,t,r,s)=>{const n=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||x,a=t.$attrs$||x;for(s in o)s in a||I(n,s,o[s],void 0,r,t.$flags$);for(s in a)I(n,s,o[s],a[s],r,t.$flags$)},O=(e,t,r,c)=>{const d=t.$children$[r];let u,p,h,f=0;if(a||(i=!0,"slot"===d.$tag$&&(s&&c.classList.add(s+"-s"),d.$flags$|=d.$children$?2:1)),null!==d.$text$)u=d.$elm$=m.createTextNode(d.$text$);else if(1&d.$flags$)u=d.$elm$=m.createTextNode("");else{if(l||(l="svg"===d.$tag$),u=d.$elm$=m.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&d.$flags$?"slot-fb":d.$tag$),l&&"foreignObject"===d.$tag$&&(l=!1),N(null,d,l),null!=s&&u["s-si"]!==s&&u.classList.add(u["s-si"]=s),d.$children$)for(f=0;f<d.$children$.length;++f)p=O(e,d,f,u),p&&u.appendChild(p);"svg"===d.$tag$?l=!1:"foreignObject"===u.tagName&&(l=!0)}return u["s-hn"]=o,3&d.$flags$&&(u["s-sr"]=!0,u["s-cr"]=n,u["s-sn"]=d.$name$||"",h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===d.$tag$&&e.$elm$&&T(e.$elm$,!1)),u},T=(e,t)=>{h.$flags$|=1;const r=e.childNodes;for(let e=r.length-1;e>=0;e--){const s=r[e];s["s-hn"]!==o&&s["s-ol"]&&(V(s).insertBefore(s,F(s)),s["s-ol"].remove(),s["s-ol"]=void 0,i=!0),t&&T(s,t)}h.$flags$&=-2},A=(e,t,r,s,n,a)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===o&&(i=i.shadowRoot);n<=a;++n)s[n]&&(c=O(null,r,n,e),c&&(s[n].$elm$=c,i.insertBefore(c,F(t))))},q=(e,t,r,s,n)=>{for(;t<=r;++t)(s=e[t])&&(n=s.$elm$,W(s),c=!0,n["s-ol"]?n["s-ol"].remove():T(n,!0),n.remove())},z=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),F=e=>e&&e["s-ol"]||e,V=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,H=(e,t)=>{const r=t.$elm$=e.$elm$,s=e.$children$,n=t.$children$,o=t.$tag$,a=t.$text$;let c;null===a?(l="svg"===o||"foreignObject"!==o&&l,"slot"===o||N(e,t,l),null!==s&&null!==n?((e,t,r,s)=>{let n,o,a=0,c=0,i=0,l=0,d=t.length-1,u=t[0],p=t[d],m=s.length-1,h=s[0],f=s[m];for(;a<=d&&c<=m;)if(null==u)u=t[++a];else if(null==p)p=t[--d];else if(null==h)h=s[++c];else if(null==f)f=s[--m];else if(z(u,h))H(u,h),u=t[++a],h=s[++c];else if(z(p,f))H(p,f),p=t[--d],f=s[--m];else if(z(u,f))"slot"!==u.$tag$&&"slot"!==f.$tag$||T(u.$elm$.parentNode,!1),H(u,f),e.insertBefore(u.$elm$,p.$elm$.nextSibling),u=t[++a],f=s[--m];else if(z(p,h))"slot"!==u.$tag$&&"slot"!==f.$tag$||T(p.$elm$.parentNode,!1),H(p,h),e.insertBefore(p.$elm$,u.$elm$),p=t[--d],h=s[++c];else{for(i=-1,l=a;l<=d;++l)if(t[l]&&null!==t[l].$key$&&t[l].$key$===h.$key$){i=l;break}i>=0?(o=t[i],o.$tag$!==h.$tag$?n=O(t&&t[c],r,i,e):(H(o,h),t[i]=void 0,n=o.$elm$),h=s[++c]):(n=O(t&&t[c],r,c,e),h=s[++c]),n&&V(u.$elm$).insertBefore(n,F(u.$elm$))}a>d?A(e,null==s[m+1]?null:s[m+1].$elm$,r,s,c,m):c>m&&q(t,a,d)})(r,s,t,n):null!==n?(null!==e.$text$&&(r.textContent=""),A(r,null,t,n,0,n.length-1)):null!==s&&q(s,0,s.length-1),l&&"svg"===o&&(l=!1)):(c=r["s-cr"])?c.parentNode.textContent=a:e.$text$!==a&&(r.data=a)},U=e=>{const t=e.childNodes;let r,s,n,o,a,c;for(s=0,n=t.length;s<n;s++)if(r=t[s],1===r.nodeType){if(r["s-sr"])for(a=r["s-sn"],r.hidden=!1,o=0;o<n;o++)if(c=t[o].nodeType,t[o]["s-hn"]!==r["s-hn"]||""!==a){if(1===c&&a===t[o].getAttribute("slot")){r.hidden=!0;break}}else if(1===c||3===c&&""!==t[o].textContent.trim()){r.hidden=!0;break}U(r)}},D=[],B=e=>{let t,r,s,n,o,a,i=0;const l=e.childNodes,d=l.length;for(;i<d;i++){if(t=l[i],t["s-sr"]&&(r=t["s-cr"])&&r.parentNode)for(s=r.parentNode.childNodes,n=t["s-sn"],a=s.length-1;a>=0;a--)r=s[a],r["s-cn"]||r["s-nr"]||r["s-hn"]===t["s-hn"]||(Z(r,n)?(o=D.find((e=>e.$nodeToRelocate$===r)),c=!0,r["s-sn"]=r["s-sn"]||n,o?o.$slotRefNode$=t:D.push({$slotRefNode$:t,$nodeToRelocate$:r}),r["s-sr"]&&D.map((e=>{Z(e.$nodeToRelocate$,r["s-sn"])&&(o=D.find((e=>e.$nodeToRelocate$===r)),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))}))):D.some((e=>e.$nodeToRelocate$===r))||D.push({$nodeToRelocate$:r}));1===t.nodeType&&B(t)}},Z=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,W=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(W)},G=e=>me(e).$hostElement$,K=(e,t,r)=>{const s=G(e);return{emit:e=>J(s,t,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:e})}},J=(e,t,r)=>{const s=h.ce(t,r);return e.dispatchEvent(s),s},X=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},Y=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return X(e,e.$ancestorComponent$),Le((()=>Q(e,t)));e.$flags$|=512},Q=(e,t)=>{const r=(e.$cmpMeta$.$tagName$,()=>{}),s=e.$lazyInstance$;let n;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>ae(s,e,t))),e.$queuedListeners$=null),n=ae(s,"componentWillLoad")),r(),ce(n,(()=>ee(e,s,t)))},ee=async(e,t,r)=>{const s=e.$hostElement$,n=(e.$cmpMeta$.$tagName$,()=>{}),o=s["s-rc"];r&&(e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,n=(t.$tagName$,()=>{}),o=((e,t,r,s)=>{let n=C(t);const o=ve.get(n);if(e=11===e.nodeType?e:m,o)if("string"==typeof o){e=e.head||e;let t,r=w.get(e);r||w.set(e,r=new Set),r.has(n)||(t=m.createElement("style"),t.innerHTML=o,e.insertBefore(t,e.querySelector("link")),r&&r.add(n))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return n})(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);10&s&&(r["s-sc"]=o,r.classList.add(o+"-h")),n()})(e);const a=(e.$cmpMeta$.$tagName$,()=>{});te(e,t),o&&(o.map((e=>e())),s["s-rc"]=void 0),a(),n();{const t=s["s-p"],r=()=>se(e);0===t.length?r():(Promise.all(t).then(r),e.$flags$|=4,t.length=0)}},te=(e,t,r)=>{try{d=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t)=>{const r=e.$hostElement$,l=e.$cmpMeta$,d=e.$vnode$||S(null,null),u=(p=t)&&p.$tag$===L?t:j(null,null,t);var p;if(o=r.tagName,l.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},l.$attrsToReflect$.map((([e,t])=>u.$attrs$[t]=r[e]))),u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=d.$elm$=r.shadowRoot||r,s=r["s-sc"],n=r["s-cr"],a=0!=(1&l.$flags$),c=!1,H(d,u),h.$flags$|=1,i){let e,t,r,s,n,o;B(u.$elm$);let a=0;for(;a<D.length;a++)e=D[a],t=e.$nodeToRelocate$,t["s-ol"]||(r=m.createTextNode(""),r["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=r,t));for(a=0;a<D.length;a++)if(e=D[a],t=e.$nodeToRelocate$,e.$slotRefNode$){for(s=e.$slotRefNode$.parentNode,n=e.$slotRefNode$.nextSibling,r=t["s-ol"];r=r.previousSibling;)if(o=r["s-nr"],o&&o["s-sn"]===t["s-sn"]&&s===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){n=o;break}(!n&&s!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),s.insertBefore(t,n))}else 1===t.nodeType&&(t.hidden=!0)}c&&U(u.$elm$),h.$flags$&=-2,D.length=0})(e,t)}catch(t){ye(t,e.$hostElement$)}return d=null,null},re=()=>d,se=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,r=e.$lazyInstance$,s=e.$ancestorComponent$;64&e.$flags$||(e.$flags$|=64,ie(t),ae(r,"componentDidLoad"),e.$onReadyResolve$(t),s||oe()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Se((()=>Y(e,!1))),e.$flags$&=-517},ne=e=>{{const t=me(e),r=t.$hostElement$.isConnected;return r&&2==(18&t.$flags$)&&Y(t,!1),r}},oe=e=>{ie(m.documentElement),Se((()=>J(p,"appload",{detail:{namespace:"surecart"}})))},ae=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(e){ye(e)}},ce=(e,t)=>e&&e.then?e.then(t):t(),ie=e=>e.classList.add("hydrated"),le=(e,t,r)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const s=Object.entries(t.$members$),n=e.prototype;if(s.map((([e,[s]])=>{31&s||2&r&&32&s?Object.defineProperty(n,e,{get(){return t=e,me(this).$instanceValues$.get(t);var t},set(r){((e,t,r,s)=>{const n=me(e),o=n.$hostElement$,a=n.$instanceValues$.get(t),c=n.$flags$,i=n.$lazyInstance$;var l,d;l=r,d=s.$members$[t][0],r=null==l||k(l)?l:4&d?"false"!==l&&(""===l||!!l):2&d?parseFloat(l):1&d?String(l):l;const u=Number.isNaN(a)&&Number.isNaN(r);if((!(8&c)||void 0===a)&&r!==a&&!u&&(n.$instanceValues$.set(t,r),i)){if(s.$watchers$&&128&c){const e=s.$watchers$[t];e&&e.map((e=>{try{i[e](r,a,t)}catch(e){ye(e,o)}}))}2==(18&c)&&Y(n,!1)}})(this,e,r,t)},configurable:!0,enumerable:!0}):1&r&&64&s&&Object.defineProperty(n,e,{value(...t){const r=me(this);return r.$onInstancePromise$.then((()=>r.$lazyInstance$[e](...t)))}})})),1&r){const r=new Map;n.attributeChangedCallback=function(e,t,s){h.jmp((()=>{const t=r.get(e);if(this.hasOwnProperty(t))s=this[t],delete this[t];else if(n.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==s)return;this[t]=(null!==s||"boolean"!=typeof this[t])&&s}))},e.observedAttributes=s.filter((([e,t])=>15&t[0])).map((([e,s])=>{const n=s[1]||e;return r.set(n,e),512&s[0]&&t.$attrsToReflect$.push([e,n]),n}))}}return e},de=(e,t={})=>{const r=[],s=t.exclude||[],n=p.customElements,o=m.head,a=o.querySelector("meta[charset]"),c=m.createElement("style"),i=[];let l,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href,e.map((e=>{e[1].map((t=>{const o={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};o.$members$=t[2],o.$listeners$=t[3],o.$attrsToReflect$=[],o.$watchers$={};const a=o.$tagName$,c=class extends HTMLElement{constructor(e){super(e),fe(e=this,o),1&o.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){l&&(clearTimeout(l),l=null),d?i.push(this):h.jmp((()=>(e=>{if(0==(1&h.$flags$)){const t=me(e),r=t.$cmpMeta$,s=(r.$tagName$,()=>{});if(1&t.$flags$)y(e,t,r.$listeners$);else{t.$flags$|=1,12&r.$flags$&&(e=>{const t=e["s-cr"]=m.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){X(t,t.$ancestorComponent$=r);break}}r.$members$&&Object.entries(r.$members$).map((([t,[r]])=>{if(31&r&&e.hasOwnProperty(t)){const r=e[t];delete e[t],e[t]=r}})),(async(e,t,r,s,n)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(n=$e(r)).then){const e=()=>{};n=await n,e()}n.isProxied||(r.$watchers$=n.watchers,le(n,r,2),n.isProxied=!0);const e=(r.$tagName$,()=>{});t.$flags$|=8;try{new n(t)}catch(e){ye(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(n.style){let e=n.style;const t=C(r);if(!ve.has(t)){const s=(r.$tagName$,()=>{});((e,t,r)=>{let s=ve.get(e);g&&r?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,ve.set(e,s)})(t,e,!!(1&r.$flags$)),s()}}}const o=t.$ancestorComponent$,a=()=>Y(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(0,t,r)}s()}})(this)))}disconnectedCallback(){h.jmp((()=>(e=>{if(0==(1&h.$flags$)){const t=me(e),r=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),ae(r,"disconnectedCallback")}})(this)))}componentOnReady(){return me(this).$onReadyPromise$}};o.$lazyBundleId$=e[0],s.includes(a)||n.get(a)||(r.push(a),n.define(a,le(c,o,1)))}))})),c.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,a?a.nextSibling:o.firstChild),d=!1,i.length?i.map((e=>e.connectedCallback())):h.jmp((()=>l=setTimeout(oe,30)))},ue=(e,t)=>t,pe=new WeakMap,me=e=>pe.get(e),he=(e,t)=>pe.set(t.$lazyInstance$=e,t),fe=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onInstancePromise$=new Promise((e=>r.$onInstanceResolve$=e)),r.$onReadyPromise$=new Promise((e=>r.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],y(e,r,t.$listeners$),pe.set(e,r)},ge=(e,t)=>t in e,ye=(e,t)=>(0,console.error)(e,t),be=new Map,$e=(e,t,s)=>{const n=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=be.get(o);return a?a[n]:r(6617)(`./${o}.entry.js`).then((e=>(be.set(o,e),e[n])),ye)},ve=new Map,we=[],Ce=[],xe=(e,t)=>r=>{e.push(r),u||(u=!0,t&&4&h.$flags$?Se(je):h.raf(je))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ye(e)}e.length=0},je=()=>{ke(we),ke(Ce),(u=we.length>0)&&h.raf(je)},Se=e=>f().then(e),Le=xe(Ce,!0)},1542:(e,t,r)=>{"use strict";r.d(t,{g:()=>o,r:()=>a});let s=[],n=[];function o(e){return s.filter((t=>t.name===e))[0]}function a(e,t){!function(e){s=s.filter((t=>t.name!==e))}(e),s.push({name:e,resolver:t.resolver,mutator:t.mutator}),n.map((t=>{t.library===e&&t.redraw()}))}window.ceRegisterIconLibrary=a},6617:(e,t,r)=>{var s={"./sc-address_3.entry.js":[9926,536],"./sc-alert_2.entry.js":[3967,536],"./sc-badge-notice.entry.js":[7892,536],"./sc-block-ui_2.entry.js":[2104,536],"./sc-breadcrumb.entry.js":[3013,536],"./sc-breadcrumbs.entry.js":[7014,536],"./sc-button-group.entry.js":[8678,536],"./sc-button.entry.js":[2820,536],"./sc-cancel-dialog_2.entry.js":[8637,536],"./sc-cancel-discount_4.entry.js":[1993,536],"./sc-card_2.entry.js":[8175,536],"./sc-cart-form-submit.entry.js":[9033,536],"./sc-cart-form.entry.js":[5152,536],"./sc-cart-header.entry.js":[3407,536],"./sc-cart-icon_4.entry.js":[4624,536],"./sc-cart-loader.entry.js":[4677,536],"./sc-cart-submit.entry.js":[2741,536],"./sc-cart.entry.js":[2644,536],"./sc-cc-logo_2.entry.js":[1229,536],"./sc-charges-list.entry.js":[7467,536],"./sc-checkbox.entry.js":[9567,536],"./sc-checkout-form-errors.entry.js":[7939,536],"./sc-checkout-mollie-payment.entry.js":[3153,536],"./sc-checkout-unsaved-changes-warning_7.entry.js":[3881,536],"./sc-checkout.entry.js":[3106,536],"./sc-choice.entry.js":[6742,536],"./sc-choices.entry.js":[9369,536],"./sc-column_2.entry.js":[6811,536],"./sc-compact-address_6.entry.js":[1011,536],"./sc-conditional-form.entry.js":[6882,536],"./sc-consumer.entry.js":[8465,536],"./sc-coupon-form.entry.js":[5591,536],"./sc-custom-order-price-input.entry.js":[6022,536],"./sc-customer-details.entry.js":[2912,536],"./sc-customer-edit.entry.js":[5556,536],"./sc-customer-email.entry.js":[5649,536],"./sc-customer-firstname.entry.js":[4389,536],"./sc-customer-lastname.entry.js":[1827,536],"./sc-customer-name.entry.js":[8522,536],"./sc-dashboard-customer-details.entry.js":[7862,536],"./sc-dashboard-downloads-list.entry.js":[5581,536],"./sc-dialog.entry.js":[2607,536],"./sc-divider.entry.js":[8441,536],"./sc-donation-choices.entry.js":[8496,536],"./sc-downloads-list.entry.js":[7145,536],"./sc-dropdown_4.entry.js":[7398,536],"./sc-empty_3.entry.js":[7389,536],"./sc-express-payment.entry.js":[2740,536],"./sc-flex.entry.js":[9793,536],"./sc-form-control_2.entry.js":[267,536],"./sc-form-row.entry.js":[4933,536],"./sc-form.entry.js":[1897,536],"./sc-format-bytes.entry.js":[139,536],"./sc-format-date.entry.js":[8210,536],"./sc-format-interval.entry.js":[5277,536],"./sc-format-number.entry.js":[8329,536],"./sc-heading_2.entry.js":[9935,536],"./sc-invoices-list.entry.js":[1691,536],"./sc-licenses-list.entry.js":[9131,536],"./sc-line-item-bump.entry.js":[7553,536],"./sc-line-item-total.entry.js":[4384,536],"./sc-line-item.entry.js":[3642,536],"./sc-line-items-provider.entry.js":[1379,536],"./sc-line-items.entry.js":[905,536],"./sc-login-form.entry.js":[3390,536],"./sc-menu-divider.entry.js":[3738,536],"./sc-mollie-add-method.entry.js":[410,536],"./sc-order-confirmation-customer.entry.js":[2803,536],"./sc-order-confirmation-details.entry.js":[74,536],"./sc-order-confirmation-line-items_2.entry.js":[5508,536],"./sc-order-confirmation.entry.js":[7059,536],"./sc-order-coupon-form.entry.js":[7183,536],"./sc-order-detail.entry.js":[7089,536],"./sc-order-manual-instructions.entry.js":[6341,536],"./sc-order-password.entry.js":[8176,536],"./sc-order-status-badge.entry.js":[8062,536],"./sc-order-submit.entry.js":[6102,536],"./sc-order-summary.entry.js":[4953,536],"./sc-order.entry.js":[3215,536],"./sc-orders-list.entry.js":[7649,536],"./sc-pagination.entry.js":[8769,536],"./sc-password-nag.entry.js":[331,536],"./sc-payment-method-choice_2.entry.js":[4937,536],"./sc-payment-methods-list.entry.js":[336,536],"./sc-payment.entry.js":[7889,536],"./sc-paypal-add-method.entry.js":[49,536],"./sc-paypal-buttons.entry.js":[773,536],"./sc-premium-tag.entry.js":[2514,536],"./sc-price-choice.entry.js":[1226,536],"./sc-price-choices.entry.js":[3254,536],"./sc-price-input.entry.js":[5653,536],"./sc-price-range.entry.js":[7773,536],"./sc-product-line-item_2.entry.js":[5934,536],"./sc-provider.entry.js":[4194,536],"./sc-purchase-downloads-list_2.entry.js":[1810,536],"./sc-radio-group.entry.js":[3128,536],"./sc-radio.entry.js":[1519,536],"./sc-secure-notice.entry.js":[623,536],"./sc-skeleton.entry.js":[3770,536],"./sc-stripe-add-method.entry.js":[7923,536],"./sc-stripe-element.entry.js":[9545,536],"./sc-stripe-payment-element.entry.js":[3691,536],"./sc-stripe-payment-request.entry.js":[1620,536],"./sc-subscription-ad-hoc-confirm.entry.js":[3169,536],"./sc-subscription-details_2.entry.js":[6737,536],"./sc-subscription-payment-method.entry.js":[5108,536],"./sc-subscription-payment.entry.js":[1422,536],"./sc-subscription-switch.entry.js":[4121,536],"./sc-subscription.entry.js":[8365,536],"./sc-subscriptions-list.entry.js":[8695,536],"./sc-switch.entry.js":[4119,536],"./sc-tab-group.entry.js":[6154,536],"./sc-tab-panel.entry.js":[5205,536],"./sc-tab.entry.js":[4918,536],"./sc-table-head.entry.js":[2894,536],"./sc-table_3.entry.js":[2129,536],"./sc-tag.entry.js":[5583,536],"./sc-text.entry.js":[9395,536],"./sc-toggle.entry.js":[3455,536],"./sc-toggles.entry.js":[8823,536],"./sc-tooltip.entry.js":[2733,536],"./sc-total.entry.js":[1073,536],"./sc-upcoming-invoice.entry.js":[3287,536],"./sc-upgrade-required.entry.js":[3332,536],"./sc-wordpress-password-edit.entry.js":[4604,536],"./sc-wordpress-user-edit.entry.js":[975,536],"./sc-wordpress-user.entry.js":[8321,536]};function n(e){if(!r.o(s,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],n=t[0];return r.e(t[1]).then((()=>r(n)))}n.keys=()=>Object.keys(s),n.id=6617,e.exports=n},3854:(e,t,r)=>{"use strict";r.d(t,{Z:()=>vt});var s=r(9196),n=r.n(s),o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=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{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),a=Math.abs,c=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function d(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function m(e,t,r){return e.slice(t,r)}function h(e){return e.length}function f(e){return e.length}function g(e,t){return t.push(e),e}var y=1,b=1,$=0,v=0,w=0,C="";function x(e,t,r,s,n,o,a){return{value:e,root:t,parent:r,type:s,props:n,children:o,line:y,column:b,length:a,return:""}}function k(e,t){return i(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return w=v>0?p(C,--v):0,b--,10===w&&(b=1,y--),w}function S(){return w=v<$?p(C,v++):0,b++,10===w&&(b=1,y++),w}function L(){return p(C,v)}function E(){return v}function P(e,t){return m(C,e,t)}function _(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 I(e){return y=b=1,$=h(C=e),v=0,[]}function R(e){return C="",e}function M(e){return l(P(v-1,T(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(w=L())&&w<33;)S();return _(e)>2||_(w)>3?"":" "}function O(e,t){for(;--t&&S()&&!(w<48||w>102||w>57&&w<65||w>70&&w<97););return P(e,E()+(t<6&&32==L()&&32==S()))}function T(e){for(;S();)switch(w){case e:return v;case 34:case 39:34!==e&&39!==e&&T(w);break;case 40:41===e&&T(e);break;case 92:S()}return v}function A(e,t){for(;S()&&e+w!==57&&(e+w!==84||47!==L()););return"/*"+P(t,v-1)+"*"+c(47===e?e:S())}function q(e){for(;!_(L());)S();return P(e,v)}var z="-ms-",F="-moz-",V="-webkit-",H="comm",U="rule",D="decl",B="@keyframes";function Z(e,t){for(var r="",s=f(e),n=0;n<s;n++)r+=t(e[n],n,e,t)||"";return r}function W(e,t,r,s){switch(e.type){case"@import":case D:return e.return=e.return||e.value;case H:return"";case B:return e.return=e.value+"{"+Z(e.children,s)+"}";case U:e.value=e.props.join(",")}return h(r=Z(e.children,s))?e.return=e.value+"{"+r+"}":""}function G(e){return R(K("",null,null,null,[""],e=I(e),0,[0],e))}function K(e,t,r,s,n,o,a,i,l){for(var m=0,f=0,y=a,b=0,$=0,v=0,w=1,C=1,x=1,k=0,P="",_=n,I=o,R=s,T=P;C;)switch(v=k,k=S()){case 40:if(108!=v&&58==p(T,y-1)){-1!=u(T+=d(M(k),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:T+=M(k);break;case 9:case 10:case 13:case 32:T+=N(v);break;case 92:T+=O(E()-1,7);continue;case 47:switch(L()){case 42:case 47:g(X(A(S(),E()),t,r),l);break;default:T+="/"}break;case 123*w:i[m++]=h(T)*x;case 125*w:case 59:case 0:switch(k){case 0:case 125:C=0;case 59+f:-1==x&&(T=d(T,/\f/g,"")),$>0&&h(T)-y&&g($>32?Y(T+";",s,r,y-1):Y(d(T," ","")+";",s,r,y-2),l);break;case 59:T+=";";default:if(g(R=J(T,t,r,m,f,n,i,P,_=[],I=[],y),o),123===k)if(0===f)K(T,t,R,R,_,o,y,i,I);else switch(99===b&&110===p(T,3)?100:b){case 100:case 109:case 115:K(e,R,R,s&&g(J(e,R,R,0,0,n,i,P,n,_=[],y),I),n,I,y,i,s?_:I);break;default:K(T,R,R,R,[""],I,0,i,I)}}m=f=$=0,w=x=1,P=T="",y=a;break;case 58:y=1+h(T),$=v;default:if(w<1)if(123==k)--w;else if(125==k&&0==w++&&125==j())continue;switch(T+=c(k),k*w){case 38:x=f>0?1:(T+="\f",-1);break;case 44:i[m++]=(h(T)-1)*x,x=1;break;case 64:45===L()&&(T+=M(S())),b=L(),f=y=h(P=T+=q(E())),k++;break;case 45:45===v&&2==h(T)&&(w=0)}}return o}function J(e,t,r,s,n,o,c,i,u,p,h){for(var g=n-1,y=0===n?o:[""],b=f(y),$=0,v=0,w=0;$<s;++$)for(var C=0,k=m(e,g+1,g=a(v=c[$])),j=e;C<b;++C)(j=l(v>0?y[C]+" "+k:d(k,/&\f/g,y[C])))&&(u[w++]=j);return x(e,t,r,0===n?U:i,u,p,h)}function X(e,t,r){return x(e,t,r,H,c(w),m(e,2,-2),0)}function Y(e,t,r,s){return x(e,t,r,D,m(e,0,s),m(e,s+1,-1),s)}var Q=function(e,t,r){for(var s=0,n=0;s=n,n=L(),38===s&&12===n&&(t[r]=1),!_(n);)S();return P(e,v)},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(r))&&!s){ee.set(e,!0);for(var n=[],o=function(e,t){return R(function(e,t){var r=-1,s=44;do{switch(_(s)){case 0:38===s&&12===L()&&(t[r]=1),e[r]+=Q(v-1,t,r);break;case 2:e[r]+=M(s);break;case 4:if(44===s){e[++r]=58===L()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=c(s)}}while(s=S());return e}(I(e),t))}(t,n),a=r.props,i=0,l=0;i<o.length;i++)for(var d=0;d<a.length;d++,l++)e.props[l]=n[i]?o[i].replace(/&\f/g,a[d]):a[d]+" "+o[i]}}},re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function se(e,t){switch(function(e,t){return 45^p(e,0)?(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3):0}(e,t)){case 5103:return V+"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 V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+F+e+z+e+e;case 6828:case 4268:return V+e+z+e+e;case 6165:return V+e+z+"flex-"+e+e;case 5187:return V+e+d(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return V+e+z+"flex-item-"+d(e,/flex-|-self/,"")+e;case 4675:return V+e+z+"flex-line-pack"+d(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+z+d(e,"shrink","negative")+e;case 5292:return V+e+z+d(e,"basis","preferred-size")+e;case 6060:return V+"box-"+d(e,"-grow","")+V+e+z+d(e,"grow","positive")+e;case 4554:return V+d(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return d(d(d(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return d(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return d(d(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return d(e,/(.+)-inline(.+)/,V+"$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(h(e)-1-t>6)switch(p(e,t+1)){case 109:if(45!==p(e,t+4))break;case 102:return d(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+F+(108==p(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?se(d(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==p(e,t+1))break;case 6444:switch(p(e,h(e)-3-(~u(e,"!important")&&10))){case 107:return d(e,":",":"+V)+e;case 101:return d(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===p(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(p(e,t+11)){case 114:return V+e+z+d(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+z+d(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+z+d(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+z+e+e}return e}var ne=[function(e,t,r,s){if(e.length>-1&&!e.return)switch(e.type){case D:e.return=se(e.value,e.length);break;case B:return Z([k(e,{value:d(e.value,"@","@"+V)})],s);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Z([k(e,{props:[d(t,/:(read-\w+)/,":"+F+"$1")]})],s);case"::placeholder":return Z([k(e,{props:[d(t,/:(plac\w+)/,":"+V+"input-$1")]}),k(e,{props:[d(t,/:(plac\w+)/,":"+F+"$1")]}),k(e,{props:[d(t,/:(plac\w+)/,z+"input-$1")]})],s)}return""}))}}];const oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var s,n,a=e.stylisPlugins||ne,c={},i=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)c[t[r]]=!0;i.push(e)}));var l,d,u,p,m=[W,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(d=[te,re].concat(a,m),u=f(d),function(e,t,r,s){for(var n="",o=0;o<u;o++)n+=d[o](e,t,r,s)||"";return n});n=function(e,t,r,s){l=r,Z(G(e?e+"{"+t.styles+"}":t.styles),h),s&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new o({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:n};return g.sheet.hydrate(i),g};var ae=function(e,t,r){var s=e.key+"-"+t.name;!1===r&&void 0===e.registered[s]&&(e.registered[s]=t.styles)},ce=function(e,t,r){ae(e,t,r);var s=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+s:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}};const ie=function(e){for(var t,r=0,s=0,n=e.length;n>=4;++s,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(s+2))<<16;case 2:r^=(255&e.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(s)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},le={animationIterationCount: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,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};var de=/[A-Z]|^ms/g,ue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pe=function(e){return 45===e.charCodeAt(1)},me=function(e){return null!=e&&"boolean"!=typeof e},he=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=pe(r=e)?r:r.replace(de,"-$&").toLowerCase()),t[e];var r}}(),fe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ue,(function(e,t,r){return ye={name:t,styles:r,next:ye},t}))}return 1===le[e]||pe(e)||"number"!=typeof t||0===t?t:t+"px"};function ge(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return ye={name:r.name,styles:r.styles,next:ye},r.name;if(void 0!==r.styles){var s=r.next;if(void 0!==s)for(;void 0!==s;)ye={name:s.name,styles:s.styles,next:ye},s=s.next;return r.styles+";"}return function(e,t,r){var s="";if(Array.isArray(r))for(var n=0;n<r.length;n++)s+=ge(e,t,r[n])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?s+=o+"{"+t[a]+"}":me(a)&&(s+=he(o)+":"+fe(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=ge(e,t,a);switch(o){case"animation":case"animationName":s+=he(o)+":"+c+";";break;default:s+=o+"{"+c+"}"}}else for(var i=0;i<a.length;i++)me(a[i])&&(s+=he(o)+":"+fe(o,a[i])+";")}return s}(e,t,r);case"function":if(void 0!==e){var n=ye,o=r(e);return ye=n,ge(e,t,o)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var ye,be=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$e=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var s=!0,n="";ye=void 0;var o=e[0];null==o||void 0===o.raw?(s=!1,n+=ge(r,t,o)):n+=o[0];for(var a=1;a<e.length;a++)n+=ge(r,t,e[a]),s&&(n+=o[a]);be.lastIndex=0;for(var c,i="";null!==(c=be.exec(n));)i+="-"+c[1];return{name:ie(n)+i,styles:n,next:ye}},ve=!!s.useInsertionEffect&&s.useInsertionEffect,we=ve||function(e){return e()},Ce=ve||s.useLayoutEffect,xe={}.hasOwnProperty,ke=(0,s.createContext)("undefined"!=typeof HTMLElement?oe({key:"css"}):null);ke.Provider;var je=function(e){return(0,s.forwardRef)((function(t,r){var n=(0,s.useContext)(ke);return e(t,n,r)}))},Se=(0,s.createContext)({}),Le="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ee=function(e){var t=e.cache,r=e.serialized,s=e.isStringTag;return ae(t,r,s),we((function(){return ce(t,r,s)})),null},Pe=je((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[Le],a=[n],c="";"string"==typeof e.className?c=function(e,t,r){var s="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):s+=r+" "})),s}(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var i=$e(a,void 0,(0,s.useContext)(Se));c+=t.key+"-"+i.name;var l={};for(var d in e)xe.call(e,d)&&"css"!==d&&d!==Le&&(l[d]=e[d]);return l.ref=r,l.className=c,(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ee,{cache:t,serialized:i,isStringTag:"string"==typeof o}),(0,s.createElement)(o,l))}));r(8679);var _e=function(e,t){var r=arguments;if(null==t||!xe.call(t,"css"))return s.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=Pe,o[1]=function(e,t){var r={};for(var s in t)xe.call(t,s)&&(r[s]=t[s]);return r[Le]=e,r}(e,t);for(var a=2;a<n;a++)o[a]=r[a];return s.createElement.apply(null,o)},Ie=je((function(e,t){var r=e.styles,n=$e([r],void 0,(0,s.useContext)(Se)),o=(0,s.useRef)();return Ce((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(s=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),o.current=[r,s],function(){r.flush()}}),[t]),Ce((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&ce(t,n.next,!0),r.tags.length){var s=r.tags[r.tags.length-1].nextElementSibling;r.before=s,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function Re(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $e(t)}const Me=e=>e.replace(/([A-Z])/g,(e=>`-${e[0].toLowerCase()}`)),Ne=e=>{if("undefined"==typeof document)return!0;{const t="on"+e;let r=t in document;if(!r){const e=document.createElement("div");e.setAttribute(t,"return;"),r="function"==typeof e[t]}return r}},Oe=(e,t,r)=>{const s=e.__events||(e.__events={}),n=s[t];n&&e.removeEventListener(t,n),e.addEventListener(t,s[t]=function(e){r&&r.call(this,e)})},Te=e=>{const t=new Map;return e.forEach((e=>t.set(e,e))),t},Ae=(...e)=>t=>{e.forEach((e=>{((e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})(e,t)}))};const qe=(e,t,r,o)=>{void 0!==o&&o();const a=e.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),c=class extends n().Component{constructor(e){super(e),this.setComponentElRef=e=>{this.componentEl=e}}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(e){((e,t,r={})=>{if(e instanceof Element){const s=((e,t,r)=>{const s=t.className||t.class,n=r.className||r.class,o=Te(e),a=Te(s?s.split(" "):[]),c=Te(n?n.split(" "):[]),i=[];return o.forEach((e=>{a.has(e)?(i.push(e),a.delete(e)):c.has(e)||i.push(e)})),a.forEach((e=>i.push(e))),i.join(" ")})(e.classList,t,r);""!==s&&(e.className=s),Object.keys(t).forEach((r=>{if("children"!==r&&"style"!==r&&"ref"!==r&&"class"!==r&&"className"!==r&&"forwardedRef"!==r)if(0===r.indexOf("on")&&r[2]===r[2].toUpperCase()){const s=r.substring(2),n=s[0].toLowerCase()+s.substring(1);Ne(n)||Oe(e,n,t[r])}else e[r]=t[r],"string"==typeof t[r]&&e.setAttribute(Me(r),t[r])}))}})(this.componentEl,this.props,e)}render(){const t=this.props,{children:n,forwardedRef:o,style:a,className:c,ref:i}=t,l=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r}(t,["children","forwardedRef","style","className","ref"]);let d=Object.keys(l).reduce(((e,t)=>{const r=l[t];if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){const s=t.substring(2).toLowerCase();"undefined"!=typeof document&&Ne(s)&&(e[t]=r)}else{const s=typeof r;"string"!==s&&"boolean"!==s&&"number"!==s||(e[Me(t)]=r)}return e}),{});r&&(d=r(this.props,d));const u=Object.assign(Object.assign({},d),{ref:Ae(o,this.setComponentElRef),style:a});return(0,s.createElement)(e,u,n)}static get displayName(){return a}};return t&&(c.contextType=t),((e,t)=>{const r=(t,r)=>n().createElement(e,Object.assign({},t,{forwardedRef:r}));return r.displayName=t,n().forwardRef(r)})(c,a)};var ze=r(706),Fe=r(1542);const Ve=(e="")=>{var t;if(e||(null===(t=null===window||void 0===window?void 0:window.scIcons)||void 0===t?void 0:t.path))return(0,Fe.r)("default",{resolver:function(t){var r;const s=e||(null===(r=null===window||void 0===window?void 0:window.scIcons)||void 0===r?void 0:r.path);return`${null==s?void 0:s.replace(/\/$/,"")}/${t}.svg`},mutator:function(e){return e.setAttribute("fill","none")}})};window.registerSureCartIconPath=Ve,window.registerSureCartIconLibrary=Fe.r,Ve(),function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}(),"undefined"==typeof window?Promise.resolve():(0,ze.p)().then((()=>(0,ze.b)(JSON.parse('[["sc-checkout",[[4,"sc-checkout",{"prices":[16],"mode":[1],"formId":[2,"form-id"],"modified":[1],"currencyCode":[1,"currency-code"],"persistSession":[4,"persist-session"],"successUrl":[1,"success-url"],"customer":[1040],"alignment":[1],"taxProtocol":[16],"loggedIn":[1028,"logged-in"],"disableComponentsValidation":[4,"disable-components-validation"],"processors":[1040],"manualPaymentMethods":[16],"editLineItems":[4,"edit-line-items"],"removeLineItems":[4,"remove-line-items"],"abandonedCheckoutReturnUrl":[1,"abandoned-checkout-return-url"],"stripePaymentElement":[4,"stripe-payment-element"],"loadingText":[16],"successText":[16],"pricesEntities":[32],"productsEntities":[32],"checkoutState":[32],"error":[32],"processor":[32],"method":[32],"isManualProcessor":[32],"paymentIntents":[32],"isDuplicate":[32],"submit":[64],"validate":[64]},[[0,"scSetPaymentIntent","handleSetPaymentIntent"],[0,"scUpdateOrderState","handleOrderStateUpdate"],[0,"scSetMethod","handleMethodChange"],[0,"scAddEntities","handleAddEntities"]]]]],["sc-subscription",[[1,"sc-subscription",{"subscriptionId":[1,"subscription-id"],"showCancel":[4,"show-cancel"],"heading":[1],"query":[16],"protocol":[16],"subscription":[1040],"loading":[32],"cancelModal":[32],"busy":[32],"error":[32]}]]],["sc-order",[[1,"sc-order",{"orderId":[1,"order-id"],"customerIds":[16],"heading":[1],"order":[32],"purchases":[32],"loading":[32],"busy":[32],"error":[32]}]]],["sc-upcoming-invoice",[[1,"sc-upcoming-invoice",{"heading":[1],"successUrl":[1,"success-url"],"subscriptionId":[1,"subscription-id"],"priceId":[1,"price-id"],"quantity":[2],"discount":[1040],"payment_method":[1040],"quantityUpdatesEnabled":[4,"quantity-updates-enabled"],"adHocAmount":[2,"ad-hoc-amount"],"loading":[32],"busy":[32],"error":[32],"price":[32],"invoice":[32],"couponError":[32]}]]],["sc-payment-methods-list",[[1,"sc-payment-methods-list",{"query":[16],"heading":[1],"isCustomer":[4,"is-customer"],"paymentMethods":[32],"loading":[32],"busy":[32],"error":[32],"hasTitleSlot":[32],"editPaymentMethod":[32],"deletePaymentMethod":[32],"cascadeDefaultPaymentMethod":[32]}]]],["sc-customer-edit",[[1,"sc-customer-edit",{"heading":[1],"customer":[1040],"successUrl":[1,"success-url"],"loading":[32],"error":[32]}]]],["sc-subscription-payment-method",[[1,"sc-subscription-payment-method",{"heading":[1],"subscription":[16],"paymentMethods":[32],"error":[32],"loading":[32],"busy":[32],"method":[32]}]]],["sc-subscriptions-list",[[1,"sc-subscriptions-list",{"query":[1040],"allLink":[1,"all-link"],"heading":[1],"isCustomer":[4,"is-customer"],"cancelBehavior":[1,"cancel-behavior"],"subscriptions":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-invoices-list",[[1,"sc-invoices-list",{"query":[1040],"allLink":[1,"all-link"],"heading":[1],"invoices":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-orders-list",[[1,"sc-orders-list",{"query":[1040],"allLink":[1,"all-link"],"heading":[1],"isCustomer":[4,"is-customer"],"orders":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-subscription-payment",[[1,"sc-subscription-payment",{"subscriptionId":[1,"subscription-id"],"backUrl":[1,"back-url"],"successUrl":[1,"success-url"],"subscription":[1040],"paymentMethods":[16],"customerIds":[16],"loading":[32],"busy":[32],"error":[32]}]]],["sc-dashboard-downloads-list",[[1,"sc-dashboard-downloads-list",{"query":[1032],"allLink":[1,"all-link"],"heading":[1],"isCustomer":[4,"is-customer"],"requestNonce":[1,"request-nonce"],"purchases":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-charges-list",[[1,"sc-charges-list",{"query":[1040],"heading":[1],"showPagination":[4,"show-pagination"],"allLink":[1,"all-link"],"charges":[32],"loading":[32],"loaded":[32],"error":[32],"pagination":[32]}]]],["sc-order-confirmation-details",[[1,"sc-order-confirmation-details",{"order":[16],"loading":[4]}]]],["sc-subscription-switch",[[1,"sc-subscription-switch",{"query":[16],"heading":[1],"productGroupId":[16],"productId":[1,"product-id"],"subscription":[16],"filterAbove":[2,"filter-above"],"selectedPrice":[32],"products":[32],"prices":[32],"filter":[32],"hasFilters":[32],"showFilters":[32],"loading":[32],"busy":[32],"error":[32]}]]],["sc-dashboard-customer-details",[[1,"sc-dashboard-customer-details",{"customerId":[1,"customer-id"],"heading":[1],"customer":[32],"loading":[32],"error":[32]}]]],["sc-licenses-list",[[1,"sc-licenses-list",{"licenses":[16],"activations":[16],"heading":[1],"copied":[4]}]]],["sc-order-confirmation-customer",[[1,"sc-order-confirmation-customer",{"order":[16],"heading":[1],"customer":[16],"error":[1],"loading":[4]}]]],["sc-order-coupon-form",[[1,"sc-order-coupon-form",{"label":[1],"loading":[4],"busy":[4],"error":[8],"order":[16],"forceOpen":[4,"force-open"],"open":[32],"value":[32],"errorMessage":[32]}]]],["sc-payment",[[1,"sc-payment",{"stripePaymentElement":[4,"stripe-payment-element"],"disabledProcessorTypes":[16],"secureNotice":[1,"secure-notice"],"label":[1],"hideTestModeBadge":[4,"hide-test-mode-badge"]}]]],["sc-wordpress-user-edit",[[1,"sc-wordpress-user-edit",{"heading":[1],"successUrl":[1,"success-url"],"user":[16],"loading":[32],"error":[32]}]]],["sc-login-form",[[1,"sc-login-form",{"step":[32],"email":[32],"password":[32],"verifyCode":[32],"loading":[32],"error":[32]}]]],["sc-password-nag",[[1,"sc-password-nag",{"open":[1028],"type":[513],"successUrl":[1,"success-url"],"set":[32],"loading":[32],"error":[32],"success":[32]}]]],["sc-subscription-ad-hoc-confirm",[[0,"sc-subscription-ad-hoc-confirm",{"heading":[1],"price":[16],"busy":[32]}]]],["sc-downloads-list",[[1,"sc-downloads-list",{"downloads":[16],"customerId":[1,"customer-id"],"heading":[1],"busy":[32],"error":[32]}]]],["sc-mollie-add-method",[[1,"sc-mollie-add-method",{"country":[1],"successUrl":[1,"success-url"],"processorId":[1,"processor-id"],"currency":[1],"liveMode":[4,"live-mode"],"customerId":[1,"customer-id"],"methods":[32],"loading":[32],"error":[32],"selectedMethodId":[32],"paymentIntent":[32]}]]],["sc-wordpress-password-edit",[[1,"sc-wordpress-password-edit",{"heading":[1],"successUrl":[1,"success-url"],"user":[16],"loading":[32],"error":[32]}]]],["sc-cart",[[1,"sc-cart",{"formId":[513,"form-id"],"header":[1],"checkoutLink":[1,"checkout-link"],"cartTemplate":[1,"cart-template"],"mode":[1],"checkoutUrl":[1,"checkout-url"],"alwaysShow":[4,"always-show"],"open":[32],"uiState":[32],"error":[32]},[[0,"scSetState","handleSetState"],[0,"scError","handleErrorEvent"],[0,"scCloseCart","handleCloseCart"]]]]],["sc-custom-order-price-input",[[0,"sc-custom-order-price-input",{"priceId":[513,"price-id"],"price":[1040],"loading":[4],"busy":[4],"label":[1],"placeholder":[1],"required":[4],"help":[1],"showCode":[516,"show-code"],"lineItems":[16],"fetching":[32],"lineItem":[32]},[[0,"scBlur","handleBlur"]]]]],["sc-donation-choices",[[1,"sc-donation-choices",{"priceId":[513,"price-id"],"defaultAmount":[1,"default-amount"],"currencyCode":[1,"currency-code"],"lineItems":[16],"loading":[4],"busy":[4],"removeInvalid":[4,"remove-invalid"],"label":[1],"lineItem":[32],"error":[32],"showCustomAmount":[32],"reportValidity":[64]},[[0,"scChange","handleChange"]]]]],["sc-price-choice",[[0,"sc-price-choice",{"priceId":[513,"price-id"],"price":[1040],"loading":[1028],"label":[1],"showLabel":[4,"show-label"],"showPrice":[4,"show-price"],"showControl":[4,"show-control"],"description":[1],"prices":[16],"products":[16],"order":[16],"quantity":[2],"type":[1],"checked":[1540],"error":[16],"isAdHoc":[1040],"errorMessage":[32],"adHocErrorMessage":[32],"product":[32]}]]],["sc-wordpress-user",[[1,"sc-wordpress-user",{"heading":[1],"user":[16]}]]],["sc-order-submit",[[4,"sc-order-submit",{"busy":[4],"loading":[4],"paying":[4],"type":[513],"size":[513],"full":[4],"icon":[1],"showTotal":[4,"show-total"],"mode":[1],"processors":[16],"order":[16],"currencyCode":[1,"currency-code"],"processor":[1]}]]],["sc-express-payment",[[0,"sc-express-payment",{"processor":[1],"formId":[8,"form-id"],"busy":[4],"order":[16],"dividerText":[1,"divider-text"],"debug":[4],"hasPaymentOptions":[1028,"has-payment-options"]},[[0,"scPaymentRequestLoaded","onPaymentRequestLoaded"]]]]],["sc-line-items",[[1,"sc-line-items",{"order":[16],"busy":[4],"prices":[16],"editable":[4],"removable":[4],"editLineItems":[4,"edit-line-items"],"removeLineItems":[4,"remove-line-items"],"lockedChoices":[16]}]]],["sc-stripe-add-method",[[0,"sc-stripe-add-method",{"liveMode":[4,"live-mode"],"customerId":[1,"customer-id"],"successUrl":[1,"success-url"],"loading":[32],"loaded":[32],"error":[32],"paymentIntent":[32]}]]],["sc-order-confirmation",[[1,"sc-order-confirmation",{"order":[1040],"loading":[32],"error":[32]}]]],["sc-order-summary",[[1,"sc-order-summary",{"order":[16],"busy":[4],"empty":[4],"closedText":[1,"closed-text"],"openText":[1,"open-text"],"collapsible":[4],"collapsedOnMobile":[4,"collapsed-on-mobile"],"collapsed":[1028]}]]],["sc-upgrade-required",[[1,"sc-upgrade-required",{"size":[513],"required":[516],"open":[32]}]]],["sc-cart-form",[[4,"sc-cart-form",{"quantity":[1026],"priceId":[1,"price-id"],"mode":[1],"formId":[513,"form-id"],"order":[32],"busy":[32],"error":[32]}]]],["sc-cart-form-submit",[[4,"sc-cart-form-submit",{"busy":[4],"type":[513],"size":[513],"full":[4],"icon":[1]}]]],["sc-cart-submit",[[4,"sc-cart-submit",{"busy":[4],"type":[513],"size":[513],"full":[4],"checkoutLink":[1,"checkout-link"],"icon":[1]}]]],["sc-customer-email",[[1,"sc-customer-email",{"loggedIn":[4,"logged-in"],"order":[16],"trackingConfirmationMessage":[1,"tracking-confirmation-message"],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"abandonedCheckoutEnabled":[4,"abandoned-checkout-enabled"],"reportValidity":[64]}]]],["sc-customer-firstname",[[1,"sc-customer-firstname",{"loggedIn":[4,"logged-in"],"order":[16],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"reportValidity":[64]}]]],["sc-customer-lastname",[[1,"sc-customer-lastname",{"loggedIn":[4,"logged-in"],"order":[16],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"reportValidity":[64]}]]],["sc-customer-name",[[1,"sc-customer-name",{"loggedIn":[4,"logged-in"],"order":[16],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"reportValidity":[64]}]]],["sc-order-password",[[1,"sc-order-password",{"loggedIn":[4,"logged-in"],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"autofocus":[4],"emailExists":[4,"email-exists"],"confirmation":[516],"confirmationLabel":[1,"confirmation-label"],"confirmationPlaceholder":[1,"confirmation-placeholder"],"confirmationHelp":[1,"confirmation-help"],"reportValidity":[64]}]]],["sc-price-choices",[[4,"sc-price-choices",{"label":[1],"columns":[2],"required":[4],"order":[16]},[[0,"scChange","handleChange"]]]]],["sc-stripe-element",[[0,"sc-stripe-element",{"disabled":[4],"order":[16],"accountId":[1,"account-id"],"publishableKey":[1,"publishable-key"],"mode":[1],"size":[513],"label":[1],"secureText":[1,"secure-text"],"showLabel":[4,"show-label"],"hasFocus":[1540,"has-focus"],"selectedProcessorId":[1,"selected-processor-id"],"formState":[1,"form-state"],"error":[32],"confirming":[32],"confirmCardPayment":[64],"confirmCardSetup":[64]}]]],["sc-button-group",[[1,"sc-button-group",{"label":[1],"separate":[4]}]]],["sc-cart-header",[[1,"sc-cart-header",{"lineItems":[16]}]]],["sc-line-item-bump",[[1,"sc-line-item-bump",{"order":[16],"label":[1],"loading":[4]}]]],["sc-order-detail",[[1,"sc-order-detail",{"order":[16],"value":[1],"fallback":[1],"metaKey":[1,"meta-key"],"loading":[4],"label":[1]}]]],["sc-paypal-add-method",[[0,"sc-paypal-add-method",{"liveMode":[4,"live-mode"],"customerId":[1,"customer-id"],"successUrl":[1,"success-url"],"currency":[1],"loading":[32],"loaded":[32],"error":[32],"paymentIntent":[32]}]]],["sc-stripe-payment-element",[[0,"sc-stripe-payment-element",{"stripePaymentIntent":[16],"order":[16],"address":[4],"successUrl":[1,"success-url"],"formState":[1,"form-state"],"selectedProcessorId":[1,"selected-processor-id"],"error":[32],"loaded":[32],"confirming":[32],"confirm":[64]}]]],["sc-badge-notice",[[1,"sc-badge-notice",{"type":[1],"label":[1],"size":[1]}]]],["sc-breadcrumb",[[1,"sc-breadcrumb",{"href":[1],"target":[1],"rel":[1],"hasPrefix":[32],"hasSuffix":[32]}]]],["sc-breadcrumbs",[[1,"sc-breadcrumbs",{"label":[1]}]]],["sc-premium-tag",[[1,"sc-premium-tag",{"size":[513]}]]],["sc-price-range",[[1,"sc-price-range",{"prices":[16],"minPrice":[32],"maxPrice":[32]}]]],["sc-cart-loader",[[1,"sc-cart-loader",{"formId":[513,"form-id"],"mode":[1],"template":[1]}]]],["sc-checkbox",[[1,"sc-checkbox",{"name":[1],"value":[1],"disabled":[516],"edit":[516],"required":[516],"checked":[1540],"indeterminate":[1540],"invalid":[1540],"hasFocus":[32],"triggerClick":[64],"triggerFocus":[64],"triggerBlur":[64],"reportValidity":[64]}]]],["sc-conditional-form",[[1,"sc-conditional-form",{"rule_groups":[16]}]]],["sc-consumer",[[0,"sc-consumer",{"renderer":[8],"context":[32],"promise":[32],"resolvePromise":[32]}]]],["sc-form-row",[[1,"sc-form-row",{"width":[32]}]]],["sc-format-interval",[[0,"sc-format-interval",{"value":[2],"interval":[1],"every":[1],"fallback":[1]}]]],["sc-menu-divider",[[1,"sc-menu-divider"]]],["sc-provider",[[4,"sc-provider",{"STENCIL_CONTEXT":[16],"consumers":[32]},[[0,"mountConsumer","mountConsumer"]]]]],["sc-radio",[[1,"sc-radio",{"name":[1],"value":[1],"disabled":[1540],"checked":[1540],"required":[516],"invalid":[1540],"edit":[4],"hasFocus":[32],"ceClick":[64],"reportValidity":[64]}]]],["sc-radio-group",[[1,"sc-radio-group",{"label":[1],"invalid":[1540],"value":[1537],"required":[4],"reportValidity":[64]},[[0,"click","handleRadioClick"]]]]],["sc-secure-notice",[[1,"sc-secure-notice"]]],["sc-tab",[[1,"sc-tab",{"panel":[513],"href":[513],"active":[516],"disabled":[516],"count":[1],"hasPrefix":[32],"hasSuffix":[32],"triggerFocus":[64],"triggerBlur":[64]}]]],["sc-tab-group",[[1,"sc-tab-group",{"activeTab":[32]}]]],["sc-tab-panel",[[1,"sc-tab-panel",{"name":[513],"active":[516]}]]],["sc-table-head",[[1,"sc-table-head"]]],["sc-checkout-mollie-payment",[[1,"sc-checkout-mollie-payment",{"processorId":[1,"processor-id"],"method":[1],"error":[32],"methods":[32]}]]],["sc-stripe-payment-request",[[4,"sc-stripe-payment-request",{"stripeAccountId":[1,"stripe-account-id"],"publishableKey":[1,"publishable-key"],"country":[1],"currencyCode":[1,"currency-code"],"order":[16],"prices":[16],"label":[1],"amount":[2],"theme":[1],"error":[16],"paymentMethod":[1,"payment-method"],"debug":[4],"formId":[8,"form-id"],"loaded":[32],"debugError":[32]}]]],["sc-paypal-buttons",[[1,"sc-paypal-buttons",{"clientId":[1,"client-id"],"busy":[4],"merchantId":[1,"merchant-id"],"merchantInitiated":[4,"merchant-initiated"],"mode":[1],"order":[1040],"buttons":[16],"label":[1],"color":[1],"loaded":[32]}]]],["sc-toggles",[[1,"sc-toggles",{"accordion":[4],"collapsible":[4],"theme":[1]},[[0,"scShow","handleShowChange"]]]]],["sc-tooltip",[[1,"sc-tooltip",{"open":[1028],"width":[1],"text":[1],"freeze":[4],"padding":[2],"type":[513],"top":[32],"left":[32]},[[9,"scroll","handleWindowScroll"],[9,"resize","handleWindowScroll"]]]]],["sc-cancel-dialog_2",[[1,"sc-subscription-next-payment",{"subscription":[16],"period":[32],"loading":[32],"error":[32],"details":[32]}],[1,"sc-cancel-dialog",{"open":[4],"protocol":[16],"subscription":[16],"reasons":[32],"reason":[32],"step":[32],"comment":[32]}]]],["sc-order-confirmation-line-items_2",[[1,"sc-order-confirmation-totals",{"order":[16]}],[1,"sc-order-confirmation-line-items",{"order":[16],"loading":[4]}]]],["sc-coupon-form",[[1,"sc-coupon-form",{"label":[1],"loading":[4],"busy":[4],"error":[1025],"forceOpen":[4,"force-open"],"discount":[16],"currency":[1],"discountAmount":[2,"discount-amount"],"open":[1028],"value":[32]}]]],["sc-customer-details",[[1,"sc-customer-details",{"heading":[1],"editLink":[1,"edit-link"],"customer":[16],"loading":[4],"error":[1]}]]],["sc-line-item-total",[[1,"sc-line-item-total",{"total":[1],"loading":[4],"order":[16],"size":[1]}]]],["sc-heading_2",[[1,"sc-order-confirm-components-validator",{"checkout":[16],"hasManualInstructions":[32]}],[1,"sc-heading",{"size":[1]}]]],["sc-checkout-form-errors",[[1,"sc-checkout-form-errors",{"checkoutState":[1,"checkout-state"],"error":[16]}]]],["sc-switch",[[1,"sc-switch",{"name":[513],"value":[1],"disabled":[516],"required":[516],"checked":[1540],"invalid":[1540],"reversed":[4],"edit":[4],"hasFocus":[32],"reportValidity":[64]}]]],["sc-order-manual-instructions",[[1,"sc-order-manual-instructions",{"manualPaymentTitle":[1,"manual-payment-title"],"manualPaymentInstructions":[1,"manual-payment-instructions"]}]]],["sc-toggle",[[1,"sc-toggle",{"open":[516],"summary":[1],"disabled":[516],"borderless":[516],"shady":[516],"showControl":[4,"show-control"],"showIcon":[4,"show-icon"],"collapsible":[4]}]]],["sc-table_3",[[1,"sc-table"],[1,"sc-table-cell"],[1,"sc-table-row",{"href":[1]}]]],["sc-cart-icon_4",[[1,"sc-error",{"error":[16]},[[0,"scError","handleErrorEvent"]]],[1,"sc-cart-icon",{"icon":[1],"count":[2]}],[1,"sc-cart-session-provider",{"order":[16],"session":[32]},[[0,"scUpdateOrder","handleUpdateSession"],[0,"scApplyCoupon","handleCouponApply"]]],[1,"sc-drawer",{"open":[516],"label":[513],"placement":[513],"contained":[516],"noHeader":[516,"no-header"]}]]],["sc-format-number",[[0,"sc-format-number",{"value":[2],"locale":[1025],"type":[1],"noGrouping":[4,"no-grouping"],"currency":[1],"currencyDisplay":[1,"currency-display"],"minimumIntegerDigits":[2,"minimum-integer-digits"],"minimumFractionDigits":[2,"minimum-fraction-digits"],"maximumFractionDigits":[2,"maximum-fraction-digits"],"minimumSignificantDigits":[2,"minimum-significant-digits"],"maximumSignificantDigits":[2,"maximum-significant-digits"],"noConvert":[4,"no-convert"]}]]],["sc-tag",[[1,"sc-tag",{"type":[513],"size":[513],"pill":[516],"clearable":[4]}]]],["sc-skeleton",[[1,"sc-skeleton",{"effect":[1]}]]],["sc-form-control_2",[[1,"sc-input",{"squared":[4],"squaredBottom":[4,"squared-bottom"],"squaredTop":[4,"squared-top"],"squaredLeft":[4,"squared-left"],"squaredRight":[4,"squared-right"],"hidden":[4],"type":[513],"size":[513],"name":[513],"value":[1537],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"clearable":[4],"togglePassword":[4,"toggle-password"],"placeholder":[1],"disabled":[1540],"readonly":[516],"minlength":[2],"maxlength":[2],"min":[8],"max":[8],"step":[2],"pattern":[1],"required":[516],"invalid":[1540],"autocorrect":[1],"autocomplete":[1],"autofocus":[4],"spellcheck":[4],"inputmode":[1],"hasFocus":[1540,"has-focus"],"isPasswordVisible":[32],"reportValidity":[64],"triggerFocus":[64],"setCustomValidity":[64],"triggerBlur":[64]}],[1,"sc-form-control",{"size":[513],"name":[1],"errors":[8],"showLabel":[4,"show-label"],"label":[1],"labelId":[1,"label-id"],"inputId":[1,"input-id"],"required":[4],"help":[1],"helpId":[1,"help-id"],"errorMessage":[1025,"error-message"]}]]],["sc-price-input",[[1,"sc-price-input",{"size":[513],"name":[1],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"clearable":[4],"placeholder":[1],"disabled":[516],"readonly":[516],"minlength":[2],"maxlength":[2],"max":[514],"min":[514],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"currencyCode":[513,"currency-code"],"showCode":[4,"show-code"],"reportValidity":[64],"triggerFocus":[64],"setCustomValidity":[64],"triggerBlur":[64]}]]],["sc-order-status-badge",[[1,"sc-order-status-badge",{"status":[1],"size":[513],"pill":[516],"clearable":[4]}]]],["sc-column_2",[[1,"sc-column"],[4,"sc-columns",{"verticalAlignment":[1,"vertical-alignment"],"isStackedOnMobile":[4,"is-stacked-on-mobile"],"isFullHeight":[4,"is-full-height"],"isReversedOnMobile":[4,"is-reversed-on-mobile"]}]]],["sc-format-bytes",[[1,"sc-format-bytes",{"locale":[1],"value":[2],"unit":[1],"display":[1]}]]],["sc-line-items-provider",[[1,"sc-line-items-provider",{"order":[16],"syncItems":[32]},[[0,"scToggleLineItem","handleLineItemToggle"],[0,"scRemoveLineItem","handleLineItemRemove"],[0,"scAddLineItem","handleLineItemAdd"],[0,"scUpdateLineItem","handleLineItemUpdate"]]]]],["sc-purchase-downloads-list_2",[[1,"sc-purchase-downloads-list",{"allLink":[1,"all-link"],"heading":[1],"busy":[4],"loading":[4],"requestNonce":[1,"request-nonce"],"error":[1],"purchases":[16]}],[1,"sc-spacing"]]],["sc-flex",[[1,"sc-flex",{"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"flexDirection":[1,"flex-direction"],"columnGap":[1,"column-gap"],"flexWrap":[1,"flex-wrap"],"stack":[1]}]]],["sc-pagination",[[1,"sc-pagination",{"page":[2],"perPage":[2,"per-page"],"total":[2],"totalShowing":[2,"total-showing"],"totalPages":[2,"total-pages"],"hasNextPage":[32],"hasPreviousPage":[32],"from":[32],"to":[32]}]]],["sc-payment-method-choice_2",[[1,"sc-payment-method-choice",{"methodId":[513,"method-id"],"processorId":[1,"processor-id"],"isManual":[4,"is-manual"],"card":[4]}],[1,"sc-payment-selected",{"iconName":[1,"icon-name"],"label":[1]}]]],["sc-total",[[0,"sc-total",{"total":[1],"order":[16]}]]],["sc-choice",[[1,"sc-choice",{"name":[1],"size":[1],"value":[513],"type":[1],"disabled":[1540],"checked":[1540],"required":[516],"invalid":[1540],"showLabel":[4,"show-label"],"showPrice":[4,"show-price"],"showControl":[4,"show-control"],"hasFocus":[32],"isStacked":[32],"hasDefaultSlot":[32],"hasPrice":[32],"hasPer":[32],"hasDescription":[32],"triggerClick":[64],"triggerFocus":[64],"reportValidity":[64],"setCustomValidity":[64]}]]],["sc-text",[[1,"sc-text",{"tag":[1],"truncate":[4]}]]],["sc-line-item",[[1,"sc-line-item",{"price":[1],"currency":[1],"hasImageSlot":[32],"hasTitleSlot":[32],"hasDescriptionSlot":[32],"hasPriceSlot":[32],"hasPriceDescriptionSlot":[32],"hasCurrencySlot":[32]}]]],["sc-divider",[[1,"sc-divider"]]],["sc-dropdown_4",[[1,"sc-menu-label"],[1,"sc-dropdown",{"clickEl":[16],"disabled":[4],"open":[1540],"position":[1],"placement":[513],"distance":[2],"skidding":[2],"hoist":[4],"closeOnSelect":[516,"close-on-select"],"isVisible":[32]}],[1,"sc-menu",{"setCurrentItem":[64]}],[1,"sc-menu-item",{"href":[1],"checked":[516],"value":[513],"disabled":[516],"hasFocus":[32],"setFocus":[64],"setBlur":[64]}]]],["sc-alert_2",[[1,"sc-alert",{"open":[1540],"title":[1],"closable":[516],"type":[513],"duration":[2],"scrollOnOpen":[4,"scroll-on-open"],"scrollMargin":[1,"scroll-margin"],"noIcon":[4,"no-icon"],"autoHideTimeout":[32],"show":[64],"hide":[64]}],[1,"sc-icon",{"name":[513],"src":[1],"label":[1],"library":[1],"svg":[32]}]]],["sc-address_3",[[1,"sc-address",{"address":[1040],"names":[16],"placeholders":[16],"loading":[4],"disabled":[4],"label":[1],"showName":[4,"show-name"],"showLine2":[4,"show-line-2"],"required":[516],"showCity":[32],"showPostal":[32],"regions":[32],"countryChoices":[32],"reportValidity":[64]}],[1,"sc-tax-id-input",{"country":[1],"show":[4],"type":[1025],"number":[1],"status":[1],"loading":[4],"help":[1],"otherLabel":[1,"other-label"],"caGstLabel":[1,"ca-gst-label"],"auAbnLabel":[1,"au-abn-label"],"gbVatLabel":[1,"gb-vat-label"],"euVatLabel":[1,"eu-vat-label"]}],[1,"sc-select",{"autocomplete":[1],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"value":[1537],"choices":[1040],"unselect":[4],"required":[516],"loading":[4],"search":[4],"name":[513],"help":[1],"label":[1],"size":[513],"position":[1],"invalid":[1540],"open":[1028],"disabled":[4],"showParentLabel":[4,"show-parent-label"],"hoist":[4],"squared":[4],"squaredBottom":[4,"squared-bottom"],"squaredTop":[4,"squared-top"],"squaredLeft":[4,"squared-left"],"squaredRight":[4,"squared-right"],"hasFocus":[32],"searchTerm":[32],"filteredChoices":[32],"setCustomValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeyDown"]]]]],["sc-checkout-unsaved-changes-warning_7",[[1,"sc-form-components-validator",{"disabled":[4],"order":[16],"taxProtocol":[16],"hasAddress":[32],"hasTaxIDField":[32],"hasBumpsField":[32],"hasTaxLine":[32],"hasBumpLine":[32]}],[1,"sc-login-provider",{"loggedIn":[4,"logged-in"],"order":[16],"notice":[32],"open":[32],"loading":[32],"error":[32]},[[0,"scLoginPrompt","handleLoginPrompt"]]],[1,"sc-order-confirm-provider",{"successUrl":[1,"success-url"],"successText":[16],"showSuccessModal":[32],"confirmedCheckout":[32]},[[0,"scPaid","handlePaidEvent"]]],[1,"sc-form-error-provider",{"checkoutState":[1,"checkout-state"],"error":[32]},[[0,"scError","handleErrorEvent"],[0,"scPayError","handlePayError"]]],[1,"sc-form-state-provider",{"checkoutState":[32]},[[0,"scSetState","handleSetStateEvent"],[0,"scPaid","handlePaid"]]],[1,"sc-session-provider",{"groupId":[1,"group-id"],"mode":[1],"formId":[2,"form-id"],"modified":[1],"prices":[16],"currencyCode":[1,"currency-code"],"persist":[4],"setState":[16],"processor":[1],"method":[1],"isManualProcessor":[4,"is-manual-processor"],"successUrl":[1,"success-url"],"paymentIntents":[16],"stripePaymentElement":[4,"stripe-payment-element"],"abandonedCheckoutReturnUrl":[1,"abandoned-checkout-return-url"],"finalize":[64]},[[0,"scUpdateOrder","handleUpdateSession"],[0,"scFormSubmit","handleFormSubmit"],[0,"scPaid","handlePaid"],[0,"scPayError","handlePayError"],[0,"scUpdateAbandonedCart","handleAbandonedCartUpdate"],[0,"scApplyCoupon","handleCouponApply"]]],[1,"sc-checkout-unsaved-changes-warning",{"state":[1]}]]],["sc-subscription-details_2",[[1,"sc-subscription-details",{"subscription":[16],"pendingPrice":[16],"hideRenewalText":[4,"hide-renewal-text"],"activationsModal":[32],"loading":[32],"hasPendingUpdate":[32]}],[1,"sc-subscription-status-badge",{"status":[1],"subscription":[16],"size":[513],"pill":[516],"clearable":[4]}]]],["sc-choices",[[1,"sc-choices",{"label":[1],"size":[513],"autoWidth":[4,"auto-width"],"required":[4],"showLabel":[4,"show-label"],"help":[1],"hideLabel":[4,"hide-label"],"columns":[2],"errorMessage":[1,"error-message"],"width":[32],"triggerFocus":[64]}]]],["sc-format-date",[[0,"sc-format-date",{"locale":[1],"date":[8],"weekday":[1],"era":[1],"year":[1],"month":[1],"day":[1],"hour":[1],"minute":[1],"second":[1],"timeZoneName":[1,"time-zone-name"],"timeZone":[1,"time-zone"],"hourFormat":[1,"hour-format"],"type":[1]}]]],["sc-form",[[1,"sc-form",{"novalidate":[1540],"getFormData":[64],"getFormJson":[64],"submit":[64],"validate":[64]},[[0,"scChange","handleChange"]]]]],["sc-block-ui_2",[[1,"sc-block-ui",{"zIndex":[2,"z-index"],"transparent":[4],"spinner":[4]}],[1,"sc-spinner"]]],["sc-button",[[1,"sc-button",{"type":[513],"size":[513],"caret":[516],"full":[516],"disabled":[516],"loading":[516],"outline":[516],"busy":[516],"pill":[516],"circle":[516],"submit":[516],"name":[1],"value":[1],"href":[513],"target":[1],"download":[1],"hasFocus":[32],"hasLabel":[32],"hasPrefix":[32],"hasSuffix":[32]}]]],["sc-cancel-discount_4",[[1,"sc-cancel-survey",{"protocol":[16],"reasons":[1040],"loading":[32],"selectedReason":[32],"comment":[32],"error":[32]}],[1,"sc-subscription-cancel",{"heading":[1],"backUrl":[1,"back-url"],"successUrl":[1,"success-url"],"subscription":[16],"protocol":[16],"reason":[16],"comment":[1],"loading":[32],"busy":[32],"error":[32]}],[1,"sc-cancel-discount",{"subscription":[16],"reason":[16],"comment":[1],"protocol":[16],"loading":[32],"error":[32]}],[1,"sc-textarea",{"size":[513],"name":[1],"value":[1],"filled":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"rows":[2],"resize":[1],"disabled":[516],"readonly":[516],"minlength":[2],"maxlength":[2],"required":[516],"invalid":[516],"autocapitalize":[1],"autocorrect":[1],"autocomplete":[1],"autofocus":[4],"enterkeyhint":[1],"spellcheck":[4],"inputmode":[1],"hasFocus":[32],"showCharLimit":[32],"triggerFocus":[64],"reportValidity":[64]}]]],["sc-dialog",[[1,"sc-dialog",{"open":[516],"label":[513],"noHeader":[516,"no-header"],"hasFooter":[32]}]]],["sc-compact-address_6",[[1,"sc-order-shipping-address",{"label":[1],"required":[1028],"loading":[4],"shippingAddress":[16],"taxStatus":[1,"tax-status"],"taxEnabled":[4,"tax-enabled"],"shippingEnabled":[4,"shipping-enabled"],"full":[4],"showName":[4,"show-name"],"namePlaceholder":[1,"name-placeholder"],"countryPlaceholder":[1,"country-placeholder"],"cityPlaceholder":[1,"city-placeholder"],"line1Placeholder":[1,"line-1-placeholder"],"line2Placeholder":[1,"line-2-placeholder"],"postalCodePlaceholder":[1,"postal-code-placeholder"],"statePlaceholder":[1,"state-placeholder"],"defaultCountry":[1,"default-country"],"placeholders":[16],"address":[32],"reportValidity":[64]}],[1,"sc-order-tax-id-input",{"order":[16],"show":[4],"taxIdentifier":[16],"taxProtocol":[16],"busy":[4],"otherLabel":[1,"other-label"],"caGstLabel":[1,"ca-gst-label"],"auAbnLabel":[1,"au-abn-label"],"gbVatLabel":[1,"gb-vat-label"],"euVatLabel":[1,"eu-vat-label"]}],[1,"sc-order-bumps",{"label":[1],"showControl":[4,"show-control"],"help":[1],"bumps":[16],"checkout":[16]}],[1,"sc-line-item-tax",{"order":[16],"loading":[4]}],[1,"sc-compact-address",{"address":[1040],"names":[16],"label":[1],"required":[4],"loading":[4],"countryChoices":[32],"regions":[32],"showState":[32],"showPostal":[32],"reportValidity":[64]}],[1,"sc-order-bump",{"bump":[16],"checkout":[16],"showControl":[516,"show-control"]}]]],["sc-cc-logo_2",[[1,"sc-payment-method",{"paymentMethod":[16],"full":[4],"externalLink":[1,"external-link"],"externalLinkTooltipText":[1,"external-link-tooltip-text"]}],[1,"sc-cc-logo",{"brand":[1]}]]],["sc-product-line-item_2",[[1,"sc-product-line-item",{"imageUrl":[1,"image-url"],"name":[1],"quantity":[2],"amount":[2],"fees":[16],"scratchAmount":[2,"scratch-amount"],"currency":[1],"interval":[1],"trialDurationDays":[2,"trial-duration-days"],"removable":[4],"editable":[4],"max":[2]}],[1,"sc-quantity-select",{"clickEl":[16],"disabled":[4],"max":[2],"min":[2],"quantity":[1538],"hasFocus":[1540,"has-focus"]}]]],["sc-empty_3",[[1,"sc-empty",{"icon":[1]}],[1,"sc-stacked-list"],[1,"sc-stacked-list-row",{"href":[1],"target":[1],"mobileSize":[2,"mobile-size"],"width":[32],"hasPrefix":[32],"hasSuffix":[32]}]]],["sc-card_2",[[1,"sc-dashboard-module",{"heading":[1],"error":[1],"loading":[4]}],[1,"sc-card",{"noDivider":[4,"no-divider"],"borderless":[4],"noPadding":[4,"no-padding"],"href":[1],"loading":[4],"hasTitleSlot":[32]}]]]]'),undefined)));const He=qe("sc-breadcrumb"),Ue=qe("sc-breadcrumbs"),De=qe("sc-drawer");var Be=r(9307),Ze=r(5736);const We=function(e){var t,r=e.display;return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url},React.createElement("svg",{style:{display:r},xmlns:"http://www.w3.org/2000/svg",width:"142",height:"24",viewBox:"0 0 142 24",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29 16.6032L29.9925 15.1445C30.448 15.6702 31.0539 16.1125 31.8101 16.4717C32.5664 16.8309 33.3613 17.0105 34.1949 17.0105C35.1488 17.0105 35.8922 16.8046 36.4249 16.3928C36.9664 15.9811 37.2371 15.4424 37.2371 14.7766C37.2371 14.3561 37.091 14.0013 36.7988 13.7122C36.5066 13.4231 36.1285 13.1997 35.6644 13.042C35.2003 12.8844 34.689 12.7398 34.1305 12.6084C33.5718 12.477 33.009 12.3237 32.4418 12.1485C31.8832 11.9733 31.3719 11.7586 30.9078 11.5046C30.4437 11.2505 30.0656 10.8913 29.7734 10.4271C29.4812 9.95398 29.3352 9.39335 29.3352 8.74508C29.3352 7.67627 29.7562 6.78712 30.5984 6.07753C31.4406 5.35917 32.5965 5 34.066 5C36.0082 5 37.5808 5.63075 38.7839 6.89224L37.8687 8.28518C37.4734 7.79455 36.9406 7.40035 36.2703 7.10249C35.6085 6.79588 34.8738 6.64257 34.066 6.64257C33.2152 6.64257 32.532 6.83968 32.0164 7.2339C31.5008 7.61936 31.2429 8.10552 31.2429 8.69249C31.2429 9.06922 31.389 9.38896 31.6813 9.65179C31.9734 9.90585 32.3472 10.1073 32.8027 10.2562C33.2668 10.3964 33.7781 10.5322 34.3367 10.6636C34.9039 10.7862 35.4667 10.9396 36.0253 11.1235C36.5925 11.3075 37.1038 11.5352 37.5593 11.8068C38.0234 12.0696 38.4015 12.4507 38.6937 12.95C38.9859 13.4494 39.132 14.0407 39.132 14.724C39.132 15.8629 38.6937 16.8046 37.8171 17.5492C36.9492 18.2851 35.7246 18.6531 34.1433 18.6531C32.0035 18.6531 30.2891 17.9698 29 16.6032ZM41.2986 14.5006V5.32852H43.2709V13.883C43.2709 14.9693 43.5158 15.7359 44.0057 16.1826C44.4955 16.6206 45.2088 16.8397 46.1455 16.8397C46.8845 16.8397 47.5978 16.6513 48.2853 16.2746C48.9728 15.8979 49.5099 15.4336 49.8966 14.8817V5.32852H51.8818V18.3246H49.8966V16.498C49.3638 17.1113 48.6978 17.6237 47.8986 18.0355C47.0993 18.4472 46.2529 18.6531 45.3591 18.6531C42.6521 18.6531 41.2986 17.2689 41.2986 14.5006ZM54.7831 18.3246H56.7554V9.12613C57.0476 8.59176 57.5503 8.1143 58.2636 7.69382C58.9769 7.26456 59.6386 7.04993 60.2488 7.04993C60.4464 7.04993 60.6999 7.06745 61.0093 7.10249V5.02628C60.1843 5.02628 59.4066 5.24529 58.6761 5.68331C57.9456 6.11257 57.3054 6.68638 56.7554 7.40473V5.32852H54.7831V18.3246ZM61.6935 11.8068C61.6935 10.5628 61.9599 9.424 62.4927 8.3903C63.0342 7.34778 63.7861 6.52431 64.7486 5.91984C65.7111 5.30661 66.7896 5 67.9841 5C69.2388 5 70.3345 5.311 71.2712 5.93298C72.2077 6.55497 72.9127 7.39158 73.3855 8.44282C73.8663 9.4853 74.1071 10.6636 74.1071 11.9776V12.4901H63.8076C63.8849 13.7691 64.3318 14.8379 65.1482 15.6964C65.9732 16.5549 67.0474 16.9842 68.3708 16.9842C69.1185 16.9842 69.8361 16.8397 70.5236 16.5506C71.2197 16.2615 71.8255 15.8498 72.3413 15.3153L73.2821 16.6294C71.9329 17.9785 70.2443 18.6531 68.2161 18.6531C66.3083 18.6531 64.7443 18.0179 63.524 16.7477C62.3036 15.4774 61.6935 13.8305 61.6935 11.8068ZM63.7818 10.979H72.148C72.1394 10.4796 72.0488 9.98463 71.8771 9.49408C71.7138 9.00353 71.4689 8.54355 71.1423 8.1143C70.8158 7.68505 70.3774 7.33902 69.8275 7.07621C69.2775 6.80464 68.6544 6.66885 67.9583 6.66885C67.3052 6.66885 66.7123 6.80026 66.1795 7.06307C65.6466 7.32588 65.2126 7.67195 64.8775 8.1012C64.5509 8.52168 64.2931 8.98158 64.104 9.48091C63.915 9.97154 63.8076 10.4709 63.7818 10.979Z",fill:"#002E33"}),React.createElement("path",{d:"M78.8791 18.7626H76.1199V5.56776H85.2914V8.04056H78.8791V10.8101H85.1554V13.2829H78.8791V18.7626Z",fill:"#002E33"}),React.createElement("path",{d:"M93.3803 19C89.4553 19 86.5989 16.1513 86.5989 12.1751C86.5989 8.19882 89.4553 5.35016 93.3803 5.35016C97.286 5.35016 100.142 8.19882 100.142 12.1751C100.142 16.1513 97.286 19 93.3803 19ZM93.3803 16.5074C95.7704 16.5074 97.3054 14.6281 97.3054 12.1751C97.3054 9.70228 95.7704 7.84274 93.3803 7.84274C90.9709 7.84274 89.4358 9.70228 89.4358 12.1751C89.4358 14.6281 90.9709 16.5074 93.3803 16.5074Z",fill:"#002E33"}),React.createElement("path",{d:"M112.591 18.7626H109.404L106.859 14.0742H104.838V18.7626H102.079V5.56776H108.141C110.842 5.56776 112.513 7.36796 112.513 9.82098C112.513 12.1355 111.056 13.4016 109.657 13.7379L112.591 18.7626ZM107.753 11.6014C108.841 11.6014 109.676 10.9288 109.676 9.80119C109.676 8.71316 108.841 8.04056 107.753 8.04056H104.838V11.6014H107.753Z",fill:"#002E33"}),React.createElement("path",{d:"M128.613 18.7626H125.835V9.24729L122.182 18.7626H120.977L117.324 9.24729V18.7626H114.565V5.56776H118.431L121.579 13.817L124.727 5.56776H128.613V18.7626Z",fill:"#002E33"}),React.createElement("path",{d:"M135.812 19C133.305 19 131.518 18.1494 130.293 16.9031L131.809 14.7072C132.722 15.6766 134.141 16.5074 135.928 16.5074C137.464 16.5074 138.183 15.815 138.183 15.0435C138.183 12.7488 130.721 14.3511 130.721 9.38576C130.721 7.18992 132.586 5.36994 135.637 5.36994C137.697 5.36994 139.407 6.00298 140.689 7.2097L139.154 9.30664C138.105 8.31752 136.706 7.86252 135.384 7.86252C134.219 7.86252 133.558 8.37686 133.558 9.16816C133.558 11.2453 141 9.84076 141 14.7666C141 17.18 139.29 19 135.812 19Z",fill:"#002E33"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0078 24C18.6352 24 24.0078 18.6274 24.0078 12C24.0078 5.37259 18.6352 0 12.0078 0C5.3804 0 0.0078125 5.37259 0.0078125 12C0.0078125 18.6274 5.3804 24 12.0078 24ZM12.0595 6C11.0959 6 9.76255 6.55103 9.08115 7.23077L7.2307 9.07692H16.4543L19.5384 6H12.0595ZM14.9189 16.7692C14.2376 17.449 12.9041 18 11.9406 18H4.46169L7.54585 14.9231H16.7694L14.9189 16.7692ZM17.9166 10.6154H5.69197L5.11453 11.1923C3.74722 12.4231 4.15274 13.3846 6.0676 13.3846H18.3253L18.903 12.8077C20.257 11.5841 19.8315 10.6154 17.9166 10.6154Z",fill:"#D54407"})))};var Ge,Ke,Je,Xe,Ye,Qe,et,tt,rt,st,nt,ot,at,ct,it,lt,dt,ut,pt,mt;function ht(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,o,a,c=[],i=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(s=o.call(r)).done)&&(c.push(s.value),c.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{if(!i&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw n}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}const yt=function(){var e,t,r,s,n,o=ft((0,Be.useState)(!1),2),a=o[0],c=o[1],i=ft((0,Be.useState)((null===(e=srfm_admin)||void 0===e?void 0:e.is_license_active)||!1),2),l=i[0],d=i[1],u=new URL(window.location.href).searchParams.get("page");return(0,Be.useEffect)((function(){window.addEventListener("srfm_license_status_updated",(function(e){null!=e&&e.detail&&d(e.detail.is_license_active)}))}),[]),_e(React.Fragment,null,_e("div",{css:Re(Ge||(Ge=ht(["\n\t\t\t\t\tposition: sticky;\n\t\t\t\t\tbackground-color: rgba( 255, 255, 255, 0.75 );\n\t\t\t\t\tbackdrop-filter: blur( 5px );\n\t\t\t\t\ttop: ",";\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\tz-index: 4;\n\t\t\t\t\t@media screen and ( max-width: 782px ) {\n\t\t\t\t\t\ttop: 46px;\n\t\t\t\t\t}\n\t\t\t\t\t@media screen and ( max-width: 460px ) {\n\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t}\n\t\t\t\t\tborder-bottom: 1px solid rgb( 229, 231, 235 );\n\t\t\t\t"])),a&&"toplevel_page_sureforms_menu"!==srfm_admin.current_screen_id?"0":"32px")},_e("div",{css:Re(Ke||(Ke=ht(["\n\t\t\t\t\t\tpadding: 20px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t"])))},_e("div",{css:Re(Je||(Je=ht(["\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\tcolumn-gap: 1em;\n\t\t\t\t\t\t"])))},_e("h1",{css:Re(Xe||(Xe=ht(["\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\tfont-size: var( --sc-font-size-large );\n\t\t\t\t\t\t\t\tmin-height: 24px;\n\t\t\t\t\t\t\t"])))},_e(Ue,null,_e(He,null,_e(We,{display:"block"})),(null===(t=srfm_admin)||void 0===t?void 0:t.breadcrumbs)&&srfm_admin.breadcrumbs.length>0&&srfm_admin.breadcrumbs.map((function(e,t){return _e(He,{key:t,href:e.link},e.title)}))))),_e("div",{css:Re(Ye||(Ye=ht(["\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\tgap: 15px;\n\t\t\t\t\t\t"])))},_e("article",{css:Re(Qe||(Qe=ht(["\n\t\t\t\t\t\t\t\tcolor: #94a3b8;\n\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t"])))}," ",null===(r=srfm_admin)||void 0===r?void 0:r.plugin_version,_e("span",{css:Re(et||(et=ht(["\n\t\t\t\t\t\t\t\t\tpadding: 2px 5px 3px 6px;\n\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\tborder: 1px solid #e2e8f0;\n\t\t\t\t\t\t\t\t\tmargin-left: 12px;\n\t\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\tline-height: 11px;\n\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t"])))},(0,Ze.__)("Core","sureforms"))),(null===(s=srfm_admin)||void 0===s?void 0:s.is_pro_active)&&_e(React.Fragment,null,_e("div",{css:Re(tt||(tt=ht(["\n\t\t\t\t\t\t\t\t\t\twidth: 1px;\n\t\t\t\t\t\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t"])))}),_e("article",{css:Re(rt||(rt=ht(["\n\t\t\t\t\t\t\t\t\t\tcolor: #94a3b8;\n\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\t\t"])))}," ",null===(n=srfm_admin)||void 0===n?void 0:n.pro_plugin_version,_e("span",{css:Re(st||(st=ht(["\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #0F172A;\n\t\t\t\t\t\t\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\t\t\t\t\t\t\tpadding: 2px 5px 3px 6px;\n\t\t\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\t\t\tborder: 1px solid #0F172A;\n\t\t\t\t\t\t\t\t\t\t\tmargin-left: 12px;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\t\t\tline-height: 11px;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t\t\t"])))},(0,Ze.__)("Pro","sureforms"))),_e("div",{css:Re(nt||(nt=ht(["\n\t\t\t\t\t\t\t\t\t\twidth: 1px;\n\t\t\t\t\t\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t"])))}),_e("article",{css:Re(ot||(ot=ht(["\n\t\t\t\t\t\t\t\t\t\tcolor: ",";\n\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\t\t"])),l?"#16A34A":"#DC2626")}," ",l?(0,Ze.__)("Licensed","sureforms"):_e(React.Fragment,null,_e("span",{css:Re(at||(at=ht(["\n\t\t\t\t\t\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\t\t\t\t\t"]))),onClick:function(){var e;"sureforms_form_settings"===u?null===(e=document.querySelector('a[href*="tab=account-settings"].srfm-settings-sidebar-category'))||void 0===e||e.click():window.location.href="".concat(srfm_admin.site_url,"/wp-admin/admin.php?page=sureforms_form_settings&tab=account-settings")}},(0,Ze.__)("Unlicensed","sureforms"))))),_e("div",{css:Re(ct||(ct=ht(["\n\t\t\t\t\t\t\t\twidth: 1px;\n\t\t\t\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t"])))}),_e("span",{onClick:function(){return c(!a)},css:Re(it||(it=ht(["\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t"])))},_e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},_e("path",{d:"M9.16667 4.90182V16.0335C9.16667 16.8434 8.51008 17.5 7.70015 17.5C7.08038 17.5 6.52752 17.1104 6.31907 16.5267L4.53039 11.4024M15 10.8333C16.3807 10.8333 17.5 9.71404 17.5 8.33333C17.5 6.95262 16.3807 5.83333 15 5.83333M4.53039 11.4024C3.33691 10.8951 2.5 9.71194 2.5 8.33333C2.5 6.49238 3.99238 5 5.83333 5H7.36007C10.7773 5 13.7141 3.97159 15 2.5L15 14.1667C13.7141 12.6951 10.7773 11.6667 7.36007 11.6667L5.83331 11.6667C5.37098 11.6667 4.93064 11.5725 4.53039 11.4024Z",stroke:"#475569",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})))))),_e(De,{noHeader:!0,style:{"--sc-drawer-size":"500px"},open:a,onScHide:function(){return c(!1)}},_e("div",null,_e("span",{onClick:function(){return c(!a)},css:Re(lt||(lt=ht(["\n\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\tright: 15px;\n\t\t\t\t\t\t\ttop: 15px;\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t"]))),className:"sc-drawer-close-button"},_e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 10 10",fill:"none"},_e("g",{clipPath:"url(#clip0_251_2118)"},_e("path",{d:"M7.91683 2.5875L7.32933 2L5.00016 4.32917L2.671 2L2.0835 2.5875L4.41266 4.91667L2.0835 7.24583L2.671 7.83333L5.00016 5.50417L7.32933 7.83333L7.91683 7.24583L5.58766 4.91667L7.91683 2.5875Z",fill:"#555D66"})),_e("defs",null,_e("clipPath",{id:"clip0_251_2118"},_e("rect",{width:"10",height:"10",fill:"white"}))))),_e("article",{css:Re(dt||(dt=ht(["\n\t\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\tcolor: #000;\n\t\t\t\t\t\t\tmargin-bottom: 40px;\n\t\t\t\t\t\t\tpadding: 20px;\n\t\t\t\t\t\t\tpadding-bottom: 30px;\n\t\t\t\t\t\t\tborder-bottom: 1px solid rgb( 229, 231, 235 );\n\t\t\t\t\t\t"])))},(0,Ze.__)("Notifications","sureforms")),_e("div",{css:Re(ut||(ut=ht(["\n\t\t\t\t\t\t\tpadding: 0 20px;\n\t\t\t\t\t\t\tborder-bottom: 1px solid rgb( 229, 231, 235 );\n\t\t\t\t\t\t"])))},_e("article",{css:Re(pt||(pt=ht(["\n\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\tfont-style: italic;\n\t\t\t\t\t\t\t\tmargin-top: 20px;\n\t\t\t\t\t\t\t"])))},(0,Ze.__)("All caught up!! Check back for new notifications later.","sureforms")),_e("article",{css:Re(mt||(mt=ht(["\n\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\tcolor: rgb( 100, 116, 139 );\n\t\t\t\t\t\t\t\tpadding-bottom: 30px;\n\t\t\t\t\t\t\t"])))})))))};var bt,$t=function(){return React.createElement(Be.Fragment,null,React.createElement(Ie,{styles:Re(bt||(e=["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--sc-color-primary-500: var( --sc-color-brand-primary );\n\t\t\t\t\t\t--sc-focus-ring-color-primary: var(\n\t\t\t\t\t\t\t--sc-color-brand-primary\n\t\t\t\t\t\t);\n\t\t\t\t\t\t--sc-input-border-color-focus: var(\n\t\t\t\t\t\t\t--sc-color-brand-primary\n\t\t\t\t\t\t);\n\t\t\t\t\t\t--dashboard-heading: #1e293b;\n\t\t\t\t\t\t--dashboard-text: #64748b;\n\t\t\t\t\t\toverflow-x: hidden;\n\t\t\t\t\t}\n\t\t\t\t\t@media screen and ( max-width: 782px ) {\n\t\t\t\t\t\t#wpbody {\n\t\t\t\t\t\t\tpadding-top: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.auto-fold #wpcontent {\n\t\t\t\t\t\t\tpadding-left: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#srfm-form-page-header {\n\t\t\t\t\t\t\tpadding-top: 46px;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"],t||(t=e.slice(0)),bt=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))))}),React.createElement(yt,null));var e,t};const vt=$t;var wt;wt=document.getElementById("srfm-page-header"),document.addEventListener("DOMContentLoaded",(function(){null!==wt&&(0,Be.render)(React.createElement($t,null),wt)}))},8679:(e,t,r)=>{"use strict";var s=r(1296),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function i(e){return s.isMemo(e)?a:c[e.$$typeof]||n}c[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[s.Memo]=a;var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,s){if("string"!=typeof r){if(h){var n=m(r);n&&n!==h&&e(t,n,s)}var a=d(r);u&&(a=a.concat(u(r)));for(var c=i(t),f=i(r),g=0;g<a.length;++g){var y=a[g];if(!(o[y]||s&&s[y]||f&&f[y]||c&&c[y])){var b=p(r,y);try{l(t,y,b)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,s=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,$=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case d:case u:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case f:case i:return e;default:return t}}case n:return t}}}function C(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=l,t.ContextProvider=i,t.Element=s,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=f,t.Portal=n,t.Profiler=c,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||w(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===c||e===a||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===i||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===$||e.$$typeof===v||e.$$typeof===y)},t.typeOf=w},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},9196:e=>{"use strict";e.exports=window.React},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.m=r,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>e+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="sureforms:",n.l=(r,s,o,a)=>{if(e[r])e[r].push(s);else{var c,i;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+o){c=u;break}}c||(i=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.setAttribute("data-webpack",t+o),c.src=r),e[r]=[s];var p=(t,s)=>{c.onerror=c.onload=null,clearTimeout(m);var n=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),n&&n.forEach((e=>e(s))),t)return t(s)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),i&&document.head.appendChild(c)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!e;)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={106:0,292:0};n.f.j=(t,r)=>{var s=n.o(e,t)?e[t]:void 0;if(0!==s)if(s)r.push(s[2]);else{var o=new Promise(((r,n)=>s=e[t]=[r,n]));r.push(s[2]=o);var a=n.p+n.u(t),c=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,s[1](c)}}),"chunk-"+t,t)}};var t=(t,r)=>{var s,o,[a,c,i]=r,l=0;if(a.some((t=>0!==e[t]))){for(s in c)n.o(c,s)&&(n.m[s]=c[s]);i&&i(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunksureforms=globalThis.webpackChunksureforms||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e,t=n(9307),r=n(3854);e=document.getElementById("srfm-page-header"),document.addEventListener("DOMContentLoaded",(function(){null!==e&&(0,t.render)(React.createElement(r.Z,null),e)}))})()})(); | |
| 2 | +(()=>{var e,t,n={2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21020:(e,t,n)=>{"use strict";var r=n(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},51609:e=>{"use strict";e.exports=window.React},74848:(e,t,n)=>{"use strict";e.exports=n(21020)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};o.r(e),o.d(e,{Button:()=>Up,CaptionLabel:()=>Qp,Chevron:()=>Rp,Day:()=>Yp,DayButton:()=>Pp,Dropdown:()=>_p,DropdownNav:()=>Fp,Footer:()=>Bp,Month:()=>Vp,MonthCaption:()=>Wp,MonthGrid:()=>Hp,Months:()=>qp,MonthsDropdown:()=>Gp,Nav:()=>$p,NextMonthButton:()=>Zp,Option:()=>Kp,PreviousMonthButton:()=>Xp,Root:()=>Jp,Select:()=>eM,Week:()=>tM,WeekNumber:()=>oM,WeekNumberHeader:()=>iM,Weekday:()=>nM,Weekdays:()=>rM,Weeks:()=>sM,YearsDropdown:()=>aM});var t={};o.r(t),o.d(t,{formatCaption:()=>cM,formatDay:()=>dM,formatMonthCaption:()=>uM,formatMonthDropdown:()=>fM,formatWeekNumber:()=>hM,formatWeekNumberHeader:()=>mM,formatWeekdayName:()=>gM,formatYearCaption:()=>MM,formatYearDropdown:()=>pM});var n={};o.r(n),o.d(n,{labelCaption:()=>NM,labelDay:()=>vM,labelDayButton:()=>DM,labelGrid:()=>yM,labelGridcell:()=>xM,labelMonthDropdown:()=>bM,labelNav:()=>wM,labelNext:()=>jM,labelPrevious:()=>TM,labelWeekNumber:()=>IM,labelWeekNumberHeader:()=>AM,labelWeekday:()=>EM,labelYearDropdown:()=>OM});const r=window.wp.domReady;var i=o.n(r);const s=window.wp.element;let a=1;const l=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const i="number"==typeof t?t:a++;return this.#e.find((e=>e.id===i))&&(this.#e=this.#e.map((e=>e.id===i?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:i,title:n,jsx:r,...o}),i}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},c=Object.seal(Object.assign(((e,t)=>l.default(e,t)),{success:l.success.bind(l),error:l.error.bind(l),warning:l.warning.bind(l),info:l.info.bind(l),custom:l.custom.bind(l),dismiss:l.dismiss.bind(l),update:l.update.bind(l)},{getHistory:l.history.bind(l)}));var u=o(74848),d=o(51609),f=o.t(d,2);const h=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var m={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const g=(0,d.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>(0,d.createElement)("svg",{ref:l,...m,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:h("lucide",o),...a},[...s.map((([e,t])=>(0,d.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),p=(e,t)=>{const n=(0,d.forwardRef)((({className:n,...r},o)=>{return(0,d.createElement)(g,{ref:o,iconNode:t,className:h(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},M=p("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),y=e=>{const t=v(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),N(n,t)||D(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},N=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?N(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},x=/^\[(.+)\]$/,D=e=>{if(x.test(e)){const t=x.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},v=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return T(Object.entries(e.classGroups),n).forEach((([e,n])=>{w(n,r,e,t)})),r},w=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return j(e)?void w(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{w(o,b(t,e),n,r)}))}else(""===e?t:b(t,e)).classGroupId=n}))},b=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},j=e=>e.isThemeGetter,T=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,E=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},I=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){s=c;continue}}"["===u?a++:"]"===u&&a--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},A=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},O=/\s+/;function k(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(r&&(r+=" "),r+=t);return r}const z=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=z(e[r]))&&(n&&(n+=" "),n+=t);return n};function S(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:E(e.cacheSize),parseClassName:I(e),...y(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(O);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){a=t+(a.length>0?" "+a:a);continue}if(h=r(u),!h){a=t+(a.length>0?" "+a:a);continue}f=!1}const m=A(l).join(":"),g=c?m+"!":m,p=g+h;if(i.includes(p))continue;i.push(p);const M=o(h,f);for(let e=0;e<M.length;++e){const t=M[e];i.push(g+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(k.apply(null,arguments))}}const L=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},C=/^\[(?:([a-z-]+):)?(.+)\]$/i,U=/^\d+\/\d+$/,Q=new Set(["px","full","screen"]),R=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>W(e)||Q.has(e)||U.test(e),V=e=>oe(e,"length",ie),W=e=>Boolean(e)&&!Number.isNaN(Number(e)),H=e=>oe(e,"number",W),q=e=>Boolean(e)&&Number.isInteger(Number(e)),G=e=>e.endsWith("%")&&W(e.slice(0,-1)),$=e=>C.test(e),Z=e=>R.test(e),K=new Set(["length","size","percentage"]),X=e=>oe(e,K,se),J=e=>oe(e,"position",se),ee=new Set(["image","url"]),te=e=>oe(e,ee,le),ne=e=>oe(e,"",ae),re=()=>!0,oe=(e,t,n)=>{const r=C.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},ie=e=>Y.test(e)&&!P.test(e),se=()=>!1,ae=e=>_.test(e),le=e=>F.test(e),ce=(Symbol.toStringTag,()=>{const e=L("colors"),t=L("spacing"),n=L("blur"),r=L("brightness"),o=L("borderColor"),i=L("borderRadius"),s=L("borderSpacing"),a=L("borderWidth"),l=L("contrast"),c=L("grayscale"),u=L("hueRotate"),d=L("invert"),f=L("gap"),h=L("gradientColorStops"),m=L("gradientColorStopPositions"),g=L("inset"),p=L("margin"),M=L("opacity"),y=L("padding"),N=L("saturate"),x=L("scale"),D=L("sepia"),v=L("skew"),w=L("space"),b=L("translate"),j=()=>["auto",$,t],T=()=>[$,t],E=()=>["",B,V],I=()=>["auto",W,$],A=()=>["","0",$],O=()=>[W,$];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[B,V],blur:["none","",Z,$],brightness:O(),borderColor:[e],borderRadius:["none","","full",Z,$],borderSpacing:T(),borderWidth:E(),contrast:O(),grayscale:A(),hueRotate:O(),invert:A(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[G,V],inset:j(),margin:j(),opacity:O(),padding:T(),saturate:O(),scale:O(),sepia:A(),skew:O(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[Z]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",$]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",q,$]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",q,$]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",q,$]},$]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[q,$]},$]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,t]}],"min-w":[{"min-w":[$,t,"min","max","fit"]}],"max-w":[{"max-w":[$,t,"none","full","min","max","fit","prose",{screen:[Z]},Z]}],h:[{h:[$,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Z,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",H]}],"font-family":[{font:[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",W,H]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,$]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",J]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},te]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[B,$]}],"outline-w":[{outline:[B,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Z,ne]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Z,$]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[N]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[q,$]}],"translate-x":[{"translate-x":[b]}],"translate-y":[{"translate-y":[b]}],"skew-x":[{"skew-x":[v]}],"skew-y":[{"skew-y":[v]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,V,H]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),ue=S(ce);function de(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=de(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=de(e))&&(r&&(r+=" "),r+=t);return r}const he=fe,me=(...e)=>ue(fe(...e)),ge=(...e)=>(...t)=>e.filter(Boolean).forEach((e=>e?.(...t))),pe=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},Me=p("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ye=p("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ne=p("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),xe=p("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),De=(0,d.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:i="button",className:s,children:a,disabled:l=!1,destructive:c=!1,icon:f=null,iconPosition:h="left",loading:m=!1,...g}=e,p=c&&"focus:ring-focus-error",M=m?"opacity-50 disabled:cursor-not-allowed":"",y={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],N=c&&!l?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",x={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let D,v=null,w="";return f&&(w="flex items-center justify-center","left"===h?D=f:v=f),(0,u.jsxs)(i,{ref:t,type:o,className:me(w,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",x,y,N,p,M,{"cursor-default":l},s),disabled:l,"aria-disabled":l,...g,children:[(0,u.jsx)(d.Fragment,{children:D},"left-icon"),a?(0,u.jsx)("span",{className:"px-1",children:a}):null,(0,u.jsx)(d.Fragment,{children:v},"right-icon")]})}));De.displayName="Button";const ve="light",we="neutral",be=({icon:e,theme:t=ve,variant:n=we})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=ve,variant:t=we})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,d.isValidElement)(e))return(0,d.cloneElement)(e,{className:me(r,o,e?.props?.className??"")});const i={neutral:(0,u.jsx)(Me,{className:me(r,o)}),info:(0,u.jsx)(Me,{className:me(r,o)}),success:(0,u.jsx)(ye,{className:me(r,o)}),warning:(0,u.jsx)(Ne,{className:me(r,o)}),error:(0,u.jsx)(xe,{className:me(r,o)})};return i[n]||i.neutral},je=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=ve})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,u.jsx)(De,{variant:"outline",size:"xs",onClick:t,className:me("rounded",o,i,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,u.jsx)(De,{variant:"link",size:"xs",onClick:t,className:me(o,i),children:n});default:return null}},Te=({theme:e=ve,title:t="",inline:n=!1})=>t?(0,u.jsx)("span",{className:me("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,Ee=({theme:e=ve,content:t="",inline:n=!1})=>t?(0,u.jsx)("span",{className:me({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,Ie=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Ae={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},Oe={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},ke="bg-background-inverse border-background-inverse",ze={light:"text-icon-secondary",dark:"text-icon-inverse"},Se=window.ReactDOM,Le=(0,d.createContext)({});function Ce(e){const t=(0,d.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Ue=(0,d.createContext)(null),Qe=(0,d.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Re extends d.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ye({children:e,isPresent:t}){const n=(0,d.useId)(),r=(0,d.useRef)(null),o=(0,d.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,d.useContext)(Qe);return(0,d.useInsertionEffect)((()=>{const{width:e,height:s,top:a,left:l}=o.current;if(t||!r.current||!e||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${s}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,u.jsx)(Re,{isPresent:t,childRef:r,sizeRef:o,children:d.cloneElement(e,{ref:r})})}const Pe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Ce(_e),l=(0,d.useId)(),c=(0,d.useCallback)((e=>{a.set(e,!0);for(const e of a.values())if(!e)return;r&&r()}),[a,r]),f=(0,d.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:e=>(a.set(e,!1),()=>a.delete(e))})),i?[Math.random(),c]:[n,c]);return(0,d.useMemo)((()=>{a.forEach(((e,t)=>a.set(t,!1)))}),[n]),d.useEffect((()=>{!n&&!a.size&&r&&r()}),[n]),"popLayout"===s&&(e=(0,u.jsx)(Ye,{isPresent:n,children:e})),(0,u.jsx)(Ue.Provider,{value:f,children:e})};function _e(){return new Map}function Fe(e=!0){const t=(0,d.useContext)(Ue);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,d.useId)();(0,d.useEffect)((()=>{e&&o(i)}),[e]);const s=(0,d.useCallback)((()=>e&&r&&r(i)),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Be=e=>e.key||"";function Ve(e){const t=[];return d.Children.forEach(e,(e=>{(0,d.isValidElement)(e)&&t.push(e)})),t}const We="undefined"!=typeof window,He=We?d.useLayoutEffect:d.useEffect,qe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1})=>{const[a,l]=Fe(s),c=(0,d.useMemo)((()=>Ve(e)),[e]),f=s&&!a?[]:c.map(Be),h=(0,d.useRef)(!0),m=(0,d.useRef)(c),g=Ce((()=>new Map)),[p,M]=(0,d.useState)(c),[y,N]=(0,d.useState)(c);He((()=>{h.current=!1,m.current=c;for(let e=0;e<y.length;e++){const t=Be(y[e]);f.includes(t)?g.delete(t):!0!==g.get(t)&&g.set(t,!1)}}),[y,f.length,f.join("-")]);const x=[];if(c!==p){let e=[...c];for(let t=0;t<y.length;t++){const n=y[t],r=Be(n);f.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===i&&x.length&&(e=x),N(Ve(e)),void M(c)}const{forceRender:D}=(0,d.useContext)(Le);return(0,u.jsx)(u.Fragment,{children:y.map((e=>{const d=Be(e),p=!(s&&!a)&&(c===y||f.includes(d));return(0,u.jsx)(Pe,{isPresent:p,initial:!(h.current&&!n)&&void 0,custom:p?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:p?void 0:()=>{if(!g.has(d))return;g.set(d,!0);let e=!0;g.forEach((t=>{t||(e=!1)})),e&&(null==D||D(),N(m.current),s&&(null==l||l()),r&&r())},children:e},d)}))})};function Ge(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function $e(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Ze=e=>Array.isArray(e);function Ke(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Xe(e){return"string"==typeof e||Array.isArray(e)}function Je(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function et(e,t,n,r){if("function"==typeof t){const[o,i]=Je(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Je(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function tt(e,t,n){const r=e.getProps();return et(r,t,void 0!==n?n:r.custom,e)}const nt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rt=["initial",...nt];function ot(e){let t;return()=>(void 0===t&&(t=e()),t)}const it=ot((()=>void 0!==window.ScrollTimeline));class st{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>it()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class at extends st{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function lt(e,t){return e?e[t]||e.default||e:void 0}const ct=2e4;function ut(e){let t=0,n=e.next(t);for(;!n.done&&t<ct;)t+=50,n=e.next(t);return t>=ct?1/0:t}function dt(e){return"function"==typeof e}function ft(e,t){e.timeline=t,e.onfinish=null}const ht=e=>Array.isArray(e)&&"number"==typeof e[0],mt={linearEasing:void 0};function gt(e,t){const n=ot(e);return()=>{var e;return null!==(e=mt[t])&&void 0!==e?e:n()}}const pt=gt((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Mt=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},yt=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(Mt(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Nt(e){return Boolean("function"==typeof e&&pt()||!e||"string"==typeof e&&(e in Dt||pt())||ht(e)||Array.isArray(e)&&e.every(Nt))}const xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xt([0,.65,.55,1]),circOut:xt([.55,0,1,.45]),backIn:xt([.31,.01,.66,-.59]),backOut:xt([.33,1.53,.69,.99])};function vt(e,t){return e?"function"==typeof e&&pt()?yt(e,t):ht(e)?xt(e):Array.isArray(e)?e.map((e=>vt(e,t)||Dt.easeOut)):Dt[e]:void 0}const wt={x:!1,y:!1};function bt(){return wt.x||wt.y}function jt(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Tt(e){return t=>{"touch"===t.pointerType||bt()||e(t)}}const Et=(e,t)=>!!t&&(e===t||Et(e,t.parentElement)),It=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,At=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Ot=new WeakSet;function kt(e){return t=>{"Enter"===t.key&&e(t)}}function zt(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function St(e){return It(e)&&!bt()}const Lt=e=>1e3*e,Ct=e=>e/1e3,Ut=e=>e,Qt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rt=new Set(Qt),Yt=new Set(["width","height","top","left","right","bottom",...Qt]),Pt=["read","resolveKeyframes","update","preRender","render","postRender"];function _t(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Pt.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:Pt.reduce(((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(h)),a.schedule(t,i,s)),t}),{}),cancel:e=>{for(let t=0;t<Pt.length;t++)s[Pt[t]].cancel(e)},state:o,steps:s}}const{schedule:Ft,cancel:Bt,state:Vt,steps:Wt}=_t("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ut,!0);let Ht;function qt(){Ht=void 0}const Gt={now:()=>(void 0===Ht&&Gt.set(Vt.isProcessing?Vt.timestamp:performance.now()),Ht),set:e=>{Ht=e,queueMicrotask(qt)}};function $t(e,t){-1===e.indexOf(t)&&e.push(t)}function Zt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Kt{constructor(){this.subscriptions=[]}add(e){return $t(this.subscriptions,e),()=>Zt(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Xt(e,t){return t?e*(1e3/t):0}const Jt={current:void 0};class en{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Gt.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Gt.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Kt);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ft.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Jt.current&&Jt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Gt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Xt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),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 tn(e,t){return new en(e,t)}function nn(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tn(n))}const rn=e=>Boolean(e&&e.getVelocity);function on(e,t){const n=e.getValue("willChange");if(r=n,Boolean(rn(r)&&r.add))return n.add(t);var r}const sn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),an="data-"+sn("framerAppearId");function ln(e){return e.props[an]}const cn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function un(e,t,n,r){if(e===t&&n===r)return Ut;return o=>0===o||1===o?o:cn(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=cn(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const dn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fn=e=>t=>1-e(1-t),hn=un(.33,1.53,.69,.99),mn=fn(hn),gn=dn(mn),pn=e=>(e*=2)<1?.5*mn(e):.5*(2-Math.pow(2,-10*(e-1))),Mn=e=>1-Math.sin(Math.acos(e)),yn=fn(Mn),Nn=dn(Mn),xn=e=>/^0[^.\s]+$/u.test(e),Dn=(e,t,n)=>n>t?t:n<e?e:n,vn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wn={...vn,transform:e=>Dn(0,1,e)},bn={...vn,default:1},jn=e=>Math.round(1e5*e)/1e5,Tn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,En=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,In=(e,t)=>n=>Boolean("string"==typeof n&&En.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),An=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,s,a]=r.match(Tn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},On={...vn,transform:e=>Math.round((e=>Dn(0,255,e))(e))},kn={test:In("rgb","red"),parse:An("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+On.transform(e)+", "+On.transform(t)+", "+On.transform(n)+", "+jn(wn.transform(r))+")"},zn={test:In("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:kn.transform},Sn=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ln=Sn("deg"),Cn=Sn("%"),Un=Sn("px"),Qn=Sn("vh"),Rn=Sn("vw"),Yn={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(100*e)},Pn={test:In("hsl","hue"),parse:An("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Cn.transform(jn(t))+", "+Cn.transform(jn(n))+", "+jn(wn.transform(r))+")"},_n={test:e=>kn.test(e)||zn.test(e)||Pn.test(e),parse:e=>kn.test(e)?kn.parse(e):Pn.test(e)?Pn.parse(e):zn.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?kn.transform(e):Pn.transform(e)},Fn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Bn="number",Vn="color",Wn=/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 Hn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Wn,(e=>(_n.test(e)?(r.color.push(i),o.push(Vn),n.push(_n.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(Bn),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:o}}function qn(e){return Hn(e).values}function Gn(e){const{split:t,types:n}=Hn(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Bn?jn(e[i]):t===Vn?_n.transform(e[i]):e[i]}return o}}const $n=e=>"number"==typeof e?0:e,Zn={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Tn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Fn))||void 0===n?void 0:n.length)||0)>0},parse:qn,createTransformer:Gn,getAnimatableNone:function(e){const t=qn(e);return Gn(e)(t.map($n))}},Kn=new Set(["brightness","contrast","saturate","opacity"]);function Xn(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Tn)||[];if(!r)return e;const o=n.replace(r,"");let i=Kn.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Jn=/\b([a-z-]*)\(.*?\)/gu,er={...Zn,getAnimatableNone:e=>{const t=e.match(Jn);return t?t.map(Xn).join(" "):e}},tr={borderWidth:Un,borderTopWidth:Un,borderRightWidth:Un,borderBottomWidth:Un,borderLeftWidth:Un,borderRadius:Un,radius:Un,borderTopLeftRadius:Un,borderTopRightRadius:Un,borderBottomRightRadius:Un,borderBottomLeftRadius:Un,width:Un,maxWidth:Un,height:Un,maxHeight:Un,top:Un,right:Un,bottom:Un,left:Un,padding:Un,paddingTop:Un,paddingRight:Un,paddingBottom:Un,paddingLeft:Un,margin:Un,marginTop:Un,marginRight:Un,marginBottom:Un,marginLeft:Un,backgroundPositionX:Un,backgroundPositionY:Un},nr={rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:bn,scaleX:bn,scaleY:bn,scaleZ:bn,skew:Ln,skewX:Ln,skewY:Ln,distance:Un,translateX:Un,translateY:Un,translateZ:Un,x:Un,y:Un,z:Un,perspective:Un,transformPerspective:Un,opacity:wn,originX:Yn,originY:Yn,originZ:Un},rr={...vn,transform:Math.round},or={...tr,...nr,zIndex:rr,size:Un,fillOpacity:wn,strokeOpacity:wn,numOctaves:rr},ir={...or,color:_n,backgroundColor:_n,outlineColor:_n,fill:_n,stroke:_n,borderColor:_n,borderTopColor:_n,borderRightColor:_n,borderBottomColor:_n,borderLeftColor:_n,filter:er,WebkitFilter:er},sr=e=>ir[e];function ar(e,t){let n=sr(e);return n!==er&&(n=Zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lr=new Set(["auto","none","0"]),cr=e=>e===vn||e===Un,ur=(e,t)=>parseFloat(e.split(", ")[t]),dr=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ur(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ur(t[1],e):0}},fr=new Set(["x","y","z"]),hr=Qt.filter((e=>!fr.has(e))),mr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dr(4,13),y:dr(5,14)};mr.translateX=mr.x,mr.translateY=mr.y;const gr=new Set;let pr=!1,Mr=!1;function yr(){if(Mr){const e=Array.from(gr).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return hr.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Mr=!1,pr=!1,gr.forEach((e=>e.complete())),gr.clear()}function Nr(){gr.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Mr=!0)}))}class xr{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gr.add(this),pr||(pr=!0,Ft.read(Nr),Ft.resolveKeyframes(yr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),gr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,gr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Dr=Ut,vr=Ut;const wr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),br=e=>t=>"string"==typeof t&&t.startsWith(e),jr=br("--"),Tr=br("var(--"),Er=e=>!!Tr(e)&&Ir.test(e.split("/*")[0].trim()),Ir=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ar=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Or(e,t,n=1){vr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Ar.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return wr(e)?parseFloat(e):e}return Er(o)?Or(o,t,n+1):o}const kr=e=>t=>t.test(e),zr=[vn,Un,Cn,Ln,Rn,Qn,{test:e=>"auto"===e,parse:e=>e}],Sr=e=>zr.find(kr(e));class Lr extends xr{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Er(r))){const o=Or(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Yt.has(n)||2!==e.length)return;const[r,o]=e,i=Sr(r),s=Sr(o);if(i!==s)if(cr(i)&&cr(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||xn(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!lr.has(t)&&Hn(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=ar(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=mr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Cr=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Zn.test(e)&&"0"!==e||e.startsWith("url(")));function Ur(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=Cr(o,t),a=Cr(i,t);return Dr(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||dt(n))&&r)}const Qr=e=>null!==e;function Rr(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Qr),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class Yr{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Gt.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Nr(),yr()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Gt.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Ur(e,n,r,o)){if(!i)return a&&a(Rr(e,this.options,t)),s&&s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Pr=(e,t,n)=>e+(t-e)*n;function _r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fr(e,t){return n=>n>0?t:e}const Br=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vr=[zn,kn,Pn];function Wr(e){const t=(n=e,Vr.find((e=>e.test(n))));var n;if(Dr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===Pn&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=_r(a,r,e+1/3),i=_r(a,r,e),s=_r(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const Hr=(e,t)=>{const n=Wr(e),r=Wr(t);if(!n||!r)return Fr(e,t);const o={...n};return e=>(o.red=Br(n.red,r.red,e),o.green=Br(n.green,r.green,e),o.blue=Br(n.blue,r.blue,e),o.alpha=Pr(n.alpha,r.alpha,e),kn.transform(o))},qr=(e,t)=>n=>t(e(n)),Gr=(...e)=>e.reduce(qr),$r=new Set(["none","hidden"]);function Zr(e,t){return n=>Pr(e,t,n)}function Kr(e){return"number"==typeof e?Zr:"string"==typeof e?Er(e)?Fr:_n.test(e)?Hr:eo:Array.isArray(e)?Xr:"object"==typeof e?_n.test(e)?Hr:Jr:Fr}function Xr(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Kr(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Jr(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Kr(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const eo=(e,t)=>{const n=Zn.createTransformer(t),r=Hn(e),o=Hn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?$r.has(e)&&!o.values.length||$r.has(t)&&!r.values.length?function(e,t){return $r.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Gr(Xr(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,o),o.values),n):(Dr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Fr(e,t))};function to(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Pr(e,t,n):Kr(e)(e,t)}function no(e,t,n){const r=Math.max(t-5,0);return Xt(n-e(r),t-r)}const ro=.01,oo=2,io=.005,so=.5;const ao=12;function lo(e,t){return e*Math.sqrt(1-t*t)}const co=["duration","bounce"],uo=["stiffness","damping","mass"];function fo(e,t){return t.some((t=>void 0!==e[t]))}function ho(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fo(e,uo)&&fo(e,co))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;Dr(e<=Lt(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Dn(.05,1,s),e=Dn(.01,10,Ct(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/lo(t,s)*Math.exp(-o)},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=lo(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<ao;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Lt(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Ct(n.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(l*u)),p=s-i,M=Ct(Math.sqrt(l/u)),y=Math.abs(p)<5;let N;if(r||(r=y?ro:oo),o||(o=y?io:so),g<1){const e=lo(M,g);N=t=>{const n=Math.exp(-g*M*t);return s-n*((m+g*M*p)/e*Math.sin(e*t)+p*Math.cos(e*t))}}else if(1===g)N=e=>s-Math.exp(-M*e)*(p+(m+M*p)*e);else{const e=M*Math.sqrt(g*g-1);N=t=>{const n=Math.exp(-g*M*t),r=Math.min(e*t,300);return s-n*((m+g*M*p)*Math.sinh(r)+e*p*Math.cosh(r))/e}}const x={calculatedDuration:h&&d||null,next:e=>{const t=N(e);if(h)a.done=e>=d;else{let n=0;g<1&&(n=0===e?Lt(m):no(N,e,t));const i=Math.abs(n)<=r,l=Math.abs(s-t)<=o;a.done=i&&l}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(ut(x),ct),t=yt((t=>x.next(e*t).value),e,30);return e+"ms "+t}};return x}function mo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let m=n*t;const g=d+m,p=void 0===s?g:s(g);p!==g&&(m=p-d);const M=e=>-m*Math.exp(-e/r),y=e=>p+M(e),N=e=>{const t=M(e),n=y(e);f.done=Math.abs(t)<=c,f.value=f.done?p:n};let x,D;const v=e=>{var t;t=f.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,D=ho({keyframes:[f.value,h(f.value)],velocity:no(y,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return v(0),{calculatedDuration:null,next:e=>{let t=!1;return D||void 0!==x||(t=!0,N(e),v(e)),void 0!==x&&e>=x?D.next(e-x):(!t&&N(e),f)}}}const go=un(.42,0,1,1),po=un(0,0,.58,1),Mo=un(.42,0,.58,1),yo={linear:Ut,easeIn:go,easeInOut:Mo,easeOut:po,circIn:Mn,circInOut:Nn,circOut:yn,backIn:mn,backInOut:gn,backOut:hn,anticipate:pn},No=e=>{if(ht(e)){vr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return un(t,n,r,o)}return"string"==typeof e?(vr(void 0!==yo[e],`Invalid easing type '${e}'`),yo[e]):e};function xo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(No):No(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Mt(0,t,r);e.push(Pr(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(vr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||to,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Ut:t;i=Gr(e,i)}r.push(i)}return r}(t,r,o),l=a.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=Mt(e[r],e[r+1],n);return a[r](o)};return n?t=>c(Dn(e[0],e[i-1],t)):c}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Mo)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const Do=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ft.update(t,!0),stop:()=>Bt(t),now:()=>Vt.isProcessing?Vt.timestamp:Gt.now()}},vo={decay:mo,inertia:mo,tween:xo,keyframes:xo,spring:ho},wo=e=>e/100;class bo extends Yr{constructor(e){super(e),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:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||xr;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=dt(t)?t:vo[t]||xo;let a,l;s!==xo&&"number"!=typeof e[0]&&(a=Gr(wo,to(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=ut(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const p=this.currentTime-d*(this.speed>=0?1:-1),M=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,N=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===h?(n=1-n,m&&(n-=m/u)):"mirror"===h&&(N=i)),y=Dn(0,1,n)*u}const x=M?{done:!1,value:a[0]}:N.next(y);s&&(x.value=s(x.value));let{done:D}=x;M||null===l||(D=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const v=null===this.holdTime&&("finished"===this.state||"running"===this.state&&D);return v&&void 0!==r&&(x.value=Rr(a,this.options,r)),g&&g(x.value),v&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Ct(e.calculatedDuration):0}get time(){return Ct(this.currentTime)}set time(e){e=Lt(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ct(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Do,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):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 e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e: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:e}=this.options;e&&e()}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(e){return this.startTime=0,this.tick(e,!0)}}const jo=new Set(["opacity","clipPath","filter","transform"]),To=ot((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Eo={anticipate:pn,backInOut:gn,circInOut:Nn};class Io extends Yr{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Lr(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:s,name:a,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;var c;if("string"==typeof o&&pt()&&o in Eo&&(o=Eo[o]),dt((c=this.options).type)||"spring"===c.type||!Nt(c.ease)){const{onComplete:t,onUpdate:s,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new bo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=vt(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,a,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(ft(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(Rr(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Ct(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Ct(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Lt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Ut;const{animation:n}=t;ft(n,e)}else this.pendingTimeline=e;return Ut}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new bo({...c,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=Lt(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return To()&&n&&jo.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const Ao={type:"spring",stiffness:500,damping:25,restSpeed:10},Oo={type:"keyframes",duration:.8},ko={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zo=(e,{keyframes:t})=>t.length>2?Oo:Rt.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ao:ko,So=(e,t,n,r={},o,i)=>s=>{const a=lt(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=Lt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...zo(e,u)}),u.duration&&(u.duration=Lt(u.duration)),u.repeatDelay&&(u.repeatDelay=Lt(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=Rr(u.keyframes,a);if(void 0!==e)return Ft.update((()=>{u.onUpdate(e),u.onComplete()})),new at([])}return!i&&Io.supports(u)?new Io(u):new bo(u)};function Lo({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Co(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&Lo(u,t))continue;const a={delay:n,...lt(s||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=ln(e);if(n){const e=window.MotionHandoffAnimation(n,t,Ft);null!==e&&(a.startTime=e,d=!0)}}on(e,t),r.start(So(t,r,o,e.shouldReduceMotion&&Yt.has(t)?{type:!1}:a,e,d));const f=r.animation;f&&c.push(f)}return a&&Promise.all(c).then((()=>{Ft.update((()=>{a&&function(e,t){const n=tt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)nn(e,t,(s=i[t],Ze(s)?s[s.length-1]||0:s));var s}(e,a)}))})),c}function Uo(e,t,n={}){var r;const o=tt(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Co(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Qo).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(Uo(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function Qo(e,t){return e.sortNodePosition(t)}const Ro=rt.length;function Yo(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Yo(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Ro;n++){const r=rt[n],o=e.props[r];(Xe(o)||!1===o)&&(t[r]=o)}return t}const Po=[...nt].reverse(),_o=nt.length;function Fo(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Uo(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Uo(e,t,n);else{const o="function"==typeof t?tt(e,t,n.custom):t;r=Promise.all(Co(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Vo(),r=!0;const o=t=>(n,r)=>{var o;const i=tt(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:s}=e,a=Yo(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<_o;t++){const m=Po[t],g=n[m],p=void 0!==s[m]?s[m]:a[m],M=Xe(p),y=m===i?g.isActive:null;!1===y&&(d=t);let N=p===a[m]&&p!==s[m]&&M;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),g.protectedKeys={...u},!g.isActive&&null===y||!p&&!g.prevProp||$e(p)||"boolean"==typeof p)continue;const x=(f=g.prevProp,"string"==typeof(h=p)?h!==f:!!Array.isArray(h)&&!Ke(h,f));let D=x||m===i&&g.isActive&&!N&&M||t>d&&M,v=!1;const w=Array.isArray(p)?p:[p];let b=w.reduce(o(m),{});!1===y&&(b={});const{prevResolvedValues:j={}}=g,T={...j,...b},E=t=>{D=!0,c.has(t)&&(v=!0,c.delete(t)),g.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in T){const t=b[e],n=j[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Ze(t)&&Ze(n)?!Ke(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):g.protectedKeys[e]=!0}g.prevProp=p,g.prevResolvedValues=b,g.isActive&&(u={...u,...b}),r&&e.blockInitialAnimation&&(D=!1),D&&(!N||!x||v)&&l.push(...w.map((e=>({animation:e,options:{type:m}}))))}var f,h;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let m=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Vo(),r=!0}}}function Bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vo(){return{animate:Bo(!0),whileInView:Bo(),whileHover:Bo(),whileTap:Bo(),whileDrag:Bo(),whileFocus:Bo(),exit:Bo()}}class Wo{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Ho=0;const qo={animation:{Feature:class extends Wo{constructor(e){super(e),e.animationState||(e.animationState=Fo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$e(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Wo{constructor(){super(...arguments),this.id=Ho++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Go(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $o(e){return{point:{x:e.pageX,y:e.pageY}}}function Zo(e,t,n,r){return Go(e,t,(e=>t=>It(t)&&e(t,$o(t)))(n),r)}const Ko=(e,t)=>Math.abs(e-t);class Xo{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!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 e=ti(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ko(e.x,t.x),r=Ko(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Vt;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Jo(t,this.transformPagePoint),Ft.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=ti("pointercancel"===e.type?this.lastMoveEventInfo:Jo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!It(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Jo($o(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=Vt;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,ti(i,this.history)),this.removeListeners=Gr(Zo(this.contextWindow,"pointermove",this.handlePointerMove),Zo(this.contextWindow,"pointerup",this.handlePointerUp),Zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Bt(this.updatePoint)}}function Jo(e,t){return t?{point:t(e.point)}:e}function ei(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ti({point:e},t){return{point:e,delta:ei(e,ri(t)),offset:ei(e,ni(t)),velocity:oi(t,.1)}}function ni(e){return e[0]}function ri(e){return e[e.length-1]}function oi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ri(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Lt(t)));)n--;if(!r)return{x:0,y:0};const i=Ct(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ii(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function si(e){return e.max-e.min}function ai(e,t,n,r=.5){e.origin=r,e.originPoint=Pr(t.min,t.max,e.origin),e.scale=si(n)/si(t),e.translate=Pr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function li(e,t,n,r){ai(e.x,t.x,n.x,r?r.originX:void 0),ai(e.y,t.y,n.y,r?r.originY:void 0)}function ci(e,t,n){e.min=n.min+t.min,e.max=e.min+si(t)}function ui(e,t,n){e.min=t.min-n.min,e.max=e.min+si(t)}function di(e,t,n){ui(e.x,t.x,n.x),ui(e.y,t.y,n.y)}function fi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function hi(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const mi=.35;function gi(e,t,n){return{min:pi(e,t),max:pi(e,n)}}function pi(e,t){return"number"==typeof e?e:e[t]||0}const Mi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function yi(e){return[e("x"),e("y")]}function Ni({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xi(e){return void 0===e||1===e}function Di({scale:e,scaleX:t,scaleY:n}){return!xi(e)||!xi(t)||!xi(n)}function vi(e){return Di(e)||wi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wi(e){return bi(e.x)||bi(e.y)}function bi(e){return e&&"0%"!==e}function ji(e,t,n){return n+t*(e-n)}function Ti(e,t,n,r,o){return void 0!==o&&(e=ji(e,o,r)),ji(e,n,r)+t}function Ei(e,t=0,n=1,r,o){e.min=Ti(e.min,t,n,r,o),e.max=Ti(e.max,t,n,r,o)}function Ii(e,{x:t,y:n}){Ei(e.x,t.translate,t.scale,t.originPoint),Ei(e.y,n.translate,n.scale,n.originPoint)}const Ai=.999999999999,Oi=1.0000000000001;function ki(e,t){e.min=e.min+t,e.max=e.max+t}function zi(e,t,n,r,o=.5){Ei(e,t,n,Pr(e.min,e.max,o),r)}function Si(e,t){zi(e.x,t.x,t.scaleX,t.scale,t.originX),zi(e.y,t.y,t.scaleY,t.scale,t.originY)}function Li(e,t){return Ni(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Ci=({current:e})=>e?e.ownerDocument.defaultView:null,Ui=new WeakMap;class Qi{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Xo(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor($o(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?wt[i]?null:(wt[i]=!0,()=>{wt[i]=!1}):wt.x||wt.y?null:(wt.x=wt.y=!0,()=>{wt.x=wt.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yi((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=si(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Ft.postRender((()=>o(e,t))),on(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>yi((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Ci(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Ft.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Ri(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Pr(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Pr(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&ii(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:fi(e.x,n,o),y:fi(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=mi){return!1===e?e=0:!0===e&&(e=mi),{x:gi(e,"left","right"),y:gi(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yi((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ii(e))return!1;const n=e.current;vr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Li(e,n),{scroll:o}=t;return o&&(ki(r.x,o.offset.x),ki(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:hi(e.x,t.x),y:hi(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ni(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=yi((s=>{if(!Ri(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return on(this.visualElement,e),n.start(So(e,n,0,t,this.visualElement,!1))}stopAnimation(){yi((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){yi((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){yi((t=>{const{drag:n}=this.getProps();if(!Ri(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Pr(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ii(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yi((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=si(e),o=si(t);return o>r?n=Mt(t.min,t.max-r,e.min):r>o&&(n=Mt(e.min,e.max-o,t.min)),Dn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),yi((t=>{if(!Ri(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Pr(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ui.set(this.visualElement,this);const e=Zo(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();ii(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ft.read(t);const o=Go(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(yi((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=mi,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Ri(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Yi=e=>(t,n)=>{e&&Ft.postRender((()=>e(t,n)))},Pi=(0,d.createContext)({}),_i={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Bi={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Un.test(e))return e;e=parseFloat(e)}return`${Fi(e,t.target.x)}% ${Fi(e,t.target.y)}%`}},Vi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Zn.parse(e);if(o.length>5)return r;const i=Zn.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Pr(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}},Wi={},{schedule:Hi,cancel:qi}=_t(queueMicrotask,!1);class Gi extends d.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Zi,Object.assign(Wi,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),_i.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ft.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Hi.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function $i(e){const[t,n]=Fe(),r=(0,d.useContext)(Le);return(0,u.jsx)(Gi,{...e,layoutGroup:r,switchLayoutGroup:(0,d.useContext)(Pi),isPresent:t,safeToRemove:n})}const Zi={borderRadius:{...Bi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bi,borderTopRightRadius:Bi,borderBottomLeftRadius:Bi,borderBottomRightRadius:Bi,boxShadow:Vi},Ki=(e,t)=>e.depth-t.depth;class Xi{constructor(){this.children=[],this.isDirty=!1}add(e){$t(this.children,e),this.isDirty=!0}remove(e){Zt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ki),this.isDirty=!1,this.children.forEach(e)}}function Ji(e){const t=rn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const es=["TopLeft","TopRight","BottomLeft","BottomRight"],ts=es.length,ns=e=>"string"==typeof e?parseFloat(e):e,rs=e=>"number"==typeof e||Un.test(e);function os(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const is=as(0,.5,yn),ss=as(.5,.95,Ut);function as(e,t,n){return r=>r<e?0:r>t?1:n(Mt(e,t,r))}function ls(e,t){e.min=t.min,e.max=t.max}function cs(e,t){ls(e.x,t.x),ls(e.y,t.y)}function us(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ds(e,t,n,r,o){return e=ji(e-=t,1/n,r),void 0!==o&&(e=ji(e,1/o,r)),e}function fs(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(Cn.test(t)&&(t=parseFloat(t),t=Pr(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=Pr(i.min,i.max,r);e===i&&(a-=t),e.min=ds(e.min,t,n,a,o),e.max=ds(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const hs=["x","scaleX","originX"],ms=["y","scaleY","originY"];function gs(e,t,n,r){fs(e.x,t,hs,n?n.x:void 0,r?r.x:void 0),fs(e.y,t,ms,n?n.y:void 0,r?r.y:void 0)}function ps(e){return 0===e.translate&&1===e.scale}function Ms(e){return ps(e.x)&&ps(e.y)}function ys(e,t){return e.min===t.min&&e.max===t.max}function Ns(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xs(e,t){return Ns(e.x,t.x)&&Ns(e.y,t.y)}function Ds(e){return si(e.x)/si(e.y)}function vs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ws{constructor(){this.members=[]}add(e){$t(this.members,e),e.scheduleRender()}remove(e){if(Zt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const bs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},js="undefined"!=typeof window&&void 0!==window.MotionDebug,Ts=["","X","Y","Z"],Es={visibility:"hidden"};let Is=0;function As(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Os(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ln(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ft,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Os(r)}function ks({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Is++,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,js&&(bs.totalNodes=bs.resolvedTargetDeltas=bs.recalculatedProjection=0),this.nodes.forEach(Ls),this.nodes.forEach(_s),this.nodes.forEach(Fs),this.nodes.forEach(Cs),js&&window.MotionDebug.record(bs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 Xi)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Kt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Gt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Bt(r),e(i-t))};return Ft.read(r,!0),()=>Bt(r)}(r,250),_i.hasAnimatedSinceResize&&(_i.hasAnimatedSinceResize=!1,this.nodes.forEach(Ps))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Gs,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!xs(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...lt(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Ps(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bt(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(Bs),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Os(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Qs);this.isUpdating||this.nodes.forEach(Rs),this.isUpdating=!1,this.nodes.forEach(Ys),this.nodes.forEach(zs),this.nodes.forEach(Ss),this.clearAllSnapshots();const e=Gt.now();Vt.delta=Dn(0,1e3/60,e-Vt.timestamp),Vt.timestamp=e,Vt.isProcessing=!0,Wt.update.process(Vt),Wt.preRender.process(Vt),Wt.render.process(Vt),Vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Us),this.sharedNodes.forEach(Vs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ft.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 e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ms(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||vi(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Ks((r=n).x),Ks(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(Js)){const{scroll:e}=this.root;e&&(ki(n.x,e.offset.x),ki(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(cs(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&cs(n,e),ki(n.x,o.offset.x),ki(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};cs(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Si(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),vi(r.latestValues)&&Si(n,r.latestValues)}return vi(this.latestValues)&&Si(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};cs(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!vi(n.latestValues))continue;Di(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};cs(r,n.measurePageBox()),gs(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return vi(this.latestValues)&&gs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==Vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Vt.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},di(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),cs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,ci(s.x,a.x,l.x),ci(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):cs(this.target,this.layout.layoutBox),Ii(this.target,this.targetDelta)):cs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},di(this.relativeTargetOrigin,this.target,e.target),cs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}js&&bs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Di(this.parent.latestValues)&&!wi(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 e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Vt.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=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||!o&&!i)return;cs(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Si(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Ii(e,s)),r&&vi(i.latestValues)&&Si(e,i.latestValues))}t.x<Oi&&t.x>Ai&&(t.x=1),t.y<Oi&&t.y>Ai&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(us(this.prevProjectionDelta.x,this.projectionDelta.x),us(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),li(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&vs(this.projectionDelta.x,this.prevProjectionDelta.x)&&vs(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),js&&bs.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},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(qs));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Ws(i.x,e.x,n),Ws(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(di(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Hs(e.x,t.x,n.x,r),Hs(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&function(e,t){return ys(e.x,t.x)&&ys(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),cs(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Pr(0,void 0!==n.opacity?n.opacity:1,is(r)),e.opacityExit=Pr(void 0!==t.opacity?t.opacity:1,0,ss(r))):i&&(e.opacity=Pr(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ts;o++){const i=`border${es[o]}Radius`;let s=os(t,i),a=os(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||rs(s)===rs(a)?(e[i]=Math.max(Pr(ns(s),ns(a),r),0),(Cn.test(a)||Cn.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Pr(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ft.update((()=>{_i.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=rn(0)?0:tn(0);return r.start(So("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.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 e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Xs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=si(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=si(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}cs(t,n),Si(t,o),li(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ws),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&As("z",e,r,this.animationValues);for(let t=0;t<Ts.length;t++)As(`rotate${Ts[t]}`,e,r,this.animationValues),As(`skew${Ts[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Es;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Ji(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ji(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!vi(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Wi){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Wi[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Ji(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Qs),this.root.sharedNodes.clear()}}}function zs(e){e.updateLayout()}function Ss(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?yi((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=si(r);r.min=t[e].min,r.max=r.min+o})):Xs(o,n.layoutBox,t)&&yi((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=si(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};li(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?li(a,e.applyTransform(r,!0),n.measuredBox):li(a,t,n.layoutBox);const l=!Ms(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};di(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};di(a,t,i.layoutBox),xs(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ls(e){js&&bs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Cs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Us(e){e.clearSnapshot()}function Qs(e){e.clearMeasurements()}function Rs(e){e.isLayoutDirty=!1}function Ys(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ps(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _s(e){e.resolveTargetDelta()}function Fs(e){e.calcProjection()}function Bs(e){e.resetSkewAndRotation()}function Vs(e){e.removeLeadSnapshot()}function Ws(e,t,n){e.translate=Pr(t.translate,0,n),e.scale=Pr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hs(e,t,n,r){e.min=Pr(t.min,n.min,r),e.max=Pr(t.max,n.max,r)}function qs(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Gs={duration:.45,ease:[.4,0,.1,1]},$s=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zs=$s("applewebkit/")&&!$s("chrome/")?Math.round:Ut;function Ks(e){e.min=Zs(e.min),e.max=Zs(e.max)}function Xs(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Ds(t),o=Ds(n),!(Math.abs(r-o)<=.2));var r,o}function Js(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const ea=ks({attachResizeListener:(e,t)=>Go(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ta={current:void 0},na=ks({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ta.current){const e=new ea({});e.mount(window),e.setOptions({layoutScroll:!0}),ta.current=e}return ta.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ra={pan:{Feature:class extends Wo{constructor(){super(...arguments),this.removePointerDownListener=Ut}onPointerDown(e){this.session=new Xo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ci(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Yi(e),onStart:Yi(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ft.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Zo(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Wo{constructor(e){super(e),this.removeGroupControls=Ut,this.removeListeners=Ut,this.controls=new Qi(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ut}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:na,MeasureLayout:$i}};function oa(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&Ft.postRender((()=>o(t,$o(t))))}function ia(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&Ft.postRender((()=>o(t,$o(t))))}const sa=new WeakMap,aa=new WeakMap,la=e=>{const t=sa.get(e.target);t&&t(e)},ca=e=>{e.forEach(la)};const ua={some:0,all:1},da={inView:{Feature:class extends Wo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ua[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;aa.has(n)||aa.set(n,{});const r=aa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ca,{root:e,...t})),r[o]}(t);return sa.set(e,n),r.observe(e),()=>{sa.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Wo{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=jt(e,n),s=e=>{const r=e.currentTarget;if(!St(e)||Ot.has(r))return;Ot.add(r);const i=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),St(e)&&Ot.has(r)&&(Ot.delete(r),"function"==typeof i&&i(e,{success:t}))},a=e=>{s(e,n.useGlobalTarget||Et(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return At.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=kt((()=>{if(Ot.has(n))return;zt(n,"down");const e=kt((()=>{zt(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>zt(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}(e,(e=>(ia(this.node,e,"Start"),(e,{success:t})=>ia(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Wo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=Gr(Go(this.node.current,"focus",(()=>this.onFocus())),Go(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Wo{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=jt(e,n),s=Tt((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=Tt((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",s,o)})),i}(e,(e=>(oa(this.node,e,"Start"),e=>oa(this.node,e,"End")))))}unmount(){}}}},fa={layout:{ProjectionNode:na,MeasureLayout:$i}},ha=(0,d.createContext)({strict:!1}),ma=(0,d.createContext)({});function ga(e){return $e(e.animate)||rt.some((t=>Xe(e[t])))}function pa(e){return Boolean(ga(e)||e.variants)}function Ma(e){return Array.isArray(e)?e.join(" "):e}const ya={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"]},Na={};for(const e in ya)Na[e]={isEnabled:t=>ya[e].some((e=>!!t[e]))};const xa=Symbol.for("motionComponentSymbol");function Da(e,t,n){return(0,d.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ii(n)&&(n.current=r))}),[t])}function va(e,t,n,r,o){var i,s;const{visualElement:a}=(0,d.useContext)(ma),l=(0,d.useContext)(ha),c=(0,d.useContext)(Ue),u=(0,d.useContext)(Qe).reducedMotion,f=(0,d.useRef)(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const h=f.current,m=(0,d.useContext)(Pi);!h||h.projection||!o||"html"!==h.type&&"svg"!==h.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:wa(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&ii(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(f.current,n,o,m);const g=(0,d.useRef)(!1);(0,d.useInsertionEffect)((()=>{h&&g.current&&h.update(n,c)}));const p=n[an],M=(0,d.useRef)(Boolean(p)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,p))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,p)));return He((()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Hi.render(h.render),M.current&&h.animationState&&h.animationState.animateChanges())})),(0,d.useEffect)((()=>{h&&(!M.current&&h.animationState&&h.animationState.animateChanges(),M.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,p)})),M.current=!1))})),h}function wa(e){if(e)return!1!==e.options.allowProjection?e.projection:wa(e.parent)}function ba({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;function a(e,i){let s;const a={...(0,d.useContext)(Qe),...e,layoutId:ja(e)},{isStatic:l}=a,c=function(e){const{initial:t,animate:n}=function(e,t){if(ga(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Xe(t)?t:void 0,animate:Xe(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,d.useContext)(ma));return(0,d.useMemo)((()=>({initial:t,animate:n})),[Ma(t),Ma(n)])}(e),f=r(e,l);if(!l&&We){(0,d.useContext)(ha).strict;const e=function(e){const{drag:t,layout:n}=Na;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(a);s=e.MeasureLayout,c.visualElement=va(o,f,a,t,e.ProjectionNode)}return(0,u.jsxs)(ma.Provider,{value:c,children:[s&&c.visualElement?(0,u.jsx)(s,{visualElement:c.visualElement,...a}):null,n(o,e,Da(f,c.visualElement,i),f,l,c.visualElement)]})}e&&function(e){for(const t in e)Na[t]={...Na[t],...e[t]}}(e),a.displayName=`motion.${"string"==typeof o?o:`create(${null!==(s=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==s?s:""})`}`;const l=(0,d.forwardRef)(a);return l[xa]=o,l}function ja({layoutId:e}){const t=(0,d.useContext)(Le).id;return t&&void 0!==e?t+"-"+e:e}const Ta=["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 Ea(e){return"string"==typeof e&&!e.includes("-")&&!!(Ta.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ia=e=>(t,n)=>{const r=(0,d.useContext)(ma),o=(0,d.useContext)(Ue),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const s={latestValues:Aa(r,o,i,e),renderState:t()};return n&&(s.onMount=e=>n({props:r,current:e,...s}),s.onUpdate=e=>n(e)),s}(e,t,r,o);return n?i():Ce(i)};function Aa(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Ji(i[e]);let{initial:s,animate:a}=e;const l=ga(e),c=pa(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!$e(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=et(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Oa=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ka={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},za=Qt.length;function Sa(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(Rt.has(e))s=!0;else if(jr(e))o[e]=n;else{const t=Oa(n,or[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<za;i++){const s=Qt[i],a=e[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 e=Oa(a,or[s]);l||(o=!1,r+=`${ka[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const La={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ca={offset:"strokeDashoffset",array:"strokeDasharray"};function Ua(e,t,n){return"string"==typeof e?e:Un.transform(t+n*e)}function Qa(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(Sa(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Ua(t,e.x,e.width)} ${Ua(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?La:Ca;e[i.offset]=Un.transform(-r);const s=Un.transform(t),a=Un.transform(n);e[i.array]=`${s} ${a}`}(f,s,a,l,!1)}const Ra=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ya(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Pa=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 _a(e,t,n,r){Ya(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Pa.has(n)?n:sn(n),t.attrs[n])}function Fa(e,{layout:t,layoutId:n}){return Rt.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Wi[e]||"opacity"===e)}function Ba(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(rn(o[s])||t.style&&rn(t.style[s])||Fa(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function Va(e,t,n){const r=Ba(e,t,n);for(const n in e)(rn(e[n])||rn(t[n]))&&(r[-1!==Qt.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const Wa=["x","y","width","height","cx","cy","r"],Ha={useVisualState:Ia({scrapeMotionValuesFromProps:Va,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(Rt.has(e)){i=!0;break}if(!i)return;let s=!t;if(t)for(let n=0;n<Wa.length;n++){const r=Wa[n];e[r]!==t[r]&&(s=!0)}s&&Ft.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),Ft.render((()=>{Qa(r,o,Ra(n.tagName),e.transformTemplate),_a(n,r)}))}))}})},qa={useVisualState:Ia({scrapeMotionValuesFromProps:Ba,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Ga(e,t,n){for(const r in t)rn(t[r])||Fa(r,n)||(e[r]=t[r])}function $a(e,t){const n={},r=function(e,t){const n={};return Ga(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,d.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Sa(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Za=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 Ka(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Za.has(e)}let Xa=e=>!Ka(e);try{(Ja=require("@emotion/is-prop-valid").default)&&(Xa=e=>e.startsWith("on")?!Ka(e):Ja(e))}catch(e){}var Ja;function el(e,t,n,r){const o=(0,d.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Qa(n,t,Ra(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Ga(t,e.style,e),o.style={...t,...o.style}}return o}function tl(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(Ea(t)?el:$a)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Xa(o)||!0===n&&Ka(o)||!t&&!Ka(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==d.Fragment?{...a,...s,ref:r}:{},{children:c}=n,u=(0,d.useMemo)((()=>rn(c)?c.get():c),[c]);return(0,d.createElement)(t,{...l,children:u})}}function nl(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return ba({...Ea(n)?Ha:qa,preloadedFeatures:e,useRender:tl(r),createVisualElement:t,Component:n})}}const rl={current:null},ol={current:!1},il=[...zr,_n,Zn],sl=new WeakMap,al=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ll{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Gt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Ft.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=ga(t),this.isVariantNode=pa(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==a[e]&&rn(t)&&t.set(a[e],!1)}}mount(e){this.current=e,sl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),ol.current||function(){if(ol.current=!0,We)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rl.current=e.matches;e.addListener(t),t()}else rl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rl.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sl.delete(this.current),this.projection&&this.projection.unmount(),Bt(this.notifyUpdate),Bt(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Rt.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ft.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Na){const t=Na[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<al.length;t++){const n=al[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(rn(o))e.addValue(r,o);else if(rn(i))e.addValue(r,tn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,tn(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tn(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(wr(r)||xn(r))?r=parseFloat(r):(o=r,!il.find(kr(o))&&Zn.test(t)&&(r=ar(e,t))),this.setBaseTarget(e,rn(r)?r.get():r)),rn(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=et(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||rn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Kt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class cl extends ll{constructor(){super(...arguments),this.KeyframeResolver=Lr}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;rn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class ul extends cl{constructor(){super(...arguments),this.type="html",this.renderInstance=Ya}readValueFromInstance(e,t){if(Rt.has(t)){const e=sr(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(jr(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Li(e,t)}build(e,t,n){Sa(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ba(e,t,n)}}class dl extends cl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Mi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Rt.has(t)){const e=sr(t);return e&&e.default||0}return t=Pa.has(t)?t:sn(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Va(e,t,n)}build(e,t,n){Qa(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){_a(e,t,0,r)}mount(e){this.isSVGTag=Ra(e.tagName),super.mount(e)}}const fl=Ge(nl({...qo,...da,...ra,...fa},((e,t)=>Ea(e)?new dl(t):new ul(t,{allowProjection:e!==d.Fragment}))));let hl=!1;const ml=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:i="light",design:s="stack",icon:a,variant:l="neutral",removeToast:c})=>{const f=(0,d.useRef)(0),h=(0,d.useRef)(0),m=(0,d.useRef)(),g=(e,t=o)=>{if(r&&!(o<0))return f.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof c&&c(e.id)}),t)};(0,d.useEffect)((()=>{const t=o;return m.current=g(e,t),()=>{clearTimeout(m.current)}}),[]),(0,d.useEffect)((()=>{!e?.dismiss||"function"!=typeof c||c(e.id)}),[e]);const p=()=>{"function"==typeof c&&e?.action?.onClick?.((()=>c(e.id)))};let y=null;return"stack"===s&&(y=(0,u.jsx)("div",{className:me("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?ke:Oe?.[l],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(m.current),h.current=(new Date).getTime()},onMouseLeave:()=>{m.current=g(e,o-(h.current-f.current))},children:"custom"!==e.type?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:be({variant:l,icon:a,theme:i})}),(0,u.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Te({title:t,theme:i}),Ee({content:n,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,u.jsx)("div",{className:"mt-2.5",children:je({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:p,theme:i})})]}),(0,u.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,u.jsx)("button",{className:me("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",ze[i]??ze.light),onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof c&&c(e.id)},children:(0,u.jsx)(M,{})})})]}):e?.jsx?.({close:()=>c(e.id),action:e?.action?{...e?.action,onClick:p}:null})})),"inline"===s&&(y=(0,u.jsxs)("div",{className:me("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?ke:Oe?.[l],"lg:w-[47.5rem] w-full"),children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:be({variant:l,icon:a,theme:i})}),(0,u.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Te({title:t,theme:i}),Ee({content:n,theme:i})]}),(0,u.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,u.jsx)("button",{className:me("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",ze[i]??ze.light),onClick:()=>c(e.id),children:(0,u.jsx)(M,{})})})]})),y},gl=(e=>(0,d.memo)((t=>{const n=t.singleTon;return hl&&n?null:(hl=!0,(0,u.jsx)(e,{...t}))})))((({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[s,a]=(0,d.useState)([]);(0,d.useEffect)((()=>{l.subscribe((e=>{e?.dismiss?a((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,Se.flushSync)((()=>a((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const c=e=>{a((t=>t.filter((t=>t.id!==e))))};return(0,u.jsx)("ul",{className:me("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Ae[e]??Ae["top-right"],r),children:(0,u.jsx)(qe,{initial:!1,children:s.map((e=>(0,u.jsx)(fl.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,u.jsx)(ml,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id)))})})}));var pl={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ml=new class{#n=pl;#r=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},yl="undefined"==typeof window||"Deno"in globalThis;function Nl(){}function xl(e){return"number"==typeof e&&e>=0&&e!==1/0}function Dl(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vl(e,t){return"function"==typeof e?e(t):e}function wl(e,t){return"function"==typeof e?e(t):e}function bl(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Tl(s,t.options))return!1}else if(!Il(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function jl(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(El(t.options.mutationKey)!==El(i))return!1}else if(!Il(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Tl(e,t){return(t?.queryKeyHashFn||El)(e)}function El(e){return JSON.stringify(e,((e,t)=>Sl(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Il(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every((n=>Il(e[n],t[n])))}var Al=Object.prototype.hasOwnProperty;function Ol(e,t){if(e===t)return e;const n=zl(e)&&zl(t);if(!(n||Sl(e)&&Sl(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),i=o.length,s=n?new Array(i):{};let a=0;for(let l=0;l<i;l++){const i=n?l:o[l],c=e[i],u=t[i];if(c===u){s[i]=c,(n?l<r:Al.call(e,i))&&a++;continue}if(null===c||null===u||"object"!=typeof c||"object"!=typeof u){s[i]=u;continue}const d=Ol(c,u);s[i]=d,d===c&&a++}return r===i&&a===r?e:s}function kl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zl(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sl(e){if(!Ll(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ll(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Ll(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cl(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ol(e,t):t}function Ul(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ql(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Rl=Symbol();function Yl(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Rl?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Pl(e,t){return"function"==typeof e?e(...t):!!e}var _l=function(e){setTimeout(e,0)},Fl=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=_l;const i=r=>{t?e.push(r):o((()=>{n(r)}))};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Bl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vl=new class extends Bl{#o;#i;#s;constructor(){super(),this.#s=e=>{if(!yl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#i||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#s=e,this.#i?.(),this.#i=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#o!==e&&(this.#o=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#o?this.#o:"hidden"!==globalThis.document?.visibilityState}},Wl=new class extends Bl{#a=!0;#i;#s;constructor(){super(),this.#s=e=>{if(!yl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#i||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#s=e,this.#i?.(),this.#i=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#a}};function Hl(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function ql(e){return Math.min(1e3*2**e,3e4)}function Gl(e){return"online"!==(e??"online")||Wl.isOnline()}var $l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Zl(e){let t,n=!1,r=0;const o=Hl(),i=()=>"pending"!==o.status,s=()=>Vl.isFocused()&&("always"===e.networkMode||Wl.isOnline())&&e.canRun(),a=()=>Gl(e.networkMode)&&e.canRun(),l=e=>{i()||(t?.(),o.resolve(e))},c=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise((n=>{t=e=>{(i()||s())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,i()||e.onContinue?.()})),d=()=>{if(i())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch((t=>{if(i())return;const o=e.retry??(yl?0:3),a=e.retryDelay??ql,l="function"==typeof a?a(r,t):a,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var h;!n&&f?(r++,e.onFail?.(r,t),(h=l,new Promise((e=>{Ml.setTimeout(e,h)}))).then((()=>s()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const n=new $l(t);c(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),o)}}var Kl=class{#l;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xl(this.gcTime)&&(this.#l=Ml.setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(yl?1/0:3e5))}clearGcTimeout(){this.#l&&(Ml.clearTimeout(this.#l),this.#l=void 0)}},Xl=class extends Kl{#c;#u;#d;#f;#h;#m;#g;constructor(e){super(),this.#g=!1,this.#m=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#f=e.client,this.#d=this.#f.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=tc(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#m,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=tc(this.options);void 0!==e.data&&(this.setState(ec(e.data,e.dataUpdatedAt)),this.#c=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,t){const n=Cl(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(Nl).catch(Nl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#c)}isActive(){return this.observers.some((e=>!1!==wl(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rl||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some((e=>"static"===vl(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Dl(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#h&&(this.#g?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#h?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#g=!0,n.signal)})},o=()=>{const e=Yl(this.options,t),n=(()=>{const e={client:this.#f,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#g=!1,this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#f,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),this.#u=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#p({type:"fetch",meta:i.fetchOptions?.meta}),this.#h=Zl({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof $l&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#h.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof $l){if(e.silent)return this.#h.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Jl(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,...ec(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Fl.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#d.notify({query:this,type:"updated",action:e})}))}};function Jl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gl(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function ec(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tc(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nc=class extends Bl{constructor(e={}){super(),this.config=e,this.#M=new Map}#M;build(e,t,n){const r=t.queryKey,o=t.queryHash??Tl(r,t);let i=this.get(o);return i||(i=new Xl({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#M.has(e.queryHash)||(this.#M.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#M.get(e.queryHash);t&&(e.destroy(),t===e&&this.#M.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Fl.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#M.get(e)}getAll(){return[...this.#M.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>bl(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>bl(e,t))):t}notify(e){Fl.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Fl.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Fl.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},rc=class extends Kl{#f;#y;#N;#h;constructor(e){super(),this.#f=e.client,this.mutationId=e.mutationId,this.#N=e.mutationCache,this.#y=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#N.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#y=this.#y.filter((t=>t!==e)),this.scheduleGc(),this.#N.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#N.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#p({type:"continue"})},n={client:this.#f,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=Zl({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#N.canRun(this)});const r="pending"===this.state.status,o=!this.#h.canStart();try{if(r)t();else{this.#p({type:"pending",variables:e,isPaused:o}),await(this.#N.config.onMutate?.(e,this,n));const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#h.start();return await(this.#N.config.onSuccess?.(i,e,this.state.context,this,n)),await(this.options.onSuccess?.(i,e,this.state.context,n)),await(this.#N.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(i,null,e,this.state.context,n)),this.#p({type:"success",data:i}),i}catch(t){try{throw await(this.#N.config.onError?.(t,e,this.state.context,this,n)),await(this.options.onError?.(t,e,this.state.context,n)),await(this.#N.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(void 0,t,e,this.state.context,n)),t}finally{this.#p({type:"error",error:t})}}finally{this.#N.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Fl.batch((()=>{this.#y.forEach((t=>{t.onMutationUpdate(e)})),this.#N.notify({mutation:this,type:"updated",action:e})}))}},oc=class extends Bl{constructor(e={}){super(),this.config=e,this.#x=new Set,this.#D=new Map,this.#v=0}#x;#D;#v;build(e,t,n){const r=new rc({client:e,mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#x.add(e);const t=ic(e);if("string"==typeof t){const n=this.#D.get(t);n?n.push(e):this.#D.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#x.delete(e)){const t=ic(e);if("string"==typeof t){const n=this.#D.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#D.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ic(e);if("string"==typeof t){const n=this.#D.get(t),r=n?.find((e=>"pending"===e.state.status));return!r||r===e}return!0}runNext(e){const t=ic(e);if("string"==typeof t){const n=this.#D.get(t)?.find((t=>t!==e&&t.state.isPaused));return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Fl.batch((()=>{this.#x.forEach((e=>{this.notify({type:"removed",mutation:e})})),this.#x.clear(),this.#D.clear()}))}getAll(){return Array.from(this.#x)}find(e){const t={exact:!0,...e};return this.getAll().find((e=>jl(t,e)))}findAll(e={}){return this.getAll().filter((t=>jl(e,t)))}notify(e){Fl.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Fl.batch((()=>Promise.all(e.map((e=>e.continue().catch(Nl))))))}};function ic(e){return e.options.scope?.id}function sc(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=Yl(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)}),e})(),s=await c(i),{maxPages:a}=t.options,l=o?Ql:Ul;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,r,a)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:s},n=(e?lc:ac)(r,t);a=await u(t,n,e)}else{const t=e??i.length;do{const e=0===l?s[0]??r.initialPageParam:ac(r,a);if(l>0&&null==e)break;a=await u(a,e),l++}while(l<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function ac(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function lc(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var cc,uc=d.createContext(void 0),dc=e=>{const t=d.useContext(uc);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fc=({client:e,children:t})=>(d.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,u.jsx)(uc.Provider,{value:e,children:t}));function hc(){return hc=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},hc.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(cc||(cc={}));const mc="popstate";function gc(e,t){if(!1===e||null==e)throw new Error(t)}function pc(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function Mc(e,t){return{usr:e.state,key:e.key,idx:t}}function yc(e,t,n,r){return void 0===n&&(n=null),hc({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?xc(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function Nc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function xc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Dc;function vc(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o=Uc(("string"==typeof t?xc(t):t).pathname||"/",n);if(null==o)return null;let i=wc(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let s=null;for(let e=0;null==s&&e<i.length;++e){let t=Cc(o);s=Sc(i[e],t,r)}return s}(e,t,n,!1)}function wc(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(gc(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=Fc([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(gc(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),wc(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:zc(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of bc(e.path))o(e,t,n);else o(e,t)})),t}function bc(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=bc(r.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Dc||(Dc={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const jc=/^:[\w-]+$/,Tc=3,Ec=2,Ic=1,Ac=10,Oc=-2,kc=e=>"*"===e;function zc(e,t){let n=e.split("/"),r=n.length;return n.some(kc)&&(r+=Oc),t&&(r+=Ec),n.filter((e=>!kc(e))).reduce(((e,t)=>e+(jc.test(t)?Tc:""===t?Ic:Ac)),r)}function Sc(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=Lc({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c),d=a.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Lc({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),s.push({params:o,pathname:Fc([i,u.pathname]),pathnameBase:Bc(Fc([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=Fc([i,u.pathnameBase]))}return s}function Lc(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),pc("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=a[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:s,pattern:e}}function Cc(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return pc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Uc(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const Qc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Rc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function Yc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. 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 Pc(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function _c(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=xc(e):(o=hc({},e),gc(!o.pathname||!o.pathname.includes("?"),Yc("?","pathname","search",o)),gc(!o.pathname||!o.pathname.includes("#"),Yc("#","pathname","hash",o)),gc(!o.search||!o.search.includes("#"),Yc("#","search","hash",o)));let i,s=""===e||""===o.pathname,a=s?"/":o.pathname;if(null==a)i=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?xc(e):e;if(r)if(s=r,Qc.test(s))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),pc(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?Rc(r.substring(1),"/"):Rc(r,t)}else n=t;var s;return{pathname:n,search:Vc(o),hash:Wc(i)}}(o,i),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Fc=e=>e.join("/").replace(/\/\/+/g,"/"),Bc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vc=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Wc=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Hc=["post","put","patch","delete"],qc=(new Set(Hc),["get",...Hc]);function Gc(){return Gc=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},Gc.apply(this,arguments)}new Set(qc),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const $c=d.createContext(null),Zc=d.createContext(null),Kc=d.createContext(null),Xc=d.createContext(null),Jc=d.createContext({outlet:null,matches:[],isDataRoute:!1}),eu=d.createContext(null);function tu(){return null!=d.useContext(Xc)}function nu(){return tu()||gc(!1),d.useContext(Xc).location}function ru(e){d.useContext(Kc).static||d.useLayoutEffect(e)}function ou(){let{isDataRoute:e}=d.useContext(Jc);return e?function(){let{router:e}=function(){let e=d.useContext($c);return e||gc(!1),e}(hu.UseNavigateStable),t=gu(mu.UseNavigateStable),n=d.useRef(!1);return ru((()=>{n.current=!0})),d.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Gc({fromRouteId:t},o)))}),[e,t])}():function(){tu()||gc(!1);let e=d.useContext($c),{basename:t,future:n,navigator:r}=d.useContext(Kc),{matches:o}=d.useContext(Jc),{pathname:i}=nu(),s=JSON.stringify(Pc(o,n.v7_relativeSplatPath)),a=d.useRef(!1);return ru((()=>{a.current=!0})),d.useCallback((function(n,o){if(void 0===o&&(o={}),!a.current)return;if("number"==typeof n)return void r.go(n);let l=_c(n,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Fc([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[t,r,s,i,e])}()}const iu=d.createContext(null);function su(){let{matches:e}=d.useContext(Jc),t=e[e.length-1];return t?t.params:{}}function au(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=d.useContext(Kc),{matches:o}=d.useContext(Jc),{pathname:i}=nu(),s=JSON.stringify(Pc(o,r.v7_relativeSplatPath));return d.useMemo((()=>_c(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}function lu(e,t,n,r){tu()||gc(!1);let{navigator:o}=d.useContext(Kc),{matches:i}=d.useContext(Jc),s=i[i.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=nu();if(t){var f;let e="string"==typeof t?xc(t):t;"/"===l||(null==(f=e.pathname)?void 0:f.startsWith(l))||gc(!1),c=e}else c=u;let h=c.pathname||"/",m=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=vc(e,{pathname:m}),p=function(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(o=n)?void 0:o.errors;if(null!=a){let e=s.findIndex((e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id])));e>=0||gc(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){l=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((e,r,o)=>{let i,u=!1,f=null,h=null;var m;n&&(i=a&&r.route.id?a[r.route.id]:void 0,f=r.route.errorElement||uu,l&&(c<0&&0===o?(pu[m="route-fallback"]||(pu[m]=!0),u=!0,h=null):c===o&&(u=!0,h=r.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,o+1)),p=()=>{let t;return t=i?f:u?h:r.route.Component?d.createElement(r.route.Component,null):r.route.element?r.route.element:e,d.createElement(fu,{match:r,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?d.createElement(du,{location:n.location,revalidation:n.revalidation,component:f,error:i,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Fc([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Fc([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&p?d.createElement(Xc.Provider,{value:{location:Gc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:cc.Pop}},p):p}function cu(){let e=function(){var e;let t=d.useContext(eu),n=function(){let e=d.useContext(Zc);return e||gc(!1),e}(mu.UseRouteError),r=gu(mu.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:r},n):null,null)}const uu=d.createElement(cu,null);class du extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?d.createElement(Jc.Provider,{value:this.props.routeContext},d.createElement(eu.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fu(e){let{routeContext:t,match:n,children:r}=e,o=d.useContext($c);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Jc.Provider,{value:t},r)}var hu=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hu||{}),mu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(mu||{});function gu(e){let t=function(){let e=d.useContext(Jc);return e||gc(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||gc(!1),n.route.id}const pu={};function Mu(e){return function(e){let t=d.useContext(Jc).outlet;return t?d.createElement(iu.Provider,{value:e},t):t}(e.context)}function yu(e){gc(!1)}function Nu(e){let{basename:t="/",children:n=null,location:r,navigationType:o=cc.Pop,navigator:i,static:s=!1,future:a}=e;tu()&&gc(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo((()=>({basename:l,navigator:i,static:s,future:Gc({v7_relativeSplatPath:!1},a)})),[l,a,i,s]);"string"==typeof r&&(r=xc(r));let{pathname:u="/",search:f="",hash:h="",state:m=null,key:g="default"}=r,p=d.useMemo((()=>{let e=Uc(u,l);return null==e?null:{location:{pathname:e,search:f,hash:h,state:m,key:g},navigationType:o}}),[l,u,f,h,m,g,o]);return null==p?null:d.createElement(Kc.Provider,{value:c},d.createElement(Xc.Provider,{children:n,value:p}))}function xu(e){let{children:t,location:n}=e;return lu(Du(t),n)}function Du(e,t){void 0===t&&(t=[]);let n=[];return d.Children.forEach(e,((e,r)=>{if(!d.isValidElement(e))return;let o=[...t,r];if(e.type===d.Fragment)return void n.push.apply(n,Du(e.props.children,o));e.type!==yu&&gc(!1),e.props.index&&e.props.children&&gc(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Du(e.props.children,o)),n.push(i)})),n}function vu(){return vu=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},vu.apply(this,arguments)}function wu(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}d.startTransition,new Promise((()=>{})),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const bu=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(hl){}new Map;const ju=d.startTransition;function Tu(e){let{basename:t,children:n,future:r,window:o}=e,i=d.useRef();var s;null==i.current&&(i.current=(void 0===(s={window:o,v5Compat:!0})&&(s={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=cc.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function d(){a=cc.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:a,location:h.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:Nc(e);return n=n.replace(/ $/,"%20"),gc(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(hc({},s.state,{idx:c}),""));let h={get action(){return a},get location(){return e(o,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(mc,d),l=e,()=>{o.removeEventListener(mc,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=cc.Push;let r=yc(h.location,e,t);n&&n(r,e),c=u()+1;let d=Mc(r,c),f=h.createHref(r);try{s.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:a,location:h.location,delta:1})},replace:function(e,t){a=cc.Replace;let r=yc(h.location,e,t);n&&n(r,e),c=u();let o=Mc(r,c),d=h.createHref(r);s.replaceState(o,"",d),i&&l&&l({action:a,location:h.location,delta:0})},go:e=>s.go(e)};return h}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=xc(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),yc("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Nc(t))}),(function(e,t){pc("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),s)));let a=i.current,[l,c]=d.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=d.useCallback((e=>{u&&ju?ju((()=>c(e))):c(e)}),[c,u]);return d.useLayoutEffect((()=>a.listen(f)),[a,f]),d.useEffect((()=>{return null==(e=r)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t}),[r]),d.createElement(Nu,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}Se.flushSync,d.useId;const Eu="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Iu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Au=d.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:f}=e,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,bu),{basename:m}=d.useContext(Kc),g=!1;if("string"==typeof c&&Iu.test(c)&&(n=c,Eu))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Uc(t.pathname,m);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:g=!0}catch(e){}let p=function(e,t){let{relative:n}=void 0===t?{}:t;tu()||gc(!1);let{basename:r,navigator:o}=d.useContext(Kc),{hash:i,pathname:s,search:a}=au(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Fc([r,s])),o.createHref({pathname:l,search:a,hash:i})}(c,{relative:o}),M=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=void 0===t?{}:t,l=ou(),c=nu(),u=au(e,{relative:s});return d.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:Nc(c)===Nc(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:a})}}),[c,l,u,r,o,n,e,i,s,a])}(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:f});return d.createElement("a",vu({},h,{href:n||p,onClick:g||i?r:function(e){r&&r(e),e.defaultPrevented||M(e)},ref:t,target:l}))}));var Ou,ku;function zu(e){let t=d.useRef(wu(e)),n=d.useRef(!1),r=nu(),o=d.useMemo((()=>function(e,t){let n=wu(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=ou(),s=d.useCallback(((e,t)=>{const r=wu("function"==typeof e?e(o):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ou||(Ou={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ku||(ku={}));const Su=window.wp.i18n,Lu=function(){return React.createElement("div",null,React.createElement("h1",{className:"text-xl whitespace-nowrap font-semibold text-text-primary leading-[30px] tracking-[-0.005em]"},(0,Su.__)("All Form Entries","sureforms")))},Cu=window.wp.hooks,Uu=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();var Qu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ru=(0,d.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>(0,d.createElement)("svg",{ref:l,...Qu,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Uu("lucide",o),...a},[...s.map((([e,t])=>(0,d.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),Yu=(e,t)=>{const n=(0,d.forwardRef)((({className:n,...r},o)=>{return(0,d.createElement)(Ru,{ref:o,iconNode:t,className:Uu(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},Pu=Yu("ArchiveRestore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]),_u=Yu("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Fu=Yu("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),Bu=Yu("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vu=Yu("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Wu=Yu("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Hu=Yu("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),qu=Yu("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]),Gu=Yu("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),$u=p("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Zu=p("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ku=p("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function Xu(){return"undefined"!=typeof window}function Ju(e){return nd(e)?(e.nodeName||"").toLowerCase():"#document"}function ed(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function td(e){var t;return null==(t=(nd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nd(e){return!!Xu()&&(e instanceof Node||e instanceof ed(e).Node)}function rd(e){return!!Xu()&&(e instanceof Element||e instanceof ed(e).Element)}function od(e){return!!Xu()&&(e instanceof HTMLElement||e instanceof ed(e).HTMLElement)}function id(e){return!(!Xu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ed(e).ShadowRoot)}function sd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ad(e){return["table","td","th"].includes(Ju(e))}function ld(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function cd(e){const t=ud(),n=rd(e)?fd(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ud(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function dd(e){return["html","body","#document"].includes(Ju(e))}function fd(e){return ed(e).getComputedStyle(e)}function hd(e){return rd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function md(e){if("html"===Ju(e))return e;const t=e.assignedSlot||e.parentNode||id(e)&&e.host||td(e);return id(t)?t.host:t}function gd(e){const t=md(e);return dd(t)?e.ownerDocument?e.ownerDocument.body:e.body:od(t)&&sd(t)?t:gd(t)}function pd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=gd(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=ed(o);if(i){const e=Md(s);return t.concat(s,s.visualViewport||[],sd(o)?o:[],e&&n?pd(e):[])}return t.concat(o,pd(o,[],n))}function Md(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yd(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Nd(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&id(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function xd(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Dd(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function vd(e){return!(0!==e.mozInputSource||!e.isTrusted)||(jd()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function wd(e){return!Dd().includes("jsdom/")&&(!jd()&&0===e.width&&0===e.height||jd()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function bd(){return/apple/i.test(navigator.vendor)}function jd(){const e=/android/i;return e.test(xd())||e.test(Dd())}function Td(){return xd().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Ed(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Id(e){return(null==e?void 0:e.ownerDocument)||document}function Ad(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Od(e){return"composedPath"in e?e.composedPath()[0]:e.target}function kd(e){return od(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function zd(e){e.preventDefault(),e.stopPropagation()}function Sd(e){return!!e&&"combobox"===e.getAttribute("role")&&kd(e)}const Ld=Math.min,Cd=Math.max,Ud=Math.round,Qd=Math.floor,Rd=e=>({x:e,y:e}),Yd={left:"right",right:"left",bottom:"top",top:"bottom"},Pd={start:"end",end:"start"};function _d(e,t,n){return Cd(e,Ld(t,n))}function Fd(e,t){return"function"==typeof e?e(t):e}function Bd(e){return e.split("-")[0]}function Vd(e){return e.split("-")[1]}function Wd(e){return"x"===e?"y":"x"}function Hd(e){return"y"===e?"height":"width"}function qd(e){return["top","bottom"].includes(Bd(e))?"y":"x"}function Gd(e){return Wd(qd(e))}function $d(e){return e.replace(/start|end/g,(e=>Pd[e]))}function Zd(e){return e.replace(/left|right|bottom|top/g,(e=>Yd[e]))}function Kd(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Xd(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Jd=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),ef="undefined"==typeof Element,tf=ef?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nf=!ef&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},rf=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},of=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!rf(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{tf.call(s,Jd)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!rf(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},sf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},af=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!sf(e)?0:e.tabIndex},lf=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},cf=function(e){return"INPUT"===e.tagName},uf=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},df=function(e,t){return!(t.disabled||rf(t)||function(e){return cf(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=tf.call(e,"details>summary:first-of-type")?e.parentElement:e;if(tf.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return uf(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=nf(e);if(s&&!s.shadowRoot&&!0===r(s))return uf(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(function(e){var t,n,r,o,i=e&&nf(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=nf(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!tf.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ff=function(e,t){return!(function(e){return function(e){return cf(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||nf(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||af(t)<0||!df(e,t))},hf=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mf=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,s=i?t.scopeParent:t,a=function(e,t){var n=af(e);return n<0&&t&&!sf(e)?0:n}(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(lf).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},gf=function(e,t){var n;return n=(t=t||{}).getShadowRoot?of([e],t.includeContainer,{filter:ff.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:hf}):function(e,t,n){if(rf(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Jd));return t&&tf.call(e,Jd)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,ff.bind(null,t)),mf(n)};function pf(e,t,n){let{reference:r,floating:o}=e;const i=qd(t),s=Gd(t),a=Hd(s),l=Bd(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Vd(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1)}return h}async function Mf(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Fd(t,e),m=Kd(h),g=a[f?"floating"===d?"reference":"floating":d],p=Xd(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),M="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),N=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=Xd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:y,strategy:l}):M);return{top:(p.top-x.top+m.top)/N.y,bottom:(x.bottom-p.bottom+m.bottom)/N.y,left:(p.left-x.left+m.left)/N.x,right:(x.right-p.right+m.right)/N.x}}function yf(e){const t=fd(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=od(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ud(n)!==i||Ud(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Nf(e){return rd(e)?e:e.contextElement}function xf(e){const t=Nf(e);if(!od(t))return Rd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=yf(t);let s=(i?Ud(n.width):n.width)/r,a=(i?Ud(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Df=Rd(0);function vf(e){const t=ed(e);return ud()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Df}function wf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Nf(e);let s=Rd(1);t&&(r?rd(r)&&(s=xf(r)):s=xf(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ed(e))&&t}(i,n,r)?vf(i):Rd(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=ed(i),t=r&&rd(r)?ed(r):r;let n=e,o=Md(n);for(;o&&r&&t!==n;){const e=xf(o),t=o.getBoundingClientRect(),r=fd(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=ed(o),o=Md(n)}}return Xd({width:u,height:d,x:l,y:c})}function bf(e,t){const n=hd(e).scrollLeft;return t?t.left+n:wf(td(e)).left+n}function jf(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:bf(e,r)),y:r.top+t.scrollTop}}function Tf(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ed(e),r=td(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=ud();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=td(e),n=hd(e),r=e.ownerDocument.body,o=Cd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Cd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+bf(e);const a=-n.scrollTop;return"rtl"===fd(r).direction&&(s+=Cd(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(td(e));else if(rd(t))r=function(e,t){const n=wf(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=od(e)?xf(e):Rd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=vf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xd(r)}function Ef(e,t){const n=md(e);return!(n===t||!rd(n)||dd(n))&&("fixed"===fd(n).position||Ef(n,t))}function If(e,t,n){const r=od(t),o=td(t),i="fixed"===n,s=wf(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Rd(0);function c(){l.x=bf(o)}if(r||!r&&!i)if(("body"!==Ju(t)||sd(o))&&(a=hd(t)),r){const e=wf(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Rd(0):jf(o,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function Af(e){return"static"===fd(e).position}function Of(e,t){if(!od(e)||"fixed"===fd(e).position)return null;if(t)return t(e);let n=e.offsetParent;return td(e)===n&&(n=n.ownerDocument.body),n}function kf(e,t){const n=ed(e);if(ld(e))return n;if(!od(e)){let t=md(e);for(;t&&!dd(t);){if(rd(t)&&!Af(t))return t;t=md(t)}return n}let r=Of(e,t);for(;r&&ad(r)&&Af(r);)r=Of(r,t);return r&&dd(r)&&Af(r)&&!cd(r)?n:r||function(e){let t=md(e);for(;od(t)&&!dd(t);){if(cd(t))return t;if(ld(t))return null;t=md(t)}return null}(e)||n}const zf={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=td(r),a=!!t&&ld(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Rd(1);const u=Rd(0),d=od(r);if((d||!d&&!i)&&(("body"!==Ju(r)||sd(s))&&(l=hd(r)),od(r))){const e=wf(r);c=xf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!s||d||i?Rd(0):jf(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:td,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ld(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=pd(e,[],!1).filter((e=>rd(e)&&"body"!==Ju(e))),o=null;const i="fixed"===fd(e).position;let s=i?md(e):e;for(;rd(s)&&!dd(s);){const t=fd(s),n=cd(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||sd(s)&&!n&&Ef(e,s))?r=r.filter((e=>e!==s)):o=t,s=md(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Tf(t,n,o);return e.top=Cd(r.top,e.top),e.right=Ld(r.right,e.right),e.bottom=Ld(r.bottom,e.bottom),e.left=Cd(r.left,e.left),e}),Tf(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:kf,getElementRects:async function(e){const t=this.getOffsetParent||kf,n=this.getDimensions,r=await n(e.floating);return{reference:If(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=yf(e);return{width:t,height:n}},getScale:xf,isElement:rd,isRTL:function(e){return"rtl"===fd(e).direction}};function Sf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lf(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Nf(e),u=o||i?[...c?pd(c):[],...pd(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=td(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(a||t(),!f||!h)return;const m={rootMargin:-Qd(d)+"px "+-Qd(o.clientWidth-(u+f))+"px "+-Qd(o.clientHeight-(d+h))+"px "+-Qd(u)+"px",threshold:Cd(0,Ld(1,l))||1};let g=!0;function p(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Sf(c,e.getBoundingClientRect())||s(),g=!1}try{r=new IntersectionObserver(p,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(p,m)}r.observe(e)}(!0),i}(c,n):null;let f,h=-1,m=null;s&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let g=l?wf(e):null;return l&&function t(){const r=wf(e);g&&!Sf(g,r)&&n(),g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Cf=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Bd(n),a=Vd(n),l="y"===qd(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=Fd(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(h="end"===a?-1*m:m),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Uf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Fd(e,t),c={x:n,y:r},u=await Mf(t,l),d=qd(Bd(o)),f=Wd(d);let h=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";h=_d(h+u["y"===f?"top":"left"],h,h-u[e])}if(s){const e="y"===d?"bottom":"right";m=_d(m+u["y"===d?"top":"left"],m,m-u[e])}const g=a.fn({...t,[f]:h,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[d]:s}}}}}},Qf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...p}=Fd(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const M=Bd(o),y=qd(a),N=Bd(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),D=f||(N||!g?[Zd(a)]:function(e){const t=Zd(e);return[$d(e),t,$d(t)]}(a)),v="none"!==m;!f&&v&&D.push(...function(e,t,n,r){const o=Vd(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Bd(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map($d)))),i}(a,g,m,x));const w=[a,...D],b=await Mf(t,p),j=[];let T=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&j.push(b[M]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Vd(e),o=Gd(e),i=Hd(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zd(s)),[s,Zd(s)]}(o,s,x);j.push(b[e[0]],b[e[1]])}if(T=[...T,{placement:o,overflows:j}],!j.every((e=>e<=0))){var E,I;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=w[e];if(t){var A;const n="alignment"===d&&y!==qd(t),r=(null==(A=T[0])?void 0:A.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(I=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(h){case"bestFit":{var O;const e=null==(O=T.filter((e=>{if(v){const t=qd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Rf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Fd(e,t),u=await Mf(t,c),d=Bd(o),f=Vd(o),h="y"===qd(o),{width:m,height:g}=i.floating;let p,M;"top"===d||"bottom"===d?(p=d,M=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(M=d,p="end"===f?"top":"bottom");const y=g-u.top-u.bottom,N=m-u.left-u.right,x=Ld(g-u[p],y),D=Ld(m-u[M],N),v=!t.middlewareData.shift;let w=x,b=D;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(b=N),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(w=y),v&&!f){const e=Cd(u.left,0),t=Cd(u.right,0),n=Cd(u.top,0),r=Cd(u.bottom,0);h?b=m-2*(0!==e||0!==t?e+t:Cd(u.left,u.right)):w=g-2*(0!==n||0!==r?n+r:Cd(u.top,u.bottom))}await l({...t,availableWidth:b,availableHeight:w});const j=await s.getDimensions(a.floating);return m!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}},Yf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Fd(e,t)||{};if(null==c)return{};const d=Kd(u),f={x:n,y:r},h=Gd(o),m=Hd(h),g=await s.getDimensions(c),p="y"===h,M=p?"top":"left",y=p?"bottom":"right",N=p?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[h]-f[h]-i.floating[m],D=f[h]-i.reference[h],v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let w=v?v[N]:0;w&&await(null==s.isElement?void 0:s.isElement(v))||(w=a.floating[N]||i.floating[m]);const b=x/2-D/2,j=w/2-g[m]/2-1,T=Ld(d[M],j),E=Ld(d[y],j),I=T,A=w-g[m]-E,O=w/2-g[m]/2+b,k=_d(I,O,A),z=!l.arrow&&null!=Vd(o)&&O!==k&&i.reference[m]/2-(O<I?T:E)-g[m]/2<0,S=z?O<I?O-I:O-A:0;return{[h]:f[h]+S,data:{[h]:k,centerOffset:O-k-S,...z&&{alignmentOffset:S}},reset:z}}}),Pf=(e,t,n)=>{const r=new Map,o={platform:zf,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=pf(c,r,l),f=r,h={},m=0;for(let n=0;n<a.length;n++){const{name:i,fn:g}=a[n],{x:p,y:M,data:y,reset:N}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=p?p:u,d=null!=M?M:d,h={...h,[i]:{...h[i],...y}},N&&m<=50&&(m++,"object"==typeof N&&(N.placement&&(f=N.placement),N.rects&&(c=!0===N.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):N.rects),({x:u,y:d}=pf(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var _f="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;function Ff(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ff(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Ff(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Bf(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(e,t){const n=Bf(e);return Math.round(t*n)/n}function Wf(e){const t=d.useRef(e);return _f((()=>{t.current=e})),t}const Hf=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Yf({element:n.current,padding:r}).fn(t):{}:n?Yf({element:n,padding:r}).fn(t):{};var o}}),qf=(e,t)=>({...Cf(e),options:[e,t]}),Gf=(e,t)=>({...Uf(e),options:[e,t]}),$f=(e,t)=>({...Qf(e),options:[e,t]}),Zf={...f},Kf=Zf.useInsertionEffect||(e=>e());function Xf(e){const t=d.useRef((()=>{}));return Kf((()=>{t.current=e})),d.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Jf="ArrowUp",eh="ArrowDown",th="ArrowLeft",nh="ArrowRight";function rh(e,t,n){return Math.floor(e/t)!==n}function oh(e,t){return t<0||t>=e.current.length}function ih(e,t){return ah(e,{disabledIndices:t})}function sh(e,t){return ah(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ah(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const s=e.current;let a=n;do{a+=r?-i:i}while(a>=0&&a<=s.length-1&&uh(s,a,o));return a}function lh(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function ch(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function uh(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var dh="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;function fh(){return fh=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},fh.apply(this,arguments)}let hh=!1,mh=0;const gh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mh++,ph=Zf.useId||function(){const[e,t]=d.useState((()=>hh?gh():void 0));return dh((()=>{null==e&&t(gh())}),[]),d.useEffect((()=>{hh=!0}),[]),e},Mh=d.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:s=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:f,d:h,style:{transform:m,...g}={},...p}=e,M=ph(),[y,N]=d.useState(!1);if(dh((()=>{r&&"rtl"===fd(r).direction&&N(!0)}),[r]),!r)return null;const[x,D]=n.split("-"),v="top"===x||"bottom"===x;let w=u;(v&&null!=i&&i.x||!v&&null!=i&&i.y)&&(w=null);const b=2*c,j=b/2,T=s/2*(l/-8+1),E=a/2*l/4,I=!!h,A=w&&"end"===D?"bottom":"top";let O=w&&"end"===D?"right":"left";w&&y&&(O="end"===D?"left":"right");const k=null!=(null==o?void 0:o.x)?w||o.x:"",z=null!=(null==o?void 0:o.y)?w||o.y:"",S=h||"M0,0 H"+s+" L"+(s-T)+","+(a-E)+" Q"+s/2+","+a+" "+T+","+(a-E)+" Z",L={top:I?"rotate(180deg)":"",left:I?"rotate(90deg)":"rotate(-90deg)",bottom:I?"":"rotate(180deg)",right:I?"rotate(-90deg)":"rotate(90deg)"}[x];return d.createElement("svg",fh({},p,{"aria-hidden":!0,ref:t,width:I?s:s+b,height:s,viewBox:"0 0 "+s+" "+(a>s?a:s),style:{position:"absolute",pointerEvents:"none",[O]:k,[A]:z,[x]:v||I?"100%":"calc(100% - "+b/2+"px)",transform:[L,m].filter((e=>!!e)).join(" "),...g}}),b>0&&d.createElement("path",{clipPath:"url(#"+M+")",fill:"none",stroke:f,strokeWidth:b+(h?0:1),d:S}),d.createElement("path",{stroke:b&&!h?p.fill:"none",d:S}),d.createElement("clipPath",{id:M},d.createElement("rect",{x:-j,y:j*(I?-1:1),width:s+b,height:s})))}));const yh=d.createContext(null),Nh=d.createContext(null),xh=()=>{var e;return(null==(e=d.useContext(yh))?void 0:e.id)||null},Dh=()=>d.useContext(Nh);function vh(e){return"data-floating-ui-"+e}function wh(e){const t=(0,d.useRef)(e);return dh((()=>{t.current=e})),t}const bh=vh("safe-polygon");function jh(e,t,n){return n&&!Ed(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let Th=0;function Eh(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Th);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Th=requestAnimationFrame(i)}function Ih(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Ah=new WeakMap,Oh=new WeakSet,kh={},zh=0;const Sh=e=>e&&(e.host||Sh(e.parentNode));function Lh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Id(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=(a=t,e.map((e=>{if(a.contains(e))return e;const t=Sh(e);return a.contains(t)?t:null})).filter((e=>null!=e)));var a;const l=new Set,c=new Set(s),u=[];kh[o]||(kh[o]=new WeakMap);const d=kh[o];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==Ju(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Ah.get(t)||0)+1,s=(d.get(t)||0)+1;Ah.set(t,r),d.set(t,s),u.push(t),1===r&&n&&Oh.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),zh++,()=>{u.forEach((e=>{const t=(Ah.get(e)||0)-1,n=(d.get(e)||0)-1;Ah.set(e,t),d.set(e,n),t||(!Oh.has(e)&&i&&e.removeAttribute(i),Oh.delete(e)),n||e.removeAttribute(o)})),zh--,zh||(Ah=new WeakMap,Ah=new WeakMap,Oh=new WeakSet,kh={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ch=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Uh(e,t){const n=gf(e,Ch());"prev"===t&&n.reverse();const r=n.indexOf(yd(Id(e)));return n.slice(r+1)[0]}function Qh(){return Uh(document.body,"next")}function Rh(){return Uh(document.body,"prev")}function Yh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Nd(n,r)}function Ph(e){gf(e,Ch()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function _h(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Fh={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Bh(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Vh=d.forwardRef((function(e,t){const[n,r]=d.useState();dh((()=>(bd()&&r("button"),document.addEventListener("keydown",Bh),()=>{document.removeEventListener("keydown",Bh)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[vh("focus-guard")]:"",style:Fh};return d.createElement("span",fh({},e,o))})),Wh=d.createContext(null),Hh=vh("portal");function qh(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=ph(),o=Gh(),[i,s]=d.useState(null),a=d.useRef(null);return dh((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{a.current=null}))}),[i]),dh((()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Hh,""),e.appendChild(n),a.current=n,s(n)}),[t,r]),dh((()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!rd(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Hh,""),e=i||e,e.appendChild(l),a.current=l,s(l)}),[t,n,r,o]),i}({id:n,root:r}),[s,a]=d.useState(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=null==s?void 0:s.modal,m=null==s?void 0:s.open,g=!!s&&!s.modal&&s.open&&o&&!(!r&&!i);return d.useEffect((()=>{if(i&&o&&!h)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Yh(e)&&("focusin"===e.type?_h:Ph)(i)}}),[i,o,h]),d.useEffect((()=>{i&&(m||_h(i))}),[m,i]),d.createElement(Wh.Provider,{value:d.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:f,portalNode:i,setFocusManagerState:a})),[o,i])},g&&i&&d.createElement(Vh,{"data-type":"outside",ref:l,onFocus:e=>{if(Yh(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=Rh()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),g&&i&&d.createElement("span",{"aria-owns":i.id,style:Fh}),i&&Se.createPortal(t,i),g&&i&&d.createElement(Vh,{"data-type":"outside",ref:c,onFocus:e=>{if(Yh(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=Qh()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Gh=()=>d.useContext(Wh),$h="data-floating-ui-focusable";function Zh(e){return e?e.hasAttribute($h)?e:e.querySelector("["+$h+"]")||e:null}let Kh=[];function Xh(e){Kh=Kh.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Ju(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==tf.call(e,Jd)&&ff(t,e)}(t,Ch())){const e=gf(t,Ch())[0];e&&(t=e)}Kh.push(t),Kh.length>20&&(Kh=Kh.slice(-20))}}function Jh(){return Kh.slice().reverse().find((e=>e.isConnected))}const em=d.forwardRef((function(e,t){return d.createElement("button",fh({},e,{type:"button",ref:t,tabIndex:-1,style:Fh}))}));function tm(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:m,nodeId:g,onOpenChange:p,events:M,dataRef:y,floatingId:N,elements:{domReference:x,floating:D}}=t,v="number"==typeof s&&s<0,w=Sd(x)&&v,b="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,j=wh(o),T=wh(s),E=wh(a),I=Dh(),A=Gh(),O=d.useRef(null),k=d.useRef(null),z=d.useRef(!1),S=d.useRef(!1),L=d.useRef(-1),C=null!=A,U=Zh(D),Q=Xf((function(e){return void 0===e&&(e=U),e?gf(e,Ch()):[]})),R=Xf((e=>{const t=Q(e);return j.current.map((e=>x&&"reference"===e?x:U&&"floating"===e?U:t)).filter(Boolean).flat()}));function Y(e){return!r&&u&&c?d.createElement(em,{ref:"start"===e?O:k,onClick:e=>p(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}d.useEffect((()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Nd(U,yd(Id(U)))&&0===Q().length&&!w&&zd(e);const t=R(),n=Od(e);"reference"===j.current[0]&&n===x&&(zd(e),e.shiftKey?Eh(t[t.length-1]):Eh(t[1])),"floating"===j.current[1]&&n===U&&e.shiftKey&&(zd(e),Eh(t[0]))}}const t=Id(U);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,U,c,j,w,Q,R]),d.useEffect((()=>{if(!r&&D)return D.addEventListener("focusin",e),()=>{D.removeEventListener("focusin",e)};function e(e){const t=Od(e),n=Q().indexOf(t);-1!==n&&(L.current=n)}}),[r,D,Q]),d.useEffect((()=>{if(!r&&f)return D&&od(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),D.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),D.removeEventListener("focusout",t)}):void 0;function e(){S.current=!0,setTimeout((()=>{S.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(Nd(x,t)||Nd(D,t)||Nd(t,D)||Nd(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(vh("focus-guard"))||I&&(Ih(I.nodesRef.current,g).find((e=>{var n,r;return Nd(null==(n=e.context)?void 0:n.elements.floating,t)||Nd(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(I.nodesRef.current,g).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(l&&n&&yd(Id(U))===Id(U).body){od(U)&&U.focus();const e=L.current,t=Q(),n=t[e]||t[t.length-1]||U;od(n)&&n.focus()}!w&&c||!t||!n||S.current||t===Jh()||(z.current=!0,p(!1,e,"focus-out"))}))}}),[r,x,D,U,c,g,I,A,p,f,l,Q,w]),d.useEffect((()=>{var e;if(r)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+vh("portal")+"]"))||[]);if(D){const e=[D,...t,O.current,k.current,j.current.includes("reference")||w?x:null].filter((e=>null!=e)),n=c||w?Lh(e,b,!b):Lh(e);return()=>{n()}}}),[r,x,D,c,j,A,w,b]),dh((()=>{if(r||!od(U))return;const e=yd(Id(U));queueMicrotask((()=>{const t=R(U),n=T.current,r=("number"==typeof n?t[n]:n.current)||U,o=Nd(U,e);v||o||!h||Eh(r,{preventScroll:r===U})}))}),[r,h,U,v,R,T]),dh((()=>{if(r||!U)return;let e=!1;const t=Id(U),n=yd(t);let o=y.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:s}=t;n&&(o=i),"escape-key"===r&&m.domReference.current&&Xh(m.domReference.current),"hover"===r&&"mouseleave"===i.type&&(z.current=!0),"outside-press"===r&&(s?(z.current=!1,e=!0):z.current=!(vd(i)||wd(i)))}Xh(n),M.on("openchange",i);const s=t.createElement("span");return s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true"),Object.assign(s.style,Fh),C&&x&&x.insertAdjacentElement("afterend",s),()=>{M.off("openchange",i);const n=yd(t),r=Nd(D,n)||I&&Ih(I.nodesRef.current,g).some((e=>{var t;return Nd(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&Xh(m.domReference.current);const a="boolean"==typeof E.current?Jh()||s:E.current.current||s;queueMicrotask((()=>{E.current&&!z.current&&od(a)&&(a===n||n===t.body||r)&&a.focus({preventScroll:e}),s.remove()}))}}),[r,D,U,E,y,m,M,I,g,C,x]),d.useEffect((()=>{queueMicrotask((()=>{z.current=!1}))}),[r]),dh((()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:f,open:h,onOpenChange:p,refs:m}),()=>{A.setFocusManagerState(null)}}),[r,A,c,h,p,m,f]),dh((()=>{if(r)return;if(!U)return;if("function"!=typeof MutationObserver)return;if(v)return;const e=()=>{const e=U.getAttribute("tabindex"),t=Q(),n=yd(Id(D)),r=t.indexOf(n);-1!==r&&(L.current=r),j.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&U.setAttribute("tabindex","0"):"-1"!==e&&U.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(U,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,D,U,m,j,Q,v]);const P=!r&&b&&(!c||!w)&&(C||c);return d.createElement(d.Fragment,null,P&&d.createElement(Vh,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(c){const e=R();Eh("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(z.current=!1,Yh(e,A.portalNode)){const e=Qh()||x;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!w&&Y("start"),n,Y("end"),P&&d.createElement(Vh,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(c)Eh(R()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(f&&(z.current=!0),Yh(e,A.portalNode)){const e=Rh()||x;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}}))}let nm=0,rm=()=>{};const om=d.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return dh((()=>{if(n)return nm++,1===nm&&(rm=function(){const e=/iP(hone|ad|od)|iOS/.test(xd()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,a;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(a=window.visualViewport)?void 0:a.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{nm--,0===nm&&rm()}}),[n]),d.createElement("div",fh({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function im(e){return od(e.target)&&"BUTTON"===e.target.tagName}function sm(e){return kd(e)}function am(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,h=d.useRef(),m=d.useRef(!1),g=d.useMemo((()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==a&&(Ed(t,!0)&&c||(!n||!l||o.current.openEvent&&f&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===a&&h.current?h.current=void 0:Ed(t,!0)&&c||(!n||!l||o.current.openEvent&&f&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!u||im(e)||(" "!==e.key||sm(i)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&r(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||im(e)||sm(i)||" "===e.key&&m.current&&(m.current=!1,r(!n||!l,e.nativeEvent,"click"))}})),[o,i,a,c,u,r,n,f,l]);return d.useMemo((()=>s?{reference:g}:{}),[s,g])}const lm={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},cm={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},um=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function dm(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:m,capture:g}=t,p=Dh(),M=Xf("function"==typeof l?l:()=>!1),y="function"==typeof l?M:l,N=d.useRef(!1),x=d.useRef(!1),{escapeKey:D,outsidePress:v}=um(m),{escapeKey:w,outsidePress:b}=um(g),j=d.useRef(!1),T=Xf((e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(j.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=p?Ih(p.nodesRef.current,o):[];if(!D&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),E=Xf((e=>{var t;const n=()=>{var t;T(e),null==(t=Od(e))||t.removeEventListener("keydown",n)};null==(t=Od(e))||t.addEventListener("keydown",n)})),I=Xf((e=>{var t;const n=N.current;N.current=!1;const s=x.current;if(x.current=!1,"click"===c&&s)return;if(n)return;if("function"==typeof y&&!y(e))return;const a=Od(e),l="["+vh("inert")+"]",u=Id(o.floating).querySelectorAll(l);let d=rd(a)?a:null;for(;d&&!dd(d);){const e=md(d);if(dd(e)||!rd(e))break;d=e}if(u.length&&rd(a)&&!a.matches("html,body")&&!Nd(a,o.floating)&&Array.from(u).every((e=>!Nd(d,e))))return;if(od(a)&&k){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===fd(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=p&&Ih(p.nodesRef.current,f).some((t=>{var n;return Ad(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Ad(e,o.floating)||Ad(e,o.domReference)||h)return;const m=p?Ih(p.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),A=Xf((e=>{var t;const n=()=>{var t;I(e),null==(t=Od(e))||t.removeEventListener(c,n)};null==(t=Od(e))||t.addEventListener(c,n)}));d.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=D,i.current.__outsidePressBubbles=v;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),j.current=!0}function u(){e=window.setTimeout((()=>{j.current=!1}),ud()?5:0)}const d=Id(o.floating);a&&(d.addEventListener("keydown",w?E:T,w),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),y&&d.addEventListener(c,b?A:I,b);let f=[];return h&&(rd(o.domReference)&&(f=pd(o.domReference)),rd(o.floating)&&(f=f.concat(pd(o.floating))),!rd(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(pd(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{a&&(d.removeEventListener("keydown",w?E:T,w),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),y&&d.removeEventListener(c,b?A:I,b),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,a,y,c,n,r,h,s,D,v,T,w,E,I,b,A]),d.useEffect((()=>{N.current=!1}),[y,c]);const O=d.useMemo((()=>({onKeyDown:T,[lm[f]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[T,r,u,f]),k=d.useMemo((()=>({onKeyDown:T,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[cm[c]]:()=>{N.current=!0}})),[T,c]);return d.useMemo((()=>s?{reference:O,floating:k}:{}),[s,O,k])}function fm(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ph(),i=d.useRef({}),[s]=d.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),a=null!=xh(),[l,c]=d.useState(r.reference),u=Xf(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),f=d.useMemo((()=>({setPositionReference:c})),[]),h=d.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return d.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:h,events:s,floatingId:o,refs:f})),[t,u,h,s,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=d.useState(null),[a,l]=d.useState(null),c=(null==o?void 0:o.domReference)||i,u=d.useRef(null),f=Dh();dh((()=>{c&&(u.current=c)}),[c]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=d.useState(r);Ff(h,r)||m(r);const[g,p]=d.useState(null),[M,y]=d.useState(null),N=d.useCallback((e=>{e!==w.current&&(w.current=e,p(e))}),[]),x=d.useCallback((e=>{e!==b.current&&(b.current=e,y(e))}),[]),D=i||g,v=s||M,w=d.useRef(null),b=d.useRef(null),j=d.useRef(u),T=null!=l,E=Wf(l),I=Wf(o),A=Wf(c),O=d.useCallback((()=>{if(!w.current||!b.current)return;const e={placement:t,strategy:n,middleware:h};I.current&&(e.platform=I.current),Pf(w.current,b.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};k.current&&!Ff(j.current,t)&&(j.current=t,Se.flushSync((()=>{f(t)})))}))}),[h,t,n,I,A]);_f((()=>{!1===c&&j.current.isPositioned&&(j.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const k=d.useRef(!1);_f((()=>(k.current=!0,()=>{k.current=!1})),[]),_f((()=>{if(D&&(w.current=D),v&&(b.current=v),D&&v){if(E.current)return E.current(D,v,O);O()}}),[D,v,O,E,T]);const z=d.useMemo((()=>({reference:w,floating:b,setReference:N,setFloating:x})),[N,x]),S=d.useMemo((()=>({reference:D,floating:v})),[D,v]),L=d.useMemo((()=>{const e={position:n,left:0,top:0};if(!S.floating)return e;const t=Vf(S.floating,u.x),r=Vf(S.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...Bf(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,S.floating,u.x,u.y]);return d.useMemo((()=>({...u,update:O,refs:z,elements:S,floatingStyles:L})),[u,O,z,S,L])}({...e,elements:{...o,...a&&{reference:a}}}),m=d.useCallback((e=>{const t=rd(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),g=d.useCallback((e=>{(rd(e)||null===e)&&(u.current=e,s(e)),(rd(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!rd(e))&&h.refs.setReference(e)}),[h.refs]),p=d.useMemo((()=>({...h.refs,setReference:g,setPositionReference:m,domReference:u})),[h.refs,g,m]),M=d.useMemo((()=>({...h.elements,domReference:c})),[h.elements,c]),y=d.useMemo((()=>({...h,...r,refs:p,elements:M,nodeId:t})),[h,p,M,t,r]);return dh((()=>{r.dataRef.current.floatingContext=y;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),d.useMemo((()=>({...h,context:y,refs:p,elements:M})),[h,p,M,y])}const hm="active",mm="selected";function gm(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hm]:t,[mm]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[$h]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[hm,mm].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function pm(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=d.useCallback((t=>gm(t,e,"reference")),t),i=d.useCallback((t=>gm(t,e,"floating")),n),s=d.useCallback((t=>gm(t,e,"item")),r);return d.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}let Mm=!1;function ym(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Nm(e,t){return ym(t,e===Jf||e===eh,e===th||e===nh)}function xm(e,t,n){return ym(t,e===eh,n?e===th:e===nh)||"Enter"===e||" "===e||""===e}function Dm(e,t,n){return ym(t,n?e===nh:e===th,e===Jf)}function vm(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:a=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:f=!1,nested:h=!1,rtl:m=!1,virtual:g=!1,focusItemOnOpen:p="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:y=!0,disabledIndices:N,orientation:x="vertical",cols:D=1,scrollItemIntoView:v=!0,virtualItemRef:w,itemSizes:b,dense:j=!1}=t,T=wh(Zh(o.floating)),E=xh(),I=Dh(),A=Xf(a),O=Sd(o.domReference),k=d.useRef(p),z=d.useRef(null!=c?c:-1),S=d.useRef(null),L=d.useRef(!0),C=d.useRef(A),U=d.useRef(!!o.floating),Q=d.useRef(n),R=d.useRef(!1),Y=d.useRef(!1),P=wh(N),_=wh(n),F=wh(v),B=wh(c),[V,W]=d.useState(),[H,q]=d.useState(),G=Xf((function(e,t,n){function r(e){g?(W(e.id),null==I||I.events.emit("virtualfocus",e),w&&(w.current=e)):Eh(e,{preventScroll:!0,sync:!(!Td()||!bd())&&(Mm||R.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const s=F.current;s&&Z&&(n||!L.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))}))}));dh((()=>{document.createElement("div").focus({get preventScroll(){return Mm=!0,!1}})}),[]),dh((()=>{l&&(n&&o.floating?k.current&&null!=c&&(Y.current=!0,z.current=c,A(c)):U.current&&(z.current=-1,C.current(null)))}),[l,n,o.floating,c,A]),dh((()=>{if(l&&n&&o.floating)if(null==s){if(R.current=!1,null!=B.current)return;if(U.current&&(z.current=-1,G(i,z)),(!Q.current||!U.current)&&k.current&&(null!=S.current||!0===k.current&&null==S.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(z.current=null==S.current||xm(S.current,x,m)||h?ih(i,P.current):sh(i,P.current),S.current=null,A(z.current))};t()}}else oh(i,s)||(z.current=s,G(i,z,Y.current),Y.current=!1)}),[l,n,o.floating,s,B,h,i,x,m,A,G,P]),dh((()=>{var e;if(!l||o.floating||!I||g||!U.current)return;const t=I.nodesRef.current,n=null==(e=t.find((e=>e.id===E)))||null==(e=e.context)?void 0:e.elements.floating,r=yd(Id(o.floating)),i=t.some((e=>e.context&&Nd(e.context.elements.floating,r)));n&&!i&&L.current&&n.focus({preventScroll:!0})}),[l,o.floating,I,E,g]),dh((()=>{if(l&&I&&g&&!E)return I.events.on("virtualfocus",e),()=>{I.events.off("virtualfocus",e)};function e(e){q(e.id),w&&(w.current=e)}}),[l,I,g,E,w]),dh((()=>{C.current=A,U.current=!!o.floating})),dh((()=>{n||(S.current=null)}),[n]),dh((()=>{Q.current=n}),[n]);const $=null!=s,Z=d.useMemo((()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&A(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...M&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;L.current&&"touch"!==t&&(z.current=-1,G(i,z),A(null),g||Eh(T.current,{preventScroll:!0}))}}}}),[n,T,G,M,i,A,g]),K=Xf((e=>{if(L.current=!1,R.current=!0,229===e.which)return;if(!_.current&&e.currentTarget===T.current)return;if(h&&Dm(e.key,x,m))return zd(e),r(!1,e.nativeEvent,"list-navigation"),void(od(o.domReference)&&(g?null==I||I.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=z.current,s=ih(i,N),a=sh(i,N);if(O||("Home"===e.key&&(zd(e),z.current=s,A(z.current)),"End"===e.key&&(zd(e),z.current=a,A(z.current))),D>1){const t=b||Array.from({length:i.current.length},(()=>({width:1,height:1}))),n=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:s,height:a}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<s;n++)for(let r=0;r<a;r++)e.push(o+n+r*t);o%t+s<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}(t,D,j),r=n.findIndex((e=>null!=e&&!uh(i.current,e,N))),o=n.reduce(((e,t,n)=>null==t||uh(i.current,t,N)?e:n),-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:s,disabledIndices:a,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,f=u;if(n.key===Jf){if(d&&zd(n),-1===u)f=c;else if(f=ah(e,{startingIndex:f,amount:s,decrement:!0,disabledIndices:a}),o&&(u-s<l||f<0)){const e=u%s,t=c%s,n=c-(t-e);f=t===e?c:t>e?n:n-s}oh(e,f)&&(f=u)}if(n.key===eh&&(d&&zd(n),-1===u?f=l:(f=ah(e,{startingIndex:u,amount:s,disabledIndices:a}),o&&u+s>c&&(f=ah(e,{startingIndex:u%s-s,amount:s,disabledIndices:a}))),oh(e,f)&&(f=u)),"both"===r){const t=Qd(u/s);n.key===(i?th:nh)&&(d&&zd(n),u%s!=s-1?(f=ah(e,{startingIndex:u,disabledIndices:a}),o&&rh(f,s,t)&&(f=ah(e,{startingIndex:u-u%s-1,disabledIndices:a}))):o&&(f=ah(e,{startingIndex:u-u%s-1,disabledIndices:a})),rh(f,s,t)&&(f=u)),n.key===(i?nh:th)&&(d&&zd(n),u%s!=0?(f=ah(e,{startingIndex:u,decrement:!0,disabledIndices:a}),o&&rh(f,s,t)&&(f=ah(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a}))):o&&(f=ah(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a})),rh(f,s,t)&&(f=u));const r=Qd(c/s)===t;oh(e,f)&&(f=o&&r?n.key===(i?nh:th)?c:ah(e,{startingIndex:u-u%s-1,disabledIndices:a}):u)}return f}({current:n.map((e=>null!=e?i.current[e]:null))},{event:e,orientation:x,loop:f,rtl:m,cols:D,disabledIndices:ch([...N||i.current.map(((e,t)=>uh(i.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:o,prevIndex:lh(z.current>a?s:z.current,t,n,D,e.key===eh?"bl":e.key===(m?th:nh)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(z.current=l,A(z.current)),"both"===x)return}if(Nm(e.key,x)){if(zd(e),n&&!g&&yd(e.currentTarget.ownerDocument)===e.currentTarget)return z.current=xm(e.key,x,m)?s:a,void A(z.current);xm(e.key,x,m)?z.current=f?t>=a?u&&t!==i.current.length?-1:s:ah(i,{startingIndex:t,disabledIndices:N}):Math.min(a,ah(i,{startingIndex:t,disabledIndices:N})):z.current=f?t<=s?u&&-1!==t?i.current.length:a:ah(i,{startingIndex:t,decrement:!0,disabledIndices:N}):Math.max(s,ah(i,{startingIndex:t,decrement:!0,disabledIndices:N})),oh(i,z.current)?A(null):A(z.current)}})),X=d.useMemo((()=>g&&n&&$&&{"aria-activedescendant":H||V}),[g,n,$,H,V]),J=d.useMemo((()=>({"aria-orientation":"both"===x?void 0:x,...!Sd(o.domReference)&&X,onKeyDown:K,onPointerMove(){L.current=!0}})),[X,K,o.domReference,x]),ee=d.useMemo((()=>{function e(e){"auto"===p&&vd(e.nativeEvent)&&(k.current=!0)}return{...X,onKeyDown(e){L.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),s=t||o,a=function(e,t,n){return ym(t,n?e===th:e===nh,e===eh)}(e.key,x,m),l=Dm(e.key,x,m),u=Nm(e.key,x),d=(h?a:u)||"Enter"===e.key||""===e.key.trim();if(g&&n){const t=null==I?void 0:I.nodesRef.current.find((e=>null==e.parentId)),n=I&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),Ih(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(I.nodesRef.current,t.id):null;if(s&&n&&w){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(a||l){var f,p;const r=(null==(f=n.context)?void 0:f.elements.domReference)===e.currentTarget,o=l&&!r?null==(p=n.context)?void 0:p.elements.domReference:a?i.current.find((e=>(null==e?void 0:e.id)===V)):null;o&&(zd(e),o.dispatchEvent(t),q(void 0))}var M;if((u||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return zd(e),void(null==(M=n.context.elements.domReference)||M.dispatchEvent(t))}return K(e)}(n||y||!t)&&(d&&(S.current=h&&u?null:e.key),h?a&&(zd(e),n?(z.current=ih(i,P.current),A(z.current)):r(!0,e.nativeEvent,"list-navigation")):u&&(null!=c&&(z.current=c),zd(e),!n&&y?r(!0,e.nativeEvent,"list-navigation"):K(e),n&&A(z.current)))},onFocus(){n&&!g&&A(null)},onPointerDown:function(e){k.current=p,"auto"===p&&wd(e.nativeEvent)&&(k.current=!0)},onMouseDown:e,onClick:e}}),[V,X,K,P,p,i,h,A,r,n,y,x,m,c,I,g,w]);return d.useMemo((()=>l?{reference:ee,floating:J,item:Z}:{}),[l,ee,J,Z])}const wm=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function bm(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,a=null!=(n=wm.get(s))?n:s,l=ph(),c=null!=xh(),u=d.useMemo((()=>"tooltip"===a||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":r?o:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l},..."menu"===a&&c&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[a,o,c,r,l,s]),f=d.useMemo((()=>{const e={id:o,...a&&{role:a}};return"tooltip"===a||"label"===s?e:{...e,..."menu"===a&&{"aria-labelledby":l}}}),[a,o,l,s]),h=d.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,s]);return d.useMemo((()=>i?{reference:u,floating:f,item:h}:{}),[i,u,f,h])}const jm=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Tm(e,t){return"function"==typeof e?e(t):e}function Em(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:s=250}=t,a=e.placement,l=a.split("-")[0],c=d.useMemo((()=>({side:l,placement:a})),[l,a]),u="number"==typeof s,f=(u?s:s.open)||0,h=(u?s:s.close)||0,[m,g]=d.useState((()=>({...Tm(i,c),...Tm(n,c)}))),{isMounted:p,status:M}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[s,a]=d.useState("unmounted"),l=function(e,t){const[n,r]=d.useState(e);return e&&!n&&r(!0),d.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return l||"close"!==s||a("unmounted"),dh((()=>{if(r){if(n){a("initial");const e=requestAnimationFrame((()=>{a("open")}));return()=>{cancelAnimationFrame(e)}}a("close")}}),[n,r]),{isMounted:l,status:s}}(e,{duration:s}),y=wh(n),N=wh(r),x=wh(o),D=wh(i);return dh((()=>{const e=Tm(y.current,c),t=Tm(x.current,c),n=Tm(D.current,c),r=Tm(N.current,c)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===M&&g((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===M&&g({transitionProperty:Object.keys(r).map(jm).join(","),transitionDuration:f+"ms",...n,...r}),"close"===M){const r=t||e;g({transitionProperty:Object.keys(r).map(jm).join(","),transitionDuration:h+"ms",...n,...r})}}),[h,x,y,N,D,f,M,c]),{isMounted:p,styles:m}}function Im(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function Am(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:f,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:p,clientY:M}=e,y=[p,M],N=Od(e),x="mouseleave"===e.type,D=Nd(d.floating,N),v=Nd(d.domReference,N),w=d.domReference.getBoundingClientRect(),b=d.floating.getBoundingClientRect(),j=u.split("-")[0],T=n>b.right-b.width/2,E=c>b.bottom-b.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,w),A=b.width>w.width,O=b.height>w.height,k=(A?w:b).left,z=(A?w:b).right,S=(O?w:b).top,L=(O?w:b).bottom;if(D&&(i=!0,!x))return;if(v&&(i=!1),v&&!x)return void(i=!0);if(x&&rd(e.relatedTarget)&&Nd(d.floating,e.relatedTarget))return;if(m&&Ih(m.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===j&&c>=w.bottom-1||"bottom"===j&&c<=w.top+1||"left"===j&&n>=w.right-1||"right"===j&&n<=w.left+1)return g();let C=[];switch(j){case"top":C=[[k,w.top+1],[k,b.bottom-1],[z,b.bottom-1],[z,w.top+1]];break;case"bottom":C=[[k,b.top+1],[k,w.bottom-1],[z,w.bottom-1],[z,b.top+1]];break;case"left":C=[[b.right-1,L],[b.right-1,S],[w.left+1,S],[w.left+1,L]];break;case"right":C=[[w.right-1,L],[w.right-1,S],[b.left+1,S],[b.left+1,L]]}if(!Im([p,M],C)){if(i&&!I)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Im([p,M],function(e){let[n,r]=e;switch(j){case"top":return[[A?n+t/2:T?n+4*t:n-4*t,r+t+1],[A?n-t/2:T?n+4*t:n-4*t,r+t+1],[b.left,T||A?b.bottom-t:b.top],[b.right,T?A?b.bottom-t:b.top:b.bottom-t]];case"bottom":return[[A?n+t/2:T?n+4*t:n-4*t,r-t],[A?n-t/2:T?n+4*t:n-4*t,r-t],[b.left,T||A?b.top+t:b.bottom],[b.right,T?A?b.top+t:b.bottom:b.top+t]];case"left":{const e=[n+t+1,O?r+t/2:E?r+4*t:r-4*t],o=[n+t+1,O?r-t/2:E?r+4*t:r-4*t];return[[E||O?b.right-t:b.left,b.top],[E?O?b.right-t:b.left:b.right-t,b.bottom],e,o]}case"right":return[[n-t,O?r+t/2:E?r+4*t:r-4*t],[n-t,O?r-t/2:E?r+4*t:r-4*t],[E||O?b.left+t:b.right,b.top],[E?O?b.left+t:b.right:b.left+t,b.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}let Om=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const km={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},zm="group-disabled:text-field-color-disabled",Sm={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},Lm={sm:"py-1.5 px-2 text-xs font-normal",md:"p-2 text-sm font-normal",lg:"p-2 text-base font-normal"},Cm=e=>null===e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?e.toString():Array.isArray(e)?e.map(Cm).join(" ").trim():(0,d.isValidElement)(e)?e.props&&e.props.children?Cm(e.props.children):"":"object"==typeof e&&"textContent"in e?e.textContent?.toString().toLowerCase()||"":"object"==typeof e&&"children"in e?Cm(e.children):"",Um=(0,d.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:i=null,disabled:s=!1,onClose:a=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:d=!1},f)=>{const h={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let m="",g="group relative justify-center flex items-center cursor-pointer";const p={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return s?(m=h.disabled,g+=" cursor-not-allowed disabled"):m=h[o],e?(0,u.jsxs)("span",{className:me("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",m,!d&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:f,children:[i?(0,u.jsx)("span",{className:me("justify-center flex items-center",p[t]),children:i}):null,(0,u.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,u.jsxs)("span",{className:me(g,p[t]),onMouseDown:c,role:"button",tabIndex:0,...!s&&{onClick:a},children:[(0,u.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,u.jsx)(M,{}),(0,u.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));Um.displayName="Badge";const Qm=p("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Rm=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],i={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,u.jsx)("span",{className:me("flex",i,o,r),children:n||(0,u.jsx)(Qm,{className:"animate-spin shrink-0"})})},Ym=(0,d.createContext)({}),Pm=()=>(0,d.useContext)(Ym),_m=(0,d.forwardRef)((({children:e,icon:t=null,placeholder:n="Select an option",optionIcon:r=null,render:o,label:i,className:s,...a},l)=>{const{sizeValue:c,getReferenceProps:f,getValues:h,selectId:m,refs:g,isOpen:p,multiple:M,combobox:y,setSelected:N,onChange:x,isControlled:D,disabled:v,by:w}=Pm(),b={sm:"xs",md:"sm",lg:"md"}[c],j=(0,d.useCallback)((()=>{if(t)return t;const e="text-field-placeholder group-disabled:text-icon-disabled";return y?(0,u.jsx)($u,{className:e}):(0,u.jsx)(Zu,{className:e})}),[t]),T=(0,d.useCallback)((()=>{const t=h();if(!t)return null;if(M)return t.map(((e,t)=>(0,u.jsx)(Um,{className:"cursor-default",icon:r,type:"rounded",size:b,onMouseDown:E(e),label:"function"==typeof o?o(e):e.toString(),closable:!0,disabled:v},t)));let n="string"==typeof t?t:"";if("function"==typeof o&&(n=o(t)),"function"==typeof e&&"function"!=typeof o){const r={value:t,...M?{onClose:E(t)}:{}};n=e(r)}return((0,d.isValidElement)(e)||"string"==typeof e)&&"function"!=typeof o&&(n=e),(0,u.jsx)("span",{className:me("truncate",km[c].displaySelected,zm),children:n})}),[h,v]),E=e=>t=>{t?.preventDefault(),t?.stopPropagation();const n=[...h()??[]],r=n.findIndex((t=>null!==t&&null!==e&&"object"==typeof t?t[w]===e[w]:t===e));-1!==r&&(n.splice(r,1),D||N(n),"function"==typeof x&&x(n))};return(0,u.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,u.jsx)("label",{className:me(km[c]?.label,"text-field-label"),htmlFor:m,children:i}),(0,u.jsxs)("button",{id:m,ref:Ie(g.setReference,l),className:me("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!p&&"focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong",km[c].selectButton,M&&km[c].multiSelect,"group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default",s),tabIndex:0,disabled:v,...a,...f(),children:[(0,u.jsxs)("div",{className:me("flex-1 grid items-center justify-start gap-1.5 overflow-hidden",h()&&"flex flex-wrap"),children:[T(),(M?!h()?.length:!h())&&(0,u.jsx)("div",{className:me("[grid-area:1/1/2/3] text-field-input px-1",km[c].displaySelected,zm),children:n})]}),(0,u.jsx)("div",{className:me("flex items-center [&>svg]:shrink-0",km[c].icon),children:j()})]})]})}));function Fm({label:e,children:t,className:n,...r}){const{index:o,totalGroups:i}=r,{sizeValue:s}=Pm();return(0,u.jsxs)(d.Fragment,{children:[(0,u.jsxs)("div",{className:"flex flex-col",role:"group","aria-label":e,children:[(0,u.jsx)("div",{className:me("p-2 font-normal text-text-tertiary",{sm:"text-xs",md:"text-xs",lg:"text-sm"}[s],n),id:`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,u.jsx)("div",{className:"flex flex-col",role:"presentation","aria-labelledby":`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:t})]}),o<i&&!!(t&&d.Children.count(t)>0)&&(0,u.jsx)("hr",{className:me("h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid",Sm[s])})]})}function Bm({children:e,className:t}){const{isOpen:n,context:r,refs:o,combobox:i,floatingStyles:s,getFloatingProps:a,sizeValue:l,setSearchKeyword:c,setActiveIndex:f,setSelectedIndex:h,value:m,selected:g,getValues:p,searchKeyword:M,listContentRef:y,by:N,searchPlaceholder:x,activeIndex:D,searchFn:v,debounceDelay:w}=Pm(),b=(0,d.useMemo)((()=>{const t=p();let n=-1;if(t){let r=d.Children.toArray(e);r.length>0&&(0,d.isValidElement)(r[0])&&r[0].type===Fm&&(r=d.Children.toArray(e).map((e=>(0,d.isValidElement)(e)?d.Children.toArray(e.props.children):[])).flat()),n=r.findIndex((e=>{if(!(0,d.isValidElement)(e))return!1;const n=e.props.value;return"object"==typeof n&&"object"==typeof t?n[N]===t[N]:n===t}))}return n}),[m,g,e,N]);(0,d.useLayoutEffect)((()=>{n||(f(b),h(b))}),[b,n]),(0,d.useLayoutEffect)((()=>{n&&(i&&[-1,null].includes(D)||f(-1))}),[M,n]);const j=(0,d.useMemo)((()=>{let t=0,n=0;d.Children.forEach(e,(e=>{if((0,d.isValidElement)(e)&&e.type===Fm){let n=!1;if(M&&!v){const t=M.toLowerCase(),r=(e.props.label?.toLowerCase()||"").includes(t),o=d.Children.toArray(e.props.children).some((e=>!!(0,d.isValidElement)(e)&&(Cm(e.props.children)?.toLowerCase()).includes(t)));n=r||o}else n=!0;n&&t++}})),n=Math.max(0,t-1);let r=0,o=0;return d.Children.map(e,(e=>{if(!(0,d.isValidElement)(e))return null;if(e.type===Fm){let t=!1;if(M&&!v){const n=M.toLowerCase();t=(e.props.label?.toLowerCase()||"").includes(n)}const i=d.Children.map(e.props.children,(e=>{if(!(0,d.isValidElement)(e))return null;if(t){const t={...e.props,index:r++};return(0,d.cloneElement)(e,t)}if(M&&!v){const t=Cm(e.props.children)?.toLowerCase(),n=M.toLowerCase();if(!t?.includes(n))return null}const n={...e.props,index:r++};return(0,d.cloneElement)(e,n)}));if(!i?.some((e=>null!==e)))return null;const s={...e.props,children:i,index:o,totalGroups:n};return o++,(0,d.cloneElement)(e,s)}if(M&&!v){const t=Cm(e.props?.children)?.toLowerCase(),n=M.toLowerCase();if(!t?.includes(n))return null}return(0,d.cloneElement)(e,{...e.props,index:r++})}))}),[M,m,g,e,v]),T=d.Children.count(j);(0,d.useEffect)((()=>{y.current=[];let t=d.Children.toArray(e);t&&(0,d.isValidElement)(t[0])&&t[0].type===Fm&&(t=d.Children.toArray(t).map((e=>(0,d.isValidElement)(e)?e.props.children:null)).filter(Boolean)),d.Children.forEach(t,(e=>{if(!(0,d.isValidElement)(e))return;const t=Cm(e.props?.children)?.toLowerCase();if(M&&!v){const e=M.toLowerCase();if(!t?.includes(e))return}y.current.push(t)}))}),[M,v]);const[E,I]=(0,d.useState)(!1),A=(0,d.useCallback)((async()=>{if(v&&"function"==typeof v&&!E){I(!0);try{await v(M)}catch(e){console.error(e)}finally{I(!1)}}}),[M]),O=((e,t=500)=>{const n=(0,d.useRef)(null);return(0,d.useCallback)(((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout((()=>e(...r)),t)}),[e,t])})(A,w);return(0,d.useEffect)((()=>{"function"==typeof v&&O()}),[O]),(0,u.jsx)(u.Fragment,{children:n&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(tm,{context:r,modal:!1,visuallyHiddenDismiss:!0,children:(0,u.jsxs)("div",{ref:o.setFloating,className:me("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle",i&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",km[l].dropdown,!i&&"h-auto",i?"overflow-hidden":"overflow-y-auto overflow-x-hidden",t),style:{...s,zIndex:1},...a(),children:[i&&(0,u.jsxs)("div",{className:me(km[l].searchbarWrapper),children:[E?(0,u.jsx)(Rm,{className:km[l].searchbarIcon}):(0,u.jsx)(Ku,{className:me("text-icon-secondary shrink-0",km[l].searchbarIcon)}),(0,u.jsx)("input",{className:me("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",km[l].searchbar),type:"search",name:"keyword",placeholder:x,onChange:e=>c(e.target.value),value:M,autoComplete:"off"})]}),(0,u.jsxs)("div",{className:me("overflow-y-auto overflow-x-hidden",!i&&"w-full h-full",km[l].dropdownItemsWrapper),children:[!!T&&j,!T&&(0,u.jsx)("div",{className:me("p-2 text-center font-medium text-field-placeholder",Lm[l]),children:"No items found"})]})]})})})})}function Vm({children:e,root:t,id:n}){return(0,u.jsx)(qh,{id:n,root:t,children:e})}function Wm({value:e,selected:t,children:n,className:r,...o}){const{sizeValue:i,getItemProps:s,onKeyDownItem:a,onClickItem:l,activeIndex:c,selectedIndex:f,updateListRef:h,getValues:m,by:g,multiple:p}=Pm(),{index:M}=o,y=(0,d.useRef)(M),N=(0,d.useMemo)((()=>{if(!p)return!1;const t=m();return!!t&&t.some((t=>null!==t&&null!==e&&"object"==typeof t?t[g]===e[g]:t===e))}),[e,m]),x=(0,d.useMemo)((()=>"boolean"==typeof t?t:p?N:M===f),[N,f,t]);return(0,u.jsxs)("div",{className:me("w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none",Lm[i],M===c&&"bg-button-tertiary-hover",r),ref:e=>{h(M,e)},role:"option",tabIndex:M===c?0:-1,"aria-selected":x&&M===c,...s({onClick(){l(y.current,e)},onKeyDown(t){a(t,y.current,e)}}),children:[(0,u.jsx)("span",{className:"w-full truncate",children:n}),x&&(0,u.jsx)(ye,{className:me("text-icon-on-color-disabled",{sm:"size-4",md:"size-4",lg:"size-5"}[i])})]})}const Hm=({id:e,size:t="md",value:n,defaultValue:r,onChange:o,by:i="id",children:s,multiple:a=!1,combobox:l=!1,disabled:c=!1,searchPlaceholder:f="Search...",searchFn:h,debounceDelay:m=500})=>{const g=(0,d.useMemo)((()=>e||`select-${Om()}`),[e]),p=(0,d.useMemo)((()=>typeof n<"u"),[n]),[M,y]=(0,d.useState)(r),[N,x]=(0,d.useState)(""),D=(0,d.useCallback)((()=>p?n:M),[p,n,M]),[v,w]=(0,d.useState)(!1),[b,j]=(0,d.useState)(null),[T,E]=(0,d.useState)(null),I={sm:l?256:172,md:l?256:216,lg:l?256:216},{refs:A,floatingStyles:O,context:k}=fm({strategy:"fixed",placement:"bottom-start",open:v,onOpenChange:w,whileElementsMounted:Lf,middleware:[qf(5),$f({padding:10}),(W={apply({rects:e,elements:n,availableHeight:r}){Object.assign(n.floating.style,{maxHeight:`min(${r}px, ${I[t]}px)`,maxWidth:`${e.reference.width}px`})},padding:10},{...Rf(W),options:[W,undefined]})]}),z=(0,d.useRef)([]),S=(0,d.useRef)([]),L=(0,d.useRef)(!1),C=am(k,{event:"mousedown"}),U=dm(k),Q=bm(k,{role:"listbox"}),R=vm(k,{listRef:z,activeIndex:b,selectedIndex:T,onNavigate:j,loop:!0}),Y=function(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:u=null,resetMs:f=750,ignoreKeys:h=[],selectedIndex:m=null}=t,g=d.useRef(),p=d.useRef(""),M=d.useRef(null!=(n=null!=m?m:s)?n:-1),y=d.useRef(null),N=Xf(a),x=Xf(l),D=wh(u),v=wh(h);dh((()=>{r&&(clearTimeout(g.current),y.current=null,p.current="")}),[r]),dh((()=>{var e;r&&""===p.current&&(M.current=null!=(e=null!=m?m:s)?e:-1)}),[r,m,s]);const w=Xf((e=>{e?o.current.typing||(o.current.typing=e,x(e)):o.current.typing&&(o.current.typing=e,x(e))})),b=Xf((e=>{function t(e,t,n){const r=D.current?D.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=i.current;if(p.current.length>0&&" "!==p.current[0]&&(-1===t(n,n,p.current)?w(!1):" "===e.key&&zd(e)),null==n||v.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(zd(e),w(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&p.current===e.key&&(p.current="",M.current=y.current),p.current+=e.key,clearTimeout(g.current),g.current=setTimeout((()=>{p.current="",M.current=y.current,w(!1)}),f);const o=M.current,s=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],p.current);-1!==s?(N(s),y.current=s):" "!==e.key&&(p.current="",w(!1))})),j=d.useMemo((()=>({onKeyDown:b})),[b]),T=d.useMemo((()=>({onKeyDown:b,onKeyUp(e){" "===e.key&&w(!1)}})),[b,w]);return d.useMemo((()=>c?{reference:j,floating:T}:{}),[c,j,T])}(k,{listRef:S,activeIndex:b,selectedIndex:T,onMatch:v?j:E,onTypingChange(e){L.current=e}}),{getReferenceProps:P,getFloatingProps:_,getItemProps:F}=pm([U,Q,R,C,...l?[]:[Y]]),B=(e,t)=>{if(a)return((e,t)=>{const n=[...D()??[]];-1===n.findIndex((e=>null!==e&&null!==t&&"object"==typeof e?e[i]===t[i]:e===t))&&(n.push(t),p||y(n),E(e),A.reference.current.focus(),w(!1),x(""),"function"==typeof o&&o(n))})(e,t);E(e),p||y(t),A.reference.current.focus(),w(!1),x(""),"function"==typeof o&&o(t)},V=(0,d.useCallback)(((e,t)=>{z.current[e]=t}),[]);var W;return(0,u.jsx)(Ym.Provider,{value:{selectedIndex:T,setSelectedIndex:E,activeIndex:b,setActiveIndex:j,selected:M,setSelected:y,handleSelect:B,combobox:l,sizeValue:t,multiple:a,onChange:o,isTypingRef:L,getItemProps:F,onClickItem:(e,t)=>{B(e,t)},onKeyDownItem:(e,t,n)=>{"Enter"===e.key&&(e.preventDefault(),B(t,n))," "===e.key&&!L.current&&(e.preventDefault(),B(t,n))},getValues:D,selectId:g,getReferenceProps:P,isOpen:v,value:n,updateListRef:V,refs:A,listContentRef:S,by:i,getFloatingProps:_,floatingStyles:O,context:k,searchKeyword:N,setSearchKeyword:x,disabled:c,isControlled:p,searchPlaceholder:f,searchFn:h,debounceDelay:m},children:s})};Hm.displayName="Select";const qm=Object.assign(Hm,{Portal:Vm,Button:_m,Options:Bm,Option:Wm,OptionGroup:Fm});Vm.displayName="Select.Portal",_m.displayName="Select.Button",Bm.displayName="Select.Options",Wm.displayName="Select.Option",Fm.displayName="Select.OptionGroup";const Gm=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,u.jsx)("div",{className:me(r,"animate-pulse",o,t),...n})},$m=p("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Zm=(0,d.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:i=!1,...s},a)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,u.jsx)(t,{ref:a,className:me("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...s,children:e})}));Zm.displayName="Label";const Km=(0,d.forwardRef)((({id:e,type:t="text",defaultValue:n="",value:r,size:o="sm",className:i="",disabled:s=!1,onChange:a=()=>{},error:l=!1,onError:c=()=>{},prefix:f=null,suffix:h=null,label:m="",...g},p)=>{const y=(0,d.useRef)(null),N=(0,d.useMemo)((()=>e||`input-${t}-${Om()}`),[e]),x=(0,d.useMemo)((()=>typeof r<"u"),[r]),[D,v]=(0,d.useState)(n),[w,b]=(0,d.useState)(null),j=(0,d.useCallback)((()=>x?r:D),[x,r,D]),T=e=>{if(s)return;let n;"file"===t?(n=e.target.files,n&&n.length>0?b(n[0].name):b(null)):n=e.target.value,!x&&"file"!==t&&v(n),"function"==typeof a&&a(n)},E=()=>{b(null),y.current&&(y.current.value=""),a(null)},I="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",A={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},O={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},k={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},z={sm:f?"pl-8":"",md:f?"pl-9":"",lg:f?"pl-10":""},S={sm:h?"pr-8":"",md:h?"pr-9":"",lg:h?"pr-10":""},L=s?"hover:outline-border-disabled":"hover:outline-border-strong",C="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",U=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",Q=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",R=s?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",Y=s?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",P="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",_=s?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",F={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},B=(0,d.useMemo)((()=>m?(0,u.jsx)(Zm,{className:me(O[o]),htmlFor:N,...g?.required&&{required:!0},children:m}):null),[m,o,N]),V=w?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,u.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[B,(0,u.jsxs)("div",{className:me("w-full relative flex focus-within:z-10",i),children:[(0,u.jsx)("input",{ref:Ie(y,p),id:N,type:"file",className:me(I,Y,A[o],k[o],C,L,Q,V),disabled:s,onChange:T,onInvalid:c,...g}),(0,u.jsx)("div",{className:me(_,"right-0 pr-3",F[o]),children:(0,u.jsx)($m,{})})]})]}):(0,u.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[B,(0,u.jsxs)("div",{className:me("w-full relative flex focus-within:z-10",i),children:[f?(0,u.jsx)("div",{className:me(P,"left-0 pl-3",k[o]),children:f}):null,(0,u.jsx)("input",{ref:Ie(y,p),id:N,type:t,className:me(I,R,A[o],k[o],z[o],S[o],C,L,U),disabled:s,onChange:T,onInvalid:c,value:j(),...g}),"file"===t?w?(0,u.jsx)("div",{className:me(_,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",F[o]),onClick:E,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&E()},children:(0,u.jsx)(M,{})}):(0,u.jsx)("div",{className:me(_,"right-0 pr-3",F[o]),children:(0,u.jsx)($m,{})}):h?(0,u.jsx)("div",{className:me(P,"right-0 pr-3",k[o]),children:h}):null]})]})}));Km.displayName="Input";const Xm=(0,d.createContext)({}),Jm=()=>(0,d.useContext)(Xm),eg=({size:e="md",children:t,className:n})=>(0,u.jsx)(Xm.Provider,{value:{size:e},children:(0,u.jsx)("div",{className:me("flex flex-col bg-background-primary p-2",n),children:t})});eg.displayName="Menu";const tg=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:i,className:s})=>{const[a,l]=(0,d.useState)(r),[c,f]=(0,d.useState)(!1),{size:h}=Jm(),m={sm:"text-xs",md:"text-sm"}[h??"md"],g={sm:"size-4",md:"size-5"}[h??"md"],p=()=>{l(!a),o&&o(!a)};return(0,u.jsxs)("div",{children:[!!e&&(0,u.jsxs)("div",{role:"button",tabIndex:0,onClick:p,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&p()},onMouseEnter:()=>n&&f(!0),onMouseLeave:()=>n&&f(!1),className:me("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",m,e?"p-1":"p-0",s),"aria-expanded":a,children:[(0,u.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,u.jsx)(fl.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:n?a||c?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,u.jsx)(fl.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:a?"open":"closed",transition:{duration:.15},children:(0,u.jsx)(Zu,{className:me("shrink-0",g)})})})]}),(0,u.jsx)(qe,{initial:!1,children:a&&(0,u.jsx)(fl.ul,{role:"menu",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:"overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0",children:i})})]})};tg.displayName="Menu.List";const ng=({disabled:e=!1,active:t,onClick:n,children:r,className:o,...i})=>{const{size:s}=Jm(),a={sm:"[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm",md:"[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base"}[s??"md"];return(0,u.jsx)("li",{role:"menuitem",tabIndex:e?-1:0,onClick:e?void 0:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:me("flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0",a,"hover:bg-background-secondary hover:text-text-primary",e?"text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent":"",t?"text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary":"","transition-colors duration-300 ease-in-out",o),"aria-disabled":e,...i,children:r})};ng.displayName="Menu.Item";const rg=({variant:e="solid",className:t})=>{const n={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",hidden:"border-hidden",none:"border-none"}[e];return(0,u.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,u.jsx)("hr",{className:me("w-full border-0 border-t border-border-subtle",n,t)})})};rg.displayName="Menu.Separator",eg.List=tg,eg.Item=ng,eg.Separator=rg;const og=(0,d.createContext)({}),ig=()=>(0,d.useContext)(og),sg=({placement:e="bottom",offset:t=10,boundary:n="clippingAncestors",children:r,className:o})=>{const[i,s]=(0,d.useState)(!1),{refs:a,floatingStyles:l,context:c}=fm({open:i,onOpenChange:s,placement:e,strategy:"fixed",middleware:[qf(t),$f({boundary:n}),Gf({boundary:n})],whileElementsMounted:Lf}),f=am(c),h=dm(c),m=bm(c,{role:"menu"}),{getReferenceProps:g,getFloatingProps:p}=pm([f,h,m]),{isMounted:M,styles:y}=Em(c,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),N=()=>s((e=>!e));return(0,u.jsx)(og.Provider,{value:{refs:a,handleClose:()=>s(!1),isMounted:M,styles:y,floatingStyles:l,getFloatingProps:p},children:(0,u.jsxs)("div",{className:me("relative inline-block",o),children:[d.Children.map(r,(e=>d.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,d.cloneElement)(e,{ref:a.setReference,onClick:N,...g()}):null)),d.Children.toArray(r).filter((e=>d.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||""))).map((e=>e))]})})};sg.displayName="DropdownMenu";const ag=({children:e,className:t})=>{const{refs:n,floatingStyles:r,getFloatingProps:o,isMounted:i,styles:s}=ig();return i&&(0,u.jsx)("div",{ref:n.setFloating,className:t,style:{...r,...s},...o(),children:d.Children.map(e,(e=>"DropdownMenu.Content"===e?.type?.displayName?e:null))})};ag.displayName="DropdownMenu.ContentWrapper";const lg=({children:e,root:t,id:n})=>(0,u.jsx)(qh,{id:n,root:t,children:e});lg.displayName="DropdownMenu.Portal";const cg=d.forwardRef((({children:e,className:t,...n},r)=>(0,d.isValidElement)(e)?d.cloneElement(e,{className:me(t,e.props.className),ref:r,...n}):(0,u.jsx)("div",{ref:r,className:me("cursor-pointer",t),role:"button",tabIndex:0,...n,children:e})));cg.displayName="DropdownMenu.Trigger";const ug=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:me("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,u.jsx)(eg,{...n,children:e})});ug.displayName="DropdownMenu.Content";const dg=e=>(0,u.jsx)(eg.List,{...e});dg.displayName="DropdownMenu.List";const fg=({children:e,as:t=eg.Item,...n})=>{const{handleClose:r}=ig();return e?t===d.Fragment&&(0,d.isValidElement)(e)?(0,d.cloneElement)(e,{onClick:ge(e.props?.onClick,r)}):(0,u.jsx)(t,{...n,className:me("px-2",n.className),onClick:ge(n.onClick,r),children:e}):null};fg.displayName="DropdownMenu.Item";const hg=e=>(0,u.jsx)(eg.Separator,{...e});hg.displayName="DropdownMenu.Separator",sg.Trigger=cg,sg.Content=ug,sg.List=dg,sg.Item=fg,sg.Separator=hg,sg.Portal=lg,sg.ContentWrapper=ag;const mg=p("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),gg=p("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),pg=(0,d.createContext)(void 0);function Mg(){const e=(0,d.useContext)(pg);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var yg,Ng,xg,Dg;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(yg||(yg={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(Ng||(Ng={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(xg||(xg={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(Dg||(Dg={}));const vg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function wg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const bg={date:wg({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:wg({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:wg({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Tg(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Eg={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Tg({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Tg({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tg({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Tg({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Tg({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ig(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(s))return t}(a):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(s))return t}(a);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(s.length)}}}const Ag={ordinalNumber:(Og={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Og.matchPattern);if(!n)return null;const r=n[0],o=e.match(Og.parsePattern);if(!o)return null;let i=Og.valueCallback?Og.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:Ig({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ig({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ig({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ig({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ig({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Og;const kg={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=vg[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:bg,formatRelative:(e,t,n,r)=>jg[e],localize:Eg,match:Ag,options:{weekStartsOn:0,firstWeekContainsDate:1}},zg=(Symbol.for("constructDateFrom"),{}),Sg={};function Lg(e,t){try{const n=(zg[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return n in Sg?Sg[n]:Ug(n,n.split(":"))}catch{if(e in Sg)return Sg[e];const t=e?.match(Cg);return t?Ug(e,t.slice(1)):NaN}}const Cg=/([+-]\d\d):?(\d\d)?/;function Ug(e,t){const n=+t[0],r=+(t[1]||0);return Sg[e]=n>0?60*n+r:60*n-r}class Qg extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Lg(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Pg(this),Yg(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Qg(...t,e):new Qg(Date.now(),e)}withTimeZone(e){return new Qg(+this,e)}getTimezoneOffset(){return-Lg(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Yg(this),+this}[Symbol.for("constructDateFrom")](e){return new Qg(+new Date(e),this.timeZone)}}const Rg=/^(get|set)(?!UTC)/;function Yg(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Pg(e){const t=Lg(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=r- -new Date(+n).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const a=Lg(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-a-s;if(a!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const t=a-Lg(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Rg.test(e))return;const t=e.replace(Rg,"$1UTC");Qg.prototype[t]&&(e.startsWith("get")?Qg.prototype[e]=function(){return this.internal[t]()}:(Qg.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Pg(e),+this},Qg.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Yg(this),+this}))}));class _g extends Qg{static tz(e,...t){return t.length?new _g(...t,e):new _g(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${o=this.timeZone,i=this,new Intl.DateTimeFormat("en-GB",{timeZone:o,timeZoneName:"long"}).format(i).slice(12)})`;var o,i}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new _g(+this,e)}[Symbol.for("constructDateFrom")](e){return new _g(+new Date(e),this.timeZone)}}Math.pow(10,8);const Fg=6048e5,Bg=Symbol.for("constructDateFrom");function Vg(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Bg in e?e[Bg](t):e instanceof Date?new e.constructor(t):new Date(t)}function Wg(e,t){return Vg(t||e,e)}function Hg(e,t,n){const r=Wg(e,n?.in);return isNaN(t)?Vg(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function qg(e,t,n){const r=Wg(e,n?.in);if(isNaN(t))return Vg(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=Vg(n?.in||e,r.getTime());return i.setMonth(r.getMonth()+t+1,0),o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Gg(e){const t=Wg(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function $g(e,...t){const n=Vg.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}function Zg(e,t){const n=Wg(e,t?.in);return n.setHours(0,0,0,0),n}function Kg(e,t,n){const[r,o]=$g(n?.in,e,t),i=Zg(r),s=Zg(o),a=+i-Gg(i),l=+s-Gg(s);return Math.round((a-l)/864e5)}let Xg={};function Jg(){return Xg}function ep(e,t){const n=Jg(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Wg(e,t?.in),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function tp(e,t){const n=Wg(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function np(e,t){const n=Wg(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function rp(e,t){const n=Jg(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Wg(e,t?.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function op(e,t){return rp(e,{...t,weekStartsOn:1})}function ip(e,t){const n=Wg(e,t?.in),r=n.getFullYear(),o=Vg(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=op(o),s=Vg(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=op(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function sp(e,t){const n=Wg(e,t?.in),r=+op(n)-+function(e,t){const n=ip(e,t),r=Vg(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),op(r)}(n);return Math.round(r/Fg)+1}function ap(e,t){const n=Wg(e,t?.in),r=n.getFullYear(),o=Jg(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=Vg(t?.in||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=rp(s,t),l=Vg(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=rp(l,t);return+n>=+a?r+1:+n>=+c?r:r-1}function lp(e,t){const n=Wg(e,t?.in),r=+rp(n,t)-+function(e,t){const n=Jg(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ap(e,t),i=Vg(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),rp(i,t)}(n,t);return Math.round(r/Fg)+1}function cp(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const up={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return cp("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):cp(n+1,2)},d:(e,t)=>cp(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>cp(e.getHours()%12||12,t.length),H:(e,t)=>cp(e.getHours(),t.length),m:(e,t)=>cp(e.getMinutes(),t.length),s:(e,t)=>cp(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return cp(Math.trunc(r*Math.pow(10,n-3)),t.length)}},dp={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return up.y(e,t)},Y:function(e,t,n,r){const o=ap(e,r),i=o>0?o:1-o;return"YY"===t?cp(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):cp(i,t.length)},R:function(e,t){return cp(ip(e),t.length)},u:function(e,t){return cp(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return cp(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return cp(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return up.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return cp(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=lp(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):cp(o,t.length)},I:function(e,t,n){const r=sp(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):cp(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):up.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=Wg(e,t?.in);return Kg(n,np(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):cp(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return cp(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return cp(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return cp(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return up.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):up.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):cp(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):cp(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):up.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):up.s(e,t)},S:function(e,t){return up.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return hp(r);case"XXXX":case"XX":return mp(r);default:return mp(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hp(r);case"xxxx":case"xx":return mp(r);default:return mp(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fp(r,":");default:return"GMT"+mp(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fp(r,":");default:return"GMT"+mp(r,":")}},t:function(e,t,n){return cp(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return cp(+e,t.length)}};function fp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+cp(i,2)}function hp(e,t){return e%60==0?(e>0?"-":"+")+cp(Math.abs(e)/60,2):mp(e,t)}function mp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+cp(Math.trunc(r/60),2)+t+cp(r%60,2)}const gp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},pp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Mp={p:pp,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return gp(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",gp(r,t)).replace("{{time}}",pp(o,t))}},yp=/^D+$/,Np=/^Y+$/,xp=["D","DD","YY","YYYY"];function Dp(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const vp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bp=/^'([^]*?)'?$/,jp=/''/g,Tp=/[a-zA-Z]/;function Ep(e,t,n){const r=Jg(),o=n?.locale??r.locale??kg,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Wg(e,n?.in);if(!function(e){return!(!Dp(e)&&"number"!=typeof e||isNaN(+Wg(e)))}(a))throw new RangeError("Invalid time value");let l=t.match(wp).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,Mp[t])(e,o.formatLong):e})).join("").match(vp).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ip(e)};if(dp[t])return{isToken:!0,value:e};if(t.match(Tp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const i=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return Np.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return yp.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),xp.includes(e))throw new RangeError(r)}(i,t,String(e)),(0,dp[i[0]])(a,i,o.localize,c)})).join("")}function Ip(e){const t=e.match(bp);return t?t[1].replace(jp,"'"):e}function Ap(e,t){return+Wg(e)>+Wg(t)}function Op(e,t){return+Wg(e)<+Wg(t)}function kp(e,t,n){const r=Wg(e,n?.in),o=r.getFullYear(),i=r.getDate(),s=Vg(n?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const a=function(e,t){const n=Wg(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=Vg(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}(s);return r.setMonth(t,Math.min(i,a)),r}function zp(e,t){const n=Wg(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Sp(e,t){const n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class Lp{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?_g.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new _g(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Hg(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):qg(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return Hg(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return qg(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Kg(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,n){const[r,o]=$g(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:n,end:r}=function(e,t){const[n,r]=$g(e,t.start,t.end);return{start:n,end:r}}(t?.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(Vg(n,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e,this):function(e,t){const n=Sp(e,t),r=function(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,1-r),i=t.addDays(o,34);return t.getMonth(e)===t.getMonth(i)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return ep(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):tp(e),this.endOfWeek=e=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,this.options):ep(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=Wg(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t)=>{const n=this.overrides?.format?this.overrides.format(e,t,this.options):Ep(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(n):n},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):sp(e),this.getMonth=e=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return Wg(e,t?.in).getMonth()}(e,this.options),this.getYear=e=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return Wg(e,t?.in).getFullYear()}(e,this.options),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):lp(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Ap(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Op(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Dp(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){const[r,o]=$g(n?.in,e,t);return+Zg(r)==+Zg(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){const[r,o]=$g(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){const[r,o]=$g(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=Vg.bind(null,e));const t=Wg(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),Vg(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=Vg.bind(null,e));const t=Wg(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),Vg(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):kp(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const r=Wg(e,n?.in);return isNaN(+r)?Vg(n?.in||e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):Sp(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Zg(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):op(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):zp(e),this.startOfWeek=e=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):rp(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):np(e),this.options={locale:kg,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,(e=>t[e]||e))}formatNumber(e){return this.replaceDigits(e.toString())}}const Cp=new Lp;function Up(e){return d.createElement("button",{...e})}function Qp(e){return d.createElement("span",{...e})}function Rp(e){const{size:t=24,orientation:n="left",className:r}=e;return d.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&d.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&d.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&d.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&d.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Yp(e){const{day:t,modifiers:n,...r}=e;return d.createElement("td",{...r})}function Pp(e){const{day:t,modifiers:n,...r}=e,o=d.useRef(null);return d.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),d.createElement("button",{ref:o,...r})}function _p(e){const{options:t,className:n,components:r,classNames:o,...i}=e,s=[o[yg.Dropdown],n].join(" "),a=t?.find((({value:e})=>e===i.value));return d.createElement("span",{"data-disabled":i.disabled,className:o[yg.DropdownRoot]},d.createElement(r.Select,{className:s,...i},t?.map((({value:e,label:t,disabled:n})=>d.createElement(r.Option,{key:e,value:e,disabled:n},t)))),d.createElement("span",{className:o[yg.CaptionLabel],"aria-hidden":!0},a?.label,d.createElement(r.Chevron,{orientation:"down",size:18,className:o[yg.Chevron]})))}function Fp(e){return d.createElement("div",{...e})}function Bp(e){return d.createElement("div",{...e})}function Vp(e){const{calendarMonth:t,displayIndex:n,...r}=e;return d.createElement("div",{...r},e.children)}function Wp(e){const{calendarMonth:t,displayIndex:n,...r}=e;return d.createElement("div",{...r})}function Hp(e){return d.createElement("table",{...e})}function qp(e){return d.createElement("div",{...e})}function Gp(e){const{components:t}=Mg();return d.createElement(t.Dropdown,{...e})}function $p(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:s,classNames:a,labels:{labelPrevious:l,labelNext:c}}=Mg(),u=(0,d.useCallback)((e=>{o&&n?.(e)}),[o,n]),f=(0,d.useCallback)((e=>{r&&t?.(e)}),[r,t]);return d.createElement("nav",{...i},d.createElement(s.PreviousMonthButton,{type:"button",className:a[yg.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},d.createElement(s.Chevron,{disabled:!r||void 0,className:a[yg.Chevron],orientation:"left"})),d.createElement(s.NextMonthButton,{type:"button",className:a[yg.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":c(o),onClick:u},d.createElement(s.Chevron,{disabled:!o||void 0,orientation:"right",className:a[yg.Chevron]})))}function Zp(e){const{components:t}=Mg();return d.createElement(t.Button,{...e})}function Kp(e){return d.createElement("option",{...e})}function Xp(e){const{components:t}=Mg();return d.createElement(t.Button,{...e})}function Jp(e){const{rootRef:t,...n}=e;return d.createElement("div",{...n,ref:t})}function eM(e){return d.createElement("select",{...e})}function tM(e){const{week:t,...n}=e;return d.createElement("tr",{...n})}function nM(e){return d.createElement("th",{...e})}function rM(e){return d.createElement("thead",{"aria-hidden":!0},d.createElement("tr",{...e}))}function oM(e){const{week:t,...n}=e;return d.createElement("th",{...n})}function iM(e){return d.createElement("th",{...e})}function sM(e){return d.createElement("tbody",{...e})}function aM(e){const{components:t}=Mg();return d.createElement(t.Dropdown,{...e})}function lM(){const e={};for(const t in yg)e[yg[t]]=`rdp-${yg[t]}`;for(const t in Ng)e[Ng[t]]=`rdp-${Ng[t]}`;for(const t in xg)e[xg[t]]=`rdp-${xg[t]}`;for(const t in Dg)e[Dg[t]]=`rdp-${Dg[t]}`;return e}function cM(e,t,n){return(n??new Lp(t)).format(e,"LLLL y")}const uM=cM;function dM(e,t,n){return(n??new Lp(t)).format(e,"d")}function fM(e,t=Cp){return t.format(e,"LLLL")}function hM(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function mM(){return""}function gM(e,t,n){return(n??new Lp(t)).format(e,"cccccc")}function pM(e,t=Cp){return t.format(e,"yyyy")}const MM=pM;function yM(e,t,n){return(n??new Lp(t)).format(e,"LLLL y")}const NM=yM;function xM(e,t,n,r){let o=(r??new Lp(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function DM(e,t,n,r){let o=(r??new Lp(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const vM=DM;function wM(){return""}function bM(e){return"Choose the Month"}function jM(e){return"Go to the Next Month"}function TM(e){return"Go to the Previous Month"}function EM(e,t,n){return(n??new Lp(t)).format(e,"cccc")}function IM(e,t){return`Week ${e}`}function AM(e){return"Week Number"}function OM(e){return"Choose the Year"}const kM=e=>e instanceof HTMLElement?e:null,zM=e=>[...e.querySelectorAll("[data-animated-month]")??[]],SM=e=>kM(e.querySelector("[data-animated-caption]")),LM=e=>kM(e.querySelector("[data-animated-weeks]"));function CM(e,t){const{month:n,defaultMonth:r,today:o=t.today(),numberOfMonths:i=1,endMonth:s,startMonth:a,timeZone:l}=e;let c=n||r||o;const{differenceInCalendarMonths:u,addMonths:d,startOfMonth:f}=t;return s&&u(s,c)<0&&(c=d(s,-1*(i-1))),a&&u(c,a)<0&&(c=a),c=l?new _g(c,l):c,f(c)}class UM{constructor(e,t,n=Cp){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class QM{constructor(e,t){this.days=t,this.weekNumber=e}}class RM{constructor(e,t){this.date=e,this.weeks=t}}function YM(e,t){const[n,r]=(0,d.useState)(e);return[void 0===t?n:t,r]}var PM;function _M(e){return!e[Ng.disabled]&&!e[Ng.hidden]&&!e[Ng.outside]}function FM(e,t,n=!1,r=Cp){let{from:o,to:i}=e;const{differenceInCalendarDays:s,isSameDay:a}=r;return o&&i?(s(i,o)<0&&([o,i]=[i,o]),s(t,o)>=(n?1:0)&&s(i,t)>=(n?1:0)):!n&&i?a(i,t):!(n||!o)&&a(o,t)}function BM(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function VM(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function WM(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function HM(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function qM(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function GM(e,t){return Array.isArray(e)&&e.every(t.isDate)}function $M(e,t,n=Cp){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:s}=n;return r.some((t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return o(e,t);if(GM(t,n))return t.includes(e);if(VM(t))return FM(t,e,!1,n);if(qM(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(BM(t)){const n=i(t.before,e)>0,r=i(t.after,e)<0;return s(t.before,t.after)?r&&n:n||r}return WM(t)?i(e,t.after)>0:HM(t)?i(t.before,e)>0:"function"==typeof t&&t(e)}))}function ZM(e,t,n,r,o,i,s,a=0){if(a>365)return;const l=function(e,t,n,r,o,i,s){const{ISOWeek:a,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:h,endOfISOWeek:m,endOfWeek:g,max:p,min:M,startOfBroadcastWeek:y,startOfISOWeek:N,startOfWeek:x}=s;let D={day:c,week:d,month:u,year:f,startOfWeek:e=>l?y(e,s):a?N(e):x(e),endOfWeek:e=>l?h(e,s):a?m(e):g(e)}[e](n,"after"===t?1:-1);return"before"===t&&r?D=p([r,D]):"after"===t&&o&&(D=M([o,D])),D}(e,t,n.date,r,o,i,s),c=Boolean(i.disabled&&$M(l,i.disabled,s)),u=Boolean(i.hidden&&$M(l,i.hidden,s)),d=new UM(l,l,s);return c||u?ZM(e,t,d,r,o,i,s,a+1):d}function KM(e,t,n,r,o){const{autoFocus:i}=e,[s,a]=(0,d.useState)(),l=function(e,t,n,r){let o,i=-1;for(const s of e){const e=t(s);_M(e)&&(e[Ng.focused]&&i<PM.FocusedModifier?(o=s,i=PM.FocusedModifier):r?.isEqualTo(s)&&i<PM.LastFocused?(o=s,i=PM.LastFocused):n(s.date)&&i<PM.Selected?(o=s,i=PM.Selected):e[Ng.today]&&i<PM.Today&&(o=s,i=PM.Today))}return o||(o=e.find((e=>_M(t(e))))),o}(t.days,n,r||(()=>!1),s),[c,u]=(0,d.useState)(i?l:void 0);return{isFocusTarget:e=>Boolean(l?.isEqualTo(e)),setFocused:u,focused:c,blur:()=>{a(c),u(void 0)},moveFocus:(n,r)=>{if(!c)return;const i=ZM(n,r,c,t.navStart,t.navEnd,e,o);i&&(t.goToDay(i),u(i))}}}function XM(e,t,n=Cp){return FM(e,t.from,!1,n)||FM(e,t.to,!1,n)||FM(t,e.from,!1,n)||FM(t,e.to,!1,n)}function JM(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:s}=e,[a,l]=YM(o,s?o:void 0),c=s?o:a;return{selected:c,select:(o,a,u)=>{const{min:d,max:f}=e,h=o?function(e,t,n=0,r=0,o=!1,i=Cp){const{from:s,to:a}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(s||a){if(s&&!a)d=l(s,e)?o?{from:s,to:void 0}:void 0:u(e,s)?{from:e,to:s}:{from:s,to:e};else if(s&&a)if(l(s,e)&&l(a,e))d=o?{from:s,to:a}:void 0;else if(l(s,e))d={from:s,to:n>0?void 0:e};else if(l(a,e))d={from:e,to:n>0?void 0:e};else if(u(e,s))d={from:e,to:a};else if(c(e,s))d={from:s,to:e};else{if(!c(e,a))throw new Error("Invalid range");d={from:s,to:e}}}else d={from:e,to:n>0?void 0:e};if(d?.from&&d?.to){const t=i.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}(o,c,d,f,i,t):void 0;return r&&n&&h?.from&&h.to&&function(e,t,n=Cp){const r=Array.isArray(t)?t:[t],o=r.filter((e=>"function"!=typeof e)).some((t=>"boolean"==typeof t?t:n.isDate(t)?FM(e,t,!1,n):GM(t,n)?t.some((t=>FM(e,t,!1,n))):VM(t)?!(!t.from||!t.to)&&XM(e,{from:t.from,to:t.to},n):qM(t)?function(e,t,n=Cp){const r=Array.isArray(t)?t:[t];let o=e.from;const i=n.differenceInCalendarDays(e.to,e.from),s=Math.min(i,6);for(let e=0;e<=s;e++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}(e,t.dayOfWeek,n):BM(t)?n.isAfter(t.before,t.after)?XM(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):$M(e.from,t,n)||$M(e.to,t,n):!(!WM(t)&&!HM(t))&&($M(e.from,t,n)||$M(e.to,t,n))));if(o)return!0;const i=r.filter((e=>"function"==typeof e));if(i.length){let t=e.from;const r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some((e=>e(t))))return!0;t=n.addDays(t,1)}}return!1}({from:h.from,to:h.to},n,t)&&(h.from=o,h.to=void 0),s||l(h),s?.(h,o,a,u),h},isSelected:e=>c&&FM(c,e,!1,t)}}function ey(r){const{components:o,formatters:i,labels:s,dateLib:a,locale:l,classNames:c}=(0,d.useMemo)((()=>{const o={...kg,...r.locale};return{dateLib:new Lp({locale:o,weekStartsOn:r.broadcastCalendar?1:r.weekStartsOn,firstWeekContainsDate:r.firstWeekContainsDate,useAdditionalWeekYearTokens:r.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:r.useAdditionalDayOfYearTokens,timeZone:r.timeZone,numerals:r.numerals},r.dateLib),components:(s=r.components,{...e,...s}),formatters:(i=r.formatters,i?.formatMonthCaption&&!i.formatCaption&&(i.formatCaption=i.formatMonthCaption),i?.formatYearCaption&&!i.formatYearDropdown&&(i.formatYearDropdown=i.formatYearCaption),{...t,...i}),labels:{...n,...r.labels},locale:o,classNames:{...lM(),...r.classNames}};var i,s}),[r.locale,r.broadcastCalendar,r.weekStartsOn,r.firstWeekContainsDate,r.useAdditionalWeekYearTokens,r.useAdditionalDayOfYearTokens,r.timeZone,r.numerals,r.dateLib,r.components,r.formatters,r.labels,r.classNames]),{captionLayout:u,mode:f,onDayBlur:h,onDayClick:m,onDayFocus:g,onDayKeyDown:p,onDayMouseEnter:M,onDayMouseLeave:y,onNextClick:N,onPrevClick:x,showWeekNumber:D,styles:v}=r,{formatCaption:w,formatDay:b,formatMonthDropdown:j,formatWeekNumber:T,formatWeekNumberHeader:E,formatWeekdayName:I,formatYearDropdown:A}=i,O=function(e,t){const[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:i,startOfMonth:s,endOfMonth:a,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:f,toYear:h,fromMonth:m,toMonth:g}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&g&&(r=g),!r&&h&&(r=u(h,11,31));const p="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=s(n):f?n=u(f,0,1):!n&&p&&(n=o(l(e.today??d(),-100))),r?r=a(r):h?r=u(h,11,31):!r&&p&&(r=c(e.today??d())),[n?i(n):n,r?i(r):r]}(e,t),{startOfMonth:o,endOfMonth:i}=t,s=CM(e,t),[a,l]=YM(s,e.month?s:void 0);(0,d.useEffect)((()=>{const n=CM(e,t);l(n)}),[e.timeZone]);const c=function(e,t,n,r){const{numberOfMonths:o=1}=n,i=[];for(let n=0;n<o;n++){const o=r.addMonths(e,n);if(t&&o>t)break;i.push(o)}return i}(a,r,e,t),u=function(e,t,n,r){const o=e[0],i=e[e.length-1],{ISOWeek:s,fixedWeeks:a,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:h,endOfMonth:m,endOfWeek:g,isAfter:p,startOfBroadcastWeek:M,startOfISOWeek:y,startOfWeek:N}=r,x=l?M(o,r):s?y(o):N(o),D=u(l?f(i,r):s?h(m(i)):g(m(i)),x),v=d(i,o)+1,w=[];for(let e=0;e<=D;e++){const n=c(x,e);if(t&&p(n,t))break;w.push(n)}const b=(l?35:42)*v;if(a&&w.length<b){const e=b-w.length;for(let t=0;t<e;t++){const e=c(w[w.length-1],1);w.push(e)}}return w}(c,e.endMonth?i(e.endMonth):void 0,e,t),f=function(e,t,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:s,endOfMonth:a,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:h}=r,m=e.reduce(((e,m)=>{const g=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):h(m),p=n.broadcastCalendar?i(m,r):n.ISOWeek?s(a(m)):l(a(m)),M=t.filter((e=>e>=g&&e<=p)),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&M.length<y){const e=t.filter((e=>{const t=y-M.length;return e>p&&e<=o(p,t)}));M.push(...e)}const N=M.reduce(((e,t)=>{const o=n.ISOWeek?c(t):u(t),i=e.find((e=>e.weekNumber===o)),s=new UM(t,m,r);return i?i.days.push(s):e.push(new QM(o,[s])),e}),[]),x=new RM(m,N);return e.push(x),e}),[]);return n.reverseMonths?m.reverse():m}(c,u,e,t),h=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(f),m=f.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[]),g=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,c=o?i??1:1,u=s(e);return t&&l(u,t)<=0?void 0:a(u,-c)}(a,n,e,t),p=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:s,addMonths:a,differenceInCalendarMonths:l}=r,c=o?i:1,u=s(e);return t&&l(t,e)<i?void 0:a(u,c)}(a,r,e,t),{disableNavigation:M,onMonthChange:y}=e,N=e=>{if(M)return;let t=o(e);n&&t<o(n)&&(t=o(n)),r&&t>o(r)&&(t=o(r)),l(t),y?.(t)};return{months:f,weeks:h,days:m,navStart:n,navEnd:r,previousMonth:g,nextMonth:p,goToMonth:N,goToDay:e=>{(e=>h.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||N(e.date)}}}(r,a),{days:k,months:z,navStart:S,navEnd:L,previousMonth:C,nextMonth:U,goToMonth:Q}=O,R=function(e,t,n){const{disabled:r,hidden:o,modifiers:i,showOutsideDays:s,broadcastCalendar:a,today:l}=t,{isSameDay:c,isSameMonth:u,startOfMonth:d,isBefore:f,endOfMonth:h,isAfter:m}=n,g=t.startMonth&&d(t.startMonth),p=t.endMonth&&h(t.endMonth),M={[Ng.focused]:[],[Ng.outside]:[],[Ng.disabled]:[],[Ng.hidden]:[],[Ng.today]:[]},y={};for(const t of e){const{date:e,displayMonth:d}=t,h=Boolean(d&&!u(e,d)),N=Boolean(g&&f(e,g)),x=Boolean(p&&m(e,p)),D=Boolean(r&&$M(e,r,n)),v=Boolean(o&&$M(e,o,n))||N||x||!a&&!s&&h||a&&!1===s&&h,w=c(e,l??n.today());h&&M.outside.push(t),D&&M.disabled.push(t),v&&M.hidden.push(t),w&&M.today.push(t),i&&Object.keys(i).forEach((r=>{const o=i?.[r];o&&$M(e,o,n)&&(y[r]?y[r].push(t):y[r]=[t])}))}return e=>{const t={[Ng.focused]:!1,[Ng.disabled]:!1,[Ng.hidden]:!1,[Ng.outside]:!1,[Ng.today]:!1},n={};for(const n in M){const r=M[n];t[n]=r.some((t=>t===e))}for(const t in y)n[t]=y[t].some((t=>t===e));return{...t,...n}}}(k,r,a),{isSelected:Y,select:P,selected:_}=function(e,t){const n=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,s]=YM(n,o?n:void 0),a=o?n:i,{isSameDay:l}=t;return{selected:a,select:(e,t,n)=>{let i=e;return!r&&a&&a&&l(e,a)&&(i=void 0),o||s(i),o?.(i,e,t,n),i},isSelected:e=>!!a&&l(a,e)}}(e,t),r=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,s]=YM(n,o?n:void 0),a=o?n:i,{isSameDay:l}=t,c=e=>a?.some((t=>l(t,e)))??!1,{min:u,max:d}=e;return{selected:a,select:(e,t,n)=>{let i=[...a??[]];if(c(e)){if(a?.length===u)return;if(r&&1===a?.length)return;i=a?.filter((t=>!l(t,e)))}else i=a?.length===d?[e]:[...i,e];return o||s(i),o?.(i,e,t,n),i},isSelected:c}}(e,t),o=JM(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}(r,a)??{},{blur:F,focused:B,isFocusTarget:V,moveFocus:W,setFocused:H}=KM(r,O,R,Y??(()=>!1),a),{labelDayButton:q,labelGridcell:G,labelGrid:$,labelMonthDropdown:Z,labelNav:K,labelWeekday:X,labelWeekNumber:J,labelWeekNumberHeader:ee,labelYearDropdown:te}=s,ne=(0,d.useMemo)((()=>function(e,t){const n=e.today(),r=t?e.startOfISOWeek(n):e.startOfWeek(n),o=[];for(let t=0;t<7;t++){const n=e.addDays(r,t);o.push(n)}return o}(a,r.ISOWeek)),[a,r.ISOWeek]),re=void 0!==f||void 0!==m,oe=(0,d.useCallback)((()=>{C&&(Q(C),x?.(C))}),[C,Q,x]),ie=(0,d.useCallback)((()=>{U&&(Q(U),N?.(U))}),[Q,U,N]),se=(0,d.useCallback)(((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),H(e),P?.(e.date,t,n),m?.(e.date,t,n)}),[P,m,H]),ae=(0,d.useCallback)(((e,t)=>n=>{H(e),g?.(e.date,t,n)}),[g,H]),le=(0,d.useCallback)(((e,t)=>n=>{F(),h?.(e.date,t,n)}),[F,h]),ce=(0,d.useCallback)(((e,t)=>n=>{const o={ArrowLeft:["day","rtl"===r.dir?"after":"before"],ArrowRight:["day","rtl"===r.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=o[n.key];W(e,t)}p?.(e.date,t,n)}),[W,p,r.dir]),ue=(0,d.useCallback)(((e,t)=>n=>{M?.(e.date,t,n)}),[M]),de=(0,d.useCallback)(((e,t)=>n=>{y?.(e.date,t,n)}),[y]),fe=(0,d.useCallback)((e=>t=>{const n=Number(t.target.value),r=a.setMonth(a.startOfMonth(e),n);Q(r)}),[a,Q]),he=(0,d.useCallback)((e=>t=>{const n=Number(t.target.value),r=a.setYear(a.startOfMonth(e),n);Q(r)}),[a,Q]),{className:me,style:ge}=(0,d.useMemo)((()=>({className:[c[yg.Root],r.className].filter(Boolean).join(" "),style:{...v?.[yg.Root],...r.style}})),[c,r.className,r.style,v]),pe=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach((([e,n])=>{e.startsWith("data-")&&(t[e]=n)})),t}(r),Me=(0,d.useRef)(null);!function(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const s=(0,d.useRef)(null),a=(0,d.useRef)(r),l=(0,d.useRef)(!1);(0,d.useLayoutEffect)((()=>{const c=a.current;if(a.current=r,!(t&&e.current&&e.current instanceof HTMLElement&&0!==r.length&&0!==c.length&&r.length===c.length))return;const u=i.isSameMonth(r[0].date,c[0].date),d=i.isAfter(r[0].date,c[0].date),f=d?n[Dg.caption_after_enter]:n[Dg.caption_before_enter],h=d?n[Dg.weeks_after_enter]:n[Dg.weeks_before_enter],m=s.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(zM(g).forEach((e=>{if(!(e instanceof HTMLElement))return;const t=kM(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=SM(e);n&&n.classList.remove(f);const r=LM(e);r&&r.classList.remove(h)})),s.current=g):s.current=null,l.current||u||o)return;const p=m instanceof HTMLElement?zM(m):[],M=zM(e.current);if(M&&M.every((e=>e instanceof HTMLElement))&&p&&p.every((e=>e instanceof HTMLElement))){l.current=!0;const t=[];e.current.style.isolation="isolate";const r=(y=e.current,kM(y.querySelector("[data-animated-nav]")));r&&(r.style.zIndex="1"),M.forEach(((o,i)=>{const s=p[i];if(!s)return;o.style.position="relative",o.style.overflow="hidden";const a=SM(o);a&&a.classList.add(f);const c=LM(o);c&&c.classList.add(h);const u=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),a&&a.classList.remove(f),c&&c.classList.remove(h),o.style.position="",o.style.overflow="",o.contains(s)&&o.removeChild(s)};t.push(u),s.style.pointerEvents="none",s.style.position="absolute",s.style.overflow="hidden",s.setAttribute("aria-hidden","true");const m=(e=>kM(e.querySelector("[data-animated-weekdays]")))(s);m&&(m.style.opacity="0");const g=SM(s);g&&(g.classList.add(d?n[Dg.caption_before_exit]:n[Dg.caption_after_exit]),g.addEventListener("animationend",u));const M=LM(s);M&&M.classList.add(d?n[Dg.weeks_before_exit]:n[Dg.weeks_after_exit]),o.insertBefore(s,o.firstChild)}))}var y}))}(Me,Boolean(r.animate),{classNames:c,months:z,focused:B,dateLib:a});const ye={dayPickerProps:r,selected:_,select:P,isSelected:Y,months:z,nextMonth:U,previousMonth:C,goToMonth:Q,getModifiers:R,components:o,classNames:c,styles:v,labels:s,formatters:i};return d.createElement(pg.Provider,{value:ye},d.createElement(o.Root,{rootRef:r.animate?Me:void 0,className:me,style:ge,dir:r.dir,id:r.id,lang:r.lang,nonce:r.nonce,title:r.title,role:r.role,"aria-label":r["aria-label"],...pe},d.createElement(o.Months,{className:c[yg.Months],style:v?.[yg.Months]},!r.hideNavigation&&d.createElement(o.Nav,{"data-animated-nav":r.animate?"true":void 0,className:c[yg.Nav],style:v?.[yg.Nav],"aria-label":K(),onPreviousClick:oe,onNextClick:ie,previousMonth:C,nextMonth:U}),z.map(((e,t)=>{const n=function(e,t,n,r,o){const{startOfMonth:i,startOfYear:s,endOfYear:a,eachMonthOfInterval:l,getMonth:c}=o;return l({start:s(e),end:a(e)}).map((e=>{const s=r.formatMonthDropdown(e,o);return{value:c(e),label:s,disabled:t&&e<i(t)||n&&e>i(n)||!1}}))}(e.date,S,L,i,a),s=function(e,t,n,r){if(!e)return;if(!t)return;const{startOfYear:o,endOfYear:i,addYears:s,getYear:a,isBefore:l,isSameYear:c}=r,u=o(e),d=i(t),f=[];let h=u;for(;l(h,d)||c(h,d);)f.push(h),h=s(h,1);return f.map((e=>{const t=n.formatYearDropdown(e,r);return{value:a(e),label:t,disabled:!1}}))}(S,L,i,a);return d.createElement(o.Month,{"data-animated-month":r.animate?"true":void 0,className:c[yg.Month],style:v?.[yg.Month],key:t,displayIndex:t,calendarMonth:e},d.createElement(o.MonthCaption,{"data-animated-caption":r.animate?"true":void 0,className:c[yg.MonthCaption],style:v?.[yg.MonthCaption],calendarMonth:e,displayIndex:t},u?.startsWith("dropdown")?d.createElement(o.DropdownNav,{className:c[yg.Dropdowns],style:v?.[yg.Dropdowns]},"dropdown"===u||"dropdown-months"===u?d.createElement(o.MonthsDropdown,{className:c[yg.MonthsDropdown],"aria-label":Z(),classNames:c,components:o,disabled:Boolean(r.disableNavigation),onChange:fe(e.date),options:n,style:v?.[yg.Dropdown],value:a.getMonth(e.date)}):d.createElement("span",null,j(e.date,a)),"dropdown"===u||"dropdown-years"===u?d.createElement(o.YearsDropdown,{className:c[yg.YearsDropdown],"aria-label":te(a.options),classNames:c,components:o,disabled:Boolean(r.disableNavigation),onChange:he(e.date),options:s,style:v?.[yg.Dropdown],value:a.getYear(e.date)}):d.createElement("span",null,A(e.date,a)),d.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},w(e.date,a.options,a))):d.createElement(o.CaptionLabel,{className:c[yg.CaptionLabel],role:"status","aria-live":"polite"},w(e.date,a.options,a))),d.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===f||"range"===f,"aria-label":$(e.date,a.options,a)||void 0,className:c[yg.MonthGrid],style:v?.[yg.MonthGrid]},!r.hideWeekdays&&d.createElement(o.Weekdays,{"data-animated-weekdays":r.animate?"true":void 0,className:c[yg.Weekdays],style:v?.[yg.Weekdays]},D&&d.createElement(o.WeekNumberHeader,{"aria-label":ee(a.options),className:c[yg.WeekNumberHeader],style:v?.[yg.WeekNumberHeader],scope:"col"},E()),ne.map(((e,t)=>d.createElement(o.Weekday,{"aria-label":X(e,a.options,a),className:c[yg.Weekday],key:t,style:v?.[yg.Weekday],scope:"col"},I(e,a.options,a))))),d.createElement(o.Weeks,{"data-animated-weeks":r.animate?"true":void 0,className:c[yg.Weeks],style:v?.[yg.Weeks]},e.weeks.map(((e,t)=>d.createElement(o.Week,{className:c[yg.Week],key:e.weekNumber,style:v?.[yg.Week],week:e},D&&d.createElement(o.WeekNumber,{week:e,style:v?.[yg.WeekNumber],"aria-label":J(e.weekNumber,{locale:l}),className:c[yg.WeekNumber],scope:"row",role:"rowheader"},T(e.weekNumber)),e.days.map((e=>{const{date:t}=e,n=R(e);if(n[Ng.focused]=!n.hidden&&Boolean(B?.isEqualTo(e)),n[xg.selected]=Y?.(t)||n.selected,VM(_)){const{from:e,to:r}=_;n[xg.range_start]=Boolean(e&&r&&a.isSameDay(t,e)),n[xg.range_end]=Boolean(e&&r&&a.isSameDay(t,r)),n[xg.range_middle]=FM(_,t,!0,a)}const i=function(e,t={},n={}){let r={...t?.[yg.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{r={...r,...n?.[e]}})),r}(n,v,r.modifiersStyles),s=function(e,t,n={}){return Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[r])=>(n[r]?e.push(n[r]):t[Ng[r]]?e.push(t[Ng[r]]):t[xg[r]]&&e.push(t[xg[r]]),e)),[t[yg.Day]])}(n,c,r.modifiersClassNames),l=re||n.hidden?void 0:G(t,n,a.options,a);return d.createElement(o.Day,{key:`${a.format(t,"yyyy-MM-dd")}_${a.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:n,className:s.join(" "),style:i,role:"gridcell","aria-selected":n.selected||void 0,"aria-label":l,"data-day":a.format(t,"yyyy-MM-dd"),"data-month":e.outside?a.format(t,"yyyy-MM"):void 0,"data-selected":n.selected||void 0,"data-disabled":n.disabled||void 0,"data-hidden":n.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":n.focused||void 0,"data-today":n.today||void 0},!n.hidden&&re?d.createElement(o.DayButton,{className:c[yg.DayButton],style:v?.[yg.DayButton],type:"button",day:e,modifiers:n,disabled:n.disabled||void 0,tabIndex:V(e)?0:-1,"aria-label":q(t,n,a.options,a),onClick:se(e,n),onBlur:le(e,n),onFocus:ae(e,n),onKeyDown:ce(e,n),onMouseEnter:ue(e,n),onMouseLeave:de(e,n)},b(t,a.options,a)):!n.hidden&&b(e.date,a.options,a))}))))))))}))),r.footer&&d.createElement(o.Footer,{className:c[yg.Footer],style:v?.[yg.Footer],role:"status","aria-live":"polite"},r.footer)))}function ty(e,t){return+Wg(e)==+Wg(t)}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(PM||(PM={}));const ny=()=>(0,u.jsx)("span",{className:"bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2"}),ry=e=>Ep(e,"E").slice(0,1),oy=(e,t=24)=>Array.from({length:t},((t,n)=>e+n)),iy=e=>"multiple"===e?[]:"range"===e?{from:void 0,to:void 0}:void 0,sy=({width:e,className:t,classNames:n,selectedDates:r,setSelectedDates:o,showOutsideDays:i=!0,mode:s="single",variant:a="normal",alignment:l="horizontal",numberOfMonths:c,disabled:f,...h})=>{const m=d.isValidElement(h.footer)||"function"==typeof h.footer,[g,p]=(0,d.useState)(!1),[M,y]=(0,d.useState)(!1),[N,x]=(0,d.useState)((new Date).getFullYear()),[D,v]=(0,d.useState)(N-N%24);void 0===r&&(r="multiple"===s?[]:"range"===s?{from:void 0,to:void 0}:void 0);const w=({weekdays:e})=>(0,u.jsx)("div",{className:"flex justify-between",children:e.map(((e,t)=>(0,u.jsx)("button",{className:"h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0",children:e},t)))}),b=e=>(0,u.jsx)("div",{className:"flex flex-col bsf-force-ui-month-weeks",children:e.children[1].props.children.map(((e,t)=>(0,u.jsx)("div",{className:"flex flex-row justify-between",children:e},t)))}),j=me("relative bg-background-primary shadow-datepicker-wrapper",e,"vertical"===l?"flex flex-col":"flex flex-row gap-3","normal"===a?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"","presets"===a?"rounded-tr-md border border-solid border-border-subtle":"","dualdate"===a?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"",m?"rounded-b-none":"rounded-bl-md rounded-br-md");return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ey,{mode:s,selected:r,onSelect:(e,t)=>{if("range"===s){const n=r;if(!n?.from&&!n?.to||n?.from&&n?.to)return n.from&&ty(t,n?.from)||n.to&&ty(t,n?.to)?void o({from:void 0,to:void 0}):void o({from:t,to:void 0});if(n?.from&&!n?.to)return t<n.from?void o({from:t,to:n.from}):void o({from:n.from,to:t});o(e)}else"multiple"===s?r.some((e=>Ep(e,"yyyy-MM-dd")===Ep(t,"yyyy-MM-dd")))?o(r.filter((e=>Ep(e,"yyyy-MM-dd")!==Ep(t,"yyyy-MM-dd")))):o([...r,t]):"single"===s&&o(e)},hideNavigation:!0,captionLayout:"label",className:me(t),formatters:{formatWeekdayName:ry},classNames:{months:j,month:"flex flex-col p-2 gap-1 text-center w-full",caption:"relative flex justify-center items-center",table:"w-full border-separate border-spacing-0",head_row:"flex mb-1",head_cell:"text-muted-foreground rounded-md w-10 font-normal text-sm",row:"flex w-full mt-2",cell:"h-10 w-10 text-center text-sm p-0 relative",...n},numberOfMonths:c,showOutsideDays:!0,components:{MonthCaption:function(e){const{goToMonth:t,nextMonth:n,previousMonth:r}=Mg(),o=Ep(e.calendarMonth.date,"yyyy"),i=Ep(e.calendarMonth.date,"MMMM"),s=new Date(e.calendarMonth.date);s.setDate(s.getDate()-s.getDay());const a=Array.from({length:7},((e,t)=>{const n=new Date(s);return n.setDate(s.getDate()+t),ry(n)}));let l;return l=M?`${D} - ${D+23}`:g?o:`${i} ${o}`,(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"flex justify-between",children:[(0,u.jsx)(De,{variant:"ghost",onClick:()=>{if(M)v(D-24);else if(g){const n=new Date(N-1,e.calendarMonth.date.getMonth());x(n.getFullYear()),t(n)}else t(r)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Previous Button",icon:(0,u.jsx)(mg,{className:"h-4 w-4 text-button-tertiary-color"})}),(0,u.jsx)(De,{variant:"ghost",onClick:()=>{c>1||(g?(y(!0),p(!1)):M?y(!1):p(!g))},children:l}),(0,u.jsx)(De,{variant:"ghost",onClick:()=>{if(M)v(D+24);else if(g){const n=new Date(N+1,e.calendarMonth.date.getMonth());x(n.getFullYear()),t(n)}else t(n)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Next Button",icon:(0,u.jsx)(gg,{className:"h-4 w-4 text-button-tertiary-color"})})]}),M&&(0,u.jsx)("div",{className:"grid grid-cols-4 w-full",children:oy(D).map((n=>(0,u.jsxs)(De,{variant:"ghost",onClick:()=>(n=>{x(n),y(!1),p(!0),t(new Date(n,e.calendarMonth.date.getMonth()))})(n),className:me("h-10 w-full text-center font-normal relative",n===N&&n!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",n===(new Date).getFullYear()&&"font-semibold"),children:[n,n===(new Date).getFullYear()&&ny()]},n)))}),g&&!M&&(0,u.jsx)("div",{className:"grid grid-cols-4 gap-2 my-12",children:Array.from({length:12},((n,r)=>(0,u.jsxs)(De,{variant:"ghost",onClick:()=>{p(!1),t(new Date(N,r))},className:me("px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative",r===e.calendarMonth.date.getMonth()&&r!==(new Date).getMonth()&&N===e.calendarMonth.date.getFullYear()&&e.calendarMonth.date.getFullYear()!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",r===(new Date).getMonth()&&(new Date).getFullYear()===N&&"font-semibold"),children:[Ep(new Date(0,r),"MMM"),(new Date).getMonth()===r&&(new Date).getFullYear()===N&&ny()]},r)))}),!g&&!M&&(0,u.jsx)(w,{weekdays:a})]})},DayButton:({day:e,modifiers:t,...n})=>{const{selected:o,today:s,disabled:a,outside:l,range_middle:c,range_start:d,range_end:f}=t,h=d||f||c,m=new Date,g=r?.to,p=Ep(e.displayMonth,"yyyy-MM")===Ep(m,"yyyy-MM"),M=g&&Ep(g,"yyyy-MM")===Ep(e.date,"yyyy-MM"),y=qg(m,-1,w),N=Ep(e.date,"yyyy-MM")===Ep(y,"yyyy-MM"),x=p||M||h,D=!i&&l,v=me("h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm","border-none rounded",!o&&!h||l?"bg-transparent hover:bg-button-tertiary-hover":"bg-background-brand text-text-on-color",c&&x&&!l?"bg-brand-background-50 text-text-secondary rounded-none":"",a?"opacity-50 cursor-not-allowed text-text-disabled":"cursor-pointer",l&&!h||!x&&l||l&&!N||l?"bg-transparent opacity-50 text-text-disabled cursor-auto":"");var w;return(0,u.jsxs)("button",{className:me(v,s&&"font-semibold",D&&"opacity-0",d&&"fui-range-start",f&&"fui-range-end",c&&"fui-range-middle",{"[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none":!h&&!o}),disabled:a||l,onClick:e=>{"function"==typeof n.onClick&&n.onClick(e)},onMouseEnter:e=>{"function"==typeof n.onMouseEnter&&n.onMouseEnter(e),e.currentTarget.setAttribute("data-hover","true")},onMouseLeave:e=>{"function"==typeof n.onMouseLeave&&n.onMouseLeave(e),e.currentTarget.setAttribute("data-hover","false")},"aria-label":Ep(e.date,"EEEE, MMMM do, yyyy"),"data-selected":o,"data-day":Ep(e.date,"yyyy-MM-dd"),children:[n.children,s&&x&&(0,u.jsx)("span",{className:"absolute h-1 w-1 bg-background-brand rounded-full bottom-1"})]})},Day:e=>{const t=Object.entries(e).reduce(((e,[t,n])=>(t.startsWith("data-")&&(e[t]=n),e)),{});return(0,u.jsx)("div",{...t,className:me(e.className,"inline-flex"),children:e.children})},Weekdays:()=>(0,u.jsx)(u.Fragment,{}),Week:e=>(0,u.jsx)("div",{className:me("bsf-force-ui-month-week flex flex-row",e.className),children:e.children}),Months:e=>(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{className:me("bsf-force-ui-date-picker-month",j),children:e?.children?.map(((e,t)=>e?(0,u.jsx)(d.Fragment,{children:e.map(((e,t)=>(0,u.jsxs)(d.Fragment,{children:[t>0&&(0,u.jsx)("div",{className:"border border-solid border-border-subtle border-l-0"}),e]},t)))},t):null))})}),MonthGrid:e=>g||M?(0,u.jsx)(u.Fragment,{}):(0,u.jsx)(b,{...e})},..."range"===s?{required:!1}:{},...h,onDayMouseEnter:(e,t,n)=>{if("range"!==s)return;const o=r;if(o?.from&&o?.to||!o?.from&&!o?.to)return void Array.from(document.querySelectorAll("[data-hover]")).forEach((e=>{e.setAttribute("data-hover","false")}));const i=n.target,l=new Date(i.dataset.day),c=Op(l,o.from),u=Ap(l,o.to);let d;switch(a){case"dualdate":case"presets":d=i.closest(".bsf-force-ui-date-picker-month");break;default:d=i.closest(".bsf-force-ui-month-weeks")}const f=Array.from(d.querySelectorAll("button"));u&&f.sort(((e,t)=>Ap(new Date(e.dataset.day),new Date(t.dataset.day))?-1:1)),c&&f.sort(((e,t)=>Op(new Date(e.dataset.day),new Date(t.dataset.day))?1:-1));const h=f.indexOf(i),m=f.findIndex((e=>"true"===e.getAttribute("data-selected"))),g=[],p=Math.min(h,m),M=Math.max(h,m);for(let e=p;e<=M;e++)f[e]?.disabled||g.push(f[e]);f.forEach((e=>{e.setAttribute("data-hover",g.includes(e)?"true":"false")}))},disabled:f})})};function ay(e){return Zg(Date.now(),e)}function ly(e){return Vg(e,Date.now())}function cy(e){const t=ly(e?.in),n=t.getFullYear(),r=t.getMonth(),o=t.getDate(),i=ly(e?.in);return i.setFullYear(n,r,o-1),i.setHours(0,0,0,0),i}function uy(e,t,n){return Hg(e,-t,n)}const dy=({selectionType:e="single",variant:t="normal",presets:n=[],onCancel:r,onApply:o,onDateSelect:i,applyButtonText:s="Apply",cancelButtonText:a="Cancel",showOutsideDays:l=!0,isFooter:c=!0,selected:f,disabled:h,...m})=>{const[g,p]=(0,d.useState)((()=>{if(!f)return iy(e);const t="multiple"===e&&Array.isArray(f),n="single"===e&&f instanceof Date;return t||"range"===e&&"from"in f&&"to"in f||n?f:iy(e)})),M=e=>{p(e),i&&i(e)},y=[{label:"Today",range:{from:ay(),to:ay()}},{label:"Yesterday",range:{from:cy(),to:cy()}},{label:"This Week",range:{from:rp(new Date,{weekStartsOn:1}),to:ep(new Date,{weekStartsOn:1})}},{label:"Last 7 Days",range:{from:Zg(uy(new Date,6)),to:Zg(new Date)}},{label:"This Month",range:{from:zp(new Date),to:tp(new Date)}},{label:"Last 30 Days",range:{from:Zg(uy(new Date,29)),to:Zg(new Date)}}],N=n.length>0?n:y,x=()=>{p("multiple"===e?[]:{from:void 0,to:void 0}),r&&r()},D=()=>{o&&o(g)};return"normal"===t?(0,u.jsx)(sy,{...m,mode:e,variant:t,width:"w-[18.5rem]",selectedDates:g,showOutsideDays:l,setSelectedDates:M,footer:c&&(0,u.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,u.jsx)(De,{variant:"outline",onClick:x,children:a}),(0,u.jsx)(De,{onClick:D,children:s})]}),disabled:h}):"dualdate"===t?(0,u.jsx)(sy,{mode:e,numberOfMonths:2,alignment:"horizontal",selectedDates:g,setSelectedDates:M,showOutsideDays:l,variant:t,width:"w-auto",footer:(0,u.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,u.jsx)(De,{variant:"outline",onClick:x,children:a}),(0,u.jsx)(De,{onClick:D,children:s})]}),disabled:h,...m}):"presets"===t?(0,u.jsxs)("div",{className:"flex flex-row shadow-datepicker-wrapper",children:[(0,u.jsx)("div",{className:"flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary",children:N.map(((e,t)=>{const n=g&&"from"in g&&"to"in g&&g.from?.getTime()===e.range.from.getTime()&&g.to?.getTime()===e.range.to.getTime();return(0,u.jsx)(De,{onClick:()=>(e=>{p(e)})(e.range),variant:"ghost",className:me("text-left font-medium text-sm text-nowrap w-full",n&&"bg-brand-background-50"),children:e.label},t)}))}),(0,u.jsx)(sy,{...m,mode:e,selectedDates:g,setSelectedDates:M,variant:t,showOutsideDays:l,width:"w-auto",numberOfMonths:2,footer:(0,u.jsxs)("div",{className:"flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md",children:[(0,u.jsx)(De,{variant:"outline",onClick:x,children:a}),(0,u.jsx)(De,{onClick:D,children:s})]}),disabled:h})]}):void 0},fy=Yu("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),hy=window.wp.apiFetch;var my=o.n(hy);let gy={data:""},py=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,My=/\/\*[^]*?\*\/| +/g,yy=/\n+/g,Ny=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?Ny(s,i):i+"{"+Ny(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=Ny(s,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ny.p?Ny.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},xy={},Dy=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Dy(e[n]);return t}return e};function vy(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=Dy(e),s=xy[i]||(xy[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!xy[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=py.exec(e.replace(My,""));)t[4]?r.shift():t[3]?(n=t[3].replace(yy," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(yy," ").trim();return r[0]})(e);xy[s]=Ny(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&xy.g?xy.g:null;return n&&(xy.g=xy[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(xy[s],t,r,a),s})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Ny(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,(e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||gy)(t.target),t.g,t.o,t.k)}vy.bind({g:1});let wy,by,jy,Ty=vy.bind({k:1});function Ey(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:by&&by()},a),n.o=/ *go\d+/.test(l),a.className=vy.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),jy&&c[0]&&jy(a),wy(c,a)}return t?t(o):o}}var Iy=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Ay=(()=>{let e=0;return()=>(++e).toString()})(),Oy=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ky=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return ky(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},zy=[],Sy={toasts:[],pausedAt:void 0},Ly=e=>{Sy=ky(Sy,e),zy.forEach((e=>{e(Sy)}))},Cy=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Ay()}))(t,e,n);return Ly({type:2,toast:r}),r.id},Uy=(e,t)=>Cy("blank")(e,t);Uy.error=Cy("error"),Uy.success=Cy("success"),Uy.loading=Cy("loading"),Uy.custom=Cy("custom"),Uy.dismiss=e=>{Ly({type:3,toastId:e})},Uy.remove=e=>Ly({type:4,toastId:e}),Uy.promise=(e,t,n)=>{let r=Uy.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?Iy(t.success,e):void 0;return o?Uy.success(o,{id:r,...n,...null==n?void 0:n.success}):Uy.dismiss(r),e})).catch((e=>{let o=t.error?Iy(t.error,e):void 0;o?Uy.error(o,{id:r,...n,...null==n?void 0:n.error}):Uy.dismiss(r)})),e},new Map;var Qy=Ty` | |
| 3 | +from { | |
| 4 | + transform: scale(0) rotate(45deg); | |
| 5 | + opacity: 0; | |
| 6 | +} | |
| 7 | +to { | |
| 8 | + transform: scale(1) rotate(45deg); | |
| 9 | + opacity: 1; | |
| 10 | +}`,Ry=Ty` | |
| 11 | +from { | |
| 12 | + transform: scale(0); | |
| 13 | + opacity: 0; | |
| 14 | +} | |
| 15 | +to { | |
| 16 | + transform: scale(1); | |
| 17 | + opacity: 1; | |
| 18 | +}`,Yy=Ty` | |
| 19 | +from { | |
| 20 | + transform: scale(0) rotate(90deg); | |
| 21 | + opacity: 0; | |
| 22 | +} | |
| 23 | +to { | |
| 24 | + transform: scale(1) rotate(90deg); | |
| 25 | + opacity: 1; | |
| 26 | +}`,Py=Ey("div")` | |
| 27 | + width: 20px; | |
| 28 | + opacity: 0; | |
| 29 | + height: 20px; | |
| 30 | + border-radius: 10px; | |
| 31 | + background: ${e=>e.primary||"#ff4b4b"}; | |
| 32 | + position: relative; | |
| 33 | + transform: rotate(45deg); | |
| 34 | + | |
| 35 | + animation: ${Qy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) | |
| 36 | + forwards; | |
| 37 | + animation-delay: 100ms; | |
| 38 | + | |
| 39 | + &:after, | |
| 40 | + &:before { | |
| 41 | + content: ''; | |
| 42 | + animation: ${Ry} 0.15s ease-out forwards; | |
| 43 | + animation-delay: 150ms; | |
| 44 | + position: absolute; | |
| 45 | + border-radius: 3px; | |
| 46 | + opacity: 0; | |
| 47 | + background: ${e=>e.secondary||"#fff"}; | |
| 48 | + bottom: 9px; | |
| 49 | + left: 4px; | |
| 50 | + height: 2px; | |
| 51 | + width: 12px; | |
| 52 | + } | |
| 53 | + | |
| 54 | + &:before { | |
| 55 | + animation: ${Yy} 0.15s ease-out forwards; | |
| 56 | + animation-delay: 180ms; | |
| 57 | + transform: rotate(90deg); | |
| 58 | + } | |
| 59 | +`,_y=Ty` | |
| 60 | + from { | |
| 61 | + transform: rotate(0deg); | |
| 62 | + } | |
| 63 | + to { | |
| 64 | + transform: rotate(360deg); | |
| 65 | + } | |
| 66 | +`,Fy=Ey("div")` | |
| 67 | + width: 12px; | |
| 68 | + height: 12px; | |
| 69 | + box-sizing: border-box; | |
| 70 | + border: 2px solid; | |
| 71 | + border-radius: 100%; | |
| 72 | + border-color: ${e=>e.secondary||"#e0e0e0"}; | |
| 73 | + border-right-color: ${e=>e.primary||"#616161"}; | |
| 74 | + animation: ${_y} 1s linear infinite; | |
| 75 | +`,By=Ty` | |
| 76 | +from { | |
| 77 | + transform: scale(0) rotate(45deg); | |
| 78 | + opacity: 0; | |
| 79 | +} | |
| 80 | +to { | |
| 81 | + transform: scale(1) rotate(45deg); | |
| 82 | + opacity: 1; | |
| 83 | +}`,Vy=Ty` | |
| 84 | +0% { | |
| 85 | + height: 0; | |
| 86 | + width: 0; | |
| 87 | + opacity: 0; | |
| 88 | +} | |
| 89 | +40% { | |
| 90 | + height: 0; | |
| 91 | + width: 6px; | |
| 92 | + opacity: 1; | |
| 93 | +} | |
| 94 | +100% { | |
| 95 | + opacity: 1; | |
| 96 | + height: 10px; | |
| 97 | +}`,Wy=Ey("div")` | |
| 98 | + width: 20px; | |
| 99 | + opacity: 0; | |
| 100 | + height: 20px; | |
| 101 | + border-radius: 10px; | |
| 102 | + background: ${e=>e.primary||"#61d345"}; | |
| 103 | + position: relative; | |
| 104 | + transform: rotate(45deg); | |
| 105 | + | |
| 106 | + animation: ${By} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) | |
| 107 | + forwards; | |
| 108 | + animation-delay: 100ms; | |
| 109 | + &:after { | |
| 110 | + content: ''; | |
| 111 | + box-sizing: border-box; | |
| 112 | + animation: ${Vy} 0.2s ease-out forwards; | |
| 113 | + opacity: 0; | |
| 114 | + animation-delay: 200ms; | |
| 115 | + position: absolute; | |
| 116 | + border-right: 2px solid; | |
| 117 | + border-bottom: 2px solid; | |
| 118 | + border-color: ${e=>e.secondary||"#fff"}; | |
| 119 | + bottom: 6px; | |
| 120 | + left: 6px; | |
| 121 | + height: 10px; | |
| 122 | + width: 6px; | |
| 123 | + } | |
| 124 | +`,Hy=Ey("div")` | |
| 125 | + position: absolute; | |
| 126 | +`,qy=Ey("div")` | |
| 127 | + position: relative; | |
| 128 | + display: flex; | |
| 129 | + justify-content: center; | |
| 130 | + align-items: center; | |
| 131 | + min-width: 20px; | |
| 132 | + min-height: 20px; | |
| 133 | +`,Gy=Ty` | |
| 134 | +from { | |
| 135 | + transform: scale(0.6); | |
| 136 | + opacity: 0.4; | |
| 137 | +} | |
| 138 | +to { | |
| 139 | + transform: scale(1); | |
| 140 | + opacity: 1; | |
| 141 | +}`,$y=Ey("div")` | |
| 142 | + position: relative; | |
| 143 | + transform: scale(0.6); | |
| 144 | + opacity: 0.4; | |
| 145 | + min-width: 20px; | |
| 146 | + animation: ${Gy} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) | |
| 147 | + forwards; | |
| 148 | +`,Zy=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?d.createElement($y,null,t):t:"blank"===n?null:d.createElement(qy,null,d.createElement(Fy,{...r}),"loading"!==n&&d.createElement(Hy,null,"error"===n?d.createElement(Py,{...r}):d.createElement(Wy,{...r})))},Ky=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Xy=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Jy=Ey("div")` | |
| 149 | + display: flex; | |
| 150 | + align-items: center; | |
| 151 | + background: #fff; | |
| 152 | + color: #363636; | |
| 153 | + line-height: 1.3; | |
| 154 | + will-change: transform; | |
| 155 | + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); | |
| 156 | + max-width: 350px; | |
| 157 | + pointer-events: auto; | |
| 158 | + padding: 8px 10px; | |
| 159 | + border-radius: 8px; | |
| 160 | +`,eN=Ey("div")` | |
| 161 | + display: flex; | |
| 162 | + justify-content: center; | |
| 163 | + margin: 4px 10px; | |
| 164 | + color: inherit; | |
| 165 | + flex: 1 1 auto; | |
| 166 | + white-space: pre-line; | |
| 167 | +`;d.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Oy()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Ky(n),Xy(n)];return{animation:t?`${Ty(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ty(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=d.createElement(Zy,{toast:e}),s=d.createElement(eN,{...e.ariaProps},Iy(e.message,e));return d.createElement(Jy,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:i,message:s}):d.createElement(d.Fragment,null,i,s))})),function(e){Ny.p=void 0,wy=e,by=void 0,jy=void 0}(d.createElement),vy` | |
| 168 | + z-index: 9999; | |
| 169 | + > * { | |
| 170 | + pointer-events: auto; | |
| 171 | + } | |
| 172 | +`,window.wp.editor,window.wp.blockEditor,window.wp.data;const tN=window.wp.url,nN=e=>{const t=sN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),rN(n,t)||iN(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},rN=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?rN(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},oN=/^\[(.+)\]$/,iN=e=>{if(oN.test(e)){const t=oN.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},sN=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)aN(n[e],r,e,t);return r},aN=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return cN(e)?void aN(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{aN(o,lN(t,e),n,r)}))}else(""===e?t:lN(t,e)).classGroupId=n}))},lN=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},cN=e=>e.isThemeGetter,uN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},dN=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=fN(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},fN=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,hN=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},mN=/\s+/;function gN(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=pN(e))&&(r&&(r+=" "),r+=t);return r}const pN=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=pN(e[r]))&&(n&&(n+=" "),n+=t);return n};function MN(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:uN(e.cacheSize),parseClassName:dN(e),sortModifiers:hN(e),...nN(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(mN);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!h,g=r(m?f.substring(0,h):f);if(!g){if(!m){l=t+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=t+(l.length>0?" "+l:l);continue}m=!1}const p=i(u).join(":"),M=d?p+"!":p,y=M+g;if(s.includes(y))continue;s.push(y);const N=o(g,m);for(let e=0;e<N.length;++e){const t=N[e];s.push(M+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(gN.apply(null,arguments))}}const yN=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},NN=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xN=/^\((?:(\w[\w-]*):)?(.+)\)$/i,DN=/^\d+\/\d+$/,vN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,TN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,EN=e=>DN.test(e),IN=e=>!!e&&!Number.isNaN(Number(e)),AN=e=>!!e&&Number.isInteger(Number(e)),ON=e=>e.endsWith("%")&&IN(e.slice(0,-1)),kN=e=>vN.test(e),zN=()=>!0,SN=e=>wN.test(e)&&!bN.test(e),LN=()=>!1,CN=e=>jN.test(e),UN=e=>TN.test(e),QN=e=>!YN(e)&&!WN(e),RN=e=>XN(e,nx,LN),YN=e=>NN.test(e),PN=e=>XN(e,rx,SN),_N=e=>XN(e,ox,IN),FN=e=>XN(e,ex,LN),BN=e=>XN(e,tx,UN),VN=e=>XN(e,sx,CN),WN=e=>xN.test(e),HN=e=>JN(e,rx),qN=e=>JN(e,ix),GN=e=>JN(e,ex),$N=e=>JN(e,nx),ZN=e=>JN(e,tx),KN=e=>JN(e,sx,!0),XN=(e,t,n)=>{const r=NN.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},JN=(e,t,n=!1)=>{const r=xN.exec(e);return!!r&&(r[1]?t(r[1]):n)},ex=e=>"position"===e||"percentage"===e,tx=e=>"image"===e||"url"===e,nx=e=>"length"===e||"size"===e||"bg-size"===e,rx=e=>"length"===e,ox=e=>"number"===e,ix=e=>"family-name"===e,sx=e=>"shadow"===e,ax=MN((Symbol.toStringTag,()=>{const e=yN("color"),t=yN("font"),n=yN("text"),r=yN("font-weight"),o=yN("tracking"),i=yN("leading"),s=yN("breakpoint"),a=yN("container"),l=yN("spacing"),c=yN("radius"),u=yN("shadow"),d=yN("inset-shadow"),f=yN("text-shadow"),h=yN("drop-shadow"),m=yN("blur"),g=yN("perspective"),p=yN("aspect"),M=yN("ease"),y=yN("animate"),N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",WN,YN],x=()=>[WN,YN,l],D=()=>[EN,"full","auto",...x()],v=()=>[AN,"none","subgrid",WN,YN],w=()=>["auto",{span:["full",AN,WN,YN]},AN,WN,YN],b=()=>[AN,"auto",WN,YN],j=()=>["auto","min","max","fr",WN,YN],T=()=>["auto",...x()],E=()=>[EN,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],I=()=>[e,WN,YN],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",GN,FN,{position:[WN,YN]}],O=()=>["auto","cover","contain",$N,RN,{size:[WN,YN]}],k=()=>[ON,HN,PN],z=()=>["","none","full",c,WN,YN],S=()=>["",IN,HN,PN],L=()=>[IN,ON,GN,FN],C=()=>["","none",m,WN,YN],U=()=>["none",IN,WN,YN],Q=()=>["none",IN,WN,YN],R=()=>[IN,WN,YN],Y=()=>[EN,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kN],breakpoint:[kN],color:[zN],container:[kN],"drop-shadow":[kN],ease:["in","out","in-out"],font:[QN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kN],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kN],shadow:[kN],spacing:["px",IN],text:[kN],"text-shadow":[kN],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",EN,YN,WN,p]}],container:["container"],columns:[{columns:[IN,YN,WN,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[AN,"auto",WN,YN]}],basis:[{basis:[EN,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[IN,EN,"auto","initial","none",YN]}],grow:[{grow:["",IN,WN,YN]}],shrink:[{shrink:["",IN,WN,YN]}],order:[{order:[AN,"first","last","none",WN,YN]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":b()}],"col-end":[{"col-end":b()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":b()}],"row-end":[{"row-end":b()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,HN,PN]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,WN,_N]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ON,YN]}],"font-family":[{font:[qN,YN,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,WN,YN]}],"line-clamp":[{"line-clamp":[IN,"none",WN,_N]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",WN,YN]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",WN,YN]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[IN,"from-font","auto",WN,PN]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[IN,"auto",WN,YN]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",WN,YN]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",WN,YN]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},AN,WN,YN],radial:["",WN,YN],conic:[AN,WN,YN]},ZN,BN]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[IN,WN,YN]}],"outline-w":[{outline:["",IN,HN,PN]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,KN,VN]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,KN,VN]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[IN,PN]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,KN,VN]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[IN,WN,YN]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[IN]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[WN,YN]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[IN]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",WN,YN]}],filter:[{filter:["","none",WN,YN]}],blur:[{blur:C()}],brightness:[{brightness:[IN,WN,YN]}],contrast:[{contrast:[IN,WN,YN]}],"drop-shadow":[{"drop-shadow":["","none",h,KN,VN]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",IN,WN,YN]}],"hue-rotate":[{"hue-rotate":[IN,WN,YN]}],invert:[{invert:["",IN,WN,YN]}],saturate:[{saturate:[IN,WN,YN]}],sepia:[{sepia:["",IN,WN,YN]}],"backdrop-filter":[{"backdrop-filter":["","none",WN,YN]}],"backdrop-blur":[{"backdrop-blur":C()}],"backdrop-brightness":[{"backdrop-brightness":[IN,WN,YN]}],"backdrop-contrast":[{"backdrop-contrast":[IN,WN,YN]}],"backdrop-grayscale":[{"backdrop-grayscale":["",IN,WN,YN]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[IN,WN,YN]}],"backdrop-invert":[{"backdrop-invert":["",IN,WN,YN]}],"backdrop-opacity":[{"backdrop-opacity":[IN,WN,YN]}],"backdrop-saturate":[{"backdrop-saturate":[IN,WN,YN]}],"backdrop-sepia":[{"backdrop-sepia":["",IN,WN,YN]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",WN,YN]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[IN,"initial",WN,YN]}],ease:[{ease:["linear","initial",M,WN,YN]}],delay:[{delay:[IN,WN,YN]}],animate:[{animate:["none",y,WN,YN]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,WN,YN]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[WN,YN,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",WN,YN]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",WN,YN]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[IN,HN,PN,_N]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));window.wp.blocks;var lx=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var r=new URL(e);return r.searchParams.set(n,t),"utm_medium"===n&&(r.searchParams.get("utm_source")||r.searchParams.set("utm_source","sureforms_plugin"),r.searchParams.get("utm_campaign")||r.searchParams.set("utm_campaign","core_plugin")),r.toString()}catch(t){return console.error("Invalid URL:",t),e}},cx=function(){return ax(he.apply(void 0,arguments))},ux=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";try{if(!e||isNaN(new Date(e).getTime()))throw new Error((0,Su.__)("Invalid Date","sureforms"));return Ep(new Date(e),t)}catch(e){return(0,Su.__)("No Date","sureforms")}};void 0===window._srfmSlugAutoLabels&&(window._srfmSlugAutoLabels=new Map),window._srfmSlugAutoLabels;var dx=function(e){var t={month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){if(!e)return"-";try{return new Date(e.replace(" ","T")).toLocaleString("en-US",t)}catch(t){return e}}var n=new Date(e);return{shortFormat:n.toLocaleString("en-US",t),fullFormat:n.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}},fx=["placement","trigger","onApply","value","triggerPlaceholder"];function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hx.apply(null,arguments)}function mx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const px=function(e){var t,n,r,o=e.placement,i=void 0===o?"bottom-end":o,a=e.trigger,l=void 0===a?null:a,c=e.onApply,u=e.value,d=void 0===u?{from:null,to:null}:u,f=e.triggerPlaceholder,h=void 0===f?(0,Su.__)("mm/dd/yyyy - mm/dd/yyyy","sureforms"):f,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,fx),g=null!==(t={"bottom-start":"top-full -left-0.5 mt-2","bottom-end":"top-full -right-0.5 mt-2","top-start":"bottom-full -left-0.5 mb-2","top-end":"bottom-full -right-0.5 mb-2"}[i])&&void 0!==t?t:"bottom-end",p=mx((0,s.useState)(!1),2),M=p[0],y=p[1],N=mx((0,s.useState)(d),2),x=N[0],D=N[1],v=(0,s.useRef)();return(0,s.useEffect)((function(){M||D(d||{from:null,to:null})}),[M,d]),(0,s.useEffect)((function(){var e=function(e){var t=v.current;t&&!t.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[M]),React.createElement("div",{className:"relative",ref:v},null===l?(r={show:M,setShow:y}.setShow,React.createElement(Km,hx({type:"text",size:"sm",value:(n=d,n.from?n.to?"".concat(ux(n.from,"MM/dd/yyyy")," - ").concat(ux(n.to,"MM/dd/yyyy")):"".concat(ux(n.from,"MM/dd/yyyy")):""),suffix:React.createElement(fy,{className:"text-icon-secondary"}),onClick:function(){return r((function(e){return!e}))},placeholder:h,readOnly:!0,"aria-label":(0,Su.__)("Select Date Range","sureforms")},m))):"function"==typeof l?l({show:M,setShow:y}):l,M&&React.createElement("div",{className:cx("absolute z-10 rounded-md shadow-soft-shadow-md overflow-clip",g)},React.createElement(dy,{onCancel:function(){y(!1)},variant:"presets",selectionType:"range",onDateSelect:function(e){D({from:e.from,to:e.to})},selected:x,onApply:function(e){e.from&&e.to&&("function"==typeof c&&c(e),y(!1))},disabled:{after:new Date}})))};function Mx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yx=[{value:"",label:(0,Su.__)("All Statuses","sureforms")},{value:"read",label:(0,Su.__)("Read","sureforms")},{value:"unread",label:(0,Su.__)("Unread","sureforms")},{value:"trash",label:(0,Su.__)("Trash","sureforms")}];function Nx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,Su.__)("Entry ID","sureforms"),(0,Su.__)("Form Name","sureforms"),(0,Su.__)("Status","sureforms"),(0,Su.__)("First Field","sureforms"),(0,Su.__)("Date and Time","sureforms"),(0,Su.__)("Actions","sureforms");const xx=function(e){var t,n,r=e.statusFilter,o=e.onStatusFilterChange,i=e.formFilter,a=e.onFormFilterChange,l=e.searchQuery,c=e.onSearchChange,u=e.dateRange,d=e.onDateRangeChange,f=e.formOptions,h=void 0===f?[]:f,m=e.isLoadingForms,g=void 0!==m&&m,p=e.selectedEntries,M=void 0===p?[]:p,y=e.onBulkDelete,N=e.onBulkExport,x=e.onMarkAsRead,D=e.onMarkAsUnread,v=e.onBulkRestore,w=e.onClearFilters,b=e.hasActiveFilters,j=void 0!==b&&b,T=e.hasUnreadSelected,E=void 0!==T&&T,I=e.hasReadSelected,A=void 0!==I&&I,O=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.useState)(!1),2),k=O[0],z=O[1],S=(0,s.useRef)(null),L=(0,s.useMemo)((function(){return M.length>0}),[M]),C=[{label:L?(0,Su.__)("Export Selected","sureforms"):(0,Su.__)("Export All","sureforms"),onClick:N,icon:React.createElement(Pu,null)}];E&&C.push({label:(0,Su.__)("Mark as Read","sureforms"),onClick:x,icon:React.createElement(_u,null)}),A&&C.push({label:(0,Su.__)("Mark as Unread","sureforms"),onClick:D,icon:React.createElement(Fu,null)}),(0,s.useEffect)((function(){S.current&&(S.current.value=l)}),[l]);var U=(0,Cu.applyFilters)("srfm-pro.entry-details.render-resend-notification-modal");return React.createElement(s.Fragment,null,React.createElement("div",{className:"flex flex-wrap lg:flex-nowrap items-center justify-end gap-2 sm:gap-3 lg:gap-4 mt-4 lg:!mt-0"},(0,Cu.applyFilters)("srfm.entriesFilters.extraActions",null,{formFilter:i,statusFilter:r,hasSelectedEntries:L}),j&&!L&&React.createElement(De,{variant:"outline",size:"sm",onClick:w,icon:React.createElement(Bu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit",destructive:!0},(0,Su.__)("Clear Filters","sureforms")),!L&&React.createElement(React.Fragment,null,React.createElement("div",{className:"w-fit flex-1 lg:flex-initial min-w-24 sm:w-24"},React.createElement(qm,{value:r,onChange:o,size:"sm"},React.createElement(qm.Button,{placeholder:(0,Su.__)("Status","sureforms")},null===(t=yx.find((function(e){return e.value===r})))||void 0===t?void 0:t.label),React.createElement(qm.Options,{className:"z-999999"},yx.map((function(e){return React.createElement(qm.Option,{key:e.value,value:e.value},e.label)}))))),React.createElement("div",{className:"w-full min-w-32 lg:w-40"},g?React.createElement(Gm,{className:"h-8 w-full rounded-md"}):React.createElement(qm,{value:i,onChange:a,size:"sm"},React.createElement(qm.Button,{placeholder:(0,Su.__)("All Forms","sureforms")},(null===(n=h.find((function(e){return e.value===i})))||void 0===n?void 0:n.label)||(0,Su.__)("Untitled","sureforms")),React.createElement(qm.Options,{className:"z-999999"},h.map((function(e){return React.createElement(qm.Option,{key:e.value,value:e.value},e.label||(0,Su.__)("Untitled","sureforms"))})))))," ",React.createElement("div",{className:"w-full min-w-[11.25rem] lg:w-auto lg:min-w-[13.125rem]"},React.createElement(px,{value:u,onApply:d})),React.createElement("div",{className:"w-full min-w-40 lg:w-auto"},React.createElement(Km,{type:"search",placeholder:(0,Su.__)("Search entries…","sureforms"),ref:S,onChange:function(e){""===e&&c("")},onKeyDown:function(e){if("Enter"===e.key){var t=e.target.value.trim(),n=/^\d+$/.test(t);if(""!==t&&!n&&t.length<3)return;c(t)}},prefix:React.createElement(Vu,{className:"w-4 h-4 text-icon-secondary"})}))),L&&React.createElement(React.Fragment,null,!!U&&"all"!==i&&""!==i&&React.createElement(De,{variant:"outline",size:"sm",onClick:function(){U&&z(!0)},icon:React.createElement(Wu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit"},(0,Su.__)("Resend Notifications","sureforms")),"trash"===r&&React.createElement(De,{variant:"outline",size:"sm",onClick:v,icon:React.createElement(Hu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit"},(0,Su.__)("Restore","sureforms")),React.createElement(De,{variant:"outline",size:"sm",onClick:y,icon:React.createElement(qu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit",destructive:!0},(0,Su.__)("Delete","sureforms"))),React.createElement(sg,{placement:"bottom-end"},React.createElement(sg.Trigger,null,React.createElement(De,{variant:"outline",size:"sm",icon:React.createElement(Gu,{className:"w-4 h-4"}),className:"min-w-fit px-2"})),React.createElement(sg.Portal,{id:"srfm-dialog-root"},React.createElement(sg.ContentWrapper,null,React.createElement(sg.Content,{className:"w-48"},React.createElement(sg.List,null,C.map((function(e,t){return React.createElement(sg.Item,{key:t,onClick:e.onClick,className:"text-sm [&>svg]:size-4 font-normal text-text-secondary hover:bg-background-secondary hover:text-text-primary focus:bg-background-secondary focus:text-text-primary cursor-pointer"},e.icon,e.label)})))))))),!!U&&"all"!==i&&""!==i&&React.createElement(U,{open:k,setOpen:z,entryIds:M,formId:parseInt(i,10)}))},Dx=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:i,setOpen:s,children:a,className:l,tooltipPortalRoot:c,tooltipPortalId:f,boundary:h="clippingAncestors",strategy:m="fixed",offset:g=8,triggers:p=["hover","focus"],interactive:M=!1})=>{const y=(0,d.useMemo)((()=>"boolean"==typeof i&&"function"==typeof s),[i,s]),[N,x]=(0,d.useState)(!1),D=(0,d.useRef)(null),{refs:v,floatingStyles:w,context:b}=fm({open:y?i:N,onOpenChange:y?s:x,placement:t,strategy:m,middleware:[qf(g),$f({boundary:h}),Gf({boundary:h}),(U={element:D},{...Hf(U),options:[U,undefined]})],whileElementsMounted:Lf}),j=am(b,{enabled:!y&&p.includes("click")}),T=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:f=0,move:h=!0}=t,m=Dh(),g=xh(),p=wh(c),M=wh(l),y=wh(n),N=d.useRef(),x=d.useRef(-1),D=d.useRef(),v=d.useRef(-1),w=d.useRef(!0),b=d.useRef(!1),j=d.useRef((()=>{})),T=d.useRef(!1),E=d.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);d.useEffect((()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(v.current),w.current=!0,T.current=!1)}}),[a,i]),d.useEffect((()=>{if(!a)return;if(!p.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=Id(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s.floating,n,r,a,p,E]);const I=d.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=jh(M.current,"close",N.current);o&&!D.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(x.current),r(!1,e,n))}),[M,r]),A=Xf((()=>{j.current(),D.current=void 0})),O=Xf((()=>{if(b.current){const e=Id(s.floating).body;e.style.pointerEvents="",e.removeAttribute(bh),b.current=!1}})),k=Xf((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));d.useEffect((()=>{if(a&&rd(s.domReference)){var e;const r=s.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=s.floating)||e.addEventListener("mouseleave",l),h&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=s.floating)||e.removeEventListener("mouseleave",l),h&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(x.current),w.current=!1,u&&!Ed(N.current)||f>0&&!jh(M.current,"open"))return;const t=jh(M.current,"open",N.current);t?x.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(k())return;j.current();const t=Id(s.floating);if(clearTimeout(v.current),T.current=!1,p.current&&o.current.floatingContext){n||clearTimeout(x.current),D.current=p.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){O(),A(),k()||I(e,!0,"safe-polygon")}});const r=D.current;return t.addEventListener("mousemove",r),void(j.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==N.current||!Nd(s.floating,e.relatedTarget))&&I(e)}function l(e){k()||o.current.floatingContext&&(null==p.current||p.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){O(),A(),k()||I(e)}})(e))}}),[s,a,e,u,f,h,I,A,O,r,n,y,m,M,p,o,k]),dh((()=>{var e;if(a&&n&&null!=(e=p.current)&&e.__options.blockPointerEvents&&E()){b.current=!0;const e=s.floating;if(rd(s.domReference)&&e){var t;const n=Id(s.floating).body;n.setAttribute(bh,"");const r=s.domReference,o=null==m||null==(t=m.nodesRef.current.find((e=>e.id===g)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[a,n,g,s,m,p,E]),dh((()=>{n||(N.current=void 0,T.current=!1,A(),O())}),[n,A,O]),d.useEffect((()=>()=>{A(),clearTimeout(x.current),clearTimeout(v.current),O()}),[a,s.domReference,A,O]);const z=d.useMemo((()=>{function e(e){N.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){w.current||y.current||r(!0,t,"hover")}u&&!Ed(N.current)||n||0===f||T.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(v.current),"touch"===N.current?o():(T.current=!0,v.current=window.setTimeout(o,f)))}}}),[u,r,n,y,f]),S=d.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){k()||I(e.nativeEvent,!1)}})),[I,k]);return d.useMemo((()=>a?{reference:z,floating:S}:{}),[a,z,S])}(b,{move:!1,enabled:!y&&p.includes("hover"),...M&&{handleClose:Am()}}),E=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=d.useRef(!1),u=d.useRef(),f=d.useRef(!0);d.useEffect((()=>{if(!a)return;const e=ed(s.domReference);function t(){!n&&od(s.domReference)&&s.domReference===yd(Id(s.domReference))&&(c.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[s.domReference,n,a]),d.useEffect((()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}}),[o,a]),d.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const h=d.useMemo((()=>({onPointerDown(e){wd(e.nativeEvent)||(f.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Od(e.nativeEvent);if(l&&rd(t))try{if(bd()&&Td())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!kd(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=rd(t)&&t.hasAttribute(vh("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const a=yd(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(Nd(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Nd(s.domReference,a)||o||r(!1,n,"focus"))}))}})),[i,s.domReference,r,l]);return d.useMemo((()=>a?{reference:h}:{}),[a,h])}(b,{enabled:!y&&p.includes("focus")}),I=dm(b),A=bm(b,{role:"tooltip"}),{getReferenceProps:O,getFloatingProps:k}=pm([j,T,E,I,A]),{isMounted:z,styles:S}=Em(b,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),L={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],C="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var U;return(0,u.jsxs)(d.Fragment,{children:[(0,d.isValidElement)(a)&&(0,u.jsx)(d.Fragment,{children:(0,d.cloneElement)(a,{ref:Ie(a.ref,v.setReference),className:me(a.props.className),...O()})},"tooltip-reference"),(0,u.jsx)(qh,{id:f,root:c,children:z&&(0,u.jsxs)("div",{className:me("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",L,"max-w-80 w-fit",l),ref:v.setFloating,style:{...w,...S},...k(),children:[(0,u.jsxs)("div",{children:[!!n&&(0,u.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,u.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,u.jsx)(Mh,{ref:D,context:b,className:me("fill-current",C)})]})})]})};Dx.displayName="Tooltip";const vx={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},wx={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},bx={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},jx={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},Tx={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},Ex={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Ix={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},Ax={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},Ox={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},kx={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},zx={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Sx={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Lx={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Cx={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Ux={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Qx={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Rx={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Yx=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,i]of Object.entries(e))t[r]&&o.push(t?.[r]?.[i]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;o.push(t?.[i]?.[e]??t?.[i]?.[n?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Px=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:i,justify:s,gridFlow:a,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:d=!1,autoCols:f=!1,children:h,...m})=>{const g=Yx(t,vx,1),p=Yx(n,wx,"sm"),M=Yx(r,bx,""),y=Yx(o,jx,""),N=Yx(i,Ox,""),x=Yx(s,Ax,""),D=Yx(a,Ix,"");return(0,u.jsx)("div",{className:me("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":f,"auto-rows-auto":d},g,p,M,y,N,x,D,e),...m,children:h})};Px.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:i,...s})=>{const a=Yx(n,Tx,0),l=Yx(r,Ex,0),c=Yx(o,kx,""),d=Yx(i,zx,"");return(0,u.jsx)("div",{className:me(a,l,c,d,e),...s,children:t})};const _x=(0,d.createContext)({}),Fx=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:i,align:s,wrap:a,cols:l,className:c,children:d,...f})=>{if("grid"===e)return(0,u.jsx)(_x.Provider,{value:{containerType:e},children:(0,u.jsx)(Px,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:d,align:s,justify:i,...f})});const h=Yx(a,Lx,""),m=Yx(t,wx,"sm"),g=Yx(n,bx,""),p=Yx(r,jx,""),M=Yx(o,Sx,""),y=Yx(i,Ax,""),N=Yx(s,Ox,""),x=me("flex",h,m,g,p,M,y,N,c);return(0,u.jsx)(_x.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,u.jsx)("div",{className:x,children:d}):(0,u.jsx)(Px,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:d,align:s,justify:i,...f})})},Bx=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:i,children:s,...a})=>{const{containerType:l,cols:c}=(0,d.useContext)(_x);if("grid"===l)return(0,u.jsx)(Px.Item,{className:i,alignSelf:r,justifySelf:o,children:s,...a});const f=Yx(r,kx,""),h=Yx(o,zx,""),m=Yx(e,Qx,0),g=Yx(t,Rx,0),p=Yx(n,Ux,0),M=Yx(c,Cx,1);return(0,u.jsx)("div",{className:me("box-border",m,g,p,f,h,M,i),children:s})};Fx.Item=Bx,Fx.displayName="Container",Bx.displayName="Container.Item";var Vx=["title","content","placement","arrow","interactive","portalId","children"];function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(null,arguments)}const Hx=function(e){var t=e.title,n=e.content,r=e.placement,o=void 0===r?"bottom":r,i=e.arrow,s=void 0===i||i,a=e.interactive,l=void 0!==a&&a,c=e.portalId,u=void 0===c?"srfm-settings-container":c,d=e.children,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Vx);return d?React.createElement(Dx,Wx({title:t,content:n,placement:o,arrow:s,interactive:l,tooltipPortalId:u},f),d):null};function qx(e){return qx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qx(e)}var Gx=function(e){switch(null==e?void 0:e.toLowerCase()){case"unread":return"yellow";case"read":return"green";case"trash":return"red";default:return"neutral"}},$x=function(e){switch(null==e?void 0:e.toLowerCase()){case"unread":return(0,Su.__)("Unread","sureforms");case"read":return(0,Su.__)("Read","sureforms");case"trash":return(0,Su.__)("Trash","sureforms");default:return e}},Zx=function(e){if(!e||"object"!==qx(e))return"-";var t=Object.keys(e)[0];return t&&e[t]||"-"},Kx=function(e){if(!e)return"-";try{return new Date(e.replace(" ","T")).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch(t){return e}};const Xx=Yu("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Jx=Yu("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),eD=Yu("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),tD=p("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),nD=(0,d.forwardRef)((({id:e,label:t,defaultChecked:n=!1,checked:r,onChange:o,indeterminate:i,disabled:s,size:a="md",className:l,...c},f)=>{const h=(0,d.useMemo)((()=>e||`checkbox-${Om()}`),[e]),m=(0,d.useMemo)((()=>typeof r<"u"),[r]),[g,p]=(0,d.useState)(n||!1),M="primary",y={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},N={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},x=(0,d.useCallback)((()=>m?r:g),[m,r,g]),D=(0,d.useCallback)((()=>(0,d.isValidElement)(t)?t:t?.heading||t?.description?(0,u.jsxs)("div",{className:y[a].gap,children:[t?.heading&&(0,u.jsx)(Zm,{className:me("text-text-primary font-medium leading-4 m-0",y[a].text,y[a].gap,s&&"text-text-disabled"),htmlFor:h,children:t?.heading}),t?.description&&(0,u.jsx)(Zm,{tag:"p",className:me("font-normal leading-5 m-0",y[a].description,s&&"text-text-disabled"),variant:"help",children:t?.description})]}):null),[t,a,s]);return(0,u.jsxs)("div",{className:me("inline-flex items-center justify-center gap-2",!!t&&"items-start",s&&"cursor-not-allowed"),children:[(0,u.jsxs)("label",{className:me("relative flex items-center justify-center rounded-full p-0.5",!s&&"cursor-pointer"),htmlFor:h,children:[(0,u.jsx)("input",{ref:f,id:h,type:"checkbox",className:me("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",N[M].checkbox,y[a].checkbox,s&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",l),checked:x(),onChange:e=>{if(s)return;const t=e.target.checked;m||p(t),"function"==typeof o&&o(t)},disabled:s,...c}),(0,u.jsx)("span",{className:me("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",N[M].icon,s&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:i?(0,u.jsx)(tD,{className:me(y[a]?.icon)}):(0,u.jsx)(ye,{className:me(y[a]?.icon)})})]}),!!t&&D()]})}));nD.displayName="Checkbox";const rD=(0,d.createContext)(void 0),oD=()=>{const e=(0,d.useContext)(rD);if(!e)throw new Error("Table components must be used within Table component");return e},iD=({children:e,className:t,checkboxSelection:n=!1,...r})=>{const o={checkboxSelection:n},i=d.Children.toArray(e).find((e=>d.isValidElement(e)&&e.type===dD)),s=d.Children.toArray(e).filter((e=>d.isValidElement(e)&&e.type!==dD));return(0,u.jsx)(rD.Provider,{value:o,children:(0,u.jsxs)("div",{className:"flow-root border-0.5 border-solid border-border-subtle rounded-md divide-y-0.5 divide-x-0 divide-solid divide-border-subtle overflow-hidden",children:[(0,u.jsx)("div",{className:"overflow-x-auto w-full",children:(0,u.jsx)("div",{className:"relative",children:(0,u.jsx)("table",{className:me("table-fixed min-w-full border-collapse border-spacing-0",t),...r,children:s})})}),i]})})},sD=({children:e,className:t,selected:n,onChangeSelection:r,indeterminate:o,disabled:i,...s})=>{const{checkboxSelection:a}=oD();return(0,u.jsx)("thead",{className:me("bg-background-secondary border-x-0 border-t-0 border-b-0.5 border-solid border-border-subtle",t),...s,children:(0,u.jsxs)("tr",{children:[a&&(0,u.jsx)("th",{scope:"col",className:"relative px-5.5 w-11 overflow-hidden",children:(0,u.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,u.jsx)(nD,{size:"sm",checked:n,indeterminate:o,disabled:i,onChange:e=>{"function"==typeof r&&r(e)},"aria-label":n?"Deselect all":"Select all"})})}),e]})})},aD=({children:e,className:t,...n})=>(0,u.jsx)("th",{scope:"col",className:me("p-3 text-left text-sm font-medium leading-5 text-text-primary",t),...n,children:e}),lD=({children:e,className:t,...n})=>(0,u.jsx)("tbody",{className:me("bg-background-primary divide-y-0.5 divide-x-0 divide-solid divide-border-subtle",t),...n,children:e}),cD=({children:e,selected:t,value:n,className:r,onChangeSelection:o,...i})=>{const{checkboxSelection:s}=oD();return(0,u.jsxs)("tr",{className:me("hover:bg-background-secondary",t&&"bg-background-secondary",r),...i,children:[s&&(0,u.jsx)("td",{className:"relative px-5.5 w-11 overflow-hidden",children:(0,u.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,u.jsx)(nD,{size:"sm",checked:t,onChange:e=>{"function"==typeof o&&o(e,n)},"aria-label":"Select row"})})}),e]})},uD=({children:e,className:t,...n})=>(0,u.jsx)("td",{className:me("px-3 py-3.5 text-sm font-normal leading-5 text-text-secondary",t),...n,children:e}),dD=({children:e,className:t,...n})=>{const{checkboxSelection:r}=oD();return(0,u.jsx)("div",{className:me("px-3 py-3",r&&"px-4",t),...n,children:e})};iD.displayName="Table",sD.displayName="Table.Head",aD.displayName="Table.HeadCell",lD.displayName="Table.Body",cD.displayName="Table.Row",uD.displayName="Table.Cell",dD.displayName="Table.Footer",iD.Head=sD,iD.HeadCell=aD,iD.Body=lD,iD.Row=cD,iD.Cell=uD,iD.Footer=dD;const fD={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},hD={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},mD={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},gD={2:"tracking-2"},pD={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},MD=(0,d.forwardRef)((function({as:e,children:t,weight:n,size:r,lineHeight:o,letterSpacing:i,color:s="primary",className:a,...l},c){return(0,u.jsx)(e||"p",{ref:c,className:me("m-0 p-0",n?fD[n]:"",r?hD[r]:"",o?mD[o]:"",i?gD[i]:"",s?pD[s]:"",a),...l,children:t})})),yD={xs:{general:"text-xs min-w-6 h-6",ellipse:"text-xs min-w-6",icon:"size-4"},sm:{general:"text-xs min-w-8 h-8",ellipse:"text-xs min-w-8",icon:"size-4"},md:{general:"text-sm min-w-10 h-10",ellipse:"text-sm min-w-10",icon:"size-5"},lg:{general:"text-base min-w-12 h-12",ellipse:"text-base min-w-12",icon:"size-6"}},ND="group disabled:border-field-border-disabled opacity-50",xD=(0,d.createContext)({size:"sm",disabled:!1}),DD=()=>(0,d.useContext)(xD),vD=({size:e="sm",disabled:t=!1,children:n,className:r,...o})=>(0,u.jsx)(xD.Provider,{value:{size:e,disabled:t},children:(0,u.jsx)("nav",{role:"navigation",className:me("flex w-full justify-center box-border m-0",r),...o,children:n})});vD.displayName="Pagination";const wD=(0,d.forwardRef)((({className:e,...t},n)=>(0,u.jsx)("ul",{ref:n,className:me("m-0 p-0 w-full flex justify-center flex-row items-center gap-1","list-none",e),...t})));wD.displayName="Pagination.Content";const bD=(0,d.forwardRef)((({isActive:e=!1,className:t,children:n,...r},o)=>{const{disabled:i}=DD();return(0,u.jsx)("li",{ref:o,className:me("flex",i&&ND),children:(0,u.jsx)(jD,{isActive:e,disabled:i,className:t,...r,children:n})})}));bD.displayName="Pagination.Item";const jD=({isActive:e=!1,tag:t="a",children:n,className:r,...o})=>{const{size:i,disabled:s}=DD(),a=e=>e.preventDefault();return(0,u.jsx)(De,{tag:t,size:i,variant:"ghost",className:me("no-underline bg-transparent p-0 m-0 border-none","flex justify-center items-center rounded text-button-secondary","focus:outline focus:outline-1 focus:outline-border-subtle focus:bg-button-tertiary-hover",yD[i].general,!s&&e&&"text-button-primary active:text-button-primary bg-brand-background-50",s&&[ND,"group-disabled:text-field-color-disabled","focus:ring-transparent cursor-not-allowed"],r),disabled:s,...o,"aria-current":e?"page":void 0,onClick:e=>ge(o.onClick||(()=>{}),s?a:()=>{})(e),children:(0,u.jsx)("span",{className:"px-1 flex",children:n})})},TD=e=>{const{size:t,disabled:n}=DD();return(0,u.jsx)("li",{className:me("flex",n&&ND),"aria-label":"Go to previous page",children:(0,u.jsx)(jD,{className:me("[&>span]:flex [&>span]:items-center"),...e,children:(0,u.jsx)(mg,{className:me(yD[t].icon)})})})};TD.displayName="Pagination.Previous";const ED=e=>{const{size:t,disabled:n}=DD();return(0,u.jsx)("li",{className:me("flex",n&&ND),"aria-label":"Go to next page",children:(0,u.jsx)(jD,{className:me("[&>span]:flex [&>span]:items-center"),...e,children:(0,u.jsx)(gg,{className:me(yD[t].icon)})})})};ED.displayName="Pagination.Next";const ID=e=>{const{size:t,disabled:n}=DD();return(0,u.jsx)("li",{className:me("flex",n&&ND),children:(0,u.jsx)("span",{className:me("flex justify-center",yD[t].ellipse,n&&ND),"aria-hidden":"true",...e,children:"•••"})})};ID.displayName="Pagination.Ellipsis",vD.Content=wD,vD.Item=bD,vD.Previous=TD,vD.Next=ED,vD.Ellipsis=ID;var AD=[10,20,50,100];const OD=function(e){var t=e.currentPage,n=e.totalPages,r=e.perPage,o=e.onPageChange,i=e.onPerPageChange,s=e.onNextPage,a=e.onPreviousPage,l=e.perPageOptions,c=void 0===l?AD:l,u=e.className,d=void 0===u?"":u,f=e.responsive,h=void 0===f||f,m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=2*n;if(r+5>=t)return Array.from({length:t},(function(e,t){return t+1}));var o=Math.max(e-n,1)>2,i=Math.min(e+n,t)<t-1,s=1,a=t,l=[];if(!o&&i){var c=3+r,u=Array.from({length:c},(function(e,t){return t+1}));l.push.apply(l,u.concat(["ellipsis",a]))}else if(o&&!i){var d=3+r,f=Array.from({length:d},(function(e,n){return t-d+n+1}));l.push.apply(l,[s,"ellipsis"].concat(f))}else if(o&&i){var h=Array.from({length:r+1},(function(t,r){return e-n+r}));l.push.apply(l,[s,"ellipsis"].concat(h,["ellipsis",a]))}return l}(t,n),g=function(){return React.createElement("div",{className:cx("flex items-center gap-3",h&&"w-full justify-center md:justify-start md:w-auto")},React.createElement(MD,{size:14,color:"secondary"},(0,Su.__)("Page","sureforms")," ",t," ",(0,Su.__)("out of","sureforms")," ",n),React.createElement("div",{className:"w-20"},React.createElement(qm,{value:r,onChange:i,size:"sm"},React.createElement(qm.Button,{render:function(e){return e}}),React.createElement(qm.Options,{className:"z-999999"},c.map((function(e){return React.createElement(qm.Option,{key:e,value:e},e)}))))))},p=function(){return React.createElement(vD,{className:"w-full md:!w-fit"},React.createElement(vD.Content,null,React.createElement(vD.Previous,{onClick:a,disabled:1===t,className:cx(1===t&&"opacity-50 text-text-tertiary cursor-not-allowed")}),m.map((function(e,n){return"ellipsis"===e?React.createElement(vD.Ellipsis,{key:"ellipsis-".concat(n)}):React.createElement(vD.Item,{key:e,isActive:t===e,onClick:function(){return o(e)}},e)})),React.createElement(vD.Next,{onClick:s,disabled:t===n,className:cx(t===n&&"opacity-50 text-text-tertiary cursor-not-allowed")})))};return React.createElement("div",{className:cx("flex items-center justify-between flex-wrap gap-4 w-full",d)},React.createElement(g,null),React.createElement(p,null))},kD=function(e){var t=e.data,n=void 0===t?[]:t,r=e.columns,o=void 0===r?[]:r,i=e.selectedItems,s=void 0===i?[]:i,a=e.onToggleAll,l=e.onChangeRowSelection,c=e.indeterminate,u=void 0!==c&&c,d=e.isLoading,f=void 0!==d&&d,h=e.onSort,m=e.getSortDirection,g=e.emptyMessage,p=void 0===g?(0,Su.__)("No entries found","sureforms"):g,M=e.children,y=void 0===M?null:M,N=e.paginationProps,x=void 0===N?null:N;return React.createElement(iD,{className:"rounded-md",checkboxSelection:!0},React.createElement(iD.Head,{selected:!!s.length,onChangeSelection:a,indeterminate:u},o.map((function(e,t){var n,r=e.sortable?null==m?void 0:m(null!==(n=null==e?void 0:e.sortBy)&&void 0!==n?n:e.key):null,o="asc"===r?Xx:"desc"===r?Jx:eD,i=React.createElement(Fx,{align:"center",className:"gap-2",justify:"right"===e.align&&"end"},e.label,e.sortable&&React.createElement(o,{className:cx("w-4 h-4",r?"text-text-primary":"text-text-tertiary")}));return React.createElement(iD.HeadCell,{key:t,className:cx("whitespace-nowrap",null==e?void 0:e.headerClassName)},e.sortable?React.createElement("div",{role:"button",tabIndex:0,className:"cursor-pointer select-none",onClick:function(){var t;return null==h?void 0:h(null!==(t=null==e?void 0:e.sortBy)&&void 0!==t?t:e.key)},onKeyDown:function(t){var n;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==h||h(null!==(n=null==e?void 0:e.sortBy)&&void 0!==n?n:e.key))}},i):i)}))),React.createElement(iD.Body,null,f?Array.from({length:10},(function(e,t){return React.createElement(iD.Row,{key:t,className:"[&_div:has(label)]:invisible relative"},o.map((function(e,t){return React.createElement(iD.Cell,{key:t},React.createElement(Gm,{className:"absolute left-3.5 size-4 rounded-md"}),React.createElement(Gm,{variant:"rectangular",className:cx("h-4 rounded-md w-28","right"===e.align&&"ml-auto")}))})))})):0===n.length?React.createElement(iD.Row,{className:"[&_div:has(label)]:invisible"},React.createElement(iD.Cell,{colSpan:o.length},React.createElement("div",{className:"text-center py-8 text-text-secondary"},p))):n.map((function(e){return React.createElement(iD.Row,{key:e.id,selected:s.includes(e.id),onChangeSelection:l,className:"hover:bg-background-primary",value:e},o.map((function(t,n){return React.createElement(iD.Cell,{key:n,className:cx(null==t?void 0:t.columnsClassName)},t.render?t.render(e):e[t.key])})))}))),(f||x||y)&&React.createElement(iD.Footer,{className:"flex flex-col md:flex-row md:justify-between"},f?React.createElement("div",{className:"w-full flex items-center justify-between"},React.createElement(Gm,{className:"h-8 w-24 rounded-md"}),React.createElement(Gm,{className:"h-8 w-32 rounded-md"})):x?React.createElement(OD,x):y))};function zD(){return zD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zD.apply(null,arguments)}const SD=function(e){var t=e.data,n=void 0===t?[]:t,r=e.columns,o=e.selectedItems,i=void 0===o?[]:o,s=e.onToggleAll,a=e.onChangeRowSelection,l=e.indeterminate,c=void 0!==l&&l,u=e.isLoading,d=void 0!==u&&u,f=e.onSort,h=e.getSortDirection,m=e.emptyMessage,g=void 0===m?(0,Su.__)("No entries found","sureforms"):m,p=e.onEdit,M=e.onDelete,y=e.onRestore,N=e.paginationProps,x=[{label:(0,Su.__)("Entry ID","sureforms"),key:"entryId",sortable:!0,sortBy:"id",headerClassName:"w-[13%]",render:function(e){return React.createElement(De,{tag:"a",variant:"link",size:"md",className:"[&>span]:p-0 text-text-secondary font-normal hover:underline no-underline",href:"#/entry/".concat(e.id).concat("unread"===e.status?"?read=true":""),onClick:function(t){t.ctrlKey||t.metaKey||2===t.which||(t.preventDefault(),null==p||p(e))}},e.entryId)}},{label:(0,Su.__)("Form Name","sureforms"),key:"formName",headerClassName:"w-[25%]",render:function(e){return e.formPermalink?React.createElement(De,{className:"line-clamp-1 text-text-secondary font-normal no-underline hover:underline",tag:"a",variant:"link",size:"md",href:e.formPermalink,target:"_blank"},e.formName):React.createElement("span",{className:"line-clamp-1"},e.formName)}},{label:(0,Su.__)("Status","sureforms"),key:"status",sortable:!0,headerClassName:"w-[10%]",render:function(e){return React.createElement(Um,{className:"w-fit",variant:Gx(e.status),size:"xs",label:e.statusLabel})}},{label:(0,Su.__)("First Field","sureforms"),key:"firstField",headerClassName:"w-[21%]",render:function(e){return"string"==typeof(null==e?void 0:e.firstField)?React.createElement("span",{className:"line-clamp-1 break-all overflow-hidden"},e.firstField):Array.isArray(null==e?void 0:e.firstField)&&"string"==typeof(null==e?void 0:e.firstField[0])?React.createElement("span",{className:"line-clamp-1 break-all overflow-hidden"},(0,Su.__)("Upload","sureforms")):React.createElement("span",{className:"line-clamp-1 break-all overflow-hidden"}," ",(0,Su.__)("Repeater","sureforms")," ")}},{label:(0,Su.__)("Date & Time","sureforms"),key:"dateTime",sortable:!0,headerClassName:"w-[13%]",render:function(e){var t=dx(e.dateTime),n=t.shortFormat,r=t.fullFormat;return React.createElement(Dx,{content:React.createElement("span",null,r),placement:"top",variant:"dark",arrow:!0,interactive:!0,tooltipPortalId:"srfm-settings-container",className:"z-999999"},React.createElement("span",{className:"text-sm font-normal text-text-secondary"},n))}},{label:(0,Su.__)("Actions","sureforms"),key:"actions",align:"right",headerClassName:"w-[10%]",render:function(e){var t=[];return"trash"!==e.status&&t.push({content:(0,Su.__)("Preview","sureforms"),ariaLabel:(0,Su.__)("Preview","sureforms"),icon:React.createElement(_u,null),onClick:function(){return null==p?void 0:p(e)},isPreview:!0}),"trash"===e.status?(t.push({content:(0,Su.__)("Restore","sureforms"),ariaLabel:(0,Su.__)("Restore","sureforms"),icon:React.createElement(Hu,null),onClick:function(){return null==y?void 0:y(e)}}),t.push({content:(0,Su.__)("Delete Permanently","sureforms"),ariaLabel:(0,Su.__)("Delete Permanently","sureforms"),icon:React.createElement(qu,null),onClick:function(){return null==M?void 0:M(e)}})):t.push({content:(0,Su.__)("Move to Trash","sureforms"),ariaLabel:(0,Su.__)("Move to Trash","sureforms"),icon:React.createElement(qu,null),onClick:function(){return null==M?void 0:M(e)}}),React.createElement(Fx,{align:"center",className:"gap-2",justify:"end"},t.map((function(t,n){return React.createElement(Hx,{key:n,placement:"top",content:t.content},React.createElement(De,zD({variant:"ghost","aria-label":t.ariaLabel,size:"xs",icon:t.icon},t.isPreview?{tag:"a",href:"#/entry/".concat(e.id).concat("unread"===e.status?"?read=true":"")}:{},{onClick:function(e){var n;t.isPreview&&(e.ctrlKey||e.metaKey||2===e.which)||null===(n=t.onClick)||void 0===n||n.call(t,e)}})))})))}}],D=r||x;return React.createElement(kD,{data:n,columns:D,selectedItems:i,onToggleAll:s,onChangeRowSelection:a,indeterminate:c,isLoading:d,onSort:f,getSortDirection:h,emptyMessage:g,paginationProps:N})};var LD=[(0,Su.__)("Track submission for all your forms","sureforms"),(0,Su.__)("View, filter, and analyze submissions in real time","sureforms"),(0,Su.__)("Export data for further processing","sureforms"),(0,Su.__)("Edit and manage your entries with ease","sureforms")],CD=function(){window.open(srfm_admin.site_url+"/wp-admin/edit.php?post_type=sureforms_form","_self")};const UD=function(){return React.createElement("div",{className:"flex items-center justify-center p-2 bg-background-secondary rounded-lg"},React.createElement("div",{className:"flex flex-col md:flex-row items-center gap-6 bg-background-primary rounded-md shadow-sm-blur-1 p-6 w-full border-0.5 border-solid border-border-subtle"},React.createElement("div",{className:"flex gap-4"},React.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDI0MCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIiByeD0iMTIiIGZpbGw9IiNGQ0YwRTEiLz4KPHBhdGggZD0iTTE0Mi42NjEgNjEuNTAwOUgxMjIuNDUxQzEyMS4wNjggNjEuNTAwOSAxMTkuOTUzIDYwLjM4NTYgMTE5Ljk1MyA1OS4wMDI1VjQ0LjA1N0MxMTkuOTUzIDQyLjY3MzkgMTIxLjA2OCA0MS41NTg2IDEyMi40NTEgNDEuNTU4NkMxMjIuNDUxIDQxLjU1ODYgMTIyLjQ1MSA0MS41NTg2IDEyMi40OTYgNDEuNTU4NkwxNDUuNjk1IDQxLjg3MDlDMTQ3LjAzNCA0MS45MTU1IDE0OC4xNDkgNDMuMDMwOCAxNDguMTA0IDQ0LjM2OTNMMTQ3Ljc5MiA2NC43NTc3QzE0Ny43OTIgNjUuMzgyMyAxNDcuMjU3IDY1LjkxNzcgMTQ2LjYzMiA2NS45MTc3QzE0Ni4yNzUgNjUuOTE3NyAxNDUuOTE4I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NjYxIDYyLjAxMzYgMTc1LjYwMSA2MS44OTI1IDE3NS41MzggNjEuNDc0MiIgc3Ryb2tlPSIjRDU0NDA3IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTkwLjE0NyA2NC4xMzU0QzE5MC4xMjMgNjQuMTU5NCAxOTAuMTExIDY0LjMwMTUgMTkwLjE1MyA2NC41NDYxQzE5MC4xNzMgNjQuNjY2NiAxOTAuMjc5IDY0Ljc1NjkgMTkwLjQ0MSA2NC43NTVDMTkwLjg1NCA2NC43NDk5IDE5MS4yNDEgNjQuMzU4OCAxOTEuNDkxIDY0LjAwOUMxOTEuNjAxIDYzLjg1NDYgMTkxLjYxNSA2My43MDY4IDE5MS40ODQgNjMuNjI5OEMxOTEuMTA5IDYzLjQxMDMgMTkwLjYxOCA2My41OTM3IDE5MC4zNzkgNjMuNzQwOUMxOTAuMjY4IDYzLjgwOTIgMTkwLjIxNyA2My45MTg3IDE5MC4xODYgNjQuMDMwNkMxOTAuMTU0IDY0LjE0MjQgMTkwLjE1NCA2NC4yNjczIDE5MC4yMDIgNjQuMzY3NkMxOTAuMjUgNjQuNDY3OSAxOTAuMzQ2IDY0LjUzOTkgMTkwLjY2NCA2NC43NTk1IiBzdHJva2U9IiNENTQ0MDciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=",alt:(0,Su.__)("No entries yet","sureforms"),className:"w-[320px] h-[320px]"})),React.createElement("div",{className:"flex flex-col gap-2 max-w-[884px]"},React.createElement(MD,{size:20,lineHeight:30,weight:600,letterSpacing:-.5,color:"primary"},(0,Su.__)("No entries? No worries! This page will be flooded soon!","sureforms")),React.createElement("div",{className:"flex flex-col"},React.createElement(MD,{size:16,lineHeight:24,weight:400,color:"secondary"},(0,Su.__)("Once you publish and share your form, this space will turn into a powerful insights hub where you can:","sureforms")),React.createElement("ul",{className:"flex flex-col list-disc list-inside leading-7 ml-2.5 mt-2 mb-0 mr-0"},LD.map((function(e,t){return React.createElement("li",{key:t,className:"m-0"},React.createElement(MD,{className:"inline-block",size:16,lineHeight:28,weight:400,color:"secondary"},e))})))),React.createElement(De,{className:"w-fit mt-2",variant:"primary",size:"md",onClick:CD},(0,Su.__)("Go to Forms","sureforms")))))},QD=(0,d.createContext)({}),RD=()=>(0,d.useContext)(QD),YD={open:{opacity:1},exit:{opacity:0}},PD={duration:.2},_D=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:i=!1,exitOnEsc:s=!0,design:a="simple",scrollLock:l=!0})=>{const c=void 0!==e&&void 0!==t,[f,h]=(0,d.useState)(!1),m=(0,d.useRef)(null),g=(0,d.useRef)(null),p=(0,d.useMemo)((()=>c?e:f),[e,f]),M=(0,d.useMemo)((()=>c?t:h),[h,t]),{refs:y,context:N}=fm({open:p,onOpenChange:M}),x=am(N),D=dm(N,{enabled:i||s,escapeKey:s,outsidePress:e=>!!i&&!e?.target?.closest("ul.fui-toast-container")}),v=bm(N,{role:"dialog"}),{getFloatingProps:w}=pm([x,D,v]),b=()=>{p||M(!0)},j=(0,d.useCallback)((()=>(0,d.isValidElement)(r)?(0,d.cloneElement)(r,{onClick:ge(b,r?.props?.onClick),ref:y.setReference,"aria-haspopup":"dialog","aria-expanded":p}):"function"==typeof r?r({onClick:b}):null),[r,b,y.setReference,p]);return(0,u.jsxs)(u.Fragment,{children:[j(),(0,u.jsx)(QD.Provider,{value:{open:p,setOpen:M,handleClose:()=>{p&&M(!1)},design:a,context:N,getFloatingProps:w,refs:y,dialogContainerRef:g,dialogRef:m,scrollLock:l,className:o},children:n})]})};_D.displayName="Dialog";const FD=({children:e,className:t})=>{const{open:n,handleClose:r,context:o,getFloatingProps:i,dialogRef:s,scrollLock:a,dialogContainerRef:l,className:c,refs:d}=RD();return(0,u.jsx)(qe,{children:n&&(0,u.jsx)(om,{ref:l,lockScroll:a,className:me("z-999999",c),"aria-modal":"true",children:(0,u.jsx)(tm,{context:o,...d?.reference&&{returnFocus:d.reference},children:(0,u.jsx)(fl.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:YD,role:"dialog","aria-modal":"true",transition:PD,children:(0,u.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,u.jsx)("div",{ref:e=>{e&&(s.current=e,o&&o.refs.setFloating(e))},...i?.(),className:me("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})})})};FD.displayName="Dialog.Panel";const BD=({children:e,...t})=>(0,u.jsx)(qh,{...t,children:e});BD.displayName="Dialog.Portal";const VD=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=RD();return r?.current?(0,u.jsx)(u.Fragment,{children:(0,Se.createPortal)((0,u.jsx)(qe,{children:n&&(0,u.jsx)(fl.div,{className:me("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:YD,transition:PD})}),r.current)}):null};VD.displayName="Dialog.Backdrop";const WD=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:me("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});WD.displayName="Dialog.Header";const HD=({children:e,as:t="h3",className:n,...r})=>(0,u.jsx)(t,{className:me("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});HD.displayName="Dialog.Title";const qD=({children:e,as:t="p",className:n,...r})=>(0,u.jsx)(t,{className:me("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});qD.displayName="Dialog.Description";const GD=({className:e,...t})=>(0,u.jsx)("button",{className:me("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,u.jsx)(M,{className:"size-4 text-text-primary shrink-0"})}),$D=({children:e,as:t=d.Fragment,...n})=>{const{handleClose:r}=RD();return e?t===d.Fragment?"function"==typeof e?e({close:r}):(0,d.cloneElement)(e,{onClick:r}):(0,u.jsx)(t,{...n,onClick:r,"aria-label":"Close dialog",children:e}):(0,u.jsx)(GD,{onClick:r,...n})};$D.displayName="Dialog.CloseButton";const ZD=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:me("px-5",t),...n,children:e});ZD.displayName="Dialog.Body";const KD=({children:e,className:t})=>{const{design:n,handleClose:r}=RD();return(0,u.jsx)("div",{className:me("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};KD.displayName="Dialog.Footer",_D.Panel=FD,_D.Portal=BD,_D.Title=HD,_D.Description=qD,_D.CloseButton=$D,_D.Header=WD,_D.Body=ZD,_D.Footer=KD,_D.Backdrop=VD;var XD=o(5556),JD=o.n(XD);function ev(e){return ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ev(e)}function tv(){tv=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=D(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new b(o||[])),!0),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(j([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,s,a){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==ev(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function b(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function j(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(ev(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},N(y),l(y,a,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=j,b.prototype={constructor:b,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:j(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function nv(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function rv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ov(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ov(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var iv=function(e){var t=e.isOpen,n=e.title,r=e.description,o=e.onConfirm,i=void 0===o?function(){}:o,a=e.onCancel,l=void 0===a?function(){}:a,c=e.confirmButtonText,u=void 0===c?(0,Su.__)("Confirm","sureforms"):c,d=e.cancelButtonText,f=void 0===d?(0,Su.__)("Cancel","sureforms"):d,h=e.destructiveConfirmButton,m=void 0===h||h,g=e.requireConfirmation,p=void 0!==g&&g,M=e.verificationText,y=void 0===M?(0,Su.__)("delete","sureforms"):M,N=e.afterOpenBody,x=void 0===N?null:N,D=e.beforeClosingBody,v=void 0===D?null:D,w=y||(0,Su.__)("delete","sureforms"),b=rv((0,s.useState)(""),2),j=b[0],T=b[1],E=rv((0,s.useState)(""),2),I=E[0],A=E[1],O=rv((0,s.useState)(!1),2),k=O[0],z=O[1],S=(0,s.useRef)(!0);(0,s.useEffect)((function(){return S.current=!0,function(){S.current=!1}}),[]);var L=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){nv(i,r,o,s,a,"next",e)}function a(e){nv(i,r,o,s,a,"throw",e)}s(void 0)}))}}(tv().mark((function e(){return tv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof i){e.next=2;break}return e.abrupt("return");case 2:if(!p||C(!0)){e.next=4;break}return e.abrupt("return");case 4:return z(!0),e.prev=5,e.next=8,i();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("Confirmation dialog error:",e.t0);case 13:return e.prev=13,S.current&&z(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[5,10,13,16]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return j.toLowerCase()!==w.toLowerCase()?(t&&(null===(e=document.querySelector('input[name="delete-confirmation-text"]'))||void 0===e||e.focus()),A((0,Su.sprintf)((0,Su.__)('Please type "%s" in the input box',"sureforms"),w)),!1):(A(""),!0)};return(0,s.useLayoutEffect)((function(){!t&&p&&(T(""),A(""))}),[t]),React.createElement(_D,{design:"simple",exitOnEsc:!0,scrollLock:!0,setOpen:l,open:t},React.createElement(_D.Backdrop,null),React.createElement(_D.Panel,{className:"gap-0"},React.createElement(_D.Header,null,React.createElement("div",{className:"flex items-center justify-between"},React.createElement(_D.Title,null,n),React.createElement(_D.CloseButton,{onClick:l})),React.createElement(_D.Description,null,r)),p?React.createElement(_D.Body,{className:"mt-3 space-y-3"},x,React.createElement(Zm,{className:"text-text-secondary font-normal",tag:"p",variant:"neutral",size:"sm"},(0,Su.sprintf)((0,Su.__)('To confirm, type "%s" in the box below:',"sureforms"),w)),React.createElement("div",null,React.createElement(Km,{ref:function(e){e&&e.focus()},name:"delete-confirmation-text",size:"md",type:"text",placeholder:(0,Su.sprintf)((0,Su.__)('Type "%s"',"sureforms"),w),className:"w-full",value:j,onChange:function(e){T(e),p&&I&&A("")},error:I,autoComplete:"off"})),v):null,React.createElement(_D.Footer,null,React.createElement(De,{variant:"outline",onClick:function(){"function"==typeof l&&l()}},f),React.createElement(De,{variant:"primary",onClick:L,icon:k?React.createElement(Rm,{className:"text-background-primary"}):null,iconPosition:"left",loading:k,destructive:m},u))))};iv.propTypes={isOpen:JD().bool.isRequired,title:JD().string.isRequired,description:JD().oneOfType([JD().string,JD().element]).isRequired,onConfirm:JD().func,onCancel:JD().func,confirmButtonText:JD().string,cancelButtonText:JD().string,destructiveConfirmButton:JD().bool,requireConfirmation:JD().bool,verificationText:JD().string};const sv=iv;function av(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cv(e,t){if(e){if("string"==typeof e)return uv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uv(e,t):void 0}}function uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gv={id:"id",status:"status",dateTime:"created_at"},pv=Object.values(gv),Mv=class extends Bl{constructor(e,t){super(),this.options=t,this.#f=e,this.#w=null,this.#b=Hl(),this.bindMethods(),this.setOptions(t)}#f;#j=void 0;#T=void 0;#E=void 0;#I;#A;#b;#w;#O;#k;#z;#S;#L;#C;#U=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#j.addObserver(this),yv(this.#j,this.options)?this.#Q():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nv(this.#j,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nv(this.#j,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#Y(),this.#P(),this.#j.removeObserver(this)}setOptions(e){const t=this.options,n=this.#j;if(this.options=this.#f.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof wl(this.options.enabled,this.#j))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#j.setOptions(this.options),t._defaulted&&!kl(this.options,t)&&this.#f.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#j,observer:this});const r=this.hasListeners();r&&xv(this.#j,n,this.options,t)&&this.#Q(),this.updateResult(),!r||this.#j===n&&wl(this.options.enabled,this.#j)===wl(t.enabled,this.#j)&&vl(this.options.staleTime,this.#j)===vl(t.staleTime,this.#j)||this.#F();const o=this.#B();!r||this.#j===n&&wl(this.options.enabled,this.#j)===wl(t.enabled,this.#j)&&o===this.#C||this.#V(o)}getOptimisticResult(e){const t=this.#f.getQueryCache().build(this.#f,e),n=this.createResult(t,e);return r=n,!kl(this.getCurrentResult(),r)&&(this.#E=n,this.#A=this.options,this.#I=this.#j.state),n;var r}getCurrentResult(){return this.#E}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#b.status||this.#b.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#U.add(e)}getCurrentQuery(){return this.#j}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#f.defaultQueryOptions(e),n=this.#f.getQueryCache().build(this.#f,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#Q({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#E)))}#Q(e){this.#_();let t=this.#j.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Nl)),t}#F(){this.#Y();const e=vl(this.options.staleTime,this.#j);if(yl||this.#E.isStale||!xl(e))return;const t=Dl(this.#E.dataUpdatedAt,e)+1;this.#S=Ml.setTimeout((()=>{this.#E.isStale||this.updateResult()}),t)}#B(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#j):this.options.refetchInterval)??!1}#V(e){this.#P(),this.#C=e,!yl&&!1!==wl(this.options.enabled,this.#j)&&xl(this.#C)&&0!==this.#C&&(this.#L=Ml.setInterval((()=>{(this.options.refetchIntervalInBackground||Vl.isFocused())&&this.#Q()}),this.#C))}#R(){this.#F(),this.#V(this.#B())}#Y(){this.#S&&(Ml.clearTimeout(this.#S),this.#S=void 0)}#P(){this.#L&&(Ml.clearInterval(this.#L),this.#L=void 0)}createResult(e,t){const n=this.#j,r=this.options,o=this.#E,i=this.#I,s=this.#A,a=e!==n?e.state:this.#T,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&yv(e,t),s=o&&xv(e,n,t,r);(i||s)&&(u={...u,...Jl(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:m}=u;c=u.data;let g=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===m){let e;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#z?.state.data,this.#z):t.placeholderData,void 0!==e&&(m="success",c=Cl(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!g)if(o&&c===i?.data&&t.select===this.#O)c=this.#k;else try{this.#O=t.select,c=t.select(c),c=Cl(o?.data,c,t),this.#k=c,this.#w=null}catch(e){this.#w=e}this.#w&&(f=this.#w,c=this.#k,h=Date.now(),m="error");const p="fetching"===u.fetchStatus,M="pending"===m,y="error"===m,N=M&&p,x=void 0!==c,D={status:m,fetchStatus:u.fetchStatus,isPending:M,isSuccess:"success"===m,isError:y,isInitialLoading:N,isLoading:N,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>a.dataUpdateCount||u.errorUpdateCount>a.errorUpdateCount,isFetching:p,isRefetching:p&&!M,isLoadingError:y&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&x,isStale:Dv(e,t),refetch:this.refetch,promise:this.#b,isEnabled:!1!==wl(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===D.status?e.reject(D.error):void 0!==D.data&&e.resolve(D.data)},r=()=>{const e=this.#b=D.promise=Hl();t(e)},o=this.#b;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==D.status&&D.data===o.value||r();break;case"rejected":"error"===D.status&&D.error===o.reason||r()}}return D}updateResult(){const e=this.#E,t=this.createResult(this.#j,this.options);this.#I=this.#j.state,this.#A=this.options,void 0!==this.#I.data&&(this.#z=this.#j),kl(t,e)||(this.#E=t,this.#W({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#U.size)return!0;const r=new Set(n??this.#U);return this.options.throwOnError&&r.add("error"),Object.keys(this.#E).some((t=>{const n=t;return this.#E[n]!==e[n]&&r.has(n)}))})()}))}#_(){const e=this.#f.getQueryCache().build(this.#f,this.options);if(e===this.#j)return;const t=this.#j;this.#j=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#W(e){Fl.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#E)})),this.#f.getQueryCache().notify({query:this.#j,type:"observerResultsUpdated"})}))}};function yv(e,t){return function(e,t){return!1!==wl(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Nv(e,t,t.refetchOnMount)}function Nv(e,t,n){if(!1!==wl(t.enabled,e)&&"static"!==vl(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Dv(e,t)}return!1}function xv(e,t,n,r){return(e!==t||!1===wl(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Dv(e,n)}function Dv(e,t){return!1!==wl(t.enabled,e)&&e.isStaleByTime(vl(t.staleTime,e))}var vv=d.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),wv=d.createContext(!1),bv=(wv.Provider,(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()})));function jv(e,t){return function(e,t,n){const r=d.useContext(wv),o=d.useContext(vv),i=dc(n),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>n(r(...e)):n(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(s,o),(e=>{d.useEffect((()=>{e.clearReset()}),[e])})(o);const a=!i.getQueryCache().get(s.queryHash),[l]=d.useState((()=>new t(i,s))),c=l.getOptimisticResult(s),u=!r&&!1!==e.subscribed;if(d.useSyncExternalStore(d.useCallback((e=>{const t=u?l.subscribe(Fl.batchCalls(e)):Nl;return l.updateResult(),t}),[l,u]),(()=>l.getCurrentResult()),(()=>l.getCurrentResult())),d.useEffect((()=>{l.setOptions(s)}),[s,l]),((e,t)=>e?.suspense&&t.isPending)(s,c))throw bv(s,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||Pl(n,[e.error,r])))({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!yl&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,r)){const e=a?bv(s,l,o):i.getQueryCache().get(s.queryHash)?.promise;e?.catch(Nl).finally((()=>{l.updateResult()}))}return s.notifyOnChangeProps?c:l.trackResult(c)}(e,Mv,t)}var Tv=class extends Bl{#f;#E=void 0;#H;#q;constructor(e,t){super(),this.#f=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#f.defaultMutationOptions(e),kl(this.options,t)||this.#f.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#H,observer:this}),t?.mutationKey&&this.options.mutationKey&&El(t.mutationKey)!==El(this.options.mutationKey)?this.reset():"pending"===this.#H?.state.status&&this.#H.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#H?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#W(e)}getCurrentResult(){return this.#E}reset(){this.#H?.removeObserver(this),this.#H=void 0,this.#G(),this.#W()}mutate(e,t){return this.#q=t,this.#H?.removeObserver(this),this.#H=this.#f.getMutationCache().build(this.#f,this.options),this.#H.addObserver(this),this.#H.execute(e)}#G(){const e=this.#H?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#E={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#W(e){Fl.batch((()=>{if(this.#q&&this.hasListeners()){const t=this.#E.variables,n=this.#E.context,r={client:this.#f,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#q.onSuccess?.(e.data,t,n,r),this.#q.onSettled?.(e.data,null,t,n,r)):"error"===e?.type&&(this.#q.onError?.(e.error,t,n,r),this.#q.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach((e=>{e(this.#E)}))}))}};function Ev(e,t){const n=dc(t),[r]=d.useState((()=>new Tv(n,e)));d.useEffect((()=>{r.setOptions(e)}),[r,e]);const o=d.useSyncExternalStore(d.useCallback((e=>r.subscribe(Fl.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),i=d.useCallback(((e,t)=>{r.mutate(e,t).catch(Nl)}),[r]);if(o.error&&Pl(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}var Iv=function(){var e;return(null===(e=srfm_admin)||void 0===e?void 0:e.global_settings_nonce)||""},Av=function(){return my()({path:"/sureforms/v1/form-data",method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()}})},Ov=function(e){var t=e.entry_ids,n=e.action;return my()({path:"/sureforms/v1/entries/read-status",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()},data:{entry_ids:t,action:n}})},kv=function(e){var t=e.entry_ids,n=e.action;return my()({path:"/sureforms/v1/entries/trash",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()},data:{entry_ids:t,action:n}})},zv=function(e){var t=e.entry_ids;return my()({path:"/sureforms/v1/entries/delete",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()},data:{entry_ids:t}})},Sv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return my()({path:"/sureforms/v1/entries/export",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()},data:{entry_ids:e.entry_ids||[],form_id:e.form_id||0,status:e.status||"all",search:e.search||"",date_from:e.date_from||"",date_to:e.date_to||""}})};function Lv(e){return Lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lv(e)}function Cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uv(e,t,n){return(t=function(e){var t=function(e){if("object"!=Lv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qv(e){return function(e){if(Array.isArray(e))return Rv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Rv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rv(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Yv={all:["entries"],lists:function(){return[].concat(Qv(Yv.all),["list"])},list:function(e){return[].concat(Qv(Yv.lists()),[e])},details:function(){return[].concat(Qv(Yv.all),["detail"])},detail:function(e){return[].concat(Qv(Yv.details()),[+e])}},Pv={all:["forms"],list:function(){return[].concat(Qv(Pv.all),["list"])}},_v={all:["entry-logs"],lists:function(){return[].concat(Qv(_v.all),["list"])},list:function(e,t){return[].concat(Qv(_v.lists()),[+e,t])}},Fv=function(){var e=dc();return Ev({mutationFn:Ov,onSuccess:function(t,n){var r,o;if(e.invalidateQueries({queryKey:Yv.lists()}),(null==n||null===(r=n.entry_ids)||void 0===r?void 0:r.length)>0&&n.entry_ids.forEach((function(t){e.invalidateQueries({queryKey:Yv.detail(t)})})),null==n||!n.skipToast){var i=(null==n?void 0:n.action)||"",s=(null==n||null===(o=n.entry_ids)||void 0===o?void 0:o.length)||1,a="";if(1===s){var l=n.entry_ids[0];a=(0,Su.sprintf)((0,Su.__)("Entry #%1$s marked as %2$s.","sureforms"),l,i)}else a=(0,Su.sprintf)((0,Su._n)("%1$s entry marked as %2$s.","%1$s entries marked as %2$s.",s,"sureforms"),s,i);c.success(a),"function"==typeof(null==n?void 0:n.onSuccess)&&n.onSuccess()}},onError:function(e){var t=(null==e?void 0:e.message)||(0,Su.__)("An error occurred while updating read status. Please try again.","sureforms");c.error(t)}})};const Bv=function(e){var t=e.handleClearFilters;return React.createElement("div",{className:"p-6"},React.createElement(Fx,{className:"flex items-center justify-center p-8 bg-background-primary rounded-lg"},React.createElement("div",{className:"text-center max-w-md"},React.createElement(MD,{size:18,lineHeight:28,weight:600,color:"primary",className:"mb-2"},(0,Su.__)("No results found","sureforms")),React.createElement(MD,{size:16,lineHeight:24,weight:400,color:"secondary",className:"mb-4"},(0,Su.__)("We couldn't find any records matching your filters. Try adjusting the filters or resetting them to see all results.","sureforms")),React.createElement(De,{variant:"outline",size:"sm",onClick:t},(0,Su.__)("Clear Filter","sureforms")))))};function Vv(e){return Vv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vv(e)}function Wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wv(Object(n),!0).forEach((function(t){qv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qv(e,t,n){return(t=function(e){var t=function(e){if("object"!=Vv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Zv=function(){var e,t,n=ou(),r=jv({queryKey:Pv.list(),queryFn:Av,staleTime:6e5}),o=r.data,i=void 0===o?{}:o,a=r.isLoading,l=function(){var e=av(zu(),2),t=e[0],n=e[1],r=av((0,s.useState)(t.get("status")||""),2),o=r[0],i=r[1],a=av((0,s.useState)(t.get("form")||""),2),l=a[0],c=a[1],u=av((0,s.useState)(t.get("search")||""),2),d=u[0],f=u[1],h=av((0,s.useState)((function(){var e=t.get("date_from"),n=t.get("date_to");return e&&n?{from:new Date(e),to:new Date(n)}:{from:null,to:null}})),2),m=h[0],g=h[1];(0,s.useEffect)((function(){var e=new URLSearchParams(t);o&&"all"!==o?e.set("status",o):e.delete("status"),l&&"all"!==l?e.set("form",l):e.delete("form"),d?e.set("search",d):e.delete("search"),null!=m&&m.from?(e.set("date_from",m.from.toISOString().split("T")[0]),null!=m&&m.to?e.set("date_to",m.to.toISOString().split("T")[0]):e.set("date_to",m.from.toISOString().split("T")[0])):(e.delete("date_from"),e.delete("date_to")),n(e,{replace:!0})}),[o,l,d,m,t,n]);var p=(0,s.useCallback)((function(e){i(e)}),[]),M=(0,s.useCallback)((function(e){c(e)}),[]),y=(0,s.useCallback)((function(e){f(e)}),[]),N=(0,s.useCallback)((function(e){g(e)}),[]);return{statusFilter:o,setStatusFilter:p,formFilter:l,setFormFilter:M,searchQuery:d,setSearchQuery:y,dateRange:m,setDateRange:N,resetFilters:function(){i(""),c(""),f(""),g({from:null,to:null})}}}(),u=l.statusFilter,d=l.setStatusFilter,f=l.formFilter,h=l.setFormFilter,m=l.searchQuery,g=l.setSearchQuery,p=l.dateRange,M=l.setDateRange,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=dv(zu(),2),r=n[0],o=n[1],i=(0,s.useRef)(!1),a=dv((0,s.useState)((function(){var t=r.get("page");return t?parseInt(t,10):e})),2),l=a[0],c=a[1],u=dv((0,s.useState)(t),2),d=u[0],f=u[1];(0,s.useEffect)((function(){var e=localStorage.getItem("sureforms_entries_per_page");if(e){var t=parseInt(e,10);if(t>0&&t<=1e3)return void f(t)}var n=r.get("per_page");n&&f(parseInt(n,10))}),[r]),(0,s.useEffect)((function(){if(i.current)i.current=!1;else{var e=new URLSearchParams(r);l>1?e.set("page",l.toString()):e.delete("page"),d!==t?e.set("per_page",d.toString()):e.delete("per_page"),o(e,{replace:!0})}}),[l,d,t,r,o]);var h=(0,s.useCallback)((function(e){c(e)}),[]),m=(0,s.useCallback)((function(e){i.current=!0,c(e)}),[]),g=(0,s.useCallback)((function(e){c((function(t){return Math.min(e,t+1)}))}),[]),p=(0,s.useCallback)((function(){c((function(e){return Math.max(1,e-1)}))}),[]),M=(0,s.useCallback)((function(e){f(e),localStorage.setItem("sureforms_entries_per_page",e.toString()),c(1)}),[]);return{currentPage:l,entriesPerPage:d,goToPage:h,silentGoToPage:m,nextPage:g,previousPage:p,changeEntriesPerPage:M}}(1,10),N=y.currentPage,x=y.entriesPerPage,D=y.goToPage,v=y.silentGoToPage,w=y.nextPage,b=y.previousPage,j=y.changeEntriesPerPage,T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=hv(zu(),2),r=n[0],o=n[1],i=hv((0,s.useState)((function(){var t=r.get("sortBy")||e;return pv.includes(t)?t:e})),2),a=i[0],l=i[1],c=hv((0,s.useState)(r.get("order")||t),2),u=c[0],d=c[1];(0,s.useEffect)((function(){var e=new URLSearchParams(r);a?e.set("sortBy",a):e.delete("sortBy"),u?e.set("order",u):e.delete("order"),o(e,{replace:!0})}),[a,u,r,o]);var f=(0,s.useCallback)((function(e){var t=gv[e];t&&(a===t?d((function(e){return"DESC"===e?"ASC":"DESC"})):(l(t),d("DESC")))}),[a]),h=(0,s.useCallback)((function(e){return a===gv[e]?u.toLowerCase():null}),[a,u]);return{sortBy:a,order:u,handleSort:f,getSortDirection:h}}(),E=T.sortBy,I=T.order,A=T.handleSort,O=T.getSortDirection,k=(0,s.useMemo)((function(){if(!p||!p.from)return{date_from:"",date_to:""};var e=function(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)},t=new Date(p.from),n=p.to?new Date(p.to):t;return{date_from:"".concat(e(t)," 00:00:00"),date_to:"".concat(e(n)," 23:59:59")}}),[p]),z=(t={form_id:"all"===f?0:parseInt(f,10),status:u,search:m,date_from:k.date_from,date_to:k.date_to,orderby:E,order:I,per_page:x,page:N},jv({queryKey:Yv.list(t),queryFn:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={form_id:e.form_id||0,status:e.status||"all",search:e.search||"",date_from:e.date_from||"",date_to:e.date_to||"",orderby:e.orderby||"created_at",order:e.order||"DESC",per_page:e.per_page||20,page:e.page||1};return my()({path:(0,tN.addQueryArgs)("/sureforms/v1/entries/list",t),method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()}})}(t)},keepPreviousData:!0,staleTime:3e5})),S=z.data,L=z.isLoading,C=z.error,U=z.isError,Q=(null==S?void 0:S.entries)||[],R=(null==S?void 0:S.total_pages)||1,Y=(0,s.useMemo)((function(){return Q.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:parseInt(e.ID,10),entryId:"".concat((0,Su.__)("Entry","sureforms")," #").concat(e.ID),formId:parseInt(e.form_id,10),formPermalink:e.form_permalink,formName:t[e.form_id]||"".concat((0,Su.__)("Form","sureforms")," #").concat(e.form_id),status:e.status,statusLabel:$x(e.status),firstField:Zx(e.form_data),dateTime:Kx(e.created_at),rawData:e}}(e,i)}))}),[Q,i]);(0,s.useEffect)((function(){N<=1||Y.length>0||L||N>R&&0===(null==Y?void 0:Y.length)&&D(R)}),[Y,L]);var P=(0,s.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[{value:"",label:(0,Su.__)("All Forms","sureforms")}];return Object.entries(e).forEach((function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];t.push({value:r,label:o})})),t}(i)}),[i]),_=(0,s.useMemo)((function(){return""!==u&&"all"!==u||""!==f&&"all"!==f||""!==m.trim()||null!==(null==p?void 0:p.from)&&null!==(null==p?void 0:p.to)}),[u,f,m,p]),F=function(){var e=dc();return Ev({mutationFn:zv,onSuccess:function(t,n){var r;e.invalidateQueries({queryKey:Yv.lists()}),e.invalidateQueries({queryKey:Yv.details()});var o=(null==n||null===(r=n.entry_ids)||void 0===r?void 0:r.length)||1,i="";if(1===o){var s=n.entry_ids[0];i=(0,Su.sprintf)((0,Su.__)("Entry #%s deleted permanently.","sureforms"),s)}else i=(0,Su.sprintf)((0,Su._n)("%s entry deleted permanently.","%s entries deleted permanently.",o,"sureforms"),o);c.success(i)},onError:function(e){var t=(null==e?void 0:e.message)||(0,Su.__)("An error occurred. Please try again.","sureforms");c.error(t)}})}(),B=F.mutate,V=F.isPending,W=function(){var e=dc();return Ev({mutationFn:kv,onSuccess:function(t,n){var r;e.invalidateQueries({queryKey:Yv.lists()}),e.invalidateQueries({queryKey:Yv.details()});var o=(null==n?void 0:n.action)||"",i=(null==n||null===(r=n.entry_ids)||void 0===r?void 0:r.length)||1,s="";if(1===i){var a=n.entry_ids[0];s="trash"===o?(0,Su.sprintf)((0,Su.__)("Entry #%s moved to trash.","sureforms"),a):(0,Su.sprintf)((0,Su.__)("Entry #%s restored successfully.","sureforms"),a)}else s="trash"===o?(0,Su.sprintf)((0,Su._n)("%1$s entry moved to trash.","%1$s entries moved to trash.",i,"sureforms"),i):(0,Su.sprintf)((0,Su._n)("%1$s entry restored successfully.","%1$s entries restored successfully.",i,"sureforms"),i);c.success(s)},onError:function(e){var t=(null==e?void 0:e.message)||(0,Su.__)("An error occurred. Please try again.","sureforms");c.error(t)}})}(),H=W.mutate,q=Fv().mutate,G=Ev({mutationFn:Sv,onSuccess:function(e){e.success&&e.download_url&&(window.location.href=e.download_url)},onError:function(e){var t=(null==e?void 0:e.message)||(0,Su.__)("An error occurred during export. Please try again.","sureforms");c.error(t)}}),$=G.mutate,Z=Gv((0,s.useState)({open:!1,title:"",description:"",confirmLabel:"",onConfirm:null,isLoading:!1,destructive:!0}),2),K=Z[0],X=Z[1],J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||cv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.useState)([]),2),n=t[0],r=t[1],o=(0,s.useMemo)((function(){return n.length>0&&n.length<e.length}),[n,e.length]);return{selectedEntries:n,handleChangeRowCheckbox:function(e,t){r(e?function(e){return[].concat(function(e){return function(e){if(Array.isArray(e))return uv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[t.id])}:function(e){return e.filter((function(e){return e!==t.id}))})},handleToggleAll:function(t){r(t?e.map((function(e){return e.id})):[])},clearSelection:function(){r([])},indeterminate:o}}(Y),ee=J.selectedEntries,te=J.handleChangeRowCheckbox,ne=J.handleToggleAll,re=J.clearSelection,oe=J.indeterminate,ie=Gv((0,s.useState)((function(){return"learn"===new URLSearchParams(window.location.search).get("source")})),1)[0],se=Gv((0,s.useState)(!1),2),ae=se[0],le=se[1],ce=(0,s.useRef)(!1);(0,s.useEffect)((function(){if(ie&&!L&&!ce.current&&Y.length>0){ce.current=!0,le(!0);var e=setTimeout((function(){return le(!1)}),5e3);return function(){return clearTimeout(e)}}}),[ie,L,Y]),(0,s.useEffect)((function(){var e=document.getElementById("srfm-entries-learn-tip");if(e&&e.remove(),ae){var t=setInterval((function(){var e=Array.from(document.querySelectorAll("th")).find((function(e){return"Actions"===e.textContent.trim()}));if(e){clearInterval(t);var n=e.getBoundingClientRect(),r=document.createElement("div");r.id="srfm-entries-learn-tip",r.style.cssText="position:fixed;top:".concat(n.top+n.height/2,"px;left:").concat(n.left-10,"px;transform:translateY(-50%) translateX(-100%);z-index:2147483647;pointer-events:none;"),r.innerHTML='\n\t\t\t\t<div style="position:absolute;top:50%;right:-4px;transform:translateY(-50%) rotate(45deg);width:8px;height:8px;background:#1e1e1e;"></div>\n\t\t\t\t<div style="background:#1e1e1e;color:#fff;font-size:13px;padding:6px 12px;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.15);white-space:nowrap;">\n\t\t\t\t\tManage Your Entries From Here\n\t\t\t\t</div>\n\t\t\t',document.body.appendChild(r)}}),100);return function(){clearInterval(t);var e=document.getElementById("srfm-entries-learn-tip");e&&e.remove()}}}),[ae]);var ue=(0,s.useMemo)((function(){return null==ee?void 0:ee.some((function(e){var t=Y.find((function(t){return parseInt(t.id)===parseInt(e)}));return t&&"unread"===t.status}))}),[ee,Y]),de=(0,s.useMemo)((function(){return null==ee?void 0:ee.some((function(e){var t=Y.find((function(t){return parseInt(t.id)===parseInt(e)}));return t&&"read"===t.status}))}),[ee,Y]);(0,s.useEffect)((function(){U&&c.error((null==C?void 0:C.message)||(0,Su.__)("An error occurred while fetching entries.","sureforms"))}),[C,U]);var fe,he=function(){var e=ee.every((function(e){var t;return"trash"===(null===(t=Y.find((function(t){return t.id===e})))||void 0===t?void 0:t.status)}));e?B({entry_ids:ee},{onSuccess:function(){re(),X((function(e){return Hv(Hv({},e),{},{open:!1})}))}}):H({entry_ids:ee,action:"trash"},{onSuccess:function(){re(),X((function(e){return Hv(Hv({},e),{},{open:!1})}))}})},me=function(){H({entry_ids:ee,action:"restore"},{onSuccess:function(){re(),X((function(e){return Hv(Hv({},e),{},{open:!1})}))}})},ge=function(){d(""),h(""),g(""),M({from:null,to:null}),D(1)};return _||0!==Y.length||L||null==S||!S.emptyTrash?React.createElement("div",{className:cx("px-8 pb-8 bg-background-secondary min-h-screen",!(null!==(e=window.srfm_admin)&&void 0!==e&&null!==(e=e.notices)&&void 0!==e&&e.length)&&"pt-8")},React.createElement("div",{className:"mx-auto"},React.createElement("div",{className:"bg-white rounded-xl border-0.5 border-solid border-border-subtle shadow-sm p-4 space-y-2"},React.createElement("div",{className:"p-1"},React.createElement("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-center gap-4 xl:gap-5"},React.createElement(Lu,null),React.createElement(xx,{statusFilter:u,onStatusFilterChange:function(e){d(e),D(1)},formFilter:f,onFormFilterChange:function(e){h(e),D(1)},searchQuery:m,onSearchChange:function(e){g(e),D(1)},dateRange:p,onDateRangeChange:function(e){M(e),D(1)},formOptions:P,isLoadingForms:a,selectedEntries:ee,onBulkDelete:function(){if(0!==ee.length){var e=ee.every((function(e){var t;return"trash"===(null===(t=Y.find((function(t){return t.id===e})))||void 0===t?void 0:t.status)}));X({open:!0,title:e?(0,Su._n)("Delete entry permanently?","Delete entries permanently?",ee.length,"sureforms"):(0,Su._n)("Move entry to trash?","Move entries to trash?",ee.length,"sureforms"),description:e?(0,Su.sprintf)((0,Su._n)("Are you sure you want to permanently delete %s entry? This action cannot be undone.","Are you sure you want to permanently delete %s entries? This action cannot be undone.",ee.length,"sureforms"),ee.length):(0,Su.sprintf)((0,Su._n)("%s entry will be moved to trash and can be restored later.","%s entries will be moved to trash and can be restored later.",ee.length,"sureforms"),ee.length),confirmLabel:e?(0,Su.__)("Delete Permanently","sureforms"):(0,Su.__)("Move to Trash","sureforms"),onConfirm:he,isLoading:V,destructive:!0,enableVerification:e,verificationText:"delete"})}},onBulkExport:function(){$({entry_ids:ee,form_id:"all"===f?0:parseInt(f,10),status:u,search:m,date_from:k.date_from,date_to:k.date_to},{onSuccess:function(){re(),c.success((0,Su.__)("Entries exported successfully!","sureforms"))}})},onMarkAsRead:function(){0!==ee.length&&q({entry_ids:ee,action:"read"},{onSuccess:function(){re(),v(1)}})},onMarkAsUnread:function(){0!==ee.length&&q({entry_ids:ee,action:"unread"},{onSuccess:function(){re(),v(1)}})},onBulkRestore:function(){0!==ee.length&&X({open:!0,title:(0,Su._n)("Restore Entry","Restore Entries",ee.length,"sureforms"),description:(0,Su.sprintf)((0,Su._n)("%s entry will be restored from trash.","%s entries will be restored from trash.",ee.length,"sureforms"),ee.length),confirmLabel:(0,Su.__)("Restore","sureforms"),onConfirm:me,isLoading:!1,destructive:!1})},onClearFilters:ge,hasActiveFilters:_,hasUnreadSelected:ue,hasReadSelected:de}))),_&&0===Y.length&&!L?React.createElement(Bv,{handleClearFilters:ge}):React.createElement(SD,{data:Y,selectedItems:ee,onToggleAll:ne,onChangeRowSelection:te,indeterminate:oe,isLoading:L,onSort:A,getSortDirection:O,onEdit:function(e){"unread"===e.status?n("/entry/".concat(e.id,"?read=true")):n("/entry/".concat(e.id))},onDelete:function(e){"trash"===e.status?X({open:!0,title:(0,Su.__)("Delete entry permanently?","sureforms"),description:(0,Su.__)("Are you sure you want to permanently delete this entry? This action cannot be undone.","sureforms"),confirmLabel:(0,Su.__)("Delete Permanently","sureforms"),onConfirm:function(){return function(e){B({entry_ids:[e.id]}),X((function(e){return Hv(Hv({},e),{},{open:!1})}))}(e)},isLoading:V,destructive:!0,enableVerification:!0,verificationText:"delete"}):X({open:!0,title:(0,Su.__)("Move entry to trash?","sureforms"),description:(0,Su.__)("This entry will be moved to trash and can be restored later.","sureforms"),confirmLabel:(0,Su.__)("Move to Trash","sureforms"),onConfirm:function(){return function(e){H({entry_ids:[e.id],action:"trash"}),X((function(e){return Hv(Hv({},e),{},{open:!1})}))}(e)},isLoading:!1,destructive:!0,enableVerification:!1,verificationText:""})},onRestore:function(e){H({entry_ids:[e.id],action:"restore"})},paginationProps:{currentPage:N,totalPages:R,perPage:x,onPageChange:D,onPerPageChange:j,onNextPage:function(){return w(R)},onPreviousPage:b}}))),React.createElement(sv,{isOpen:K.open,onCancel:function(){return X((function(e){return Hv(Hv({},e),{},{open:!1})}))},onConfirm:K.onConfirm,title:K.title,description:K.description,confirmButtonText:K.confirmLabel,destructiveConfirmButton:null==K?void 0:K.destructive,requireConfirmation:null==K?void 0:K.enableVerification,verificationText:null==K?void 0:K.verificationText})):React.createElement("div",{className:cx("px-8 pb-8 bg-background-secondary min-h-screen",!(null!==(fe=window.srfm_admin)&&void 0!==fe&&null!==(fe=fe.notices)&&void 0!==fe&&fe.length)&&"pt-8")},React.createElement("div",{className:"mx-auto"},React.createElement("div",{className:"bg-white rounded-lg border-0.5 border-solid border-border-subtle shadow-sm p-4 space-y-2"},React.createElement(UD,null))))},Kv=Yu("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Xv=function(e){var t,n,r=e.heading,o=e.content,i=e.placement,s=e.utmMedium,a=void 0===s?"":s,l=e.children;return React.createElement(Hx,{className:"z-999999 max-w-[268px]",content:React.createElement("div",{className:"tooltip-content space-y-1"},React.createElement("div",{className:"tooltip-text space-y-1"},React.createElement("p",{className:"text-text-inverse text-xs font-semibold"},r),React.createElement("p",{className:"text-text-inverse text-xs"},o)),React.createElement("a",{className:"block w-fit tooltip-link text-link-inverse text-xs font-semibold no-underline hover:no-underline",target:"_blank",href:lx((null===(t=srfm_admin)||void 0===t?void 0:t.pricing_page_url)||(null===(n=srfm_admin)||void 0===n?void 0:n.sureforms_pricing_page),a),rel:"noreferrer"},(0,Su.__)("Upgrade","sureforms"))),placement:i,interactive:!0},l)};function Jv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ew=function(e){var t=e.onClick,n=e.disabled,r=React.createElement(De,{variant:"outline",size:"xs",icon:React.createElement(Kv,{className:"w-4 h-4"}),iconPosition:"left",onClick:t,disabled:n},(0,Su.__)("Edit Entry","sureforms"));return n?React.createElement(Xv,{heading:(0,Su.__)("Unlock Edit Form Entires","sureforms"),content:(0,Su.__)("With the SureForms Starter plan, you can easily edit your entries to suit your needs.","sureforms"),placement:"top",utmMedium:"edit_entry"},r):r};const tw=function(e){var t=e.entry,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.useState)(!1),2),r=n[0],o=n[1],i=(0,Cu.applyFilters)("srfm-pro.entry-details.render-edit-entry-modal");return React.createElement(React.Fragment,null,React.createElement(ew,{onClick:function(){i&&o(!0)},disabled:!i}),!!i&&React.createElement(i,{open:r,setOpen:o,entry:t}))},{entries:nw,setPrototypeOf:rw,isFrozen:ow,getPrototypeOf:iw,getOwnPropertyDescriptor:sw}=Object;let{freeze:aw,seal:lw,create:cw}=Object,{apply:uw,construct:dw}="undefined"!=typeof Reflect&&Reflect;aw||(aw=function(e){return e}),lw||(lw=function(e){return e}),uw||(uw=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),dw||(dw=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const fw=Ew(Array.prototype.forEach),hw=Ew(Array.prototype.lastIndexOf),mw=Ew(Array.prototype.pop),gw=Ew(Array.prototype.push),pw=Ew(Array.prototype.splice),Mw=Ew(String.prototype.toLowerCase),yw=Ew(String.prototype.toString),Nw=Ew(String.prototype.match),xw=Ew(String.prototype.replace),Dw=Ew(String.prototype.indexOf),vw=Ew(String.prototype.trim),ww=Ew(Object.prototype.hasOwnProperty),bw=Ew(RegExp.prototype.test),jw=(Tw=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dw(Tw,t)});var Tw;function Ew(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return uw(e,t,r)}}function Iw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mw;rw&&rw(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ow(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Aw(e){for(let t=0;t<e.length;t++)ww(e,t)||(e[t]=null);return e}function Ow(e){const t=cw(null);for(const[n,r]of nw(e))ww(e,n)&&(Array.isArray(r)?t[n]=Aw(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Ow(r):t[n]=r);return t}function kw(e,t){for(;null!==e;){const n=sw(e,t);if(n){if(n.get)return Ew(n.get);if("function"==typeof n.value)return Ew(n.value)}e=iw(e)}return function(){return null}}const zw=aw(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sw=aw(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Lw=aw(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cw=aw(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Uw=aw(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qw=aw(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rw=aw(["#text"]),Yw=aw(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pw=aw(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_w=aw(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fw=aw(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bw=lw(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vw=lw(/<%[\w\W]*|[\w\W]*%>/gm),Ww=lw(/\$\{[\w\W]*/gm),Hw=lw(/^data-[\-\w.\u00B7-\uFFFF]+$/),qw=lw(/^aria-[\-\w]+$/),Gw=lw(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$w=lw(/^(?:\w+script|data):/i),Zw=lw(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Kw=lw(/^html$/i),Xw=lw(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jw=Object.freeze({__proto__:null,ARIA_ATTR:qw,ATTR_WHITESPACE:Zw,CUSTOM_ELEMENT:Xw,DATA_ATTR:Hw,DOCTYPE_NAME:Kw,ERB_EXPR:Vw,IS_ALLOWED_URI:Gw,IS_SCRIPT_OR_DATA:$w,MUSTACHE_EXPR:Bw,TMPLIT_EXPR:Ww});const eb=function(){return"undefined"==typeof window?null:window};var tb=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eb();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:m}=t,g=c.prototype,p=kw(g,"cloneNode"),M=kw(g,"remove"),y=kw(g,"nextSibling"),N=kw(g,"childNodes"),x=kw(g,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let D,v="";const{implementation:w,createNodeIterator:b,createDocumentFragment:j,getElementsByTagName:T}=r,{importNode:E}=o;let I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof nw&&"function"==typeof x&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:k,DATA_ATTR:z,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:C,CUSTOM_ELEMENT:U}=Jw;let{IS_ALLOWED_URI:Q}=Jw,R=null;const Y=Iw({},[...zw,...Sw,...Lw,...Uw,...Rw]);let P=null;const _=Iw({},[...Yw,...Pw,..._w,...Fw]);let F=Object.seal(cw(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,V=null;const W=Object.seal(cw(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let H=!0,q=!0,G=!1,$=!0,Z=!1,K=!0,X=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ie=!1,se=!0,ae=!1,le={},ce=null;const ue=Iw({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const fe=Iw({},["audio","video","img","source","image","track"]);let he=null;const me=Iw({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let ye=Me,Ne=!1,xe=null;const De=Iw({},[ge,pe,Me],yw);let ve=Iw({},["mi","mo","mn","ms","mtext"]),we=Iw({},["annotation-xml"]);const be=Iw({},["title","style","font","a","script"]);let je=null;const Te=["application/xhtml+xml","text/html"];let Ee=null,Ie=null;const Ae=r.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ie||Ie!==e){if(e&&"object"==typeof e||(e={}),e=Ow(e),je=-1===Te.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===je?yw:Mw,R=ww(e,"ALLOWED_TAGS")?Iw({},e.ALLOWED_TAGS,Ee):Y,P=ww(e,"ALLOWED_ATTR")?Iw({},e.ALLOWED_ATTR,Ee):_,xe=ww(e,"ALLOWED_NAMESPACES")?Iw({},e.ALLOWED_NAMESPACES,yw):De,he=ww(e,"ADD_URI_SAFE_ATTR")?Iw(Ow(me),e.ADD_URI_SAFE_ATTR,Ee):me,de=ww(e,"ADD_DATA_URI_TAGS")?Iw(Ow(fe),e.ADD_DATA_URI_TAGS,Ee):fe,ce=ww(e,"FORBID_CONTENTS")?Iw({},e.FORBID_CONTENTS,Ee):ue,B=ww(e,"FORBID_TAGS")?Iw({},e.FORBID_TAGS,Ee):Ow({}),V=ww(e,"FORBID_ATTR")?Iw({},e.FORBID_ATTR,Ee):Ow({}),le=!!ww(e,"USE_PROFILES")&&e.USE_PROFILES,H=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,Q=e.ALLOWED_URI_REGEXP||Gw,ye=e.NAMESPACE||Me,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,we=e.HTML_INTEGRATION_POINTS||we,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(q=!1),ne&&(te=!0),le&&(R=Iw({},Rw),P=cw(null),!0===le.html&&(Iw(R,zw),Iw(P,Yw)),!0===le.svg&&(Iw(R,Sw),Iw(P,Pw),Iw(P,Fw)),!0===le.svgFilters&&(Iw(R,Lw),Iw(P,Pw),Iw(P,Fw)),!0===le.mathMl&&(Iw(R,Uw),Iw(P,_w),Iw(P,Fw))),ww(e,"ADD_TAGS")||(W.tagCheck=null),ww(e,"ADD_ATTR")||(W.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:(R===Y&&(R=Ow(R)),Iw(R,e.ADD_TAGS,Ee))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:(P===_&&(P=Ow(P)),Iw(P,e.ADD_ATTR,Ee))),e.ADD_URI_SAFE_ATTR&&Iw(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(ce===ue&&(ce=Ow(ce)),Iw(ce,e.FORBID_CONTENTS,Ee)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Ow(ce)),Iw(ce,e.ADD_FORBID_CONTENTS,Ee)),se&&(R["#text"]=!0),X&&Iw(R,["html","head","body"]),R.table&&(Iw(R,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw jw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw jw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=e.TRUSTED_TYPES_POLICY,v=D.createHTML("")}else void 0===D&&(D=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==D&&"string"==typeof v&&(v=D.createHTML(""));aw&&aw(e),Ie=e}},ze=Iw({},[...Sw,...Lw,...Cw]),Se=Iw({},[...Uw,...Qw]),Le=function(e){gw(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){M(e)}},Ce=function(e,t){try{gw(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){gw(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ue=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Nw(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===je&&ye===Me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=D?D.createHTML(e):e;if(ye===Me)try{t=(new h).parseFromString(o,je)}catch(e){}if(!t||!t.documentElement){t=w.createDocument(ye,"template",null);try{t.documentElement.innerHTML=Ne?v:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===Me?T.call(t,X?"html":"body")[0]:X?t.documentElement:i},Qe=function(e){return b.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ye=function(e){return"function"==typeof l&&e instanceof l};function Pe(e,t,r){fw(e,(e=>{e.call(n,t,r,Ie)}))}const _e=function(e){let t=null;if(Pe(I.beforeSanitizeElements,e,null),Re(e))return Le(e),!0;const r=Ee(e.nodeName);if(Pe(I.uponSanitizeElement,e,{tagName:r,allowedTags:R}),K&&e.hasChildNodes()&&!Ye(e.firstElementChild)&&bw(/<[/\w!]/g,e.innerHTML)&&bw(/<[/\w!]/g,e.textContent))return Le(e),!0;if(7===e.nodeType)return Le(e),!0;if(K&&8===e.nodeType&&bw(/<[/\w]/g,e.data))return Le(e),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(r))&&(!R[r]||B[r])){if(!B[r]&&Be(r)){if(F.tagNameCheck instanceof RegExp&&bw(F.tagNameCheck,r))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(r))return!1}if(se&&!ce[r]){const t=x(e)||e.parentNode,n=N(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=p(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}return Le(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Mw(e.tagName),r=Mw(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===Me?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||ve[r]):Boolean(ze[n]):e.namespaceURI===ge?t.namespaceURI===Me?"math"===n:t.namespaceURI===pe?"math"===n&&we[r]:Boolean(Se[n]):e.namespaceURI===Me?!(t.namespaceURI===pe&&!we[r])&&!(t.namespaceURI===ge&&!ve[r])&&!Se[n]&&(be[n]||!ze[n]):!("application/xhtml+xml"!==je||!xe[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!bw(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&3===e.nodeType&&(t=e.textContent,fw([A,O,k],(e=>{t=xw(t,e," ")})),e.textContent!==t&&(gw(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe(I.afterSanitizeElements,e,null),!1):(Le(e),!0)},Fe=function(e,t,n){if(V[t])return!1;if(oe&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;if(q&&!V[t]&&bw(z,t));else if(H&&bw(S,t));else if(W.attributeCheck instanceof Function&&W.attributeCheck(t,e));else if(!P[t]||V[t]){if(!(Be(e)&&(F.tagNameCheck instanceof RegExp&&bw(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&bw(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&bw(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(he[t]);else if(bw(Q,xw(n,C,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Dw(n,"data:")||!de[e])if(G&&!bw(L,xw(n,C,"")));else if(n)return!1;return!0},Be=function(e){return"annotation-xml"!==e&&Nw(e,U)},Ve=function(e){Pe(I.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,c=Ee(s),u=l;let d="value"===s?u:vw(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Pe(I.uponSanitizeAttribute,e,r),d=r.attrValue,!ie||"id"!==c&&"name"!==c||(Ce(s,e),d="user-content-"+d),K&&bw(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Ce(s,e);continue}if("attributename"===c&&Nw(d,"href")){Ce(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ce(s,e);continue}if(!$&&bw(/\/>/i,d)){Ce(s,e);continue}Z&&fw([A,O,k],(e=>{d=xw(d,e," ")}));const f=Ee(e.nodeName);if(Fe(f,c,d)){if(D&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(a);else switch(m.getAttributeType(f,c)){case"TrustedHTML":d=D.createHTML(d);break;case"TrustedScriptURL":d=D.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),Re(e)?Le(e):mw(n.removed)}catch(t){Ce(s,e)}}else Ce(s,e)}Pe(I.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=Qe(t);for(Pe(I.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Pe(I.uponSanitizeShadowNode,n,null),_e(n),Ve(n),n.content instanceof s&&e(n.content);Pe(I.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if(Ne=!e,Ne&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ye(e)){if("function"!=typeof e.toString)throw jw("toString is not a function");if("string"!=typeof(e=e.toString()))throw jw("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||ke(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!R[t]||B[t])throw jw("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!te&&!Z&&!X&&-1===e.indexOf("<"))return D&&re?D.createHTML(e):e;if(r=Ue(e),!r)return te?null:re?v:""}r&&ee&&Le(r.firstChild);const u=Qe(ae?e:r);for(;a=u.nextNode();)_e(a),Ve(a),a.content instanceof s&&We(a.content);if(ae)return e;if(te){if(ne)for(c=j.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(P.shadowroot||P.shadowrootmode)&&(c=E.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&R["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&bw(Kw,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Z&&fw([A,O,k],(e=>{d=xw(d,e," ")})),D&&re?D.createHTML(d):d},n.setConfig=function(){ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ie=null,J=!1},n.isValidAttribute=function(e,t,n){Ie||ke({});const r=Ee(e),o=Ee(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&gw(I[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=hw(I[e],t);return-1===n?void 0:pw(I[e],n,1)[0]}return mw(I[e])},n.removeHooks=function(e){I[e]=[]},n.removeAllHooks=function(){I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rb(e,t,n){return(t=function(e){var t=function(e){if("object"!=ob(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ob(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ob(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ob(e){return ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ob(e)}var ib={USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","input","button","select","textarea","img","picture","source","video","audio","track","object","embed"],FORBID_ATTR:["action","formaction","class","srcset","poster","background","id","name"],ALLOW_DATA_ATTR:!1},sb=["color","background-color","text-align","direction"],ab=tb(window);ab.addHook("afterSanitizeAttributes",(function(e){var t;if(null!=e&&e.style&&null!==(t=e.hasAttribute)&&void 0!==t&&t.call(e,"style")){var n=Array.from(e.style).filter((function(e){return sb.includes(e)})).map((function(t){return"".concat(t,": ").concat(e.style.getPropertyValue(t))}));n.length?e.setAttribute("style",n.join("; ")):e.removeAttribute("style")}}));var lb=["srfm-payment"],cb=/<[a-z!/][^<>]*>/i,ub=function(e){return ab.isSupported?ab.sanitize(e,ib):""},db=function(e){return"string"==typeof(null==e?void 0:e.value)?ub(e.value):""},fb=function(e){return"string"==typeof e?ub(e):""};function hb(e){return hb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hb(e)}function mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mb(Object(n),!0).forEach((function(t){pb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pb(e,t,n){return(t=function(e){var t=function(e){if("object"!=hb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mb=function(e){var t=(0,Cu.applyFilters)("srfm-pro.entry-details.render-pro-fields");if("function"==typeof t)return function(e,t){return!t||"object"!==ob(t)||Array.isArray(t)||(0,s.isValidElement)(t)?t:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach((function(t){rb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({block_name:null==e?void 0:e.block_name},t)}(e,t(e));var n=e.value,r=e.label;if(Array.isArray(null==e?void 0:e.value))return{label:r,value:(0,Su.sprintf)((0,Su._n)("%d item","%d items",n.length,"sureforms"),n.length)};var o=n;return"string"==typeof n&&n.match(/&[a-zA-Z0-9#]+;/)&&(o=function(e){if(!e)return"";var t=document.createElement("textarea");t.innerHTML=e;var n=t.value;return(n.includes("<")||n.includes(">")||n.includes("&"))&&(t.innerHTML=n,n=t.value),n}(n)),gb(gb({},e),{},{label:r,value:o||"-"})},yb=function(e){var t,n=e.field;return Array.isArray(n)?n.map((function(e,t){return React.createElement(yb,{key:"".concat(n.label,"-").concat(t),field:e})})):React.createElement(React.Fragment,null,React.createElement("div",{className:"p-3 relative bg-background-primary rounded-md shadow-sm"},React.createElement("div",{className:"flex gap-4"},(null==n?void 0:n.label)&&React.createElement("div",{className:"w-40 flex-shrink-0"},React.createElement("span",{className:"text-sm font-semibold text-text-primary"},n.label)),Array.isArray(n.value)&&(0,s.isValidElement)(n.value[0])&&React.createElement("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 2xl:grid-cols-6 place-content-center gap-2"},n.value),!Array.isArray(n.value)&&React.createElement("div",{className:"flex-1"},function(e){return("srfm-textarea"===(null==e?void 0:e.block_name)||lb.includes(null==e?void 0:e.block_name))&&"string"==typeof e.value&&cb.test(e.value)}(n)?React.createElement("span",{className:"text-sm font-medium text-text-secondary [overflow-wrap:anywhere] whitespace-pre-wrap [&_a]:text-link-primary [&_a]:no-underline [&_a:hover]:text-link-primary-hover [&_a:hover]:underline",dangerouslySetInnerHTML:{__html:db(n)||"-"}}):React.createElement("span",{className:"text-sm font-medium text-text-secondary [overflow-wrap:anywhere] whitespace-pre-wrap"},null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"-")))),Array.isArray(n.value)&&!(0,s.isValidElement)(n.value[0])&&n.value.map((function(e,t){return React.createElement(yb,{key:"".concat(n.label,"-").concat(t),field:e})})))};const Nb=function(e){var t=e.entryData,n=((null==t?void 0:t.formData)||[]).map(Mb).filter(Boolean);return React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement("h3",{className:"text-base font-semibold text-text-primary"},(0,Su.__)("Entry Data","sureforms")),React.createElement(tw,{entry:t}))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},n.map((function(e,t){return React.createElement(yb,{key:t,field:e})}))))},xb=function(e){var t,n,r,o,i,s=e.entryData,a=Fv(),l=ou(),c=[{id:"entry",label:(0,Su.__)("Entry:","sureforms"),value:null!=s&&s.id?"#".concat(s.id):"-"},{id:"form-name",label:(0,Su.__)("Form name:","sureforms"),value:(null==s?void 0:s.formName)||"-"},{id:"user-ip",label:(0,Su.__)("User IP:","sureforms"),value:(null==s||null===(t=s.submissionInfo)||void 0===t?void 0:t.userIp)||"-"},{id:"url",label:(0,Su.__)("URL:","sureforms"),value:(null==s||null===(n=s.submissionInfo)||void 0===n?void 0:n.submissionUrl)||(null==s?void 0:s.formPermalink)||"-",render:function(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?React.createElement(De,{variant:"link",tag:"a",href:e,className:"no-underline hover:underline",target:"_blank",rel:"noopener noreferrer"},e):e}},{id:"browser",label:(0,Su.__)("Browser:","sureforms"),value:(null==s||null===(r=s.submissionInfo)||void 0===r?void 0:r.browserName)||"-"},{id:"device",label:(0,Su.__)("Device:","sureforms"),value:(null==s||null===(o=s.submissionInfo)||void 0===o?void 0:o.deviceName)||"-"},{id:"user",label:(0,Su.__)("User:","sureforms"),value:(null==s||null===(i=s.user)||void 0===i?void 0:i.displayName)||"-",render:function(e){var t;return null!=s&&null!==(t=s.user)&&void 0!==t&&t.profileUrl?React.createElement(De,{variant:"link",tag:"a",href:s.user.profileUrl,target:"_blank",className:"no-underline hover:underline",rel:"noopener noreferrer"},e):e}},{id:"status",label:(0,Su.__)("Status:","sureforms"),value:null!=s&&s.status?s.status.toLowerCase():"-",render:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{id:"created_at",label:(0,Su.__)("Submitted on:","sureforms"),value:dx(null==s?void 0:s.createdAt,!0)||"-"}],u=function(){null!=s&&s.id&&a.mutate({entry_ids:[s.id],action:"unread",onSuccess:function(){return setTimeout((function(){window.history.state&&window.history.state.idx>0?l(-1):l("/")}),100)}})};return React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("h3",{className:"text-sm font-semibold text-text-primary"},(0,Su.__)("Entry info","sureforms"))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},c.map((function(e,t){return React.createElement("div",{key:t,className:"flex items-center py-3 px-3 relative bg-background-primary rounded-md shadow-sm"},React.createElement("div",{className:"w-32 flex-shrink-0"},React.createElement("span",{className:"text-sm font-medium text-text-primary"},e.label)),React.createElement("div",{className:"flex-1 flex items-center justify-between"},React.createElement("span",{className:"text-sm font-normal text-text-secondary"},"function"==typeof(null==e?void 0:e.render)?e.render(e.value):e.value),"status"===e.id&&"read"===e.value&&React.createElement(De,{variant:"link",size:"xs",onClick:u,disabled:a.isLoading,className:"text-link-primary hover:text-link-primary-hover ml-2"},a.isLoading?(0,Su.__)("Updating…","sureforms"):(0,Su.__)("Mark as Unread","sureforms"))))}))))},Db=Yu("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),vb=Yu("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);var wb=function(){return React.createElement(Xv,{heading:(0,Su.__)("Unlock Add Note","sureforms"),content:(0,Su.__)("With the SureForms Starter plan, enhance your submitted form entries by adding personalized notes for better clarity and tracking.","sureforms"),placement:"top-start",utmMedium:"add_note"},React.createElement(De,{variant:"link",size:"xs",icon:React.createElement(Db,{className:"w-4 h-4"}),iconPosition:"left",className:"text-link-primary hover:text-link-primary-hover",disabled:!0},(0,Su.__)("Add Note","sureforms")))};const bb=function(e){var t=e.entryId,n=e.onConfirmation,r=(0,Cu.applyFilters)("srfm-pro.entry-details.render-notes-section");return r?React.createElement(r,{entryId:t,onConfirmation:n}):React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement("h3",{className:"text-base font-semibold text-text-primary"},(0,Su.__)("Notes","sureforms")),React.createElement(wb,null))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},React.createElement("div",{className:"relative flex items-center justify-center py-6 px-1 gap-2.5"},React.createElement(vb,{className:"text-icon-secondary size-4"}),React.createElement(MD,{color:"secondary",size:12,weight:400},(0,Su.__)("Add an internal note.","sureforms")))))},jb=function(e){var t=e.pdfLinks,n=(0,Cu.applyFilters)("srfm-pro.entry-details.render-pdf-attachments-component");return n?React.createElement(n,{pdfLinks:t}):null},Tb=Yu("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Eb=Yu("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function Ib(e){return Ib="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ib(e)}function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ab(Object(n),!0).forEach((function(t){kb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kb(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ib(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ib(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ib(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Sb=function(e){var t=e.entryId,n=e.onConfirmation,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.useState)({page:1,per_page:3}),2),o=r[0],i=r[1],a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{page:1,per_page:3};return jv({queryKey:_v.list(e,t),queryFn:function(){return function(e){var t=e.id,n=e.page,r=void 0===n?1:n,o=e.per_page,i={page:r,per_page:void 0===o?3:o};return my()({path:(0,tN.addQueryArgs)("/sureforms/v1/entry/".concat(t,"/logs"),i),method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()}})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(n),!0).forEach((function(t){Uv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e},t))},enabled:!!e,staleTime:3e5})}(t,o),l=a.data,c=a.isLoading,u=(null==l?void 0:l.logs)||[],d=(null==l?void 0:l.total_pages)||1,f=o.page;(0,s.useEffect)((function(){c||0===u.length&&f>1&&i((function(e){return Ob(Ob({},e),{},{page:e.page-1})}))}),[u.length,f,c]);var h=(0,Cu.applyFilters)("srfm-pro.entry-details.render-delete-log-button");return React.createElement(React.Fragment,null,React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("h3",{className:"text-base font-semibold text-text-primary"},(0,Su.__)("Entry Logs","sureforms"))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},c?React.createElement("div",{className:"relative text-center py-4 text-text-secondary"},(0,Su.__)("Loading logs…","sureforms")):0===u.length?React.createElement("div",{className:"relative text-center py-4 text-text-secondary text-xs font-normal"},(0,Su.__)("No logs available.","sureforms")):u.map((function(e){return React.createElement("div",{key:e.id,className:"bg-background-primary rounded-md p-3 relative shadow-sm flex items-start justify-between gap-3"},React.createElement("div",{className:"flex-1 space-y-2"},React.createElement("div",{className:"text-sm font-semibold text-text-secondary"},e.title," ",e.timestamp&&"at ".concat(function(e){if(!e)return"";var t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0");return"".concat(n,"-").concat(r,"-").concat(o," ").concat(i,":").concat(s,":").concat(a)}(e.timestamp))),e.messages&&e.messages.map(fb).filter(Boolean).map((function(e,t){return React.createElement(MD,{key:t,size:14,weight:400,color:"primary",className:"[overflow-wrap:anywhere]"},React.createElement("span",{dangerouslySetInnerHTML:{__html:e}}))}))),!!h&&React.createElement(h,{entryId:t,log:e,onConfirmation:n}))}))),React.createElement("div",{className:"w-full flex items-center justify-end pb-3 pr-3 pl-3"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement(De,{variant:"ghost",size:"xs",icon:React.createElement(Tb,null),iconPosition:"left",onClick:function(){i((function(e){return Ob(Ob({},e),{},{page:Math.max(1,e.page-1)})}))},disabled:1===f||c},(0,Su.__)("Previous","sureforms")),React.createElement(De,{variant:"ghost",size:"xs",icon:React.createElement(Eb,null),iconPosition:"right",onClick:function(){i((function(e){return Ob(Ob({},e),{},{page:Math.min(d,e.page+1)})}))},disabled:f===d||c},(0,Su.__)("Next","sureforms"))))))},Lb=function(){var e;return React.createElement("div",{className:cx("px-8 pb-8 bg-background-secondary min-h-screen space-y-6",!(null!==(e=window.srfm_admin)&&void 0!==e&&null!==(e=e.notices)&&void 0!==e&&e.length)&&"pt-8")},React.createElement("div",{className:"flex items-center gap-3 mx-auto max-w-[1500px]"},React.createElement(Gm,{className:"w-8 h-8 rounded-md"}),React.createElement(Gm,{className:"h-8 w-48"})),React.createElement("div",{className:"mx-auto max-w-[1500px]"},React.createElement("div",{className:"space-y-6"},React.createElement("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6"},React.createElement("div",{className:"lg:col-span-2 space-y-6"},React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement(Gm,{className:"h-5 w-32"}),React.createElement(Gm,{className:"w-24 h-8 rounded-md"}))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},Array.from({length:5}).map((function(e,t){return React.createElement("div",{key:t,className:"p-3 relative bg-background-primary rounded-md shadow-sm"},React.createElement("div",{className:"flex gap-4"},React.createElement(Gm,{className:"w-40 h-4"}),React.createElement(Gm,{className:"flex-1 h-4"})))})))),React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement(Gm,{className:"h-5 w-40 mb-4"})),React.createElement("div",{className:"p-4 space-y-4"},Array.from({length:4}).map((function(e,t){return React.createElement("div",{key:t,className:"flex gap-4"},React.createElement(Gm,{className:"w-32 h-4"}),React.createElement(Gm,{className:"flex-1 h-4"}))}))))),React.createElement("div",{className:"space-y-4"},React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement(Gm,{className:"h-5 w-24 mb-4"})),React.createElement("div",{className:"p-4"},React.createElement(Gm,{className:"w-full h-20 rounded-md"}))),React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement(Gm,{className:"h-5 w-28 mb-4"})),React.createElement("div",{className:"p-4 space-y-3"},Array.from({length:3}).map((function(e,t){return React.createElement("div",{key:t,className:"flex gap-3"},React.createElement(Gm,{className:"w-8 h-8 rounded-full"}),React.createElement("div",{className:"flex-1 space-y-1"},React.createElement(Gm,{className:"h-4 w-3/4"}),React.createElement(Gm,{className:"h-3 w-1/2"})))})))),React.createElement("div",{className:"ml-0.5"},React.createElement(Gm,{className:"w-full h-10 rounded-md"})))))))},Cb=function(e){var t=e.previousEntryId,n=e.nextEntryId,r=ou(),o=function(){t&&r("/entry/".concat(t),{replace:!0})},i=function(){n&&r("/entry/".concat(n),{replace:!0})},s=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())};return t||n?React.createElement("div",{className:"flex justify-end gap-2"},React.createElement(De,{variant:"outline",size:"sm",icon:React.createElement(Tb,{className:"w-4 h-4"}),iconPosition:"left",onClick:o,onKeyDown:function(e){return s(e,o)},disabled:!t,"aria-label":(0,Su.__)("Previous entry","sureforms"),"aria-disabled":!t,className:"text-text-primary hover:text-text-primary outline-0 disabled:opacity-50 disabled:cursor-not-allowed border-0.5 border-solid border-badge-color-disabled shadow-sm"},(0,Su.__)("Previous","sureforms")),React.createElement(De,{variant:"outline",size:"sm",icon:React.createElement(Eb,{className:"w-4 h-4"}),iconPosition:"right",onClick:i,onKeyDown:function(e){return s(e,i)},disabled:!n,"aria-label":(0,Su.__)("Next entry","sureforms"),"aria-disabled":!n,className:"text-text-primary hover:text-text-primary outline-0 disabled:opacity-50 disabled:cursor-not-allowed border-0.5 border-solid border-badge-color-disabled shadow-sm"},(0,Su.__)("Next","sureforms"))):null};function Ub(e){return Ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ub(e)}function Qb(){Qb=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=D(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new b(o||[])),!0),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(j([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,s,a){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Ub(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function b(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function j(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(Ub(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},N(y),l(y,a,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=j,b.prototype={constructor:b,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:j(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function Rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(n),!0).forEach((function(t){Pb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pb(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ub(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ub(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _b(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Fb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Vb=function(e){var t=e.handleSendEmail,n=e.isDisabled;return void 0===n||n?React.createElement(Xv,{heading:(0,Su.__)("Unlock Resend Email Notification","sureforms"),content:(0,Su.__)("With the SureForms Starter plan, you can effortlessly resend email notifications, ensuring your important updates reach their recipients with ease.","sureforms"),utmMedium:"entry_resend_email_notification",placement:"top"},React.createElement(De,{variant:"primary",size:"md",onClick:t,disabled:!0},(0,Su.__)("Resend Email Notification","sureforms"))):React.createElement(De,{variant:"primary",size:"md",onClick:t},(0,Su.__)("Resend Email Notification","sureforms"))};const Wb=function(){var e,t,n=su().id,r=ou(),o=Fb(zu(),2),i=o[0],a=o[1],l=Fv().mutate,c=Fb((0,s.useState)({open:!1,title:"",description:"",confirmLabel:"",onConfirm:null,isLoading:!1,destructive:!0}),2),u=c[0],d=c[1],f=Fb((0,s.useState)(!1),2),h=f[0],m=f[1],g=(t=n,jv({queryKey:Yv.detail(t),queryFn:function(){return function(e){return my()({path:"/sureforms/v1/entry/".concat(e,"/details"),method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Iv()}})}(t)},enabled:!!t,staleTime:0,refetchOnWindowFocus:!0})),p=g.data,M=g.isLoading,y=(0,s.useMemo)((function(){return(e=p)?{id:e.id,formId:e.form_id,formName:e.form_name,formPermalink:e.form_permalink,status:e.status,statusLabel:$x(e.status),createdAt:e.created_at,formData:e.form_data||[],formContent:e.form_content||[],submissionInfo:{userIp:(null===(t=e.submission_info)||void 0===t?void 0:t.user_ip)||"-",browserName:(null===(n=e.submission_info)||void 0===n?void 0:n.browser_name)||"-",deviceName:(null===(r=e.submission_info)||void 0===r?void 0:r.device_name)||"-",submissionUrl:(null===(o=e.submission_info)||void 0===o?void 0:o.submission_url)||""},user:e.user?{id:e.user.id,displayName:e.user.display_name,profileUrl:e.user.profile_url}:null,pdfLinks:(null===(i=e.extras)||void 0===i?void 0:i.pdf_links)||null,navigation:{previousEntryId:(null===(s=e.navigation)||void 0===s?void 0:s.previous_entry_id)||null,nextEntryId:(null===(a=e.navigation)||void 0===a?void 0:a.next_entry_id)||null},rawData:e}:null;var e,t,n,r,o,i,s,a}),[p]),N=(0,s.useMemo)((function(){var e,t;return{previousEntryId:null==y||null===(e=y.navigation)||void 0===e?void 0:e.previousEntryId,nextEntryId:null==y||null===(t=y.navigation)||void 0===t?void 0:t.nextEntryId}}),[null==y?void 0:y.navigation]),x=(0,Cu.applyFilters)("srfm-pro.entry-details.render-resend-notification-modal");(0,s.useEffect)((function(){y&&"unread"===y.status&&l({entry_ids:[n],action:"read",skipToast:!0},{onSuccess:function(){i.get("read")&&(i.delete("read"),a(i,{replace:!0}))}})}),[n,y,l,i,a]);var D=function(e){var t;d({open:!0,title:e.title,description:e.description,confirmLabel:e.confirmLabel,onConfirm:(t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){_b(i,r,o,s,a,"next",e)}function a(e){_b(i,r,o,s,a,"throw",e)}s(void 0)}))}}(Qb().mark((function t(){return Qb().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.onConfirm();case 3:d((function(e){return Yb(Yb({},e),{},{open:!1})})),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Confirmation action failed:",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(){return t.apply(this,arguments)}),isLoading:e.isLoading||!1,destructive:!1!==e.destructive})};return M?React.createElement(Lb,null):React.createElement(React.Fragment,null,React.createElement("div",{className:cx("px-8 pb-8 bg-background-secondary min-h-screen space-y-6",!(null!==(e=window.srfm_admin)&&void 0!==e&&null!==(e=e.notices)&&void 0!==e&&e.length)&&"pt-8")},React.createElement("div",{className:"flex items-center justify-between mx-auto max-w-[1500px]"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement(De,{onClick:function(){window.history.state&&window.history.state.idx>0?r(-1):r("/")},variant:"ghost",size:"md",className:"p-1",icon:React.createElement(Tb,null)}),React.createElement(MD,{size:24,color:"primary",weight:600},(0,Su.sprintf)((0,Su.__)("Entry #%s","sureforms"),n))),React.createElement("div",{className:"flex items-center gap-2"},(0,Cu.applyFilters)("srfm.entryDetail.extraNavActions",null,{formId:null==y?void 0:y.formId,entryId:parseInt(n,10)}),React.createElement(Cb,N))),React.createElement("div",{className:"mx-auto max-w-[1500px]"},React.createElement("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6"},React.createElement("div",{className:"lg:col-span-2 space-y-6"},React.createElement(Nb,{entryData:y}),React.createElement(xb,{entryData:y})),React.createElement("div",{className:"space-y-4"},React.createElement(bb,{entryId:n,onConfirmation:D}),React.createElement(jb,{pdfLinks:null==y?void 0:y.pdfLinks}),React.createElement(Sb,{entryId:n,onConfirmation:D}),React.createElement("div",{className:"ml-0.5 flex flex-wrap items-center gap-3"},React.createElement(Vb,{handleSendEmail:function(){x&&m(!0)},isDisabled:!x}),(0,Cu.applyFilters)("srfm.entryDetail.extraActions",null,{entryId:parseInt(n,10),formId:null==y?void 0:y.formId})))))),React.createElement(sv,{isOpen:u.open,onCancel:function(){return d((function(e){return Yb(Yb({},e),{},{open:!1})}))},onConfirm:u.onConfirm,title:u.title,description:u.description,confirmButtonText:u.confirmLabel,destructiveConfirmButton:u.destructive}),!!x&&(null==y?void 0:y.formId)&&React.createElement(x,{open:h,setOpen:m,entryIds:[parseInt(n,10)],formId:y.formId}))};var Hb=["className"];function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qb.apply(null,arguments)}const Gb=function(e){var t,n=e.className,r=void 0===n?"block":n,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Hb);return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url},React.createElement("svg",qb({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},o),React.createElement("path",{d:"M24 0H0V24H24V0Z",fill:"#D54407"}),React.createElement("path",{d:"M6.8501 5.14209H17.1358V8.57068H8.56439L6.8501 10.285V8.57068V5.14209Z",fill:"white"}),React.createElement("path",{d:"M6.8501 10.2866H15.4215V13.7152H8.56439L6.8501 15.4294V13.7152V10.2866Z",fill:"white"}),React.createElement("path",{d:"M6.8501 15.4272H11.9929V18.8558H6.8501V15.4272Z",fill:"white"})))};function $b(e){return $b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$b(e)}var Zb=["selector"];function Kb(){Kb=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=D(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new b(o||[])),!0),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(j([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,s,a){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==$b(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function b(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function j(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError($b(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},N(y),l(y,a,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=j,b.prototype={constructor:b,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:j(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function Xb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ej(e,t,n){return(t=function(e){var t=function(e){if("object"!=$b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tj(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function nj(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){tj(i,r,o,s,a,"next",e)}function a(e){tj(i,r,o,s,a,"throw",e)}s(void 0)}))}}var rj=function(){return rj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rj.apply(this,arguments)},oj=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},ij=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},sj={rssFeedURL:"",selector:"",uniqueKey:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"…",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},aj=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),lj.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new cj(this),this.RSS_View_Instance=new uj(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector","uniqueKey"].forEach((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var n=e[t];Array.isArray(n)&&n.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,n;this.args=rj(rj(rj({},sj),e),{viewAll:rj(rj({},sj.viewAll),null==e?void 0:e.viewAll),triggerButton:rj(rj({},sj.triggerButton),null==e?void 0:e.triggerButton),flyout:rj(rj(rj({},sj.flyout),null==e?void 0:e.flyout),{innerContent:rj(rj({},sj.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:rj(rj({},sj.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return oj(this,void 0,void 0,(function(){var e=this;return ij(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){return oj(e,[t],void 0,(function(e){var t,n=e.key;return ij(this,(function(e){switch(e.label){case 0:return t=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return t=e.sent(),[3,3];case 2:t=lj.getLastPostUnixTime(n),e.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+t:this.lastPostUnixTime=+t,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(n){var r=t[n];if(r.length){e.multiNotificationCount[n]=0;var o=+r[0].date,i=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>i&&(r.forEach((function(t){t.date>i&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))})).catch(console.error)];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),n=document.getElementById(this.RSS_View_Instance.getFlyoutID()),r=n.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),i=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),s=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var i=o[t];if(i.length){var s=+i[0].date,a=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;i.forEach((function(n){var o=!!a&&n.date>a,i=e.getArgs().flyout.innerContent.titleLink?'<a href="'.concat(n.postLink,'" target="_blank">\n\t\t\t\t\t\t\t\t<h2>').concat(n.title,"</h2>\n\t\t\t\t\t\t\t</a>"):"<h2>".concat(n.title,"</h2>"),s='\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>'.concat(e.RSS_View_Instance.formatDate(new Date(n.date)),"</p>\n\t\t\t\t\t\t\t\t\t").concat(i,"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(n.description,n.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(n.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),r.innerHTML+=e.RSS_View_Instance.innerContentWrapper(s,o,l.join(" "))})),e.getArgs().viewAll.link&&(r.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t<a href="'.concat(e.getArgs().viewAll.link,'" class="button view-all">').concat(e.getArgs().viewAll.label,"</a>\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),n.classList.add("ready"),e.getArgs().flyout.onReady(e),n.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=s,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(s,t):lj.setLastPostUnixTime(s,t)))}})).catch(console.error)};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),n.classList.remove("closed"),n.classList.add("open"),n.removeAttribute("style"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),e.isMultiFeedRSS()){var r=i.querySelectorAll("button");r.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(n){n.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var n=t[o][0].date;e.multiLastPostUnixTime[o]=n,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(n,o):lj.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})).catch(console.error),r.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,n=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(n).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),s(o)}))})),r[0].click()}else s(null)}));var a=function(){n.classList.add("closed"),n.classList.remove("open"),n.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),r.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.contains("open")&&a()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",a),o.addEventListener("click",a)},e}(),lj=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;var r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),cj=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse(lj.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return oj(this,void 0,void 0,(function(){var e,t=this;return ij(this,(function(n){switch(n.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return oj(t,void 0,void 0,(function(){var t,n,r=this;return ij(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/»/g,"&raquo;"),n=new DOMParser,n.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var n,o=t.querySelector("title").textContent,i=t.querySelector("link").textContent,s=t.querySelector("content\\:encoded, encoded"),a=s?s.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:i,description:a.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),lj.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),uj=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e,t=this.RSS.getArgs().triggerButton.label;e=t?"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t').concat(t,"\n\t\t\t</a>\n\t\t\t").concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"):"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"),this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('<nav id="'.concat(this.getFlyoutMultiFeedNavID(),'" class="whats-new-rss-multi-feed-nav">')),this.RSS.getRSSFeedURLs().forEach((function(e){t.push('<button type="button" data-feed-key="'.concat(e.key,'">\n\t\t\t\t\t\t').concat(e.label,'\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t'))})),t.push("</nav>"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility: hidden;"),n.innerHTML='\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>'.concat(this.RSS.getArgs().flyout.title,'</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="').concat(this.getFlyoutCloseBtnID(),'">').concat(this.RSS.getArgs().flyout.closeBtnIcon,"</button>\n\t\t\t</div>\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t<div class="'.concat(r.join(" "),'">\n\t\t\t').concat(t?'<small class="new-post-badge">New ✨</small>':"","\n\t\t\t").concat(e,"\n\t\t</div>\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,i=n.readMore;if(!r)return e;var s=e.replace(/<[^>]*>/g,"").split(/\s+/),a=s.slice(0,r).join(" ");return o&&(a+=o),r>s.length?e:t&&(null==i?void 0:i.label)?"<p>".concat(a,' <a href="').concat(t,'" target="_blank" class="').concat(i.className,'">').concat(i.label,"</a></p>"):"<p>".concat(a,"</p>")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),i=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">'.concat(e.post_title,'</h4>\n\t\t\t\t\t<span class="sub-version-date">').concat(t.formatDate(new Date(e.post_date)),'</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">').concat(n.documentElement.textContent,"</div>\n\t\t\t"),i.appendChild(r)})),o.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',r.appendChild(o),r.appendChild(i),i.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,i=24*o,s=7*i,a=30*i;if(r<6e4)return"Just now";if(r<o){var l=Math.floor(r/6e4);return"".concat(l," minute").concat(l>1?"s":""," ago")}if(r<i){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<s){var u=Math.floor(r/i);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<a){var d=Math.floor(r/s);return"".concat(d," week").concat(d>1?"s":""," ago")}var f=Math.floor(r/a);return"".concat(f," month").concat(f>1?"s":""," ago")},e}();function dj(){return fj.apply(this,arguments)}function fj(){return(fj=nj(Kb().mark((function e(){return Kb().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",'.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}');case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hj(){return(hj=nj(Kb().mark((function e(){var t,n;return Kb().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="whats-new-rss-styles",document.getElementById(t)){e.next=8;break}return(n=document.createElement("style")).id=t,e.next=6,dj();case 6:n.innerHTML=e.sent,document.head.appendChild(n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const mj=function(e){var t=e.selector,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Zb),r=(0,d.useRef)(null);return(0,d.useEffect)((function(){return function(){hj.apply(this,arguments)}(),r.current||(r.current=function(e){return new aj(e)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jb(Object(n),!0).forEach((function(t){ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selector:t},n))),function(){r.current&&"function"==typeof r.current.destroy&&r.current.destroy()}}),[t].concat(function(e){return function(e){if(Array.isArray(e))return Xb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xb(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.values(n)))),r.current},gj=({children:e,gap:t="lg",className:n,...r})=>(0,u.jsx)("div",{className:me("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",pe(t),n),...r,children:e});gj.displayName="Topbar";const pj=({gap:e="sm",children:t,className:n})=>(0,u.jsx)("div",{className:me("flex items-center",pe(e),n),children:t});pj.displayName="Topbar.Left";const Mj=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,u.jsx)("div",{className:me("flex items-center grow",pe(e),o,r),children:t})};Mj.displayName="Topbar.Middle";const yj=({gap:e="sm",children:t,className:n})=>(0,u.jsx)("div",{className:me("flex items-center",pe(e),n),children:t});yj.displayName="Topbar.Right";const Nj=({children:e,className:t})=>(0,u.jsx)("div",{className:me("flex items-center [&>svg]:block h-full",t),children:e});Nj.displayName="Topbar.Item",gj.Left=pj,gj.Middle=Mj,gj.Right=yj,gj.Item=Nj;const xj=(0,d.createContext)({}),Dj=xj.Provider,vj=()=>(0,d.useContext)(xj),wj=(e,t,n)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const r=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),i=n?r?.x-o?.x+r?.width/2:o?.width-(o?.right-r?.x)+r?.width/2,s=r?.y-o?.y+r?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${i}px ${s}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${r?.width/2}px at ${i}px ${s}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},bj=e=>(0,u.jsx)(fl.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),jj=({className:e})=>{const{toggleOpen:t,setTriggerRef:n}=vj();return(0,u.jsx)(De,{ref:n,className:me("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu",icon:(0,u.jsxs)(fl.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,u.jsx)(bj,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,u.jsx)(bj,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,u.jsx)(bj,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},Tj={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},Ej=({tag:e="a",active:t,icon:n,iconPosition:r="left",className:o,children:i,...s})=>{let a=null,l=null;const c=n&&(0,d.isValidElement)(n)?(0,d.cloneElement)(n,{key:"left-icon",className:me("size-5",t?"text-brand-800":"text-icon-secondary",n.props?.className??"")}):null;switch(r){case"left":a=c;break;case"right":l=c;break;default:a=null,l=null}return(0,u.jsx)(Aj,{children:(0,u.jsxs)(e,{className:me("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...s,children:[!!a&&a,(0,u.jsx)("span",{className:"contents",children:i}),!!l&&l]})})},Ij={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},Aj=({children:e})=>(0,u.jsx)(fl.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:Ij,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),Oj=({children:e,className:t})=>{const{triggerRef:n,triggerOnRight:r,triggerOnLeft:o}=vj(),[i,s]=(0,d.useState)(null);return n?(0,u.jsxs)(fl.div,{ref:s,className:me("absolute top-0 bottom-0 w-80 h-screen",r?"right-0":"left-0",t),children:[i&&(0,u.jsx)(fl.div,{className:me("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",r?"right-0":"left-0"),variants:wj(n,i,o??!1)}),(0,u.jsx)(fl.ul,{variants:Tj,className:me("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},kj=({className:e,children:t})=>{const[n,r]=function(...e){const t=(0,d.useRef)(0),[n,r]=(0,d.useState)(e[t.current]);return[n,(0,d.useCallback)((n=>{t.current="number"!=typeof n?((e,t,n)=>{const r=t-0;return((n-0)%r+r)%r+0})(0,e.length,t.current+1):n,r(e[t.current])}),[e.length,...e])]}(!1,!0),[o,i]=(0,d.useState)(null),s=(0,d.useRef)(null),{height:a}=(e=>{const t=(0,d.useRef)({width:0,height:0});return(0,d.useEffect)((()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)}),[]),t.current})(s),{isRight:l=!1,isLeft:c=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),n=window.innerWidth,r=n/2,o=t.right<r,i=t.left>r;return{isLeft:o,isRight:i,isCenter:!o&&!i,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:n,center:r}}})(o);return(0,u.jsx)(Dj,{value:{isOpen:n,toggleOpen:r,setTriggerRef:e=>{(0,d.startTransition)((()=>{i(e)}))},triggerRef:o,triggerOnRight:l,triggerOnLeft:c},children:(0,u.jsx)("div",{className:me("size-6 z-[1]",e),children:(0,u.jsx)(fl.nav,{className:"h-full",initial:!1,animate:n?"open":"closed",custom:a,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:s,children:t})})})};kj.displayName="HamburgerMenu",jj.displayName="HamburgerMenu.Toggle",Oj.displayName="HamburgerMenu.Options",Ej.displayName="HamburgerMenu.Option",kj.Options=Oj,kj.Option=Ej,kj.Toggle=jj;const zj=Yu("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),Sj=Yu("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Lj=Yu("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);function Cj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uj(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qj="srfm_upgrade_notice_seen";const Rj=function(e){var t=e.onClose,n=Cj((0,s.useState)(!0),2),r=n[0],o=n[1],i=Cj((0,s.useState)(!1),2),a=i[0],l=i[1];return(0,s.useEffect)((function(){var e,t;e=Qj,2===(t="; ".concat(document.cookie).split("; ".concat(e,"="))).length&&t.pop().split(";").shift()||l(!0)}),[]),a&&r?React.createElement(Fx,{className:"relative bg-brand-background-hover-100 p-2 text-xs text-center w-full gap-1",align:"center"},React.createElement("p",{className:"text-text-primary w-full mx-7 lg:mx-0"},React.createElement("span",{className:" font-semibold text-xs"},(0,Su.__)("Ready to go beyond free plan?","sureforms"))," ",React.createElement(De,{tag:"a",variant:"link",className:"p-0 [&>span]:p-0 underline underline-offset-2 font-normal",size:"xs",onClick:function(){var e,t;return window.open(lx((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-upgrade-notice-cta"),"_blank","noreferrer")}},(0,Su.__)("Upgrade now","sureforms"))," ",React.createElement("span",{className:"font-normal text-xs"},(0,Su.__)("and unlock the full power of SureForms!","sureforms"))),React.createElement(Fx.Item,{className:"absolute right-2 inset-y-0 inline-flex items-center"},React.createElement(De,{variant:"ghost",size:"xs",className:"p-1 hover:bg-transparent",icon:React.createElement(Bu,{className:"size-4"}),onClick:function(){var e,n;o(!1),e=Qj,(n=new Date).setTime(n.getTime()+864e6),document.cookie="".concat(e,"=").concat("true","; expires=").concat(n.toUTCString(),"; path=/"),"function"==typeof t&&t()}}))):null};function Yj(){return Yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yj.apply(null,arguments)}const Pj=function(e){var t;return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url,className:"inline-flex"},React.createElement("svg",Yj({width:"120",height:"20",viewBox:"0 0 120 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),React.createElement("g",{clipPath:"url(#clip0_22722_181577)"},React.createElement("mask",{id:"mask0_22722_181577",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"120",height:"20"},React.createElement("path",{d:"M120 0H0V20H120V0Z",fill:"white"})),React.createElement("g",{mask:"url(#mask0_22722_181577)"},React.createElement("path",{d:"M20 0H0V20H20V0Z",fill:"#D54407"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.6665 13.8361L27.4936 12.6205C27.8732 13.0586 28.3781 13.4272 29.0083 13.7265C29.6384 14.0258 30.3009 14.1754 30.9956 14.1754C31.7905 14.1754 32.41 14.0039 32.8539 13.6608C33.3051 13.3177 33.5308 12.8688 33.5308 12.3139C33.5308 11.9635 33.409 11.6678 33.1655 11.4269C32.922 11.186 32.6069 10.9998 32.2202 10.8684C31.8334 10.7371 31.4073 10.6166 30.9419 10.5071C30.4764 10.3976 30.0073 10.2698 29.5347 10.1238C29.0692 9.97782 28.6431 9.79894 28.2564 9.58725C27.8696 9.3755 27.5545 9.07619 27.311 8.68932C27.0675 8.29507 26.9458 7.82788 26.9458 7.28763C26.9458 6.39694 27.2967 5.65602 27.9986 5.06469C28.7004 4.46606 29.6636 4.16675 30.8882 4.16675C32.5066 4.16675 33.8172 4.69237 34.8198 5.74362L34.0571 6.90438C33.7276 6.49557 33.2836 6.16704 32.7251 5.91882C32.1736 5.66332 31.5613 5.53556 30.8882 5.53556C30.1792 5.53556 29.6098 5.69982 29.1801 6.02833C28.7505 6.34957 28.5356 6.75469 28.5356 7.24382C28.5356 7.55775 28.6574 7.82419 28.9009 8.04325C29.1443 8.25494 29.4559 8.42282 29.8354 8.54694C30.2221 8.66375 30.6483 8.77688 31.1138 8.88644C31.5864 8.98863 32.0554 9.11638 32.5209 9.26969C32.9936 9.42301 33.4197 9.61275 33.7993 9.83913C34.186 10.0581 34.5011 10.3757 34.7446 10.7918C34.9881 11.2079 35.1098 11.7007 35.1098 12.2701C35.1098 13.2191 34.7446 14.0039 34.0141 14.6244C33.2908 15.2377 32.2703 15.5443 30.9526 15.5443C29.1694 15.5443 27.7408 14.9749 26.6665 13.8361ZM36.9153 12.0839V4.44051H38.5589V11.5693C38.5589 12.4745 38.763 13.1133 39.1712 13.4856C39.5794 13.8506 40.1738 14.0331 40.9544 14.0331C41.5703 14.0331 42.1647 13.8761 42.7376 13.5623C43.3104 13.2483 43.7581 12.8614 44.0803 12.4015V4.44051H45.7346V15.2706H44.0803V13.7484C43.6363 14.2594 43.0813 14.6865 42.4153 15.0296C41.7493 15.3727 41.0439 15.5443 40.2991 15.5443C38.0433 15.5443 36.9153 14.3908 36.9153 12.0839ZM48.1524 15.2706H49.796V7.60519C50.0395 7.15988 50.4584 6.762 51.0529 6.41163C51.6473 6.05388 52.1987 5.87502 52.7071 5.87502C52.8718 5.87502 53.0831 5.88962 53.3409 5.91882V4.18865C52.6534 4.18865 52.0053 4.37116 51.3966 4.73617C50.7878 5.09389 50.2544 5.57206 49.796 6.17069V4.44051H48.1524V15.2706ZM53.9111 9.83913C53.9111 8.80244 54.1331 7.85344 54.5771 6.992C55.0283 6.12324 55.6549 5.437 56.457 4.93329C57.2591 4.42226 58.1578 4.16675 59.1533 4.16675C60.1988 4.16675 61.1119 4.42591 61.8925 4.94424C62.6731 5.46255 63.2606 6.15974 63.6543 7.03575C64.0549 7.9045 64.2556 8.88638 64.2556 9.98144V10.4085H55.6728C55.7373 11.4744 56.1096 12.365 56.79 13.0804C57.4775 13.7959 58.3726 14.1536 59.4755 14.1536C60.0986 14.1536 60.6966 14.0331 61.2694 13.7922C61.8496 13.5513 62.3544 13.2083 62.7843 12.7629L63.5681 13.8579C62.4439 14.9821 61.0368 15.5443 59.3466 15.5443C57.7568 15.5443 56.4534 15.015 55.4365 13.9565C54.4196 12.8979 53.9111 11.5255 53.9111 9.83913ZM55.6513 9.14925H62.6231C62.6162 8.73313 62.5406 8.32063 62.3974 7.91182C62.2613 7.503 62.0573 7.11969 61.7851 6.762C61.5129 6.40432 61.1477 6.11594 60.6894 5.89693C60.2311 5.67062 59.7118 5.55746 59.1318 5.55746C58.5875 5.55746 58.0934 5.66696 57.6494 5.88597C57.2054 6.10498 56.8437 6.39338 56.5644 6.75107C56.2923 7.1015 56.0774 7.48475 55.9199 7.90082C55.7623 8.30969 55.6728 8.72582 55.6513 9.14925Z",fill:"#030712"}),React.createElement("path",{d:"M68.2325 15.6356H65.9331V4.63989H73.5762V6.70057H68.2325V9.00851H73.4625V11.0692H68.2325V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M80.3168 15.8336C77.0462 15.8336 74.6655 13.4597 74.6655 10.1462C74.6655 6.83263 77.0462 4.45874 80.3168 4.45874C83.5712 4.45874 85.9518 6.83263 85.9518 10.1462C85.9518 13.4597 83.5712 15.8336 80.3168 15.8336ZM80.3168 13.7564C82.3087 13.7564 83.5874 12.1904 83.5874 10.1462C83.5874 8.08551 82.3087 6.53588 80.3168 6.53588C78.3087 6.53588 77.0299 8.08551 77.0299 10.1462C77.0299 12.1904 78.3087 13.7564 80.3168 13.7564Z",fill:"#030712"}),React.createElement("path",{d:"M96.3254 15.6356H93.6698L91.5486 11.7286H89.8648V15.6356H87.5654V4.63989H92.6173C94.8679 4.63989 96.2604 6.14006 96.2604 8.18426C96.2604 10.113 95.0461 11.1681 93.8804 11.4483L96.3254 15.6356ZM92.2936 9.66789C93.2004 9.66789 93.8967 9.10739 93.8967 8.16776C93.8967 7.26107 93.2004 6.70057 92.2936 6.70057H89.8648V9.66789H92.2936Z",fill:"#030712"}),React.createElement("path",{d:"M109.678 15.6356H107.362V7.70614L104.318 15.6356H103.314L100.27 7.70614V15.6356H97.9707V4.63989H101.193L103.816 11.5143L106.439 4.63989H109.678V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M115.676 15.8335C113.588 15.8335 112.098 15.1246 111.078 14.086L112.341 12.2562C113.102 13.0639 114.284 13.7563 115.774 13.7563C117.053 13.7563 117.652 13.1793 117.652 12.5364C117.652 10.6241 111.434 11.9594 111.434 7.82163C111.434 5.99175 112.989 4.4751 115.531 4.4751C117.247 4.4751 118.672 5.00263 119.741 6.00823L118.462 7.75569C117.588 6.93138 116.421 6.55225 115.32 6.55225C114.349 6.55225 113.798 6.98088 113.798 7.64025C113.798 9.37125 120 8.20075 120 12.3056C120 14.3168 118.575 15.8335 115.676 15.8335Z",fill:"#030712"}))),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_22722_181577"},React.createElement("rect",{width:"120",height:"20",fill:"white"})))))},_j=p("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Fj={sm:{text:"text-sm",separator:"text-sm",separatorIconSize:16},md:{text:"text-base",separator:"text-base",separatorIconSize:18}},Bj=(0,d.createContext)({sizes:Fj.sm}),Vj=({children:e,size:t="sm"})=>{const n=Fj[t]||Fj.sm;return(0,u.jsx)(Bj.Provider,{value:{sizes:n},children:(0,u.jsx)("nav",{className:"flex m-0","aria-label":"Breadcrumb",children:(0,u.jsx)("ul",{className:"m-0 inline-flex items-center space-x-1 md:space-x-1",children:e})})})};Vj.displayName="Breadcrumb";const Wj=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});Wj.displayName="Breadcrumb.List";const Hj=({children:e})=>(0,u.jsx)("li",{className:"m-0 inline-flex items-center gap-2",children:e});Hj.displayName="Breadcrumb.Item";const qj=({href:e,children:t,className:n,as:r="a",...o})=>{const{sizes:i}=(0,d.useContext)(Bj);return(0,u.jsx)(r,{href:e,className:me(i.text,"px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline","focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm","transition-all duration-200",n),...o,children:t})};qj.displayName="Breadcrumb.Link";const Gj=({type:e})=>{const{sizes:t}=(0,d.useContext)(Bj),n={slash:(0,u.jsx)("span",{className:me("mx-1",t.separator),children:"/"}),arrow:(0,u.jsx)(gg,{size:t.separatorIconSize})};return(0,u.jsx)("li",{role:"separator",className:"flex items-center text-text-tertiary mx-2 p-0 list-none","aria-hidden":"true",children:n[e]||n.arrow})};Gj.displayName="Breadcrumb.Separator";const $j=()=>{const{sizes:e}=(0,d.useContext)(Bj);return(0,u.jsx)(_j,{className:"mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary",size:e.separatorIconSize+4})};$j.displayName="Breadcrumb.Ellipsis";const Zj=({children:e})=>{const{sizes:t}=(0,d.useContext)(Bj);return(0,u.jsx)("span",{className:me(t.text,"font-medium text-text-primary"),children:e})};Zj.displayName="Breadcrumb.Page",Vj.List=Wj,Vj.Item=Hj,Vj.Link=qj,Vj.Separator=Gj,Vj.Ellipsis=$j,Vj.Page=Zj;const Kj=function(e){var t=e.options;return React.createElement(Vj,null,React.createElement(Vj.List,null,t.map((function(e,t){switch(e.type){case"separator":return React.createElement(Vj.Separator,{key:t});case"ellipsis":return React.createElement(Vj.Item,{key:t},React.createElement(Vj.Ellipsis,null));case"page":return React.createElement(Vj.Item,{key:t},React.createElement(Vj.Page,null,e.text));default:return React.createElement(Vj.Item,{key:t},React.createElement(Vj.Link,null==e?void 0:e.linkProps,e.text))}}))))};function Xj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||Jj(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jj(e,t){if(e){if("string"==typeof e)return eT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eT(e,t):void 0}}function eT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tT=srfm_admin,nT=tT.site_url,rT=void 0===nT?"":nT,oT=tT.is_pro_active,iT=void 0!==oT&&oT,sT=tT.hide_promotions,aT=void 0!==sT&&sT,lT=tT.additional_header_nav_items,cT=void 0===lT?[]:lT,uT=[{slug:"sureforms_menu",text:(0,Su.__)("Dashboard","sureforms"),link:"".concat(rT,"/wp-admin/admin.php?page=sureforms_menu")},{slug:"sureforms_forms",text:(0,Su.__)("Forms","sureforms"),link:"".concat(rT,"/wp-admin/admin.php?page=sureforms_forms")},{slug:"sureforms_entries",text:(0,Su.__)("Entries","sureforms"),link:"".concat(rT,"/wp-admin/admin.php?page=sureforms_entries")},{slug:"sureforms_payments",text:(0,Su.__)("Payments","sureforms"),link:"".concat(rT,"/wp-admin/admin.php?page=sureforms_payments")}].concat(function(e){return function(e){if(Array.isArray(e))return eT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(cT),[{slug:"sureforms_form_settings",text:(0,Su.__)("Settings","sureforms"),link:"".concat(rT,"/wp-admin/admin.php?page=sureforms_form_settings&tab=general-settings")},{slug:"sureforms_learn",text:(0,Su.__)("Learn","sureforms"),link:"".concat(rT,"/wp-admin/admin.php?page=sureforms_learn")}]),dT=function(e){var t=e.title,n=e.icon,r=e.onClick,o=e.children;return React.createElement(gj.Item,{className:"p-1 gap-2"},React.createElement(Hx,{title:t,placement:"bottom",className:"z-999999",portalId:"srfm-dashboard-container-tooltip",variant:"dark"},o||React.createElement(De,{size:"xs",variant:"ghost",className:"p-0 focus:[box-shadow:none] [box-shadow:none] text-text-primary",onClick:r,icon:n})))},fT=function(){return mj({uniqueKey:"sureforms",rssFeedURL:"https://sureforms.com/whats-new/feed/",selector:"#srfm_whats_new",icon:(0,s.renderToString)(React.createElement(zj,{className:"size-4 m-1"})),flyout:{title:(0,Su.__)("What's New?","sureforms")},triggerButton:{icon:(0,s.renderToString)(React.createElement(zj,{className:"size-4 m-1 text-text-primary"}))}}),React.createElement(dT,{title:(0,Su.__)("What’s New","sureforms")},React.createElement("div",{id:"srfm_whats_new",className:"[&>a]:p-0.5 [&>a]:pl-0"}))};const hT=function(e){var t,n,r,o,i,a,l=e.breadCrumb,c=Xj((0,s.useState)(null),2),u=c[0],d=c[1],f=Xj((0,s.useState)((null===(t=srfm_admin)||void 0===t?void 0:t.is_license_active)||!1),2),h=f[0],m=f[1],g=(null===(n=srfm_admin)||void 0===n?void 0:n.is_first_form_created)||!1;return(0,s.useEffect)((function(){var e=new URLSearchParams(window.location.search),t=e.get("page");t||(t=e.get("post_type")),d(uT.find((function(e){return e.slug===t})))}),[]),(0,s.useEffect)((function(){var e=function(e){null!=e&&e.detail&&m(e.detail.is_license_active)};return window.addEventListener("srfm_license_status_updated",e),function(){window.removeEventListener("srfm_license_status_updated",e)}}),[]),React.createElement("div",{className:"top-8 z-[1]"},!iT&&!h&&"sureforms_menu"===(null==u?void 0:u.slug)&&g&&(null===(r=srfm_admin)||void 0===r?void 0:r.check_three_days_threshold)&&React.createElement(Rj,null),React.createElement(gj,{className:"py-0 px-4 min-h-0 h-14 gap-4 shadow-sm bg-background-primary/75 backdrop-blur-[5px]"},React.createElement(gj.Left,{className:"gap-3"},React.createElement(gj.Item,{className:"w-auto h-auto lg:hidden"},React.createElement(kj,null,React.createElement(kj.Toggle,{className:"size-6"}),React.createElement(kj.Options,null,uT.map((function(e){return React.createElement(kj.Option,{key:e.slug,active:(null==u?void 0:u.slug)===e.slug,href:e.link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_self"},e.text)})),!iT&&!h&&React.createElement(kj.Option,{href:uT[0].link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_blank",className:"text-link-primary gap-1"},(0,Su.__)("Upgrade SureForms","sureforms")," ",React.createElement(Sj,{className:"!size-5"}))))),React.createElement(gj.Item,null,l?React.createElement(Pj,null):React.createElement(Gb,null)),l&&!(null==l||!l.length)&&React.createElement(gj.Item,{className:"[&_li]:m-0 -ml-1"},React.createElement(Kj,{options:l}))),React.createElement(gj.Middle,{align:"left",className:"h-full hidden lg:flex"},React.createElement(gj.Item,null,!l&&React.createElement("nav",{className:"flex items-center gap-4 h-full"},uT.map((function(e){return React.createElement("a",{className:cx("h-full text-text-secondary text-sm font-medium no-underline px-1 content-center relative focus:outline-none hover:text-text-primary focus:[box-shadow:none]",(null==u?void 0:u.slug)===(null==e?void 0:e.slug)&&'text-text-primary before:content-[""] before:absolute before:h-px before:bg-border-interactive before:bottom-0 before:inset-x-0'),href:e.link,key:e.slug},e.text)})))),!iT&&!h&&React.createElement(gj.Item,null,React.createElement(De,{icon:React.createElement(Sj,{className:"!size-5"}),iconPosition:"right",variant:"link",size:"sm",className:"h-full text-link-primary text-sm font-semibold no-underline hover:no-underline hover:text-link-primary-hover px-1 content-center [box-shadow:none] focus:[box-shadow:none] focus:outline-none",onClick:function(){var e,t;return window.open(lx((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-header-cta"),"_blank","noreferrer")}},(0,Su.__)("Upgrade SureForms","sureforms")))),React.createElement(gj.Right,null,React.createElement(gj.Item,{className:"flex gap-3 items-center"},React.createElement(Zm,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(o=srfm_admin)||void 0===o?void 0:o.plugin_version),React.createElement(Um,{label:(0,Su.__)("Core","sureforms"),className:"text-text-tertiary",size:"xs",type:"rounded",variant:"neutral"}),iT&&React.createElement(React.Fragment,null,React.createElement("span",{className:"text-text-tertiary"},"|"),React.createElement(Zm,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(i=srfm_admin)||void 0===i?void 0:i.pro_plugin_version),React.createElement(Um,{label:null===(a=srfm_admin)||void 0===a?void 0:a.pro_plugin_name.split(" ")[1],size:"xs",variant:"inverse",type:"rounded"}))),(iT||h)&&React.createElement(gj.Item,null,React.createElement(De,{variant:"ghost",className:"p-0 hover:bg-transparent focus:[box-shadow:none] [box-shadow:none]",onClick:function(){h||window.open("".concat(rT,"/wp-admin/admin.php?page=sureforms_form_settings&tab=account-settings"),"_self","noopener noreferrer")},icon:React.createElement(Um,{label:h?(0,Su.__)("Activated","sureforms"):(0,Su.__)("Unlicensed","sureforms"),size:"xs",variant:h?"green":"red"})})),React.createElement(dT,{title:(0,Su.__)("Knowledge Base","sureforms"),icon:React.createElement(Lj,{className:"size-4"}),onClick:function(){return window.open("https://sureforms.com/docs/","_blank","noopener noreferrer")}}),!aT&&React.createElement(fT,null))))},mT=({design:e="inline",theme:t="light",variant:n="neutral",className:r="",title:o="",content:i="",icon:s=null,onClose:a,action:l={label:"",onClick:()=>{},type:"link"}})=>{const c=()=>{"function"==typeof a&&a()},d={neutral:"ring-alert-border-neutral bg-alert-background-neutral",custom:"ring-alert-border-neutral bg-alert-background-neutral",info:"ring-alert-border-info bg-alert-background-info",success:"ring-alert-border-green bg-alert-background-green",warning:"ring-alert-border-warning bg-alert-background-warning",error:"ring-alert-border-danger bg-alert-background-danger"},f="bg-background-inverse ring-background-inverse",h={light:"text-icon-secondary",dark:"text-icon-inverse"},m=()=>{l?.onClick?.(c)};return"stack"===e?(0,u.jsx)("div",{className:me("flex items-center justify-start p-4 gap-2 relative ring-1 rounded-md shadow-lg","dark"===t?f:d?.[n],r),children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:be({variant:n,icon:s,theme:t})}),(0,u.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-7",children:[Te({title:o,theme:t}),Ee({content:i,theme:t}),l?.label&&"function"==typeof l?.onClick&&(0,u.jsx)("div",{className:"mt-2.5",children:je({actionLabel:l?.label,actionType:l?.type??"button",onAction:m,theme:t})})]}),(0,u.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,u.jsx)("button",{className:me("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",h[t]??h.light),onClick:()=>c(),"aria-label":"Close alert",children:(0,u.jsx)(M,{})})})]})}):(0,u.jsxs)("div",{className:me("flex items-center justify-between p-3 gap-2 relative ring-1 rounded-lg shadow-lg","dark"===t?f:d?.[n],r),children:[(0,u.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:be({variant:n,icon:s,theme:t})}),(0,u.jsxs)("p",{className:"content-start space-x-1 my-0 mr-10 px-1",children:[Te({title:o,theme:t,inline:!0}),Ee({content:i,theme:t,inline:!0})]})]}),(0,u.jsxs)("div",{className:"flex h-full justify-start gap-4 [&_svg]:size-4",children:[l?.label&&"function"==typeof l?.onClick&&(0,u.jsx)("div",{className:"self-center flex h-5",children:je({actionLabel:l?.label,actionType:l?.type??"button",onAction:m,theme:t})}),"function"==typeof a&&(0,u.jsx)("button",{className:me("self-start bg-transparent m-0 border-none p-0.5 focus:outline-none active:outline-none cursor-pointer size-5",h[t]??h.light),onClick:()=>c(),"aria-label":"Close alert",children:(0,u.jsx)(M,{})})]})]})},gT=Yu("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),pT=Yu("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),MT=Yu("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),yT=Yu("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function NT(e){return NT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NT(e)}function xT(){xT=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=D(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new b(o||[])),!0),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(j([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,s,a){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==NT(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function b(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function j(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(NT(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},N(y),l(y,a,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=j,b.prototype={constructor:b,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:j(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function DT(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function vT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wT={"repair-entries-table":function(){return my()({path:"/sureforms/v1/database/repair-entries-table",method:"POST"})}},bT=function(e){switch(e){case"error":return React.createElement(gT,{className:"!size-6"});case"warning":return React.createElement(pT,{className:"!size-6"});case"success":return React.createElement(MT,{className:"!size-6"});default:return React.createElement(yT,{className:"!size-6"})}},jT=function(e){switch(e){case"error":return"shadow-none bg-alert-background-danger";case"warning":return"shadow-none bg-alert-background-warning";case"success":return"shadow-none bg-alert-background-success";default:return"shadow-none bg-alert-background-info"}},TT=function(e){var t=e.variant,n=void 0===t?"info":t,r=e.message,o=e.title,i=e.actions,a=void 0===i?[]:i,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.useState)({busy:!1,error:""}),2),c=l[0],u=l[1],d=(0,s.useRef)(!1),f=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){DT(i,r,o,s,a,"next",e)}function a(e){DT(i,r,o,s,a,"throw",e)}s(void 0)}))}}(xT().mark((function e(t){var n,r;return xT().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=wT[t.action]){e.next=4;break}return t.url&&("_blank"===t.target?window.open(t.url,"_blank","noopener,noreferrer"):window.location.href=t.url),e.abrupt("return");case 4:if(!d.current){e.next=6;break}return e.abrupt("return");case 6:return d.current=!0,u({busy:!0,error:""}),e.prev=8,e.next=11,n();case 11:(r=new URL(window.location.href)).searchParams.set("srfm_db_repair","done"),window.location.assign(r.toString()),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(8),d.current=!1,u({busy:!1,error:(null===e.t0||void 0===e.t0?void 0:e.t0.message)||(0,Su.__)("Something went wrong. Please try again.","sureforms")});case 20:case"end":return e.stop()}}),e,null,[[8,16]])})));return function(t){return e.apply(this,arguments)}}(),h=React.createElement("span",{className:"flex flex-col gap-3.5"},React.createElement("span",null,r,a.length>0&&a.map((function(e,t){return React.createElement("span",{key:t}," ",React.createElement(De,{onClick:function(){return f(e)},disabled:c.busy,"aria-busy":c.busy,variant:"link",size:"xs",className:"inline-flex text-link-primary p-0 [&>span]:p-0"},c.busy&&e.action?(0,Su.__)("Working…","sureforms"):e.label))}))),React.createElement("span",{role:"status","aria-live":"polite",className:"sr-only"},c.busy?(0,Su.__)("Working…","sureforms"):""),c.error&&React.createElement("span",{role:"alert",className:"text-text-error"},c.error));return React.createElement(mT,{content:h,icon:bT(n),title:o||null,variant:n,className:jT(n)})};const ET=function(e){var t,n=e.currentPage,r=void 0===n?"all":n,o=(null===(t=window.srfm_admin)||void 0===t?void 0:t.notices)||[];if(!o||0===o.length)return null;var i=o.filter((function(e){return!(e.pages&&!e.pages.includes("all"))||e.pages.includes(r)}));return 0===i.length?null:React.createElement("div",{className:"flex flex-col gap-4"},i.map((function(e){return React.createElement(TT,{key:e.id,variant:e.variant||"info",message:e.message,title:e.title,actions:e.actions||[]})})))};var IT=function(e){var t=e.className;return React.createElement("div",{className:cx("z-50 relative",t)},React.createElement(hT,null))};const AT=function(){var e;return React.createElement(React.Fragment,null,React.createElement(IT,null),(null===(e=window.srfm_admin)||void 0===e||null===(e=e.notices)||void 0===e?void 0:e.length)>0&&React.createElement("div",{className:"px-8 py-4"},React.createElement(ET,{currentPage:"sureforms_entries"})),React.createElement(Mu,null))};var OT=function(e){var t=e.className,n=su().id;return React.createElement("div",{className:cx("z-50 relative",t)},React.createElement(hT,{breadCrumb:[{type:"separator"},{text:(0,Su.__)("Entries","sureforms"),linkProps:{as:Au,to:"/"}},{type:"separator"},{text:(0,Su.sprintf)((0,Su.__)("Entry #%s","sureforms"),n||""),type:"page"}]}))};const kT=function(){return React.createElement(React.Fragment,null,React.createElement(OT,null),React.createElement(Mu,null))};var zT=function(){return React.createElement(Tu,{basename:"/",future:{v7_startTransition:!0,v7_relativeSplatPath:!0}},React.createElement(xu,null,React.createElement(yu,{path:"/",element:React.createElement(AT,null)},React.createElement(yu,{index:!0,element:React.createElement(Zv,null)})),React.createElement(yu,{path:"/entry/:id",element:React.createElement(kT,null)},React.createElement(yu,{index:!0,element:React.createElement(Wb,null)}))))},ST=new class{#$;#N;#m;#Z;#K;#X;#J;#ee;constructor(e={}){this.#$=e.queryCache||new nc,this.#N=e.mutationCache||new oc,this.#m=e.defaultOptions||{},this.#Z=new Map,this.#K=new Map,this.#X=0}mount(){this.#X++,1===this.#X&&(this.#J=Vl.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#$.onFocus())})),this.#ee=Wl.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#$.onOnline())})))}unmount(){this.#X--,0===this.#X&&(this.#J?.(),this.#J=void 0,this.#ee?.(),this.#ee=void 0)}isFetching(e){return this.#$.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#N.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#$.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#$.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(vl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#$.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#$.get(r.queryHash),i=o?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==s)return this.#$.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Fl.batch((()=>this.#$.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#$.get(t.queryHash)?.state}removeQueries(e){const t=this.#$;Fl.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#$;return Fl.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries({type:"active",...e},t))))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Fl.batch((()=>this.#$.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Nl).catch(Nl)}invalidateQueries(e,t={}){return Fl.batch((()=>(this.#$.findAll(e).forEach((e=>{e.invalidate()})),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Fl.batch((()=>this.#$.findAll(e).filter((e=>!e.isDisabled()&&!e.isStatic())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Nl)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Nl)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#$.build(this,t);return n.isStaleByTime(vl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nl).catch(Nl)}fetchInfiniteQuery(e){return e.behavior=sc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nl).catch(Nl)}ensureInfiniteQueryData(e){return e.behavior=sc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wl.isOnline()?this.#N.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#$}getMutationCache(){return this.#N}getDefaultOptions(){return this.#m}setDefaultOptions(e){this.#m=e}setQueryDefaults(e,t){this.#Z.set(El(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#Z.values()],n={};return t.forEach((t=>{Il(e,t.queryKey)&&Object.assign(n,t.defaultOptions)})),n}setMutationDefaults(e,t){this.#K.set(El(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#K.values()],n={};return t.forEach((t=>{Il(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#m.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Tl(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Rl&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#m.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#$.clear(),this.#N.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!0,retry:1,staleTime:3e5}}});window.srfm_query_client=ST,window.srfm_toast=c,i()((function(){var e=document.getElementById("srfm-entries-root"),t=(0,s.createRoot)(e);t&&t.render(React.createElement(fc,{client:ST},React.createElement(zT,null),React.createElement(gl,{className:"z-999999"})))}))})()})(); | |