(()=>{"use strict";var e={146:(e,t,r)=>{var n=r(363),a={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},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var a=f(r);a&&a!==m&&e(t,a,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),p=l(r),v=0;v{var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,p=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case p:case l:return e;default:return t}}case a:return t}}}function E(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=v,t.Memo=p,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||x(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===p},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},363:(e,t,r)=>{e.exports=r(799)},20:(e,t,r)=>{var n=r(609),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},848:(e,t,r)=>{e.exports=r(20)},609:e=>{e.exports=window.React}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=r(609);const t=window.ReactDOM;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));const f=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,r,a){return void 0===r&&(r=[]),void 0===a&&(a={}),e.map(((e,o)=>{let s=[...r,o],l="string"==typeof e.id?e.id:s.join("-");if(i(!0!==e.index||!e.children,"Cannot specify children on an index route"),i(!a[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=n({},e,t(e),{id:l});return a[l]=r,r}{let r=n({},e,t(e),{id:l,children:void 0});return a[l]=r,e.children&&(r.children=m(e.children,t,s,a)),r}}))}function p(e,t,r){void 0===r&&(r="/");let n=_(("string"==typeof t?d(t):t).pathname||"/",r);if(null==n)return null;let a=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};s.relativePath.startsWith("/")&&(i(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let l=D([n,s.relativePath]),c=r.concat(s);e.children&&e.children.length>0&&(i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:L(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of g(e.path))a(e,t,r);else a(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=g(n.join("/")),s=[];return s.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const y=/^:[\w-]+$/,b=3,w=2,x=1,E=10,C=-2,S=e=>"*"===e;function L(e,t){let r=e.split("/"),n=r.length;return r.some(S)&&(n+=C),t&&(n+=w),r.filter((e=>!S(e))).reduce(((e,t)=>e+(y.test(t)?b:""===t?x:E)),n)}function R(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!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 _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function M(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function P(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function T(e,t){let r=P(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function O(e,t,r,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=d(e):(o=n({},e),i(!o.pathname||!o.pathname.includes("?"),M("?","pathname","search",o)),i(!o.pathname||!o.pathname.includes("#"),M("#","pathname","hash",o)),i(!o.search||!o.search.includes("#"),M("#","search","hash",o)));let s,l=""===e||""===o.pathname,c=l?"/":o.pathname;if(null==c)s=r;else{let e=t.length-1;if(!a&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?d(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:z(n),hash:I(a)}}(o,s),h=c&&"/"!==c&&c.endsWith("/"),f=(l||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!h&&!f||(u.pathname+="/"),u}const D=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class H{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function j(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const U=["post","put","patch","delete"],F=new Set(U),$=["get",...U],V=new Set($),B=new Set([301,302,303,307,308]),G=new Set([307,308]),W={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),X="remix-router-transitions";function J(e,t,r,n,a,o,i,s){let l,c;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){c=e;break}}else l=t,c=t[t.length-1];let d=O(a||".",T(l,o),_(e.pathname,r)||e.pathname,"path"===s);return null==a&&(d.search=e.search,d.hash=e.hash),null!=a&&""!==a&&"."!==a||!c||!c.route.index||Le(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(d.pathname="/"===d.pathname?r:D([r,d.pathname])),u(d)}function Q(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!V.has(a.toLowerCase())))return{path:r,error:pe(405,{method:n.formMethod})};var a;let o,s,l=()=>({path:r,error:pe(400,{type:"invalid-body"})}),c=n.formMethod||"get",h=e?c.toUpperCase():c.toLowerCase(),f=ge(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ee(h))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:h,formAction:f,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ee(h))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:h,formAction:f,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(i("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=le(n.formData),s=n.formData;else if(n.body instanceof FormData)o=le(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=ce(o);else if(null==n.body)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=ce(o)}catch(e){return l()}let m={formMethod:h,formAction:f,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ee(m.formMethod))return{path:r,submission:m};let p=d(r);return t&&p.search&&Le(p.search)&&o.append("index",""),p.search="?"+o,{path:u(p),submission:m}}function ee(e,t,r,a,o,i,s,l,c,u,d,h,f,m,v,g){let y=g?be(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),w=e.createURL(o),x=g&&be(g[1])?g[0]:void 0,E=x?function(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}(r,x):r,C=g?g[1].statusCode:void 0,S=s&&C&&C>=400,L=E.filter(((e,r)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return!("function"==typeof o.loader&&!o.loader.hydrate&&(void 0!==t.loaderData[o.id]||t.errors&&void 0!==t.errors[o.id]));if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||c.some((t=>t===e.route.id)))return!0;let s=t.matches[r],u=e;return re(e,n({currentUrl:b,currentParams:s.params,nextUrl:w,nextParams:u.params},a,{actionResult:y,unstable_actionStatus:C,defaultShouldRevalidate:!S&&(l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||te(s,u))}))})),R=[];return h.forEach(((e,o)=>{if(i||!r.some((t=>t.route.id===e.routeId))||d.has(o))return;let s=p(m,e.path,v);if(!s)return void R.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(o),h=Re(s,e.path),g=!1;g=!f.has(o)&&(!!u.includes(o)||(c&&"idle"!==c.state&&void 0===c.data?l:re(h,n({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},a,{actionResult:y,unstable_actionStatus:C,defaultShouldRevalidate:!S&&l})))),g&&R.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})})),[L,R]}function te(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function re(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function ne(e,t,r){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let o=r[e.id];i(o,"No route found in manifest");let l={};for(let e in a){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;s(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||f.has(e)||(l[e]=a[e])}Object.assign(o,l),Object.assign(o,n({},t(o),{lazy:void 0}))}function ae(e){return Promise.all(e.matches.map((e=>e.resolve())))}function oe(e,t,r,n,a,o){let s=e.headers.get("Location");if(i(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!q.test(s)){let i=n.slice(0,n.findIndex((e=>e.route.id===r))+1);s=J(new URL(t.url),i,a,!0,s,o),e.headers.set("Location",s)}return e}function ie(e,t,r){if(q.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=_(a.pathname,r);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function se(e,t,r,n){let a=e.createURL(ge(t)).toString(),o={signal:r};if(n&&Ee(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=le(n.formData):o.body=n.formData}return new Request(a,o)}function le(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ce(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ue(e,t,r,a,o,s,l,c){let{loaderData:u,errors:d}=function(e,t,r,n,a,o){let s,l={},c=null,u=!1,d={},h=n&&be(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let f=t[n].route.id;if(i(!we(r),"Cannot handle redirect results in processLoaderData"),be(r)){let t=r.error;if(void 0!==h&&(t=h,h=void 0),c=c||{},o)c[f]=t;else{let r=fe(e,f);null==c[r.route.id]&&(c[r.route.id]=t)}l[f]=void 0,u||(u=!0,s=j(r.error)?r.error.status:500),r.headers&&(d[f]=r.headers)}else ye(r)?(a.set(f,r.deferredData),l[f]=r.deferredData.data,null==r.statusCode||200===r.statusCode||u||(s=r.statusCode),r.headers&&(d[f]=r.headers)):(l[f]=r.data,r.statusCode&&200!==r.statusCode&&!u&&(s=r.statusCode),r.headers&&(d[f]=r.headers))})),void 0!==h&&n&&(c={[n[0]]:h},l[n[0]]=void 0),{loaderData:l,errors:c,statusCode:s||200,loaderHeaders:d}}(t,r,a,o,c,!1);for(let t=0;te.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function me(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pe(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",s='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new H(e||500,i,new Error(s),!0)}function ve(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(we(r))return{result:r,idx:t}}}function ge(e){return u(n({},"string"==typeof e?d(e):e,{hash:""}))}function ye(e){return e.type===h.deferred}function be(e){return e.type===h.error}function we(e){return(e&&e.type)===h.redirect}function xe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ee(e){return F.has(e.toLowerCase())}async function Ce(e,t,r,n,a,o){for(let s=0;se.route.id===c.route.id)),d=null!=u&&!te(u,c)&&void 0!==(o&&o[c.route.id]);if(ye(l)&&(a||d)){let e=n[s];i(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Se(l,e,a).then((e=>{e&&(r[s]=e||r[s])}))}}}async function Se(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(e){return{type:h.error,error:e}}return{type:h.data,data:e.deferredData.data}}}function Le(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Re(e,t){let r="string"==typeof t?d(t).search:t.search;if(e[e.length-1].route.index&&Le(r||""))return e[e.length-1];let n=P(e);return n[n.length-1]}function ke(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Ae(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _e(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Me(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let a=e.useCallback((function(e,a){void 0===a&&(a={}),n.current&&("number"==typeof e?t.navigate(e):t.navigate(e,Pe({fromRouteId:r},a)))}),[t,r]);return a}():function(){He()||i(!1);let t=e.useContext(Te),{basename:r,future:n,navigator:a}=e.useContext(De),{matches:o}=e.useContext(ze),{pathname:s}=je(),l=JSON.stringify(T(o,n.v7_relativeSplatPath)),c=e.useRef(!1);return Ue((()=>{c.current=!0})),e.useCallback((function(e,n){if(void 0===n&&(n={}),!c.current)return;if("number"==typeof e)return void a.go(e);let o=O(e,JSON.parse(l),s,"path"===n.relative);null==t&&"/"!==r&&(o.pathname="/"===o.pathname?r:D([r,o.pathname])),(n.replace?a.replace:a.push)(o,n.state,n)}),[r,a,l,s,t])}()}function $e(t,r){let{relative:n}=void 0===r?{}:r,{future:a}=e.useContext(De),{matches:o}=e.useContext(ze),{pathname:i}=je(),s=JSON.stringify(T(o,a.v7_relativeSplatPath));return e.useMemo((()=>O(t,JSON.parse(s),i,"path"===n)),[t,s,i,n])}function Ve(t,r,n,o){He()||i(!1);let{navigator:s}=e.useContext(De),{matches:l}=e.useContext(ze),c=l[l.length-1],u=c?c.params:{},h=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let f,m=je();if(r){var v;let e="string"==typeof r?d(r):r;"/"===h||(null==(v=e.pathname)?void 0:v.startsWith(h))||i(!1),f=e}else f=m;let g=f.pathname||"/",y=g;if("/"!==h){let e=h.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=p(t,{pathname:y}),w=function(t,r,n,a){var o;if(void 0===r&&(r=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==t){var s;if(null==(s=n)||!s.errors)return null;t=n.matches}let l=t,c=null==(o=n)?void 0:o.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||i(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((t,a,o)=>{let i,s=!1,h=null,f=null;var m;n&&(i=c&&a.route.id?c[a.route.id]:void 0,h=a.route.errorElement||Ge,u&&(d<0&&0===o?(Xe[m="route-fallback"]||(Xe[m]=!0),s=!0,f=null):d===o&&(s=!0,f=a.route.hydrateFallbackElement||null)));let p=r.concat(l.slice(0,o+1)),v=()=>{let r;return r=i?h:s?f:a.route.Component?e.createElement(a.route.Component,null):a.route.element?a.route.element:t,e.createElement(Ye,{match:a,routeContext:{outlet:t,matches:p,isDataRoute:null!=n},children:r})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?e.createElement(We,{location:n.location,revalidation:n.revalidation,component:h,error:i,children:v(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):v()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:D([h,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:D([h,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,o);return r&&w?e.createElement(Ne.Provider,{value:{location:Pe({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:a.Pop}},w):w}function Be(){let t=function(){var t;let r=e.useContext(Ie),n=function(t){let r=e.useContext(Oe);return r||i(!1),r}(qe.UseRouteError),a=Ke(qe.UseRouteError);return void 0!==r?r:null==(t=n.errors)?void 0:t[a]}(),r=j(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:a},n):null,null)}const Ge=e.createElement(Be,null);class We extends e.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?e.createElement(ze.Provider,{value:this.props.routeContext},e.createElement(Ie.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ye(t){let{routeContext:r,match:n,children:a}=t,o=e.useContext(Te);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(ze.Provider,{value:r},a)}var Ze=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ze||{}),qe=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}(qe||{});function Ke(t){let r=function(t){let r=e.useContext(ze);return r||i(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||i(!1),n.route.id}const Xe={};function Je(t){let{basename:r="/",children:n=null,location:o,navigationType:s=a.Pop,navigator:l,static:c=!1,future:u}=t;He()&&i(!1);let h=r.replace(/^\/*/,"/"),f=e.useMemo((()=>({basename:h,navigator:l,static:c,future:Pe({v7_relativeSplatPath:!1},u)})),[h,u,l,c]);"string"==typeof o&&(o=d(o));let{pathname:m="/",search:p="",hash:v="",state:g=null,key:y="default"}=o,b=e.useMemo((()=>{let e=_(m,h);return null==e?null:{location:{pathname:e,search:p,hash:v,state:g,key:y},navigationType:s}}),[h,m,p,v,g,y,s]);return null==b?null:e.createElement(De.Provider,{value:f},e.createElement(Ne.Provider,{children:n,value:b}))}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}e.startTransition,new Promise((()=>{})),e.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const tt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],rt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function nt(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new H(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const at=e.createContext({isTransitioning:!1}),ot=e.createContext(new Map),it=e.startTransition,st=t.flushSync;function lt(e){st?st(e):e()}e.useId;class ct{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function ut(e){let{routes:t,future:r,state:n}=e;return Ve(t,void 0,n,r)}const dt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ht=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ft=e.forwardRef((function(t,r){let n,{onClick:a,relative:o,reloadDocument:s,replace:l,state:c,target:d,to:h,preventScrollReset:f,unstable_viewTransition:m}=t,p=et(t,tt),{basename:v}=e.useContext(De),g=!1;if("string"==typeof h&&ht.test(h)&&(n=h,dt))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),r=_(t.pathname,v);t.origin===e.origin&&null!=r?h=r+t.search+t.hash:g=!0}catch(e){}let y=function(t,r){let{relative:n}=void 0===r?{}:r;He()||i(!1);let{basename:a,navigator:o}=e.useContext(De),{hash:s,pathname:l,search:c}=$e(t,{relative:n}),u=l;return"/"!==a&&(u="/"===l?a:D([a,l])),o.createHref({pathname:u,search:c,hash:s})}(h,{relative:o}),b=function(t,r){let{target:n,replace:a,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:l}=void 0===r?{}:r,c=Fe(),d=je(),h=$e(t,{relative:s});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let r=void 0!==a?a:u(d)===u(h);c(t,{replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:l})}}),[d,c,h,a,o,n,t,i,s,l])}(h,{replace:l,state:c,target:d,preventScrollReset:f,relative:o,unstable_viewTransition:m});return e.createElement("a",Qe({},p,{href:n||y,onClick:g||s?a:function(e){a&&a(e),e.defaultPrevented||b(e)},ref:r,target:d}))})),mt=e.forwardRef((function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:s=!1,style:l,to:c,unstable_viewTransition:u,children:d}=t,h=et(t,rt),f=$e(c,{relative:h.relative}),m=je(),p=e.useContext(Oe),{navigator:v,basename:g}=e.useContext(De),y=null!=p&&function(t,r){void 0===r&&(r={});let n=e.useContext(at);null==n&&i(!1);let{basename:a}=function(t){let r=e.useContext(Te);return r||i(!1),r}(pt.useViewTransitionState),o=$e(t,{relative:r.relative});if(!n.isTransitioning)return!1;let s=_(n.currentLocation.pathname,a)||n.currentLocation.pathname,l=_(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=k(o.pathname,l)||null!=k(o.pathname,s)}(f)&&!0===u,b=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,w=m.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;a||(w=w.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase()),x&&g&&(x=_(x,g)||x);const E="/"!==b&&b.endsWith("/")?b.length-1:b.length;let C,S=w===b||!s&&w.startsWith(b)&&"/"===w.charAt(E),L=null!=x&&(x===b||!s&&x.startsWith(b)&&"/"===x.charAt(b.length)),R={isActive:S,isPending:L,isTransitioning:y},A=S?n:void 0;C="function"==typeof o?o(R):[o,S?"active":null,L?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let M="function"==typeof l?l(R):l;return e.createElement(ft,Qe({},h,{"aria-current":A,className:C,ref:r,style:M,to:c,unstable_viewTransition:u}),"function"==typeof d?d(R):d)}));var pt,vt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pt||(pt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(vt||(vt={}));const gt=window.wp.element,yt=window.wp.i18n,bt=window.wp.components,wt=window.wp.apiFetch;var xt=r.n(wt);function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Ot(Vt,--Ft):0,jt--,10===$t&&(jt=1,Ht--),$t}function Yt(){return $t=Ft2||Xt($t)>3?"":" "}function rr(e,t){for(;--t&&Yt()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return Kt(e,qt()+(t<6&&32==Zt()&&32==Yt()))}function nr(e){for(;Yt();)switch($t){case e:return Ft;case 34:case 39:34!==e&&39!==e&&nr($t);break;case 40:41===e&&nr(e);break;case 92:Yt()}return Ft}function ar(e,t){for(;Yt()&&e+$t!==57&&(e+$t!==84||47!==Zt()););return"/*"+Kt(t,Ft-1)+"*"+At(47===e?e:Yt())}function or(e){for(;!Xt(Zt());)Yt();return Kt(e,Ft)}var ir="-ms-",sr="-moz-",lr="-webkit-",cr="comm",ur="rule",dr="decl",hr="@keyframes";function fr(e,t){for(var r="",n=zt(e),a=0;a0&&Nt(C)-d&&It(f>32?br(C+";",n,r,d-1):br(Pt(C," ","")+";",n,r,d-2),l);break;case 59:C+=";";default:if(It(E=gr(C,t,r,c,u,a,s,b,w=[],x=[],d),o),123===y)if(0===u)vr(C,t,E,E,w,o,d,s,x);else switch(99===h&&110===Ot(C,3)?100:h){case 100:case 108:case 109:case 115:vr(e,E,E,n&&It(gr(e,E,E,0,0,a,s,b,a,w=[],d),x),a,x,d,s,n?w:x);break;default:vr(C,E,E,E,[""],x,0,s,x)}}c=u=f=0,p=g=1,b=C="",d=i;break;case 58:d=1+Nt(C),f=m;default:if(p<1)if(123==y)--p;else if(125==y&&0==p++&&125==Wt())continue;switch(C+=At(y),y*p){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Nt(C)-1)*g,g=1;break;case 64:45===Zt()&&(C+=er(Yt())),h=Zt(),u=d=Nt(b=C+=or(qt())),y++;break;case 45:45===m&&2==Nt(C)&&(p=0)}}return o}function gr(e,t,r,n,a,o,i,s,l,c,u){for(var d=a-1,h=0===a?o:[""],f=zt(h),m=0,p=0,v=0;m0?h[g]+" "+y:Pt(y,/&\f/g,h[g])))&&(l[v++]=b);return Bt(e,t,r,0===a?ur:s,l,c,u)}function yr(e,t,r){return Bt(e,t,r,cr,At($t),Dt(e,2,-2),0)}function br(e,t,r,n){return Bt(e,t,r,dr,Dt(e,0,n),Dt(e,n+1,-1),n)}var wr=function(e,t,r){for(var n=0,a=0;n=a,a=Zt(),38===n&&12===a&&(t[r]=1),!Xt(a);)Yt();return Kt(e,Ft)},xr=new WeakMap,Er=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=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)||xr.get(r))&&!n){xr.set(e,!0);for(var a=[],o=function(e,t){return Qt(function(e,t){var r=-1,n=44;do{switch(Xt(n)){case 0:38===n&&12===Zt()&&(t[r]=1),e[r]+=wr(Ft-1,t,r);break;case 2:e[r]+=er(n);break;case 4:if(44===n){e[++r]=58===Zt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=At(n)}}while(n=Yt());return e}(Jt(e),t))}(t,a),i=r.props,s=0,l=0;s6)switch(Ot(e,t+1)){case 109:if(45!==Ot(e,t+4))break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+sr+(108==Ot(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Tt(e,"stretch")?Sr(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ot(e,t+1))break;case 6444:switch(Ot(e,Nt(e)-3-(~Tt(e,"!important")&&10))){case 107:return Pt(e,":",":"+lr)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(45===Ot(e,14)?"inline-":"")+"box$3$1"+lr+"$2$3$1"+ir+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return lr+e+ir+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+ir+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+ir+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+ir+e+e}return e}var Lr=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case dr:e.return=Sr(e.value,e.length);break;case hr:return fr([Gt(e,{value:Pt(e.value,"@","@"+lr)})],n);case ur: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 fr([Gt(e,{props:[Pt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return fr([Gt(e,{props:[Pt(t,/:(plac\w+)/,":"+lr+"input-$1")]}),Gt(e,{props:[Pt(t,/:(plac\w+)/,":-moz-$1")]}),Gt(e,{props:[Pt(t,/:(plac\w+)/,ir+"input-$1")]})],n)}return""}))}}],Rr=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 n,a,o=e.stylisPlugins||Lr,i={},s=[];n=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=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+l;return{name:c,styles:a,next:Fr}}var Br=!!e.useInsertionEffect&&e.useInsertionEffect,Gr=Br||function(e){return e()},Wr=(Br||e.useLayoutEffect,"undefined"!=typeof document),Yr=e.createContext("undefined"!=typeof HTMLElement?Rr({key:"css"}):null),Zr=(Yr.Provider,function(t){return(0,e.forwardRef)((function(r,n){var a=(0,e.useContext)(Yr);return t(r,a,n)}))});Wr||(Zr=function(t){return function(r){var n=(0,e.useContext)(Yr);return null===n?(n=Rr({key:"css"}),e.createElement(Yr.Provider,{value:n},t(r,n))):t(r,n)}});var qr=e.createContext({}),Kr=function(){return e.useContext(qr)},Xr=kr((function(e){return kr((function(t){return function(e,t){return"function"==typeof t?t(e):Et({},e,t)}(e,t)}))})),Jr=function(t){var r=e.useContext(qr);return t.theme!==r&&(r=Xr(r)(t.theme)),e.createElement(qr.Provider,{value:r},t.children)},Qr={}.hasOwnProperty,en="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tn=function(e,t){var r={};for(var n in t)Qr.call(t,n)&&(r[n]=t[n]);return r[en]=e,r},rn=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;_r(r,n,a);var o=Gr((function(){return Mr(r,n,a)}));if(!Wr&&void 0!==o){for(var i,s=n.name,l=n.next;void 0!==l;)s+=" "+l.name,l=l.next;return e.createElement("style",((i={})["data-emotion"]=r.key+" "+s,i.dangerouslySetInnerHTML={__html:o},i.nonce=r.sheet.nonce,i))}return null},nn=Zr((function(t,r,n){var a=t.css;"string"==typeof a&&void 0!==r.registered[a]&&(a=r.registered[a]);var o=t[en],i=[a],s="";"string"==typeof t.className?s=Ar(r.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Vr(i,void 0,e.useContext(qr));s+=r.key+"-"+l.name;var c={};for(var u in t)Qr.call(t,u)&&"css"!==u&&u!==en&&(c[u]=t[u]);return c.className=s,n&&(c.ref=n),e.createElement(e.Fragment,null,e.createElement(rn,{cache:r,serialized:l,isStringTag:"string"==typeof o}),e.createElement(o,c))})),an=Lt,on=function(e){return"theme"!==e},sn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?an:on},ln=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},cn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _r(t,r,n),Gr((function(){return Mr(t,r,n)})),null},un=function t(r,n){var a,o,i=r.__emotion_real===r,s=i&&r.__emotion_base||r;void 0!==n&&(a=n.label,o=n.target);var l=ln(r,n,i),c=l||sn(s),u=!c("as");return function(){var d=arguments,h=i&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==a&&h.push("label:"+a+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{h.push(d[0][0]);for(var f=d.length,m=1;mt?e.colors.surface[t]:e.colors.surface.primary),";"),Tn=(0,gt.createContext)(void 0),On=(0,gt.forwardRef)((function(e,t){const{components:{surface:r}}=Kr(),{variant:n=An.PRIMARY}=e,a=(0,gt.useMemo)((()=>({variant:n,textVariant:r.variant[n]})),[n,r.variant]);return hn(Tn.Provider,Object.assign({value:a},{children:hn(Pn,Object.assign({},e,{ref:t}))}))})),Dn=un("span",{target:"e19li2x11"})("margin:0;color:",(({theme:e,variant:t})=>t?e.colors.text[t]:e.colors.text.normal),";font-size:",(({theme:{sizes:e,getSize:t},size:r})=>t(r?e.text[r]:e.text.normal)),";line-height:",(({theme:{sizes:e,getSize:t},size:r})=>r?t(e.height[r]):""),";font-weight:",(({weight:e})=>e),";text-transform:",(({textTransform:e})=>e||"none"),";text-decoration:",(({decoration:e})=>e||"auto"),";display:",(({icon:e,indicator:t,as:r})=>(e||t)&&("span"===r?"inline-flex":"flex")),";align-items:",(({icon:e,indicator:t})=>(e||t)&&"center"),";text-align:",(({align:e,icon:t,indicator:r})=>!t&&!r&&e),";justify-content:",(({align:e,icon:t,indicator:r})=>(t||r)&&e),";gap:",(({theme:{getSize:e},icon:t,indicator:r,gap:n})=>(t||r)&&e(.25*(null!=n?n:2))),";&::before{content:",(({indicator:e})=>e&&"''"),";background-color:",(({indicator:e})=>e),";width:",(({theme:{getSize:e,sizes:t},size:r})=>e(r?t.text[r]:t.text.normal)),";height:",(({theme:{getSize:e,sizes:t},size:r})=>e(r?t.text[r]:t.text.normal)),";border-radius:50%;}"),Nn=un(bt.Icon,{shouldForwardProp:e=>"hasText"!==e&&"variant"!==e&&"iconColor"!==e&&"iconPosition"!==e,target:"e19li2x10"})("flex-shrink:0;width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:",(({theme:e,iconColor:t,variant:r})=>t||e.colors.text[r]),";"),zn=(0,gt.forwardRef)(((e,t)=>{var{variant:r,size:n=Ln.NORMAL,as:a="span",weight:o,text:i,decoration:s,textTransform:l,align:c="left",icon:u,iconSize:d=24,iconColor:h,iconPosition:f="left",indicator:m,className:p,children:v,truncateLines:g}=e,y=Cn(e,["variant","size","as","weight","text","decoration","textTransform","align","icon","iconSize","iconColor","iconPosition","indicator","className","children","truncateLines"]);const b=(0,gt.useContext)(Tn),w=r||(null==b?void 0:b.textVariant)||Sn.NORMAL,x=Dn.withComponent(a,{target:"e19li2x12"}),E=u&&hn(Nn,{variant:w,icon:u,iconColor:h,iconPosition:f,size:d,hasText:void 0!==i||void 0!==v}),C=!!g&&bn("-webkit-box-orient:vertical;-webkit-line-clamp:",g,";display:-webkit-box;overflow:hidden;","");return fn(x,Object.assign({variant:w,size:n,weight:o,decoration:s,textTransform:l,align:c,as:a,icon:u,iconPosition:f,indicator:m,className:yn("it-ui-text",p,C,{"it-ui-text--has-icon":!!E}),ref:t},y,{children:["left"===f&&E,i,v,"right"===f&&E]}))})),In=un(On,{target:"e1a2el420"})("display:flex;flex-shrink:0;width:fit-content;padding:",(({theme:{getSize:e}})=>`${e(.25)} ${e(.5)}`),";border:1px solid ",(({theme:e})=>e.colors.border.normal),";border-radius:",(({theme:{getSize:e}})=>e(1)),";");(0,gt.forwardRef)((function({text:e,icon:t,iconColor:r,tooltip:n,variant:a="primary"},o){const i=hn(In,Object.assign({as:"span",ref:o,variant:"primary"===a?An.TERTIARY:An.PRIMARY_ACCENT},{children:hn(zn,{text:e,size:Ln.SMALL,variant:"primary"===a?Sn.DARK:void 0,icon:t,iconSize:16,iconColor:r})}));return n?hn(bt.Tooltip,Object.assign({text:n,position:"bottom left"},{children:i})):i}));const Hn=["textSize","isRounded","isWide","align","iconGap","surfaceVariant","_variant"];function jn(e,t){return!!t.icon&&!!t.text&&(t.iconPosition||"left")===e}const Un=un(bt.Button,{shouldForwardProp:e=>!Hn.includes(e),target:"esijqd70"})("&.components-button{font-size:",(({theme:{sizes:e,getSize:t},textSize:r})=>t(r?e.text[r]:e.text.normal)),";height:",(({textSize:e})=>e&&"auto"),";border-radius:",(({isRounded:e})=>e&&"12px"),";padding:",(({theme:{getSize:e},isWide:t})=>t&&`${e(.75)} ${e(4)}`),";justify-content:",(({align:e})=>e||"center"),";--wp-components-color-accent:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.base||"tertiaryAccent"===t&&e.colors.tertiary.base||"muted"===t&&e.colors.text.muted||e.colors.primary.base)),";--wp-admin-theme-color:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.base||"tertiaryAccent"===t&&e.colors.tertiary.base||"muted"===t&&e.colors.text.muted||e.colors.primary.base)),";--wp-admin-theme-color-darker-10:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.darker10||"tertiaryAccent"===t&&e.colors.tertiary.darker10||"muted"===t&&e.colors.text.muted||e.colors.primary.darker10)),";--wp-admin-theme-color-darker-20:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.darker20||"tertiaryAccent"===t&&e.colors.tertiary.darker20||"muted"===t&&e.colors.text.muted||e.colors.primary.darker20)),";color:",(({theme:e,_variant:t,surfaceVariant:r,isDestructive:n})=>!n&&("secondaryAccent"===t&&e.colors.text.white||"tertiaryAccent"===t&&e.colors.text.dark||"tertiary"===t&&r===An.SECONDARY&&e.colors.text.accent||"muted"===t&&e.colors.text.muted||"tertiary"===t&&e.colors.text.dark)),";&.is-primary:hover:not(:disabled),&.is-primary:active:not(:disabled),&.is-primary:disabled,&.is-primary:disabled:active:enabled,&.is-primary[aria-disabled='true'],&.is-primary[aria-disabled='true']:enabled,&.is-primary[aria-disabled='true']:active:enabled,&.is-primary.is-busy,&.is-primary.is-busy:disabled,&.is-primary.is-busy[aria-disabled='true']{color:",(({theme:e,_variant:t})=>"secondaryAccent"===t&&e.colors.text.white||"tertiaryAccent"===t&&e.colors.text.dark),";}& svg{margin-left:",(e=>{var{theme:{getSize:t},iconGap:r}=e;return jn("right",Cn(e,["theme","iconGap"]))&&t(.25*(null!=r?r:2))}),";margin-right:",(e=>{var{theme:{getSize:t},iconGap:r}=e;return jn("left",Cn(e,["theme","iconGap"]))&&t(.25*(null!=r?r:2))}),";}}"),Fn=(0,gt.forwardRef)(((e,t)=>{var r;const n=null!==(r=e.variant)&&void 0!==r?r:"secondary",a=function(e){return"secondaryAccent"===e||"tertiaryAccent"===e?"primary":"muted"===e?"secondary":null!=e?e:"secondary"}(e.variant),o=(0,gt.useContext)(Tn),{iconGap:i=2}=e;return hn(Un,Object.assign({},e,{ref:t,iconGap:i,variant:a,_variant:n,surfaceVariant:null==o?void 0:o.variant}))})),$n=un("div",{target:"e5g6tmc1"})("display:",(({hasIcon:e})=>e?"flex":"block"),";gap:",(({theme:{getSize:e},hasIcon:t})=>t&&e(.25)),";align-items:center;margin:0;line-height:",(({theme:{sizes:e,getSize:t},size:r})=>r?t(e.height[r]):""),";color:",(({theme:{colors:e},variant:t})=>e.text[t]),";font-size:",(({theme:{sizes:e,getSize:t},size:r})=>t(e.text[r])),";font-weight:",(({weight:e})=>e),";text-align:",(({align:e,hasIcon:t})=>!t&&e),";justify-content:",(({align:e,hasIcon:t})=>t&&e),";text-transform:",(({textTransform:e})=>e||"none"),";"),Vn=un(bt.Icon,{shouldForwardProp:e=>"iconColor"!==e,target:"e5g6tmc0"})("flex-shrink:0;width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:",(({theme:e,iconColor:t,variant:r})=>t||e.colors.text[r]),";");function Bn(e){const{components:{heading:t}}=Kr(),r=(0,gt.useContext)(Tn),n=e.variant||(null==r?void 0:r.textVariant)||t.variants[e.level],a=e.size||t.sizes[e.level],o=e.weight||t.weights[e.level],i=e.textTransform||"none",s="h"+e.level;return fn($n.withComponent(s,{target:"e5g6tmc2"}),Object.assign({weight:o,variant:n,size:a,hasIcon:!!e.icon,className:yn("it-ui-heading",e.className),textTransform:i,align:e.align||"left"},{children:[e.icon&&hn(Vn,{icon:e.icon,size:e.iconSize,variant:n,iconColor:e.iconColor}),e.text,e.children]}))}(0,gt.createContext)({variant:"primary"}),(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var Gn=(0,gt.createElement)(xn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,gt.createElement)(xn.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"}));(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var Wn=(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,gt.createElement)(xn.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));var Yn=(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,gt.createElement)(xn.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));(0,gt.createElement)(xn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,gt.createElement)(xn.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})),kn.HEAVY,(0,gt.createContext)({}),(0,gt.createContext)({filters:{},openPanels:[],dispatch:()=>null,expandSingle:!1}),(0,yt.__)("24 hours","LION"),(0,yt.__)("7 days","LION"),(0,yt.__)("30 days","LION"),(0,yt.__)("Custom range","LION");const Zn=un("div",{target:"e6ae9c80"})("display:flex;align-items:stretch;flex-wrap:nowrap;justify-content:center;height:40px;border-radius:2px;border:1px solid transparent;@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:30px;}.components-base-control{flex-grow:1;}.components-base-control__field{height:100%;margin-bottom:0;}.components-text-control__input{height:100%;margin:0;&:focus{box-shadow:none;outline:none;}}.components-button{height:auto;&:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);}}.components-spinner{margin:1px -1px;}.it-ui-text{display:flex;align-items:center;height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";padding:",(({theme:{getSize:e}})=>`${e(.375)} ${e(.625)}`),";@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";}&.it-ui-text--has-icon{padding:",(({theme:{getSize:e}})=>`${e(.1875)} ${e(.3125)}`),";}&>*{margin:0;}}>*:first-child,>*:first-child .components-text-control__input{border-radius:2px 0 0 2px;border-right:",(({omitSeparators:e})=>(!0===e||"left"===e)&&"none"),";}>*:last-child,>*:last-child .components-text-control__input{border-radius:0 2px 2px 0;border-left:",(({omitSeparators:e})=>(!0===e||"right"===e)&&"none"),";}.components-base-control:first-child .components-text-control__input{border-right:none;}.components-base-control:last-child .components-text-control__input{border-left:none;}.components-base-control:not(:first-child):not(:last-child) .components-text-control__input{border-left:none;border-right:none;border-radius:0;}&:focus-within{border-color:white;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent;.it-ui-text{&:first-child{border-right-color:var(--wp-admin-theme-color);}&:last-child{border-left-color:var(--wp-admin-theme-color);}}}");function qn({children:e,className:t,omitSeparators:r=!1,surfaceVariant:n=An.PRIMARY,size:a="medium"}){return hn(Zn,Object.assign({className:yn("it-ui-input-group",t),surfaceVariant:n,omitSeparators:r,size:a},{children:e}))}An.INFO,An.SUCCESS,An.WARNING,An.DANGER;const Kn=(0,gt.forwardRef)((function({theme:e,children:t},r){const[n,a]=(0,gt.useState)(1),o=(0,wn.useMergeRefs)([(0,wn.useRefEffect)((e=>{const t=e.ownerDocument.body,r=t.parentElement;if(!r)return;const n=e.ownerDocument.createElement("iframe");n.style.visibility="hidden",n.setAttribute("aria-hidden","true"),n.srcdoc='Sizer',t.append(n);const o=n.contentDocument;if(!o)return;const i=Number.parseFloat(window.getComputedStyle(o.body).fontSize);n.remove();const s=Number.parseFloat(window.getComputedStyle(r).fontSize);a(1/(s/i))}),[]),r]),i=(0,gt.useMemo)((()=>Object.assign(Object.assign({},e),{getSize:e=>e*n+"rem"})),[e,n]);return hn("div",Object.assign({ref:o},{children:hn(Jr,Object.assign({theme:i},{children:t}))}))}));var Xn;!function(e){e[e.INITIAL=0]="INITIAL",e[e.SEARCHING=1]="SEARCHING",e[e.CLEARABLE=2]="CLEARABLE",e[e.SUBMITTABLE=3]="SUBMITTABLE"}(Xn||(Xn={}));const Jn=un(qn,{target:"e6tk791"})("background:",(({theme:e})=>e.colors.surface.secondary),";height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";}.components-text-control__input{background:none;padding:",(({theme:{getSize:e}})=>e(.75)),";border-radius:2px;border:none;height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";}&:focus-within{border-color:",(({theme:e})=>e.colors.border),";background:none;}"),Qn=un(bt.TextControl,{target:"e6tk790"})({name:"1e1ncky",styles:"border:none"});var ea,ta;(0,gt.forwardRef)(((e,t)=>{const{isSearching:r,className:n,value:a,onChange:o,onCancel:i,onSubmit:s,surfaceVariant:l,omitSeparators:c,size:u="medium"}=e,d=Cn(e,["isSearching","className","value","onChange","onCancel","onSubmit","surfaceVariant","omitSeparators","size"]),h=(0,gt.useRef)(null),f=(0,wn.useMergeRefs)([h,t]),m=()=>{var e;null===(e=h.current)||void 0===e||e.focus(),r&&i?i():o("")},p=(({isSearching:e,value:t,onCancel:r,onSubmit:n})=>{const a=t.length>0;return!e&&a&&n?Xn.SUBMITTABLE:!a||e&&!r?e?Xn.SEARCHING:Xn.INITIAL:Xn.CLEARABLE})(e);return fn(Jn,Object.assign({className:yn("it-ui-search-control",n),surfaceVariant:l,omitSeparators:c,size:u},{children:[hn(Qn,Object.assign({value:a,onChange:o,onKeyUp:({keyCode:e})=>e===En.ESCAPE&&m(),hideLabelFromVision:!0},d,{ref:f})),p===Xn.INITIAL&&hn(zn,{icon:Yn}),p===Xn.SEARCHING&&hn(zn,{children:hn(bt.Spinner,{})}),p===Xn.CLEARABLE&&hn(Fn,{icon:Gn,variant:"tertiary",onClick:m,label:(0,yt.__)("Cancel Search","LION")}),p===Xn.SUBMITTABLE&&hn(Fn,{icon:Wn,variant:"tertiary",onClick:()=>{var e;null===(e=h.current)||void 0===e||e.focus(),null==s||s()},label:(0,yt.__)("Submit Search","LION")})]}))})),null===(ta=null===(ea=window.wp)||void 0===ea?void 0:ea.components)||void 0===ta||ta.StyleProvider;const ra={colors:{primary:{base:"#6817c5",darker10:"#53129e",darker20:"#49108A"},secondary:{base:"#9e6ada",darker10:"#9258d6",darker20:"#8645d1"},tertiary:{base:"#e1d1f3",darker10:"#caadea",darker20:"#b289e0"},text:{dark:"#232323",normal:"#333333",muted:"#545454",accent:"#6817C5",white:"#FFFFFF",danger:"#551515",warning:"#A9582E",info:"#005169",success:"#237739"},border:{normal:"#dddddd",input:"#232323",info:"#502CA1",danger:"#CC1818",warning:"#FFC518",success:"#4AB866"},surface:{primary:"#FFFFFF",primaryContrast:"#E7E7E7",secondary:"#E7E7E7",tertiary:"#F9F9F9",underPage:"#F0F0F0",underPageContrast:"#E0E0E0",primaryAccent:"#6817C5",danger:"#F4A2A2",warning:"#FFF9E8",info:"#F0EEF3",success:"#EFF9F1",dark:"#333333"}},sizes:{text:{gigantic:2,huge:1.5,extraLarge:1.25,large:1,subtitleSmall:.875,normal:.813,small:.75},height:{gigantic:2.5,huge:2,extraLarge:1.75,large:1.5,subtitleSmall:1.25,normal:1,small:1}},breaks:{huge:1440,wide:1280,xlarge:1080,large:960,medium:783,small:600,mobile:480},components:{heading:{sizes:{1:Ln.HUGE,2:Ln.EXTRA_LARGE,3:Ln.LARGE,4:Ln.LARGE,5:Ln.NORMAL,6:Ln.NORMAL},heights:{1:Rn.HUGE,2:Rn.EXTRA_LARGE,3:Rn.LARGE,4:Rn.LARGE,5:Rn.NORMAL,6:Rn.NORMAL},variants:{1:Sn.DARK,2:Sn.NORMAL,3:Sn.NORMAL,4:Sn.NORMAL,5:Sn.NORMAL,6:Sn.NORMAL},weights:{1:kn.HEAVY,2:kn.NORMAL,3:kn.NORMAL,4:kn.NORMAL,5:kn.NORMAL,6:kn.NORMAL}},surface:{variant:{[An.PRIMARY]:Sn.NORMAL,[An.PRIMARY_CONTRAST]:Sn.DARK,[An.SECONDARY]:Sn.NORMAL,[An.TERTIARY]:Sn.NORMAL,[An.UNDER_PAGE]:Sn.NORMAL,[An.UNDER_PAGE_CONTRAST]:Sn.DARK,[An.PRIMARY_ACCENT]:Sn.WHITE,[An.DANGER]:Sn.DANGER,[An.WARNING]:Sn.WARNING,[An.INFO]:Sn.INFO,[An.SUCCESS]:Sn.SUCCESS,[An.DARK]:Sn.WHITE},contrast:{[An.PRIMARY]:An.PRIMARY_CONTRAST,[An.UNDER_PAGE]:An.UNDER_PAGE_CONTRAST}}},getSize:e=>`${e}rem`},na={...ra,spacing:{section:"1.25rem",box:"2rem",root:"1.25rem 1.25rem 4rem 1.5rem",empty_connections:"80px 0"},colors:{...ra.colors,solidwp_mail:{primary:"#6817C5",border:"#ccc",error:"#f44336"}}},aa=((0,gt.memo)((()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},(0,e.createElement)("path",{d:"M180.4 203c-.7 22.7 10.6 32.7 10.9 39.1a8.2 8.2 0 0 1 -4.1 6.3l-12.8 9a10.7 10.7 0 0 1 -5.6 1.9c-.4 0-8.2 1.8-20.5-25.6a78.6 78.6 0 0 1 -62.6 29.5c-16.3 .9-60.4-9.2-58.1-56.2-1.6-38.3 34.1-62.1 70.9-60.1 7.1 0 21.6 .4 47 6.3v-15.6c2.7-26.5-14.7-47-44.8-43.9-2.4 0-19.4-.5-45.8 10.1-7.4 3.4-8.3 2.8-10.8 2.8-7.4 0-4.4-21.5-2.9-24.2 5.2-6.4 35.9-18.4 65.9-18.2a76.9 76.9 0 0 1 55.7 17.3 70.3 70.3 0 0 1 17.7 52.4v69.3zM94 235.4c32.4-.5 46.2-20 49.3-30.5 2.5-10.1 2.1-16.4 2.1-27.4-9.7-2.3-23.6-4.9-39.6-4.9-15.2-1.1-42.8 5.6-41.7 32.3-1.2 16.8 11.1 31.4 30 30.5zm170.9 23.1c-7.9 .7-11.5-4.9-12.7-10.4l-49.8-164.7c-1-2.8-1.6-5.7-1.9-8.6a4.6 4.6 0 0 1 3.9-5.3c.2 0-2.1 0 22.3 0 8.8-.9 11.6 6 12.6 10.4l35.7 140.8 33.2-140.8c.5-3.2 2.9-11.1 12.8-10.2h17.2c2.2-.2 11.1-.5 12.7 10.4l33.4 142.6L421 80.1c.5-2.2 2.7-11.4 12.7-10.4h19.7c.9-.1 6.2-.8 5.3 8.6-.4 1.9 3.4-10.7-52.8 169.9-1.2 5.5-4.8 11.1-12.7 10.4h-18.7c-10.9 1.2-12.5-9.7-12.7-10.8L328.7 110.7l-32.8 137c-.2 1.1-1.7 11.9-12.7 10.8h-18.3zm273.5 5.6c-5.9 0-33.9-.3-57.4-12.3a12.8 12.8 0 0 1 -7.8-11.9v-10.8c0-8.5 6.2-6.9 8.8-5.9 10 4.1 16.5 7.1 28.8 9.6 36.7 7.5 52.8-2.3 56.7-4.5 13.2-7.8 14.2-25.7 5.3-35-10.5-8.8-15.5-9.1-53.1-21-4.6-1.3-43.7-13.6-43.8-52.4-.6-28.2 25.1-56.2 69.5-56 12.7 0 46.4 4.1 55.6 15.6 1.4 2.1 2 4.6 1.9 7v10.1c0 4.4-1.6 6.7-4.9 6.7-7.7-.9-21.4-11.2-49.2-10.8-6.9-.4-39.9 .9-38.4 25-.4 19 26.6 26.1 29.7 26.9 36.5 11 48.7 12.8 63.1 29.6 17.1 22.3 7.9 48.3 4.4 55.4-19.1 37.5-68.4 34.4-69.3 34.4zm40.2 104.9c-70 51.7-171.7 79.3-258.5 79.3A469.1 469.1 0 0 1 2.8 327.5c-6.5-5.9-.8-14 7.2-9.5a637.4 637.4 0 0 0 316.9 84.1 630.2 630.2 0 0 0 241.6-49.6c11.8-5 21.8 7.8 10.1 16.4zm29.2-33.3c-9-11.5-59.3-5.4-81.8-2.7-6.8 .8-7.9-5.1-1.8-9.5 40.1-28.2 105.9-20.1 113.4-10.6 7.6 9.5-2.1 75.4-39.6 106.9-5.8 4.9-11.3 2.3-8.7-4.1 8.4-21.3 27.4-68.5 18.4-80z"})))),(0,gt.memo)((()=>(0,e.createElement)("svg",{width:"40",viewBox:"0 0 1000 295",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M820.28 182.338C820.28 137.755 848.604 106.4 888.892 106.4C929.18 106.4 957.956 137.737 957.956 182.338C957.956 226.939 929.187 256.5 888.892 256.5C848.598 256.5 820.28 225.588 820.28 182.338ZM778.224 182.338C778.224 248.12 824.262 294.479 888.886 294.479C953.51 294.479 1000 248.12 1000 182.338C1000 116.556 953.962 68.4399 888.886 68.4399C823.81 68.4399 778.224 115.686 778.224 182.338ZM563.521 71.0853L650.292 291.821H691.025L777.791 71.0853H733.966L671.104 241.498H670.214L607.352 71.0853H563.521ZM394.856 174.383C397.508 133.76 424.515 106.4 461.261 106.4C493.128 106.4 517.037 126.712 520.58 157.179H447.089C420.973 157.179 406.801 160.269 396.191 174.402H394.856V174.39V174.383ZM352.805 181.006C352.805 246.788 399.289 294.46 463.468 294.46C506.854 294.46 544.916 272.391 561.295 237.502L525.885 219.835C513.494 242.792 489.585 256.482 463.468 256.482C432.028 256.482 403.704 232.637 403.704 209.679C403.704 197.766 411.673 192.457 423.18 192.457H563.502V180.544C563.502 114.317 521.007 68.4029 459.925 68.4029C398.844 68.4029 352.799 115.649 352.799 180.988M232.399 291.796H272.242V156.285C272.242 127.149 290.382 106.394 315.627 106.394C326.256 106.394 337.311 109.927 342.635 114.774C346.623 104.174 352.818 93.5923 362.111 82.9924C351.482 74.1684 333.342 68.4153 315.627 68.4153C266.937 68.4153 232.399 104.618 232.399 156.267V291.809V291.796ZM39.843 145.698V37.9598H105.358C127.486 37.9598 142.103 50.7611 142.103 70.185C142.103 92.2542 123.072 109.033 84.1191 121.834C57.5571 130.214 45.6116 137.281 41.1785 145.679L39.843 145.692V145.698ZM39.843 253.861V208.835C39.843 188.967 56.6668 169.543 80.1311 162.032C100.943 154.966 118.193 147.899 132.81 140.407C152.286 151.895 164.232 171.744 164.232 192.5C164.232 227.814 130.584 253.861 84.9909 253.861H39.843ZM0 291.821H88.5337C155.829 291.821 206.282 249.884 206.282 194.257C206.282 163.79 190.794 136.43 163.341 118.763C177.513 104.63 184.153 88.2955 184.153 68.4276C184.153 27.3784 154.493 0 109.791 0H0V291.821Z",fill:"#0B996E"})))),(0,gt.memo)((()=>(0,e.createElement)("svg",{width:"120",height:"120",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"80",cy:"80",r:"80",fill:"#6817C5"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.246 53.9952L79.7414 88.2759L119.753 53.9924C119.189 52.4669 117.722 51.3794 116 51.3794H44C42.2774 51.3794 40.8092 52.4682 40.246 53.9952ZM120 55.8578L79.7414 94.1379L40 55.8589V104.621C40 106.83 41.7909 108.621 44 108.621H116C118.209 108.621 120 106.83 120 104.621V55.8578Z",fill:"white"}),(0,e.createElement)("path",{d:"M64.4828 79.3965L40.6897 108.621H119.31L95.2587 79.3965L79.7414 94.1379L64.4828 79.3965Z",fill:"#D9D9D9",fillOpacity:"0.5"})))),(0,gt.memo)((()=>(0,e.createElement)("svg",{height:"25",viewBox:"0 0 775 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"80",cy:"80",r:"80",fill:"#6817C5"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.246 53.9952L79.7414 88.2759L119.753 53.9924C119.189 52.4669 117.722 51.3794 116 51.3794H44C42.2774 51.3794 40.8092 52.4682 40.246 53.9952ZM120 55.8578L79.7414 94.1379L40 55.8589V104.621C40 106.83 41.7909 108.621 44 108.621H116C118.209 108.621 120 106.83 120 104.621V55.8578Z",fill:"white"}),(0,e.createElement)("path",{d:"M64.4827 79.3965L40.6896 108.621H119.31L95.2586 79.3965L79.7414 94.1379L64.4827 79.3965Z",fill:"#D9D9D9",fillOpacity:"0.5"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M214.02 117.246L214.014 117.242C206.167 111.896 202.202 103.929 202.033 93.6467L202 91.6229H223.243L223.336 93.5163C223.544 97.7508 225.327 100.804 228.728 102.913C232.288 105.12 237.218 106.318 243.688 106.318H245.599C252.291 106.318 256.672 105.394 259.123 103.87C261.673 102.285 262.604 100.576 262.604 98.7512C262.604 96.7497 261.774 95.1454 259.869 93.8116L259.856 93.8025L259.843 93.7931C257.929 92.4069 254.417 91.1889 248.989 90.3237L248.978 90.322L235.953 88.171C226.252 86.5541 218.832 83.8051 213.974 79.7277L213.967 79.722L213.961 79.7163C209.022 75.4963 206.692 69.3356 206.692 61.5963C206.692 56.8885 208.051 52.4877 210.725 48.4336C213.455 44.2944 217.658 41.0529 223.163 38.6323C228.761 36.0903 235.795 34.875 244.166 34.875C256.051 34.875 265.676 37.3959 272.82 42.6669C279.988 47.8746 284.009 55.0923 284.856 64.1588L285.06 66.3352H263.81L263.577 64.6097C263.1 61.0637 261.372 58.3971 258.286 56.4772C255.12 54.5066 250.785 53.4326 245.121 53.4326H243.21C237.552 53.4326 233.493 54.2927 230.817 55.7986C228.156 57.3422 227.281 58.9393 227.281 60.5211C227.281 62.9112 228.108 64.4274 229.62 65.4351C231.424 66.6381 234.441 67.6933 238.881 68.4734L252.251 70.6221C262.237 72.2458 269.981 75.2877 275.233 79.9373C280.545 84.6393 283.192 90.7701 283.192 98.1539C283.192 106.741 279.75 113.504 272.887 118.196L272.882 118.199C266.201 122.739 256.74 124.875 244.763 124.875C232.027 124.875 221.715 122.405 214.026 117.25L214.02 117.246Z",fill:"black"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M295.257 109.383L295.247 109.367C292.075 104.309 290.522 98.4367 290.522 91.822C290.522 85.2082 292.075 79.3686 295.255 74.3839L295.26 74.3766C298.493 69.356 302.92 65.4919 308.49 62.7914C314.063 60.0892 320.463 58.7689 327.637 58.7689C334.812 58.7689 341.211 60.0892 346.785 62.7914C352.352 65.4909 356.742 69.3554 359.898 74.38C363.158 79.3637 364.752 85.2051 364.752 91.822C364.752 98.4449 363.155 104.323 359.898 109.382C356.74 114.332 352.349 118.155 346.785 120.852C341.211 123.555 334.812 124.875 327.637 124.875C320.463 124.875 314.063 123.555 308.49 120.852C302.928 118.156 298.503 114.338 295.268 109.4L295.257 109.383ZM336.851 77.5681L336.821 77.5513C334.446 76.2245 331.683 75.5344 328.473 75.5344H326.801C323.593 75.5344 320.779 76.2242 318.313 77.5631L318.304 77.568L318.294 77.5729C315.921 78.8294 314.039 80.6365 312.628 83.0351C311.25 85.377 310.513 88.2772 310.513 91.822C310.513 95.2719 311.244 98.182 312.634 100.62C314.044 103.012 315.927 104.86 318.304 106.195C320.771 107.457 323.589 108.11 326.801 108.11H328.473C331.696 108.11 334.471 107.453 336.851 106.195C339.316 104.855 341.235 103.005 342.64 100.62C344.031 98.1818 344.761 95.2717 344.761 91.822C344.761 88.2772 344.024 85.377 342.647 83.0351C341.244 80.6512 339.333 78.8447 336.881 77.5838L336.851 77.5681Z",fill:"black"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M373.828 123.68V36.0697H393.7V123.68H373.828Z",fill:"black"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M405.534 61.9547H425.406V123.68H405.534V61.9547Z",fill:"black"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M450.145 120.949L450.133 120.943C445.106 118.302 441.096 114.502 438.124 109.576L438.12 109.57L438.116 109.563C435.116 104.505 433.656 98.5657 433.656 91.822C433.656 84.7116 435.103 78.6331 438.127 73.7033C441.104 68.7724 445.127 65.0424 450.175 62.56C455.244 60.0264 460.766 58.7689 466.709 58.7689C472.548 58.7689 477.524 59.6702 481.538 61.5881C483.667 62.585 485.554 63.7218 487.178 65.008V36.0697H507.05V123.68H487.178V118.945C485.393 120.33 483.314 121.497 480.962 122.457L480.946 122.464L480.929 122.47C476.76 124.087 472.089 124.875 466.948 124.875C460.842 124.875 455.229 123.576 450.145 120.949ZM484.949 100.84L484.953 100.833C486.406 98.4117 487.178 95.4365 487.178 91.822C487.178 88.117 486.402 85.1563 484.967 82.8329L484.955 82.8147L484.944 82.7962C483.548 80.4214 481.649 78.6648 479.22 77.4847L479.189 77.4696L479.158 77.4534C476.776 76.1923 473.998 75.5344 470.771 75.5344H469.099C464.455 75.5344 460.794 76.9681 457.945 79.7472L457.936 79.756L457.927 79.7647C455.168 82.3889 453.647 86.2976 453.647 91.822C453.647 97.3374 455.164 101.297 457.936 104.007C460.781 106.709 464.445 108.11 469.099 108.11H470.771C474.011 108.11 476.801 107.486 479.189 106.294C481.636 105.033 483.544 103.229 484.944 100.848L484.949 100.84Z",fill:"black"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M415.124 55.7588C408.443 55.7588 403.834 51.1499 403.834 45.4645C403.834 39.7792 408.443 35.1703 415.124 35.1703H415.601C422.282 35.1703 426.891 39.7792 426.891 45.4645C426.891 51.1499 422.282 55.7588 415.601 55.7588H415.124Z",fill:"black"}),(0,e.createElement)("path",{d:"M593.875 115.875L630.125 36.375H645.375V123.875H636.25V43.375L599.625 123.875H587.875L551.375 43.75V123.875H542.25V36.375H557.625L593.875 115.875Z",fill:"black"}),(0,e.createElement)("path",{d:"M685.653 125.125C669.903 125.125 661.778 117.25 661.778 106.5C661.778 93.75 672.153 88.5 685.278 87.625L711.528 86.125V83.625C711.528 73 704.278 67.25 692.278 67.25H690.278C680.653 67.25 673.403 71.75 672.278 78.875H663.528C664.778 68.125 675.778 60.125 691.278 60.125C710.028 60.125 720.028 69.875 720.028 83.875V110.125C720.028 113.875 720.403 119.5 720.903 123.875H713.028C712.403 120.75 712.153 115.625 712.153 113.75C708.528 119.625 699.153 125.125 685.653 125.125ZM686.528 118H688.278C699.153 118 711.528 111 711.528 98.625V93.125L689.278 94.25C675.278 95.125 670.403 99.25 670.403 106C670.403 113.125 675.028 118 686.528 118Z",fill:"black"}),(0,e.createElement)("path",{d:"M747.61 50.125H737.86V39.5H747.61V50.125ZM747.11 123.875H738.61V61.375H747.11V123.875Z",fill:"black"}),(0,e.createElement)("path",{d:"M774.884 123.875H766.384V36.375H774.884V123.875Z",fill:"black"})))));(0,gt.memo)((()=>(0,e.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000",xmlSpace:"preserve"},(0,e.createElement)("style",{type:"text/css"},".st0{fill:#C12126;}"),(0,e.createElement)("path",{className:"st0",d:"M493,305.7c-88.9,0-161,72.1-161,161c0,88.9,72.1,161,161,161c88.9,0,161-72.1,161-161 C654,377.8,582,305.7,493,305.7z M242,466.7c0-138.7,112.4-251,251-251c138.7,0,251.1,112.4,251.1,251c0,9.2-0.5,18.2-1.4,27.1 c-1.9,24.5,16.1,43.2,40.4,43.2c41.3,0,45.7-53.2,45.7-70.3c0-185.4-150.3-335.6-335.6-335.6S157.4,281.4,157.4,466.7 c0,185.4,150.3,335.6,335.6,335.6c98.4,0,187-42.4,248.4-109.9l69,57.9c-77.9,87.1-191.3,142-317.4,142 c-235.1,0-425.7-190.6-425.7-425.7S257.9,41,493,41c235.1,0,425.7,190.6,425.7,425.7c0,94.5-45,171.2-135.4,171.2 c-39.8,0-64-18.2-77.2-38.6C661.9,670.5,583,717.8,493,717.8C354.4,717.8,242,605.4,242,466.7z M493,393.1c40.7,0,73.7,33,73.7,73.7 c0,40.7-33,73.7-73.7,73.7c-40.7,0-73.7-33-73.7-73.7S452.3,393.1,493,393.1z"})))),(0,gt.memo)((()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",fill:"none",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M18 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V16C4.75 16.6904 5.30964 17.25 6 17.25H18C18.6904 17.25 19.25 16.6904 19.25 16V8C19.25 7.30964 18.6904 6.75 18 6.75Z",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M5 7L12 13L19 7",stroke:"#1E1E1E",strokeWidth:"1.5"})))),(0,gt.memo)((()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Sendgrid",viewBox:"0 0 32 32"},(0,e.createElement)("defs",null,(0,e.createElement)("style",null,".cls-1 {\n fill: #51a9e3;\n }")),(0,e.createElement)("g",{id:"Icon_Updated_Keylines","data-name":"Icon, Updated Keylines"},(0,e.createElement)("path",{className:"cls-1",d:"m21,1h-8c-1.1,0-2,.9-2,2v6c0,1.1.9,2,2,2h6c1.1,0,2,.9,2,2v6c0,1.1.9,2,2,2h6c1.1,0,2-.9,2-2V2c0-.55-.45-1-1-1h-9Z"}),(0,e.createElement)("path",{className:"cls-1",d:"m11,31h8c1.1,0,2-.9,2-2v-6c0-1.1-.9-2-2-2h-6c-1.1,0-2-.9-2-2v-6c0-1.1-.9-2-2-2H3c-1.1,0-2,.9-2,2v17c0,.55.45,1,1,1h9Z"}))))),(0,gt.memo)((()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"40",viewBox:"0 0 64 64"},(0,e.createElement)("defs",null,(0,e.createElement)("path",{id:"A",d:"M128 117v6a5 5 0 0 0-5 5h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0H5a5 5 0 0 0-5-5v-6a5 5 0 1 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10V5a5 5 0 0 0 5-5h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 1 0 10 0h6a5 5 0 0 0 5 5v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10z"}),(0,e.createElement)("rect",{id:"B",width:"96",height:"96",x:"16",y:"16",rx:"2"})),(0,e.createElement)("g",{transform:"matrix(.492308 0 0 .492308 .492308 .492308)",fill:"none",fillRule:"evenodd"},(0,e.createElement)("use",{xlinkHref:"#A",fill:"#f0f0f0"}),(0,e.createElement)("path",{d:"M128.5 116.5v7h-.5a4.5 4.5 0 0 0-4.5 4.5v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-4.5-4.5h-.5v-7H0a4.5 4.5 0 0 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0A4.5 4.5 0 0 0 4.5 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 0 0 9 0v-.5h7V0a4.5 4.5 0 0 0 4.5 4.5h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9z",stroke:"#ccc"}),(0,e.createElement)("path",{d:"M127.5 117.478a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956V5.478A5.502 5.502 0 0 1 122.522.5h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0H5.478A5.502 5.502 0 0 1 .5 5.478v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.502 5.502 0 0 1 4.978 4.978h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.502 5.502 0 0 1 4.978-4.978z",stroke:"#fff"}),(0,e.createElement)("use",{xlinkHref:"#B",fill:"#fedd00"}),(0,e.createElement)("rect",{width:"95",height:"95",x:"16.5",y:"16.5",rx:"2",stroke:"#d9b500"}),(0,e.createElement)("rect",{width:"97",height:"97",x:"15.5",y:"15.5",rx:"2",stroke:"#fff"}),(0,e.createElement)("path",{d:"M50.3 86.084V42.3H43V35h25.886c16.168 0 19.522 10.664 19.522 18.06 0 5.934-2.408 10.492-4.902 12.986-4.042 4.042-9.546 4.988-17.888 4.988h-6.536v15.05h7.654v7.3H43v-7.3zm8.772-22.102h7.3c10.75 0 13.072-4.988 13.072-11.008 0-6.88-3.87-10.664-10.32-10.664H59.082z",fill:"#000"})))));var oa=un.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){oa[e]=oa(e)}));const ia=oa.div` width: 100%; padding: 10px 24px; background: #fff; `,sa=()=>(0,e.createElement)(ia,null,(0,e.createElement)(aa,null)),la=oa.div` padding: ${({theme:e})=>e.spacing.root}; max-width: 1680px; margin: 0 auto; width: 100%; @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { padding-left: 0; padding-right: 10px; } `,ca=oa.nav` border-bottom: solid 1px ${({theme:e})=>e.colors.border.normal}; display: flex; margin-top: ${({theme:e})=>e.spacing.section}; `,ua=oa(mt)` text-decoration: none; padding: 0.75rem 1.25rem; border-bottom: 4px solid transparent; &.active, &:hover { color: ${({theme:e})=>e.colors.solidwp_mail.primary}; border-bottom: solid 4px ${({theme:e})=>e.colors.solidwp_mail.primary}; } `,da=({children:t,headerText:r="",withNav:n=!0})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sa,null),(0,e.createElement)(la,null,(0,e.createElement)(Bn,{level:2},r),n&&(0,e.createElement)(ca,null,(0,e.createElement)(ua,{to:"/providers"},(0,e.createElement)(zn,{size:Ln.LARGE,weight:600,align:"center"},(0,yt.__)("Connections","LION"))),(0,e.createElement)(ua,{to:"/email-test"},(0,e.createElement)(zn,{size:Ln.LARGE,weight:600,align:"center"},(0,yt.__)("Email Test","LION")))),t)),ha=function({settings:t,setSettings:r}){return(0,e.createElement)(bt.Card,null,(0,e.createElement)(bt.CardHeader,null,(0,e.createElement)("h2",null,(0,yt.__)("Email Logs","LION"))),(0,e.createElement)(bt.CardBody,null,(0,e.createElement)(bt.ToggleControl,{label:(0,yt.__)("Enable Logs","LION"),checked:"no"===t.disable_logs,onChange:function(e){r((t=>({...t,disable_logs:e?"no":"yes"})))}}),(0,e.createElement)(bt.Button,{variant:"primary",type:"submit"},(0,yt.__)("Save","LION"))))},fa=oa.form` margin-top: ${({theme:e})=>e.spacing.section}; .solidwp-mail-settings-section-tabs { display: flex; align-items: start; flex-direction: row; gap: 20px; justify-content: space-between; .components-tab-panel__tabs { gap: .25rem; margin-top: 1.25rem; width: 10rem; .components-tab-panel__tabs-item { border: 2px solid transparent; border-radius: 1.25rem; box-shadow: none; font-size: 14px; font-weight: 600; height: auto; overflow-wrap: break-word; padding: 8px 16px; text-decoration: none; &.is-active { background: #e0e0e0; color: #333 } &:after { display: none; } } } .components-tab-panel__tab-content { display: flex; flex: 1 1 0%; flex-direction: column; gap: 20px; max-height: 100%; max-width: 100%; min-height: 0; min-width: 0 } } `,ma=oa(bt.Card)` margin-top: ${({theme:e})=>e.spacing.section}; `;function pa(){const e=new Date;return e.setDate(1),e.toISOString().split("T")[0]}function va(){const e=new Date;return e.setMonth(e.getMonth()+1),e.setDate(0),e.toISOString().split("T")[0]}const ga=function(){const[t,r]=(0,gt.useState)(pa),[n,a]=(0,gt.useState)(va),[o,i]=(0,gt.useState)(null),[s,l]=(0,gt.useState)(!1);return(0,e.createElement)(ma,null,(0,e.createElement)(bt.CardHeader,null,(0,e.createElement)("h2",null,(0,yt.__)("Export Email Logs","LION"))),(0,e.createElement)(bt.CardBody,null,(0,e.createElement)(bt.TextControl,{type:"date",label:(0,yt.__)("Date From","LION"),value:t,onChange:function(e){r(e)}}),(0,e.createElement)(bt.TextControl,{type:"date",label:(0,yt.__)("Date To","LION"),value:n,onChange:function(e){a(e)}}),(0,e.createElement)(bt.BaseControl,null,(0,e.createElement)(bt.Button,{variant:"primary",onClick:async function(){if(t&&n){l(!0);try{const e=await xt()({path:`/solidwp-mail/v1/logs/export-csv?date_from=${t}&date_to=${n}`,method:"GET",parse:!1}),r=await e.blob(),a=window.URL.createObjectURL(r);i(a)}catch(e){console.error("Failed to export CSV:",e),alert((0,yt.__)("Failed to export CSV. Please try again.","LION"))}finally{l(!1)}}else alert((0,yt.__)("Please select both Date From and Date To.","LION"))},disabled:s},(0,yt.__)("Export CSV","LION"))),s&&(0,e.createElement)(bt.BaseControl,null,(0,e.createElement)("p",null,(0,yt.__)("Generating your CSV...","LION"))),o&&!s&&(0,e.createElement)(bt.BaseControl,null,(0,e.createElement)("a",{href:o,download:`logs-${t}-to-${n}.csv`,onClick:function(){setTimeout((()=>{window.URL.revokeObjectURL(o),i(null)}),1e3)}},(0,yt.__)("Download CSV","LION")))))},ya=oa(bt.SnackbarList)` position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; `,ba=(wa=[{element:(0,e.createElement)((function(){const[t,r]=(0,gt.useState)(solidMailSettings),[n,a]=(0,gt.useState)([]);function o(e){const t=Date.now();a((r=>[...r,{id:t,message:e}]))}return(0,gt.useEffect)((()=>{xt()({path:"/wp/v2/settings"}).then((e=>r(e.solid_mail_settings))).catch((e=>{console.error("Failed to fetch settings:",e),o((0,yt.__)("Failed to fetch settings.","LION"))}))}),[]),(0,e.createElement)(Kn,{theme:na},(0,e.createElement)(da,{headerText:(0,yt.__)("Settings","LION"),withNav:!1},(0,e.createElement)(fa,{method:"post",onSubmit:async function(e){e.preventDefault();try{await xt()({path:"/wp/v2/settings",method:"POST",data:{solid_mail_settings:{...t}}}),o((0,yt.__)("Settings saved successfully.","LION"))}catch(e){console.error("Failed to save settings:",e),o((0,yt.__)("Failed to save settings.","LION"))}}},(0,e.createElement)(ha,{settings:t,setSettings:r}),(0,e.createElement)(ga,null)),n.length>0&&(0,e.createElement)(ya,{notices:n.map((e=>({id:e.id,content:e.message,status:"default"}))),onRemove:e=>{!function(e){a((t=>t.filter((t=>t.id!==e))))}(e)}})))}),null),index:!0}],function(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!r;let l;if(i(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;l=e=>({hasErrorBoundary:t(e)})}else l=K;let u,d,f={},v=m(e.routes,l,void 0,f),g=e.basename||"/",y=e.unstable_dataStrategy||ae,b=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),w=null,x=new Set,E=null,C=null,S=null,L=null!=e.hydrationData,R=p(v,e.history.location,g),k=null;if(null==R){let t=pe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=me(v);R=r,k={[n.id]:t}}let A,M=R.some((e=>e.route.lazy)),P=R.some((e=>e.route.loader));if(M)d=!1;else if(P)if(b.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=R.findIndex((e=>void 0!==r[e.route.id]));d=R.slice(0,e+1).every(n)}else d=R.every(n)}else d=null!=e.hydrationData;else d=!0;let T,O={historyAction:e.history.action,location:e.history.location,matches:R,initialized:d,navigation:W,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},D=a.Pop,N=!1,z=!1,I=new Map,U=null,F=!1,$=!1,V=[],te=[],re=new Map,le=0,ce=-1,ge=new Map,Le=new Set,Pe=new Map,Te=new Map,Oe=new Set,De=new Map,Ne=new Map,ze=!1;function Ie(e,t){void 0===t&&(t={}),O=n({},O,e);let r=[],a=[];b.v7_fetcherPersist&&O.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Oe.has(t)?a.push(t):r.push(t))})),[...x].forEach((e=>e(O,{deletedFetchers:a,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),b.v7_fetcherPersist&&(r.forEach((e=>O.fetchers.delete(e))),a.forEach((e=>Ye(e))))}function He(t,r,o){var i,s;let l,{flushSync:c}=void 0===o?{}:o,d=null!=O.actionData&&null!=O.navigation.formMethod&&Ee(O.navigation.formMethod)&&"loading"===O.navigation.state&&!0!==(null==(i=t.state)?void 0:i._isRedirect);l=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?O.actionData:null;let h=r.loaderData?de(O.loaderData,r.loaderData,r.matches||[],r.errors):O.loaderData,f=O.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,Z))));let m,p=!0===N||null!=O.navigation.formMethod&&Ee(O.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(u&&(v=u,u=void 0),F||D===a.Pop||(D===a.Push?e.history.push(t,t.state):D===a.Replace&&e.history.replace(t,t.state)),D===a.Pop){let e=I.get(O.location.pathname);e&&e.has(t.pathname)?m={currentLocation:O.location,nextLocation:t}:I.has(t.pathname)&&(m={currentLocation:t,nextLocation:O.location})}else if(z){let e=I.get(O.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(O.location.pathname,e)),m={currentLocation:O.location,nextLocation:t}}Ie(n({},r,{actionData:l,loaderData:h,historyAction:D,location:t,initialized:!0,navigation:W,revalidation:"idle",restoreScrollPosition:nt(t,r.matches||O.matches),preventScrollReset:p,blockers:f}),{viewTransitionOpts:m,flushSync:!0===c}),D=a.Pop,N=!1,z=!1,F=!1,$=!1,V=[],te=[]}async function je(t,r,o){T&&T.abort(),T=null,D=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(E&&S){let r=rt(e,t);E[r]=S()}}(O.location,O.matches),N=!0===(o&&o.preventScrollReset),z=!0===(o&&o.enableViewTransition);let i=u||v,s=o&&o.overrideNavigation,l=p(i,r,g),c=!0===(o&&o.flushSync);if(!l){let e=pe(404,{pathname:r.pathname}),{matches:t,route:n}=me(i);return tt(),void He(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}if(O.initialized&&!$&&(d=O.location,f=r,d.pathname===f.pathname&&d.search===f.search&&(""===d.hash?""!==f.hash:d.hash===f.hash||""!==f.hash))&&!(o&&o.submission&&Ee(o.submission.formMethod)))return void He(r,{matches:l},{flushSync:c});var d,f;T=new AbortController;let m,y=se(e.history,r,T.signal,o&&o.submission);if(o&&o.pendingError)m=[fe(l).route.id,{type:h.error,error:o.pendingError}];else if(o&&o.submission&&Ee(o.submission.formMethod)){let t=await async function(e,t,r,n,o){void 0===o&&(o={}),Ve();let i,s=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);Ie({navigation:s},{flushSync:!0===o.flushSync});let l=Re(n,t);if(l.route.action||l.route.lazy){if(i=(await Fe("action",e,[l],n))[0],e.signal.aborted)return{shortCircuited:!0}}else i={type:h.error,error:pe(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(we(i)){let t;return t=o&&null!=o.replace?o.replace:ie(i.response.headers.get("Location"),new URL(e.url),g)===O.location.pathname+O.location.search,await Ue(e,i,{submission:r,replace:t}),{shortCircuited:!0}}if(ye(i))throw pe(400,{type:"defer-action"});if(be(i)){let e=fe(n,l.route.id);return!0!==(o&&o.replace)&&(D=a.Push),{pendingActionResult:[e.route.id,i]}}return{pendingActionResult:[l.route.id,i]}}(y,r,o.submission,l,{replace:o.replace,flushSync:c});if(t.shortCircuited)return;m=t.pendingActionResult,s=Ae(r,o.submission),c=!1,y=se(e.history,y.url,y.signal)}let{shortCircuited:w,loaderData:x,errors:C}=await async function(t,r,a,o,i,s,l,c,d,h){let f=o||Ae(r,i),m=i||s||ke(f),p=u||v,[y,w]=ee(e.history,O,a,m,r,b.v7_partialHydration&&!0===c,b.unstable_skipActionErrorRevalidation,$,V,te,Oe,Pe,Le,p,g,h);if(tt((e=>!(a&&a.some((t=>t.route.id===e)))||y&&y.some((t=>t.route.id===e)))),ce=++le,0===y.length&&0===w.length){let e=Ke();return He(r,n({matches:a,loaderData:{},errors:h&&be(h[1])?{[h[0]]:h[1].error}:null},he(h),e?{fetchers:new Map(O.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(!(F||b.v7_partialHydration&&c)){let e;w.forEach((e=>{let t=O.fetchers.get(e.key),r=_e(void 0,t?t.data:void 0);O.fetchers.set(e.key,r)})),h&&!be(h[1])?e={[h[0]]:h[1].data}:O.actionData&&(e=0===Object.keys(O.actionData).length?null:O.actionData),Ie(n({navigation:f},void 0!==e?{actionData:e}:{},w.length>0?{fetchers:new Map(O.fetchers)}:{}),{flushSync:d})}w.forEach((e=>{re.has(e.key)&&Ze(e.key),e.controller&&re.set(e.key,e.controller)}));let x=()=>w.forEach((e=>Ze(e.key)));T&&T.signal.addEventListener("abort",x);let{loaderResults:E,fetcherResults:C}=await $e(O.matches,a,y,w,t);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",x),w.forEach((e=>re.delete(e.key)));let S=ve([...E,...C]);if(S){if(S.idx>=y.length){let e=w[S.idx-y.length].key;Le.add(e)}return await Ue(t,S.result,{replace:l}),{shortCircuited:!0}}let{loaderData:L,errors:R}=ue(O,a,y,E,h,w,C,De);De.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&De.delete(t)}))})),b.v7_partialHydration&&c&&O.errors&&Object.entries(O.errors).filter((e=>{let[t]=e;return!y.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;R=Object.assign(R||{},{[t]:r})}));let k=Ke(),A=Xe(ce),_=k||A||w.length>0;return n({loaderData:L,errors:R},_?{fetchers:new Map(O.fetchers)}:{})}(y,r,l,s,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,c,m);w||(T=null,He(r,n({matches:l},he(m),{loaderData:x,errors:C})))}async function Ue(o,s,l){let{submission:u,fetcherSubmission:d,replace:h}=void 0===l?{}:l;s.response.headers.has("X-Remix-Revalidate")&&($=!0);let f=s.response.headers.get("Location");i(f,"Expected a Location header on the redirect Response"),f=ie(f,new URL(o.url),g);let m=c(O.location,f,{_isRedirect:!0});if(r){let r=!1;if(s.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(q.test(f)){const n=e.history.createURL(f);r=n.origin!==t.location.origin||null==_(n.pathname,g)}if(r)return void(h?t.location.replace(f):t.location.assign(f))}T=null;let p=!0===h?a.Replace:a.Push,{formMethod:v,formAction:y,formEncType:b}=O.navigation;!u&&!d&&v&&y&&b&&(u=ke(O.navigation));let w=u||d;if(G.has(s.response.status)&&w&&Ee(w.formMethod))await je(p,m,{submission:n({},w,{formAction:f}),preventScrollReset:N});else{let e=Ae(m,u);await je(p,m,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:N})}}async function Fe(e,t,r,a){try{let o=await async function(e,t,r,a,o,s,l,c){let u=a.reduce(((e,t)=>e.add(t.route.id)),new Set),d=new Set,f=await e({matches:o.map((e=>{let a=u.has(e.route.id);return n({},e,{shouldLoad:a,resolve:n=>(d.add(e.route.id),a?async function(e,t,r,n,a,o,s){let l,c,u=n=>{let a,i=new Promise(((e,t)=>a=t));c=()=>a(),t.signal.addEventListener("abort",c);let l,u=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:s},...void 0!==a?[a]:[]);return l=o?o((e=>u(e))):(async()=>{try{return{type:"data",result:await u()}}catch(e){return{type:"error",result:e}}})(),Promise.race([l,i])};try{let o=r.route[e];if(r.route.lazy)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),ne(r.route,a,n)]);if(void 0!==e)throw e;l=t}else{if(await ne(r.route,a,n),o=r.route[e],!o){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw pe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:h.data,result:void 0}}l=await u(o)}else{if(!o){let e=new URL(t.url);throw pe(404,{pathname:e.pathname+e.search})}l=await u(o)}i(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:h.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return l}(t,r,e,s,l,n,c):Promise.resolve({type:h.data,result:void 0}))})})),request:r,params:o[0].params,context:c});return o.forEach((e=>i(d.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),f.filter(((e,t)=>u.has(o[t].route.id)))}(y,e,t,r,a,f,l);return await Promise.all(o.map(((e,n)=>{if(function(e){return xe(e.result)&&B.has(e.result.status)}(e)){let o=e.result;return{type:h.redirect,response:oe(o,t,r[n].route.id,a,g,b.v7_relativeSplatPath)}}return async function(e){let{result:t,type:r,status:n}=e;if(xe(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:h.error,error:e}}return r===h.error?{type:h.error,error:new H(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:h.data,data:e,statusCode:t.status,headers:t.headers}}return r===h.error?{type:h.error,error:t,statusCode:j(t)?t.status:n}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:h.deferred,deferredData:t,statusCode:null==(a=t.init)?void 0:a.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:{type:h.data,data:t,statusCode:n};var a,o}(e)})))}catch(e){return r.map((()=>({type:h.error,error:e})))}}async function $e(t,r,n,a,o){let[i,...s]=await Promise.all([n.length?Fe("loader",o,n,r):[],...a.map((t=>t.matches&&t.match&&t.controller?Fe("loader",se(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0])):Promise.resolve({type:h.error,error:pe(404,{pathname:t.path})})))]);return await Promise.all([Ce(t,n,i,i.map((()=>o.signal)),!1,O.loaderData),Ce(t,a.map((e=>e.match)),s,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:i,fetcherResults:s}}function Ve(){$=!0,V.push(...tt()),Pe.forEach(((e,t)=>{re.has(t)&&(te.push(t),Ze(t))}))}function Be(e,t,r){void 0===r&&(r={}),O.fetchers.set(e,t),Ie({fetchers:new Map(O.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ge(e,t,r,n){void 0===n&&(n={});let a=fe(O.matches,t);Ye(e),Ie({errors:{[a.route.id]:r},fetchers:new Map(O.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function We(e){return b.v7_fetcherPersist&&(Te.set(e,(Te.get(e)||0)+1),Oe.has(e)&&Oe.delete(e)),O.fetchers.get(e)||Y}function Ye(e){let t=O.fetchers.get(e);!re.has(e)||t&&"loading"===t.state&&ge.has(e)||Ze(e),Pe.delete(e),ge.delete(e),Le.delete(e),Oe.delete(e),O.fetchers.delete(e)}function Ze(e){let t=re.get(e);i(t,"Expected fetch controller: "+e),t.abort(),re.delete(e)}function qe(e){for(let t of e){let e=Me(We(t).data);O.fetchers.set(t,e)}}function Ke(){let e=[],t=!1;for(let r of Le){let n=O.fetchers.get(r);i(n,"Expected fetcher: "+r),"loading"===n.state&&(Le.delete(r),e.push(r),t=!0)}return qe(e),t}function Xe(e){let t=[];for(let[r,n]of ge)if(n0}function Je(e){O.blockers.delete(e),Ne.delete(e)}function Qe(e,t){let r=O.blockers.get(e)||Z;i("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(O.blockers);n.set(e,t),Ie({blockers:n})}function et(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Ne.size)return;Ne.size>1&&s(!1,"A router only supports one blocker at a time");let a=Array.from(Ne.entries()),[o,i]=a[a.length-1],l=O.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function tt(e){let t=[];return De.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),De.delete(n))})),t}function rt(e,t){return C&&C(e,t.map((e=>function(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}(e,O.loaderData))))||e.key}function nt(e,t){if(E){let r=rt(e,t),n=E[r];if("number"==typeof n)return n}return null}return A={get basename(){return g},get future(){return b},get state(){return O},get routes(){return v},get window(){return t},initialize:function(){if(w=e.history.listen((t=>{let{action:r,location:n,delta:a}=t;if(ze)return void(ze=!1);s(0===Ne.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=et({currentLocation:O.location,nextLocation:n,historyAction:r});return o&&null!=a?(ze=!0,e.history.go(-1*a),void Qe(o,{state:"blocked",location:n,proceed(){Qe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(O.blockers);e.set(o,Z),Ie({blockers:e})}})):je(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(X);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,I);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(X,JSON.stringify(r))}catch(e){s(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,I);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return O.initialized||je(a.Pop,O.location,{initialHydration:!0}),A},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,S=t,C=r||null,!L&&O.navigation===W){L=!0;let e=nt(O.location,O.matches);null!=e&&Ie({restoreScrollPosition:e})}return()=>{E=null,S=null,C=null}},navigate:async function t(r,o){if("number"==typeof r)return void e.history.go(r);let i=J(O.location,O.matches,g,b.v7_prependBasename,r,b.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:s,submission:l,error:u}=Q(b.v7_normalizeFormMethod,!1,i,o),d=O.location,h=c(O.location,s,o&&o.state);h=n({},h,e.history.encodeLocation(h));let f=o&&null!=o.replace?o.replace:void 0,m=a.Push;!0===f?m=a.Replace:!1===f||null!=l&&Ee(l.formMethod)&&l.formAction===O.location.pathname+O.location.search&&(m=a.Replace);let p=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,v=!0===(o&&o.unstable_flushSync),y=et({currentLocation:d,nextLocation:h,historyAction:m});if(!y)return await je(m,h,{submission:l,pendingError:u,preventScrollReset:p,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:v});Qe(y,{state:"blocked",location:h,proceed(){Qe(y,{state:"proceeding",proceed:void 0,reset:void 0,location:h}),t(r,o)},reset(){let e=new Map(O.blockers);e.set(y,Z),Ie({blockers:e})}})},fetch:function(t,r,n,a){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(t)&&Ze(t);let s=!0===(a&&a.unstable_flushSync),l=u||v,c=J(O.location,O.matches,g,b.v7_prependBasename,n,b.v7_relativeSplatPath,r,null==a?void 0:a.relative),d=p(l,c,g);if(!d)return void Ge(t,r,pe(404,{pathname:c}),{flushSync:s});let{path:h,submission:f,error:m}=Q(b.v7_normalizeFormMethod,!0,c,a);if(m)return void Ge(t,r,m,{flushSync:s});let y=Re(d,h);N=!0===(a&&a.preventScrollReset),f&&Ee(f.formMethod)?async function(t,r,n,a,o,s,l){if(Ve(),Pe.delete(t),!a.route.action&&!a.route.lazy){let e=pe(405,{method:l.formMethod,pathname:n,routeId:r});return void Ge(t,r,e,{flushSync:s})}let c=O.fetchers.get(t);Be(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(l,c),{flushSync:s});let d=new AbortController,h=se(e.history,n,d.signal,l);re.set(t,d);let f=le,m=(await Fe("action",h,[a],o))[0];if(h.signal.aborted)return void(re.get(t)===d&&re.delete(t));if(b.v7_fetcherPersist&&Oe.has(t)){if(we(m)||be(m))return void Be(t,Me(void 0))}else{if(we(m))return re.delete(t),ce>f?void Be(t,Me(void 0)):(Le.add(t),Be(t,_e(l)),Ue(h,m,{fetcherSubmission:l}));if(be(m))return void Ge(t,r,m.error)}if(ye(m))throw pe(400,{type:"defer-action"});let y=O.navigation.location||O.location,w=se(e.history,y,d.signal),x=u||v,E="idle"!==O.navigation.state?p(x,O.navigation.location,g):O.matches;i(E,"Didn't find any matches after fetcher action");let C=++le;ge.set(t,C);let S=_e(l,m.data);O.fetchers.set(t,S);let[L,R]=ee(e.history,O,E,l,y,!1,b.unstable_skipActionErrorRevalidation,$,V,te,Oe,Pe,Le,x,g,[a.route.id,m]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=O.fetchers.get(t),n=_e(void 0,r?r.data:void 0);O.fetchers.set(t,n),re.has(t)&&Ze(t),e.controller&&re.set(t,e.controller)})),Ie({fetchers:new Map(O.fetchers)});let k=()=>R.forEach((e=>Ze(e.key)));d.signal.addEventListener("abort",k);let{loaderResults:A,fetcherResults:_}=await $e(O.matches,E,L,R,w);if(d.signal.aborted)return;d.signal.removeEventListener("abort",k),ge.delete(t),re.delete(t),R.forEach((e=>re.delete(e.key)));let M=ve([...A,..._]);if(M){if(M.idx>=L.length){let e=R[M.idx-L.length].key;Le.add(e)}return Ue(w,M.result)}let{loaderData:P,errors:N}=ue(O,O.matches,L,A,void 0,R,_,De);if(O.fetchers.has(t)){let e=Me(m.data);O.fetchers.set(t,e)}Xe(C),"loading"===O.navigation.state&&C>ce?(i(D,"Expected pending action"),T&&T.abort(),He(O.navigation.location,{matches:E,loaderData:P,errors:N,fetchers:new Map(O.fetchers)})):(Ie({errors:N,loaderData:de(O.loaderData,P,E,N),fetchers:new Map(O.fetchers)}),$=!1)}(t,r,h,y,d,s,f):(Pe.set(t,{routeId:r,path:h}),async function(t,r,n,a,o,s,l){let c=O.fetchers.get(t);Be(t,_e(l,c?c.data:void 0),{flushSync:s});let u=new AbortController,d=se(e.history,n,u.signal);re.set(t,u);let h=le,f=(await Fe("loader",d,[a],o))[0];if(ye(f)&&(f=await Se(f,d.signal,!0)||f),re.get(t)===u&&re.delete(t),!d.signal.aborted){if(!Oe.has(t))return we(f)?ce>h?void Be(t,Me(void 0)):(Le.add(t),void await Ue(d,f)):void(be(f)?Ge(t,r,f.error):(i(!ye(f),"Unhandled fetcher deferred data"),Be(t,Me(f.data))));Be(t,Me(void 0))}}(t,r,h,y,d,s,f))},revalidate:function(){Ve(),Ie({revalidation:"loading"}),"submitting"!==O.navigation.state&&("idle"!==O.navigation.state?je(D||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation}):je(O.historyAction,O.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:We,deleteFetcher:function(e){if(b.v7_fetcherPersist){let t=(Te.get(e)||0)-1;t<=0?(Te.delete(e),Oe.add(e)):Te.set(e,t)}else Ye(e);Ie({fetchers:new Map(O.fetchers)})},dispose:function(){w&&w(),U&&U(),x.clear(),T&&T.abort(),O.fetchers.forEach(((e,t)=>Ye(t))),O.blockers.forEach(((e,t)=>Je(t)))},getBlocker:function(e,t){let r=O.blockers.get(e)||Z;return Ne.get(e)!==t&&Ne.set(e,t),r},deleteBlocker:Je,_internalFetchControllers:re,_internalActiveDeferreds:De,_internalSetRoutes:function(e){f={},u=m(e,l,void 0,f)}},A}({basename:void 0,future:Qe({},void 0,{v7_prependBasename:!0}),history:(xa={window:void 0},void 0===xa&&(xa={}),function(e,t,r,s){void 0===s&&(s={});let{window:d=document.defaultView,v5Compat:h=!1}=s,f=d.history,m=a.Pop,p=null,v=g();function g(){return(f.state||{idx:null}).idx}function y(){m=a.Pop;let e=g(),t=null==e?null:e-v;v=e,p&&p({action:m,location:w.location,delta:t})}function b(e){let t="null"!==d.location.origin?d.location.origin:d.location.href,r="string"==typeof e?e:u(e);return r=r.replace(/ $/,"%20"),i(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,f.replaceState(n({},f.state,{idx:v}),""));let w={get action(){return m},get location(){return e(d,f)},listen(e){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(o,y),p=e,()=>{d.removeEventListener(o,y),p=null}},createHref:e=>t(d,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m=a.Push;let n=c(w.location,e,t);r&&r(n,e),v=g()+1;let o=l(n,v),i=w.createHref(n);try{f.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;d.location.assign(i)}h&&p&&p({action:m,location:w.location,delta:1})},replace:function(e,t){m=a.Replace;let n=c(w.location,e,t);r&&r(n,e),v=g();let o=l(n,v),i=w.createHref(n);f.replaceState(o,"",i),h&&p&&p({action:m,location:w.location,delta:0})},go:e=>f.go(e)};return w}((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=d(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),c("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:u(t))}),(function(e,t){s("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),xa)),hydrationData:function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Qe({},t,{errors:nt(t.errors)})),t}(),routes:wa,mapRouteProperties:function(t){let r={hasErrorBoundary:null!=t.ErrorBoundary||null!=t.errorElement};return t.Component&&Object.assign(r,{element:e.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(r,{hydrateFallbackElement:e.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(r,{errorElement:e.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),r},unstable_dataStrategy:void 0,window:void 0}).initialize());var wa,xa;const Ea=document.getElementById("solidwp-mail-root");(0,gt.createRoot)(Ea).render((0,e.createElement)((function(t){let{fallbackElement:r,router:n,future:a}=t,[o,i]=e.useState(n.state),[s,l]=e.useState(),[c,u]=e.useState({isTransitioning:!1}),[d,h]=e.useState(),[f,m]=e.useState(),[p,v]=e.useState(),g=e.useRef(new Map),{v7_startTransition:y}=a||{},b=e.useCallback((e=>{y?function(e){it?it(e):e()}(e):e()}),[y]),w=e.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:a,unstable_viewTransitionOpts:o}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let s=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(o&&!s){if(a){lt((()=>{f&&(d&&d.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=n.window.document.startViewTransition((()=>{lt((()=>i(e)))}));return t.finished.finally((()=>{lt((()=>{h(void 0),m(void 0),l(void 0),u({isTransitioning:!1})}))})),void lt((()=>m(t)))}f?(d&&d.resolve(),f.skipTransition(),v({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?lt((()=>i(e))):b((()=>i(e)))}),[n.window,f,d,g,b]);e.useLayoutEffect((()=>n.subscribe(w)),[n,w]),e.useEffect((()=>{c.isTransitioning&&!c.flushSync&&h(new ct)}),[c]),e.useEffect((()=>{if(d&&s&&n.window){let e=s,t=d.promise,r=n.window.document.startViewTransition((async()=>{b((()=>i(e))),await t}));r.finished.finally((()=>{h(void 0),m(void 0),l(void 0),u({isTransitioning:!1})})),m(r)}}),[b,s,d,n.window]),e.useEffect((()=>{d&&s&&o.location.key===s.location.key&&d.resolve()}),[d,f,o.location,s]),e.useEffect((()=>{!c.isTransitioning&&p&&(l(p.state),u({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),v(void 0))}),[c.isTransitioning,p]),e.useEffect((()=>{}),[]);let x=e.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),E=n.basename||"/",C=e.useMemo((()=>({router:n,navigator:x,static:!1,basename:E})),[n,x,E]);return e.createElement(e.Fragment,null,e.createElement(Te.Provider,{value:C},e.createElement(Oe.Provider,{value:o},e.createElement(ot.Provider,{value:g.current},e.createElement(at.Provider,{value:c},e.createElement(Je,{basename:E,location:o.location,navigationType:o.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?e.createElement(ut,{routes:n.routes,future:n.future,state:o}):r))))),null)}),{router:ba}))})()})();