!function(){var e={485(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(null,arguments)}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}const o=(0,e.createContext)({theme_version:"1.0.0",theme_name:"Word"}),i=o.Provider;o.Consumer;var s=o,l=window.wp.i18n,c=ctEvents,u=n.n(c);var d,h=function(){const{theme_name:t,theme_custom_description:n,dashboard_has_heading:r}=(0,e.useContext)(s);let a={content:null};return u().trigger("ct:dashboard:heading:after",a),(0,e.createElement)("div",null,(0,e.createElement)("h2",{onClick:function(e){return e.shiftKey&&u().trigger("ct:dashboard:heading:advanced-click")}},"yes"===r&&(0,e.createElement)("svg",{width:"35",height:"35",viewBox:"0 0 35 35"},(0,e.createElement)("path",{fill:"#1e1e1e",d:"M35,17.5C35,7.8,27.2,0,17.5,0C7.8,0,0,7.8,0,17.5C0,27.2,7.8,35,17.5,35C27.2,35,35,27.2,35,17.5z"}),(0,e.createElement)("path",{fill:"#ffffff",d:"M16.3,13.7h3.9c0.5,0,0.9,0.4,0.9,1c0,0.5-0.4,1-1,1h-3.1L16.3,13.7z M24.2,17.6c0.6-0.8,1-1.9,1-3c0-1.1-0.4-2.1-1-2.9c-0.9-1.2-2.3-2-3.9-2.1c0,0-0.1,0-0.1,0v0h-9.4c-0.2,0-0.4,0.3-0.3,0.5l2.3,5.5h-1.9c-0.2,0-0.4,0.3-0.3,0.5l3.9,9.5h5.8c2.7,0,5-2.2,5-5C25.2,19.5,24.8,18.5,24.2,17.6C24.2,17.6,24.2,17.6,24.2,17.6zM16.3,19.6h3.9c0.5,0,0.9,0.4,0.9,1c0,0.5-0.4,1-1,1h-3.1L16.3,19.6z"}),"/>"),t,"yes"===r&&a.content),(0,e.createElement)("p",null,n||(0,l.__)("The most innovative, intuitive and lightning fast WordPress theme. Build your next web project visually, in no time.","blocksy")))},p=React;
/**
 * @remix-run/router v1.23.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(d||(d={}));const m="popstate";function v(e,t){if(!1===e||null==e)throw new Error(t)}function y(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function g(e,t){return{usr:e.state,key:e.key,idx:t}}function b(e,t,n,r){return void 0===n&&(n=null),f({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?_(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function w(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function _(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function E(e,t,n,r){void 0===r&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=d.Pop,l=null,c=u();function u(){return(i.state||{idx:null}).idx}function h(){s=d.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:y.location,delta:t})}function p(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:w(e);return n=n.replace(/ $/,"%20"),v(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,i.replaceState(f({},i.state,{idx:c}),""));let y={get action(){return s},get location(){return e(a,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(m,h),l=e,()=>{a.removeEventListener(m,h),l=null}},createHref:e=>t(a,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=d.Push;let r=b(y.location,e,t);n&&n(r,e),c=u()+1;let h=g(r,c),p=y.createHref(r);try{i.pushState(h,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(p)}o&&l&&l({action:s,location:y.location,delta:1})},replace:function(e,t){s=d.Replace;let r=b(y.location,e,t);n&&n(r,e),c=u();let a=g(r,c),h=y.createHref(r);i.replaceState(a,"",h),o&&l&&l({action:s,location:y.location,delta:0})},go:e=>i.go(e)};return y}var k;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(k||(k={}));const x=new Set(["lazy","caseSensitive","path","id","index","children"]);function S(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,a)=>{let o=[...n,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(v(!0!==e.index||!e.children,"Cannot specify children on an index route"),v(!r[i],'Found a route id collision on id "'+i+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=f({},e,t(e),{id:i});return r[i]=n,n}{let n=f({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=S(e.children,t,o,r)),n}})}function C(e,t,n){return void 0===n&&(n="/"),M(e,t,n,!1)}function M(e,t,n,r){let a=B(("string"==typeof t?_(t):t).pathname||"/",n);if(null==a)return null;let o=R(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=V(a);i=N(o[e],t,r)}return i}function R(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(v(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=Y([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(v(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),R(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:I(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of P(e.path))a(e,t,n);else a(e,t)}),t}function P(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=P(r.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 z=/^:[\w-]+$/,D=3,L=2,O=1,A=10,T=-2,j=e=>"*"===e;function I(e,t){let n=e.split("/"),r=n.length;return n.some(j)&&(r+=T),t&&(r+=L),n.filter(e=>!j(e)).reduce((e,t)=>e+(z.test(t)?D:""===t?O:A),r)}function N(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),i.push({params:a,pathname:Y([o,u.pathname]),pathnameBase:G(Y([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=Y([o,u.pathnameBase]))}return i}function U(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);y("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=s[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function V(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return y(!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 B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function $(e,t){void 0===t&&(t="/");let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?_(e):e;if(r)if(i=r,F.test(i))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),y(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?H(r.substring(1),"/"):H(r,t)}else n=t;var i;return{pathname:n,search:K(a),hash:X(o)}}function H(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function q(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function Q(e,t){let n=W(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function J(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=_(e):(a=f({},e),v(!a.pathname||!a.pathname.includes("?"),q("?","pathname","search",a)),v(!a.pathname||!a.pathname.includes("#"),q("#","pathname","hash",a)),v(!a.search||!a.search.includes("#"),q("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=$(a,o),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Y=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",X=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class Z{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const te=["post","put","patch","delete"],ne=new Set(te),re=["get",...te],ae=new Set(re),oe=new Set([301,302,303,307,308]),ie=new Set([307,308]),se={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},le={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ce={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,de=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),he="remix-router-transitions";function pe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!n;let a;if(v(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=de;let o,i,s,l={},c=S(e.routes,a,void 0,l),u=e.basename||"/",h=e.dataStrategy||ke,p=e.patchRoutesOnNavigation,m=f({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),g=null,w=new Set,_=null,E=null,x=null,R=null!=e.hydrationData,P=C(c,e.history.location,u),z=!1,D=null;if(null==P&&!p){let t=Ie(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=je(c);P=n,D={[r.id]:t}}if(P&&!e.hydrationData){ct(P,c,e.history.location.pathname).active&&(P=null)}if(P)if(P.some(e=>e.route.lazy))i=!1;else if(P.some(e=>e.route.loader))if(m.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=P.findIndex(e=>void 0!==n[e.route.id]);i=P.slice(0,e+1).every(e=>!ge(e.route,t,n))}else i=P.every(e=>!ge(e.route,t,n))}else i=null!=e.hydrationData;else i=!0;else if(i=!1,P=[],m.v7_partialHydration){let t=ct(null,c,e.history.location.pathname);t.active&&t.matches&&(z=!0,P=t.matches)}let L,O,A={historyAction:e.history.action,location:e.history.location,matches:P,initialized:i,navigation:se,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||D,fetchers:new Map,blockers:new Map},T=d.Pop,j=!1,I=!1,N=new Map,U=null,V=!1,F=!1,$=[],H=new Set,q=new Map,W=0,Q=-1,J=new Map,Y=new Set,G=new Map,K=new Map,X=new Set,Z=new Map,te=new Map;function ne(e,t){void 0===t&&(t={}),A=f({},A,e);let n=[],r=[];m.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{"idle"===e.state&&(X.has(t)?r.push(t):n.push(t))}),X.forEach(e=>{A.fetchers.has(e)||q.has(e)||r.push(e)}),[...w].forEach(e=>e(A,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),m.v7_fetcherPersist?(n.forEach(e=>A.fetchers.delete(e)),r.forEach(e=>De(e))):r.forEach(e=>X.delete(e))}function re(t,n,r){var a,i;let s,{flushSync:l}=void 0===r?{}:r,u=null!=A.actionData&&null!=A.navigation.formMethod&&Qe(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:u?A.actionData:null;let h=n.loaderData?Oe(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,p=A.blockers;p.size>0&&(p=new Map(p),p.forEach((e,t)=>p.set(t,ce)));let m,v=!0===j||null!=A.navigation.formMethod&&Qe(A.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(o&&(c=o,o=void 0),V||T===d.Pop||(T===d.Push?e.history.push(t,t.state):T===d.Replace&&e.history.replace(t,t.state)),T===d.Pop){let e=N.get(A.location.pathname);e&&e.has(t.pathname)?m={currentLocation:A.location,nextLocation:t}:N.has(t.pathname)&&(m={currentLocation:t,nextLocation:A.location})}else if(I){let e=N.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),N.set(A.location.pathname,e)),m={currentLocation:A.location,nextLocation:t}}ne(f({},n,{actionData:s,loaderData:h,historyAction:T,location:t,initialized:!0,navigation:se,revalidation:"idle",restoreScrollPosition:lt(t,n.matches||A.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===l}),T=d.Pop,j=!1,I=!1,V=!1,F=!1,$=[]}async function ae(t,n,r){L&&L.abort(),L=null,T=t,V=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(_&&x){let n=st(e,t);_[n]=x()}}(A.location,A.matches),j=!0===(r&&r.preventScrollReset),I=!0===(r&&r.enableViewTransition);let a=o||c,i=r&&r.overrideNavigation,s=null!=r&&r.initialHydration&&A.matches&&A.matches.length>0&&!z?A.matches:C(a,n,u),l=!0===(r&&r.flushSync);if(s&&A.initialized&&!F&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(A.location,n)&&!(r&&r.submission&&Qe(r.submission.formMethod)))return void re(n,{matches:s},{flushSync:l});let h=ct(s,a,n.pathname);if(h.active&&h.matches&&(s=h.matches),!s){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return void re(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}L=new AbortController;let p,v=Re(e.history,n,L.signal,r&&r.submission);if(r&&r.pendingError)p=[Te(s).route.id,{type:k.error,error:r.pendingError}];else if(r&&r.submission&&Qe(r.submission.formMethod)){let t=await async function(t,n,r,a,o,i){void 0===i&&(i={});we();let s,l=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,r);if(ne({navigation:l},{flushSync:!0===i.flushSync}),o){let e=await ut(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Te(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:k.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=ot(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:k.error,error:t}]}}a=e.matches}let c=Xe(a,n);if(c.route.action||c.route.lazy){if(s=(await ve("action",A,t,[c],a,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:k.error,error:Ie(405,{method:t.method,pathname:n.pathname,routeId:c.route.id})};if($e(s)){let n;if(i&&null!=i.replace)n=i.replace;else{n=Me(s.response.headers.get("Location"),new URL(t.url),u,e.history)===A.location.pathname+A.location.search}return await pe(t,s,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(Be(s))throw Ie(400,{type:"defer-action"});if(Fe(s)){let e=Te(a,c.route.id);return!0!==(i&&i.replace)&&(T=d.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[c.route.id,s]}}(v,n,r.submission,s,h.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Fe(r)&&ee(r.error)&&404===r.error.status)return L=null,void re(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}s=t.matches||s,p=t.pendingActionResult,i=et(n,r.submission),l=!1,h.active=!1,v=Re(e.history,v.url,v.signal)}let{shortCircuited:y,matches:g,loaderData:b,errors:w}=await async function(t,n,r,a,i,s,l,d,h,p,v){let y=i||et(n,s),g=s||l||Ze(y),b=!(V||m.v7_partialHydration&&h);if(a){if(b){let e=oe(v);ne(f({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ut(r,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Te(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let w=o||c,[_,E]=ye(e.history,A,r,g,n,m.v7_partialHydration&&!0===h,m.v7_skipActionErrorRevalidation,F,$,H,X,G,Y,w,u,v);if(it(e=>!(r&&r.some(t=>t.route.id===e))||_&&_.some(t=>t.route.id===e)),Q=++W,0===_.length&&0===E.length){let e=qe();return re(n,f({matches:r,loaderData:{},errors:v&&Fe(v[1])?{[v[0]]:v[1].error}:null},Ae(v),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(b){let e={};if(!a){e.navigation=y;let t=oe(v);void 0!==t&&(e.actionData=t)}E.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=A.fetchers.get(e.key),n=tt(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)}),new Map(A.fetchers)}(E)),ne(e,{flushSync:p})}E.forEach(e=>{Ue(e.key),e.controller&&q.set(e.key,e.controller)});let k=()=>E.forEach(e=>Ue(e.key));L&&L.signal.addEventListener("abort",k);let{loaderResults:x,fetcherResults:S}=await be(A,r,_,E,t);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",k);E.forEach(e=>q.delete(e.key));let C=Ne(x);if(C)return await pe(t,C.result,!0,{replace:d}),{shortCircuited:!0};if(C=Ne(S),C)return Y.add(C.key),await pe(t,C.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:M,errors:R}=Le(A,r,x,v,E,S,Z);Z.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&Z.delete(t)})}),m.v7_partialHydration&&h&&A.errors&&(R=f({},A.errors,R));let P=qe(),z=We(Q),D=P||z||E.length>0;return f({matches:r,loaderData:M,errors:R},D?{fetchers:new Map(A.fetchers)}:{})}(v,n,s,h.active,i,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,p);y||(L=null,re(n,f({matches:g||s},Ae(p),{loaderData:b,errors:w})))}function oe(e){return e&&!Fe(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function pe(r,a,o,i){let{submission:s,fetcherSubmission:l,preventScrollReset:c,replace:h}=void 0===i?{}:i;a.response.headers.has("X-Remix-Revalidate")&&(F=!0);let p=a.response.headers.get("Location");v(p,"Expected a Location header on the redirect Response"),p=Me(p,new URL(r.url),u,e.history);let m=b(A.location,p,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ue.test(p)){const r=e.history.createURL(p);n=r.origin!==t.location.origin||null==B(r.pathname,u)}if(n)return void(h?t.location.replace(p):t.location.assign(p))}L=null;let y=!0===h||a.response.headers.has("X-Remix-Replace")?d.Replace:d.Push,{formMethod:g,formAction:w,formEncType:_}=A.navigation;!s&&!l&&g&&w&&_&&(s=Ze(A.navigation));let E=s||l;if(ie.has(a.response.status)&&E&&Qe(E.formMethod))await ae(y,m,{submission:f({},E,{formAction:p}),preventScrollReset:c||j,enableViewTransition:o?I:void 0});else{let e=et(m,s);await ae(y,m,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:c||j,enableViewTransition:o?I:void 0})}}async function ve(e,t,n,r,o,i){let s,c={};try{s=await xe(h,e,t,n,r,o,i,l,a)}catch(e){return r.forEach(t=>{c[t.route.id]={type:k.error,error:e}}),c}for(let[e,t]of Object.entries(s))if(Ve(t)){let r=t.result;c[e]={type:k.redirect,response:Ce(r,n,e,o,u,m.v7_relativeSplatPath)}}else c[e]=await Se(t);return c}async function be(t,n,r,a,o){let i=t.matches,s=ve("loader",t,o,r,n,null),l=Promise.all(a.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await ve("loader",t,Re(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}return Promise.resolve({[n.key]:{type:k.error,error:Ie(404,{pathname:n.path})}})})),c=await s,u=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Je(n,c,o.signal,i,t.loaderData),Ye(n,u,a)]),{loaderResults:c,fetcherResults:u}}function we(){F=!0,$.push(...it()),G.forEach((e,t)=>{q.has(t)&&H.add(t),Ue(t)})}function Ee(e,t,n){void 0===n&&(n={}),A.fetchers.set(e,t),ne({fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Pe(e,t,n,r){void 0===r&&(r={});let a=Te(A.matches,t);De(e),ne({errors:{[a.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ze(e){return K.set(e,(K.get(e)||0)+1),X.has(e)&&X.delete(e),A.fetchers.get(e)||le}function De(e){let t=A.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&J.has(e)||Ue(e),G.delete(e),J.delete(e),Y.delete(e),m.v7_fetcherPersist&&X.delete(e),H.delete(e),A.fetchers.delete(e)}function Ue(e){let t=q.get(e);t&&(t.abort(),q.delete(e))}function He(e){for(let t of e){let e=nt(ze(t).data);A.fetchers.set(t,e)}}function qe(){let e=[],t=!1;for(let n of Y){let r=A.fetchers.get(n);v(r,"Expected fetcher: "+n),"loading"===r.state&&(Y.delete(n),e.push(n),t=!0)}return He(e),t}function We(e){let t=[];for(let[n,r]of J)if(r<e){let e=A.fetchers.get(n);v(e,"Expected fetcher: "+n),"loading"===e.state&&(Ue(n),J.delete(n),t.push(n))}return He(t),t.length>0}function Ke(e){A.blockers.delete(e),te.delete(e)}function rt(e,t){let n=A.blockers.get(e)||ce;v("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(A.blockers);r.set(e,t),ne({blockers:r})}function at(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===te.size)return;te.size>1&&y(!1,"A router only supports one blocker at a time");let a=Array.from(te.entries()),[o,i]=a[a.length-1],s=A.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}function ot(e){let t=Ie(404,{pathname:e}),n=o||c,{matches:r,route:a}=je(n);return it(),{notFoundMatches:r,route:a,error:t}}function it(e){let t=[];return Z.forEach((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),Z.delete(r))}),t}function st(e,t){if(E){return E(e,t.map(e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,A.loaderData)))||e.key}return e.key}function lt(e,t){if(_){let n=st(e,t),r=_[n];if("number"==typeof r)return r}return null}function ct(e,t,n){if(p){if(!e){return{active:!0,matches:M(t,n,u,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:M(t,n,u,!0)}}}return{active:!1,matches:null}}async function ut(e,t,n,r){if(!p)return{type:"success",matches:e};let i=e;for(;;){let e=null==o,s=o||c,d=l;try{await p({signal:n,path:t,matches:i,fetcherKey:r,patch:(e,t)=>{n.aborted||_e(e,t,s,d,a)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!n.aborted&&(c=[...c])}if(n.aborted)return{type:"aborted"};let h=C(s,t,u);if(h)return{type:"success",matches:h};let f=M(s,t,u,!0);if(!f||i.length===f.length&&i.every((e,t)=>e.route.id===f[t].route.id))return{type:"success",matches:null};i=f}}return s={get basename(){return u},get future(){return m},get state(){return A},get routes(){return c},get window(){return t},initialize:function(){if(g=e.history.listen(t=>{let{action:n,location:r,delta:a}=t;if(O)return O(),void(O=void 0);y(0===te.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=at({currentLocation:A.location,nextLocation:r,historyAction:n});if(o&&null!=a){let t=new Promise(e=>{O=e});return e.history.go(-1*a),void rt(o,{state:"blocked",location:r,proceed(){rt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(a))},reset(){let e=new Map(A.blockers);e.set(o,ce),ne({blockers:e})}})}return ae(n,r)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(he);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,N);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(he,JSON.stringify(n))}catch(e){y(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,N);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return A.initialized||ae(d.Pop,A.location,{initialHydration:!0}),s},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,n){if(_=e,x=t,E=n||null,!R&&A.navigation===se){R=!0;let e=lt(A.location,A.matches);null!=e&&ne({restoreScrollPosition:e})}return()=>{_=null,x=null,E=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let a=fe(A.location,A.matches,u,m.v7_prependBasename,n,m.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=me(m.v7_normalizeFormMethod,!1,a,r),l=A.location,c=b(A.location,o,r&&r.state);c=f({},c,e.history.encodeLocation(c));let h=r&&null!=r.replace?r.replace:void 0,p=d.Push;!0===h?p=d.Replace:!1===h||null!=i&&Qe(i.formMethod)&&i.formAction===A.location.pathname+A.location.search&&(p=d.Replace);let v=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,y=!0===(r&&r.flushSync),g=at({currentLocation:l,nextLocation:c,historyAction:p});if(!g)return await ae(p,c,{submission:i,pendingError:s,preventScrollReset:v,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:y});rt(g,{state:"blocked",location:c,proceed(){rt(g,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(n,r)},reset(){let e=new Map(A.blockers);e.set(g,ce),ne({blockers:e})}})},fetch:function(t,n,a,i){if(r)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.");Ue(t);let s=!0===(i&&i.flushSync),l=o||c,d=fe(A.location,A.matches,u,m.v7_prependBasename,a,m.v7_relativeSplatPath,n,null==i?void 0:i.relative),h=C(l,d,u),p=ct(h,l,d);if(p.active&&p.matches&&(h=p.matches),!h)return void Pe(t,n,Ie(404,{pathname:d}),{flushSync:s});let{path:f,submission:y,error:g}=me(m.v7_normalizeFormMethod,!0,d,i);if(g)return void Pe(t,n,g,{flushSync:s});let b=Xe(h,f),w=!0===(i&&i.preventScrollReset);y&&Qe(y.formMethod)?async function(t,n,r,a,i,s,l,d,h){function p(e){if(!e.route.action&&!e.route.lazy){let e=Ie(405,{method:h.formMethod,pathname:r,routeId:n});return Pe(t,n,e,{flushSync:l}),!0}return!1}if(we(),G.delete(t),!s&&p(a))return;let f=A.fetchers.get(t);Ee(t,function(e,t){let n={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};return n}(h,f),{flushSync:l});let y=new AbortController,g=Re(e.history,r,y.signal,h);if(s){let e=await ut(i,new URL(g.url).pathname,g.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Pe(t,n,e.error,{flushSync:l});if(!e.matches)return void Pe(t,n,Ie(404,{pathname:r}),{flushSync:l});if(p(a=Xe(i=e.matches,r)))return}q.set(t,y);let b=W,w=await ve("action",A,g,[a],i,t),_=w[a.route.id];if(g.signal.aborted)return void(q.get(t)===y&&q.delete(t));if(m.v7_fetcherPersist&&X.has(t)){if($e(_)||Fe(_))return void Ee(t,nt(void 0))}else{if($e(_))return q.delete(t),Q>b?void Ee(t,nt(void 0)):(Y.add(t),Ee(t,tt(h)),pe(g,_,!1,{fetcherSubmission:h,preventScrollReset:d}));if(Fe(_))return void Pe(t,n,_.error)}if(Be(_))throw Ie(400,{type:"defer-action"});let E=A.navigation.location||A.location,k=Re(e.history,E,y.signal),x=o||c,S="idle"!==A.navigation.state?C(x,A.navigation.location,u):A.matches;v(S,"Didn't find any matches after fetcher action");let M=++W;J.set(t,M);let R=tt(h,_.data);A.fetchers.set(t,R);let[P,z]=ye(e.history,A,S,h,E,!1,m.v7_skipActionErrorRevalidation,F,$,H,X,G,Y,x,u,[a.route.id,_]);z.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=A.fetchers.get(t),r=tt(void 0,n?n.data:void 0);A.fetchers.set(t,r),Ue(t),e.controller&&q.set(t,e.controller)}),ne({fetchers:new Map(A.fetchers)});let D=()=>z.forEach(e=>Ue(e.key));y.signal.addEventListener("abort",D);let{loaderResults:O,fetcherResults:j}=await be(A,S,P,z,k);if(y.signal.aborted)return;y.signal.removeEventListener("abort",D),J.delete(t),q.delete(t),z.forEach(e=>q.delete(e.key));let I=Ne(O);if(I)return pe(k,I.result,!1,{preventScrollReset:d});if(I=Ne(j),I)return Y.add(I.key),pe(k,I.result,!1,{preventScrollReset:d});let{loaderData:N,errors:U}=Le(A,S,O,void 0,z,j,Z);if(A.fetchers.has(t)){let e=nt(_.data);A.fetchers.set(t,e)}We(M),"loading"===A.navigation.state&&M>Q?(v(T,"Expected pending action"),L&&L.abort(),re(A.navigation.location,{matches:S,loaderData:N,errors:U,fetchers:new Map(A.fetchers)})):(ne({errors:U,loaderData:Oe(A.loaderData,N,S,U),fetchers:new Map(A.fetchers)}),F=!1)}(t,n,f,b,h,p.active,s,w,y):(G.set(t,{routeId:n,path:f}),async function(t,n,r,a,o,i,s,l,c){let u=A.fetchers.get(t);Ee(t,tt(c,u?u.data:void 0),{flushSync:s});let d=new AbortController,h=Re(e.history,r,d.signal);if(i){let e=await ut(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Pe(t,n,e.error,{flushSync:s});if(!e.matches)return void Pe(t,n,Ie(404,{pathname:r}),{flushSync:s});a=Xe(o=e.matches,r)}q.set(t,d);let p=W,f=await ve("loader",A,h,[a],o,t),m=f[a.route.id];Be(m)&&(m=await Ge(m,h.signal,!0)||m);q.get(t)===d&&q.delete(t);if(h.signal.aborted)return;if(X.has(t))return void Ee(t,nt(void 0));if($e(m))return Q>p?void Ee(t,nt(void 0)):(Y.add(t),void await pe(h,m,!1,{preventScrollReset:l}));if(Fe(m))return void Pe(t,n,m.error);v(!Be(m),"Unhandled fetcher deferred data"),Ee(t,nt(m.data))}(t,n,f,b,h,p.active,s,w,y))},revalidate:function(){we(),ne({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?ae(T||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:!0===I}):ae(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ze,deleteFetcher:function(e){let t=(K.get(e)||0)-1;t<=0?(K.delete(e),X.add(e),m.v7_fetcherPersist||De(e)):K.set(e,t),ne({fetchers:new Map(A.fetchers)})},dispose:function(){g&&g(),U&&U(),w.clear(),L&&L.abort(),A.fetchers.forEach((e,t)=>De(t)),A.blockers.forEach((e,t)=>Ke(t))},getBlocker:function(e,t){let n=A.blockers.get(e)||ce;return te.get(e)!==t&&te.set(e,t),n},deleteBlocker:Ke,patchRoutes:function(e,t){let n=null==o;_e(e,t,o||c,l,a),n&&(c=[...c],ne({}))},_internalFetchControllers:q,_internalActiveDeferreds:Z,_internalSetRoutes:function(e){l={},o=S(e,a,void 0,l)}},s}Symbol("deferred");function fe(e,t,n,r,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 u=J(a||".",Q(l,o),B(e.pathname,n)||e.pathname,"path"===s);if(null==a&&(u.search=e.search,u.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=Ke(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();u.search=n?"?"+n:""}}return r&&"/"!==n&&(u.pathname="/"===u.pathname?n:Y([n,u.pathname])),w(u)}function me(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!We(r.formMethod))return{path:n,error:Ie(405,{method:r.formMethod})};let a,o,i=()=>({path:n,error:Ie(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),c=Ue(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Qe(l))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Qe(l))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(v("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=Pe(r.formData),o=r.formData;else if(r.body instanceof FormData)a=Pe(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=ze(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=ze(a)}catch(e){return i()}let u={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Qe(u.formMethod))return{path:n,submission:u};let d=_(n);return t&&d.search&&Ke(d.search)&&a.append("index",""),d.search="?"+a,{path:w(d),submission:u}}function ve(e,t,n){void 0===n&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function ye(e,t,n,r,a,o,i,s,l,c,u,d,h,p,m,v){let y=v?Fe(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=n;o&&t.errors?w=ve(n,Object.keys(t.errors)[0],!0):v&&Fe(v[1])&&(w=ve(n,v[0]));let _=v?v[1].statusCode:void 0,E=i&&_&&_>=400,k=w.filter((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return ge(a,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||l.some(t=>t===e.route.id))return!0;let i=t.matches[n],c=e;return we(e,f({currentUrl:g,currentParams:i.params,nextUrl:b,nextParams:c.params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!E&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||be(i,c))}))}),x=[];return d.forEach((e,a)=>{if(o||!n.some(t=>t.route.id===e.routeId)||u.has(a))return;let i=C(p,e.path,m);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(a),d=Xe(i,e.path),v=!1;h.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=l&&"idle"!==l.state&&void 0===l.data?s:we(d,f({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!E&&s})),v&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[k,x]}function ge(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],a=null!=n&&void 0!==n[e.id];return!(!r&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!a)}function be(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function we(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function _e(e,t,n,r,a){var o;let i;if(e){let t=r[e];v(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=n;let s=S(t.filter(e=>!i.some(t=>Ee(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],r);i.push(...s)}function Ee(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>{var r;return null==(r=t.children)?void 0:r.some(t=>Ee(e,t))}))}async function ke(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function xe(e,t,n,r,a,o,i,s,l,c){let u=o.map(e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];v(a,"No route found in manifest");let o={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;y(!t,'Route "'+a.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||x.has(e)||(o[e]=r[e])}Object.assign(a,o),Object.assign(a,f({},t(a),{lazy:void 0}))}(e.route,l,s):void 0),d=o.map((e,n)=>{let o=u[n],i=a.some(t=>t.route.id===e.route.id);return f({},e,{shouldLoad:i,resolve:async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,n,r,a,o){let i,s,l=r=>{let i,l=new Promise((e,t)=>i=t);s=()=>i(),t.signal.addEventListener("abort",s);let c=a=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:o},...void 0!==a?[a]:[]),u=(async()=>{try{let e=await(a?a(e=>c(e)):c());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,l])};try{let a=n.route[e];if(r)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),r]);if(void 0!==e)throw e;i=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Ie(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:k.data,result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw Ie(404,{pathname:e.pathname+e.search})}i=await l(a)}v(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:k.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,r,e,o,n,c):Promise.resolve({type:k.data,result:void 0}))})}),h=await e({matches:d,request:r,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(u)}catch(e){}return h}async function Se(e){let{result:t,type:n}=e;if(qe(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:k.error,error:e}}return n===k.error?{type:k.error,error:new Z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:k.data,data:e,statusCode:t.status,headers:t.headers}}var r,a,o,i,s,l,c,u;return n===k.error?He(t)?t.data instanceof Error?{type:k.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:k.error,error:new Z((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:ee(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:k.error,error:t,statusCode:ee(t)?t.status:void 0}: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:k.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:He(t)?{type:k.data,data:t.data,statusCode:null==(c=t.init)?void 0:c.status,headers:null!=(u=t.init)&&u.headers?new Headers(t.init.headers):void 0}:{type:k.data,data:t}}function Ce(e,t,n,r,a,o){let i=e.headers.get("Location");if(v(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ue.test(i)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);i=fe(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function Me(e,t,n,r){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ue.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(a.includes(o.protocol))throw new Error("Invalid redirect location");let i=null!=B(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}try{let t=r.createURL(e);if(a.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Re(e,t,n,r){let a=e.createURL(Ue(t)).toString(),o={signal:n};if(r&&Qe(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=Pe(r.formData):o.body=r.formData}return new Request(a,o)}function Pe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function ze(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function De(e,t,n,r,a){let o,i={},s=null,l=!1,c={},u=n&&Fe(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,h=t[d];if(v(!$e(h),"Cannot handle redirect results in processLoaderData"),Fe(h)){let t=h.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},a)s[d]=t;else{let n=Te(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}i[d]=void 0,l||(l=!0,o=ee(h.error)?h.error.status:500),h.headers&&(c[d]=h.headers)}else Be(h)?(r.set(d,h.deferredData),i[d]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(o=h.statusCode),h.headers&&(c[d]=h.headers)):(i[d]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(o=h.statusCode),h.headers&&(c[d]=h.headers))}),void 0!==u&&n&&(s={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}function Le(e,t,n,r,a,o,i){let{loaderData:s,errors:l}=De(t,n,r,i,!1);return a.forEach(t=>{let{key:n,match:r,controller:a}=t,i=o[n];if(v(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Fe(i)){let t=Te(e.matches,null==r?void 0:r.route.id);l&&l[t.route.id]||(l=f({},l,{[t.route.id]:i.error})),e.fetchers.delete(n)}else if($e(i))v(!1,"Unhandled fetcher revalidation redirect");else if(Be(i))v(!1,"Unhandled fetcher deferred data");else{let t=nt(i.data);e.fetchers.set(n,t)}}),{loaderData:s,errors:l}}function Oe(e,t,n,r){let a=f({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(a[n]=t[n]):void 0!==e[n]&&o.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))break}return a}function Ae(e){return e?Fe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Te(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function je(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 Ie(e,t){let{pathname:n,routeId:r,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",l='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new Z(e||500,s,new Error(l),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if($e(r))return{key:n,result:r}}}function Ue(e){return w(f({},"string"==typeof e?_(e):e,{hash:""}))}function Ve(e){return qe(e.result)&&oe.has(e.result.status)}function Be(e){return e.type===k.deferred}function Fe(e){return e.type===k.error}function $e(e){return(e&&e.type)===k.redirect}function He(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function qe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function We(e){return ae.has(e.toLowerCase())}function Qe(e){return ne.has(e.toLowerCase())}async function Je(e,t,n,r,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],c=e.find(e=>(null==e?void 0:e.route.id)===s);if(!c)continue;let u=r.find(e=>e.route.id===c.route.id),d=null!=u&&!be(u,c)&&void 0!==(a&&a[c.route.id]);Be(l)&&d&&await Ge(l,n,!1).then(e=>{e&&(t[s]=e)})}}async function Ye(e,t,n){for(let r=0;r<n.length;r++){let{key:a,routeId:o,controller:i}=n[r],s=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&(Be(s)&&(v(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ge(s,i.signal,!0).then(e=>{e&&(t[a]=e)})))}}async function Ge(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:k.data,data:e.deferredData.unwrappedData}}catch(e){return{type:k.error,error:e}}return{type:k.data,data:e.deferredData.data}}}function Ke(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Xe(e,t){let n="string"==typeof t?_(t).search:t.search;if(e[e.length-1].route.index&&Ke(n||""))return e[e.length-1];let r=W(e);return r[r.length-1]}function Ze(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function et(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}
/**
 * React Router v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt.apply(this,arguments)}const at=p.createContext(null);const ot=p.createContext(null);const it=p.createContext(null);const st=p.createContext(null);const lt=p.createContext({outlet:null,matches:[],isDataRoute:!1});const ct=p.createContext(null);function ut(){return null!=p.useContext(st)}function dt(){return ut()||v(!1),p.useContext(st).location}function ht(e){ut()||v(!1);let{pathname:t}=dt();return p.useMemo(()=>U(e,V(t)),[t,e])}function pt(e){p.useContext(it).static||p.useLayoutEffect(e)}function ft(){let{isDataRoute:e}=p.useContext(lt);return e?function(){let{router:e}=St(kt.UseNavigateStable),t=Mt(xt.UseNavigateStable),n=p.useRef(!1);pt(()=>{n.current=!0});let r=p.useCallback(function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,rt({fromRouteId:t},a)))},[e,t]);return r}():function(){ut()||v(!1);let e=p.useContext(at),{basename:t,future:n,navigator:r}=p.useContext(it),{matches:a}=p.useContext(lt),{pathname:o}=dt(),i=JSON.stringify(Q(a,n.v7_relativeSplatPath)),s=p.useRef(!1);pt(()=>{s.current=!0});let l=p.useCallback(function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=J(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Y([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e]);return l}()}const mt=p.createContext(null);function vt(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=p.useContext(it),{matches:a}=p.useContext(lt),{pathname:o}=dt(),i=JSON.stringify(Q(a,r.v7_relativeSplatPath));return p.useMemo(()=>J(e,JSON.parse(i),o,"path"===n),[e,i,o,n])}function yt(e,t,n,r){ut()||v(!1);let{navigator:a}=p.useContext(it),{matches:o}=p.useContext(lt),i=o[o.length-1],s=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let c,u=dt();if(t){var h;let e="string"==typeof t?_(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||v(!1),c=e}else c=u;let f=c.pathname||"/",m=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=C(e,{pathname:m});let g=Et(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Y([l,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Y([l,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&g?p.createElement(st.Provider,{value:{location:rt({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:d.Pop}},g):g}function gt(){let e=function(){var e;let t=p.useContext(ct),n=Ct(xt.UseRouteError),r=Mt(xt.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=ee(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,null)}const bt=p.createElement(gt,null);class wt extends p.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?p.createElement(lt.Provider,{value:this.props.routeContext},p.createElement(ct.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _t(e){let{routeContext:t,match:n,children:r}=e,a=p.useContext(at);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(lt.Provider,{value:t},r)}function Et(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let i=e,s=null==(a=n)?void 0:a.errors;if(null!=s){let e=i.findIndex(e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id]));e>=0||v(!1),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){l=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight((e,r,a)=>{let o,u=!1,d=null,h=null;var f;n&&(o=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||bt,l&&(c<0&&0===a?(f="route-fallback",!1||Rt[f]||(Rt[f]=!0),u=!0,h=null):c===a&&(u=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=o?d:u?h:r.route.Component?p.createElement(r.route.Component,null):r.route.element?r.route.element:e,p.createElement(_t,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?p.createElement(wt,{location:n.location,revalidation:n.revalidation,component:d,error:o,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var kt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kt||{}),xt=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}(xt||{});function St(e){let t=p.useContext(at);return t||v(!1),t}function Ct(e){let t=p.useContext(ot);return t||v(!1),t}function Mt(e){let t=function(){let e=p.useContext(lt);return e||v(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||v(!1),n.route.id}const Rt={};function Pt(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}p.startTransition;function zt(e){return function(e){let t=p.useContext(lt).outlet;return t?p.createElement(mt.Provider,{value:e},t):t}(e.context)}function Dt(e){v(!1)}function Lt(e){let{basename:t="/",children:n=null,location:r,navigationType:a=d.Pop,navigator:o,static:i=!1,future:s}=e;ut()&&v(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:o,static:i,future:rt({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);"string"==typeof r&&(r=_(r));let{pathname:u="/",search:h="",hash:f="",state:m=null,key:y="default"}=r,g=p.useMemo(()=>{let e=B(u,l);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:y},navigationType:a}},[l,u,h,f,m,y,a]);return null==g?null:p.createElement(it.Provider,{value:c},p.createElement(st.Provider,{children:n,value:g}))}new Promise(()=>{});p.Component;function Ot(e,t){void 0===t&&(t=[]);let n=[];return p.Children.forEach(e,(e,r)=>{if(!p.isValidElement(e))return;let a=[...t,r];if(e.type===p.Fragment)return void n.push.apply(n,Ot(e.props.children,a));e.type!==Dt&&v(!1),e.props.index&&e.props.children&&v(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Ot(e.props.children,a)),n.push(o)}),n}function At(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var Tt=ReactDOM;
/**
 * React Router DOM v6.30.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jt.apply(this,arguments)}function It(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Nt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ut=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function Vt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=jt({},t,{errors:Bt(t.errors)})),t}function Bt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Z(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let a=new t(r.message);a.stack="",n[e]=a}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const Ft=p.createContext({isTransitioning:!1});const $t=p.createContext(new Map);const Ht=p.startTransition,qt=Tt.flushSync;p.useId;function Wt(e){qt?qt(e):e()}class Qt{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 Jt(e){let{fallbackElement:t,router:n,future:r}=e,[a,o]=p.useState(n.state),[i,s]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[u,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=r||{},b=p.useCallback(e=>{g?function(e){Ht?Ht(e):e()}(e):e()},[g]),w=p.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),r.forEach(e=>y.current.delete(e));let l=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!l){if(a){Wt(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=n.window.document.startViewTransition(()=>{Wt(()=>o(e))});return t.finished.finally(()=>{Wt(()=>{d(void 0),f(void 0),s(void 0),c({isTransitioning:!1})})}),void Wt(()=>f(t))}h?(u&&u.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else a?Wt(()=>o(e)):b(()=>o(e))},[n.window,h,u,y,b]);p.useLayoutEffect(()=>n.subscribe(w),[n,w]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new Qt)},[l]),p.useEffect(()=>{if(u&&i&&n.window){let e=i,t=u.promise,r=n.window.document.startViewTransition(async()=>{b(()=>o(e)),await t});r.finished.finally(()=>{d(void 0),f(void 0),s(void 0),c({isTransitioning:!1})}),f(r)}},[b,i,u,n.window]),p.useEffect(()=>{u&&i&&a.location.key===i.location.key&&u.resolve()},[u,h,a.location,i]),p.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[l.isTransitioning,m]),p.useEffect(()=>{},[]);let _=p.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||"/",k=p.useMemo(()=>({router:n,navigator:_,static:!1,basename:E}),[n,_,E]),x=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.useEffect(()=>Pt(r,n.future),[r,n.future]),p.createElement(p.Fragment,null,p.createElement(at.Provider,{value:k},p.createElement(ot.Provider,{value:a},p.createElement($t.Provider,{value:y.current},p.createElement(Ft.Provider,{value:l},p.createElement(Lt,{basename:E,location:a.location,navigationType:a.historyAction,navigator:_,future:x},a.initialized||n.future.v7_partialHydration?p.createElement(Yt,{routes:n.routes,future:n.future,state:a}):t))))),null)}const Yt=p.memo(Gt);function Gt(e){let{routes:t,future:n,state:r}=e;return yt(t,void 0,r,n)}const Kt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Xt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zt=p.forwardRef(function(e,t){let n,{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,h=It(e,Nt),{basename:f}=p.useContext(it),m=!1;if("string"==typeof c&&Xt.test(c)&&(n=c,Kt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=B(t.pathname,f);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:m=!0}catch(e){}let y=function(e,t){let{relative:n}=void 0===t?{}:t;ut()||v(!1);let{basename:r,navigator:a}=p.useContext(it),{hash:o,pathname:i,search:s}=vt(e,{relative:n}),l=i;return"/"!==r&&(l="/"===i?r:Y([r,i])),a.createHref({pathname:l,search:s,hash:o})}(c,{relative:a}),g=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,l=ft(),c=dt(),u=vt(e,{relative:i});return p.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:w(c)===w(u);l(e,{replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s})}},[c,l,u,r,a,n,e,o,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:a,viewTransition:d});return p.createElement("a",jt({},h,{href:n||y,onClick:m||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))});const en=p.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:o=!1,style:i,to:s,viewTransition:l,children:c}=e,u=It(e,Ut),d=vt(s,{relative:u.relative}),h=dt(),f=p.useContext(ot),{navigator:m,basename:y}=p.useContext(it),g=null!=f&&function(e,t){void 0===t&&(t={});let n=p.useContext(Ft);null==n&&v(!1);let{basename:r}=rn(tn.useViewTransitionState),a=vt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=B(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=B(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=U(a.pathname,i)||null!=U(a.pathname,o)}(d)&&!0===l,b=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,w=h.pathname,_=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(w=w.toLowerCase(),_=_?_.toLowerCase():null,b=b.toLowerCase()),_&&y&&(_=B(_,y)||_);const E="/"!==b&&b.endsWith("/")?b.length-1:b.length;let k,x=w===b||!o&&w.startsWith(b)&&"/"===w.charAt(E),S=null!=_&&(_===b||!o&&_.startsWith(b)&&"/"===_.charAt(b.length)),C={isActive:x,isPending:S,isTransitioning:g},M=x?n:void 0;k="function"==typeof a?a(C):[a,x?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof i?i(C):i;return p.createElement(Zt,jt({},u,{"aria-current":M,className:k,ref:t,style:R,to:s,viewTransition:l}),"function"==typeof c?c(C):c)});var tn,nn;function rn(e){let t=p.useContext(at);return t||v(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tn||(tn={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(nn||(nn={}));var an=function(){const n=dt(),r=[],a=[];u().trigger("ct:dashboard:navigation-links",r),u().trigger("ct:dashboard:end-navigation-links",a);const o=function(e,t){const{getProps:r,...a}=e;if(r&&"function"==typeof r){const e=n.pathname,o=t.startsWith("/")?t:`/${t}`,i=e.startsWith("/")?e:`/${e}`,s=r({isPartiallyCurrent:i.startsWith(o)||"/"!==o&&i.includes(o),isCurrent:i===o||"/"===o&&"/"===i});return{...a,...s}}return a};ctDashboardLocalizations.plugin_data.hide_plugins_tab;return(0,e.createElement)("ul",{className:"dashboard-navigation"},(0,e.createElement)("li",null,(0,e.createElement)(en,{to:"/",className:function({isActive:e}){return e?"active":""}},(0,l.__)("Home","blocksy"))),r.map(function({path:n,text:r,...a}){return(0,e.createElement)("li",{key:n},(0,e.createElement)(en,t({to:n},o(a,n),{className:function({isActive:e}){return e?"active":""}}),r))}),!ctDashboardLocalizations.plugin_data.hide_plugins_tab&&(0,e.createElement)("li",null,(0,e.createElement)(en,{to:"/plugins",className:function({isActive:e}){return e?"active":""}},(0,l.__)("Useful Plugins","blocksy"))),!ctDashboardLocalizations.plugin_data.hide_changelogs_tab&&(0,e.createElement)("li",null,(0,e.createElement)(en,{to:"/changelog",className:function({isActive:e}){return e?"active":""}},(0,l.__)("Changelog","blocksy"))),a.map(function({path:n,text:r,...a}){return(0,e.createElement)("li",{key:n},(0,e.createElement)(en,t({to:n},o(a,n),{className:function({isActive:e}){return e?"active":""}}),r))}))},on=n(485),sn=n.n(on);const ln=function(){const t=ctDashboardLocalizations.plugin_data||{},n=t.facebook||{},r=t.video_tutorials||{},a=t.knowledge_base||{},o=t.support||{};return[{key:"facebook",hide:t.hide_support_facebook_section,icon:(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8.6 6.7c0-1.9 1.5-3.5 3.4-3.5s3.4 1.5 3.4 3.5-1.5 3.5-3.4 3.5-3.4-1.6-3.4-3.5zM22 11.3h-3.9c.5.5.7 1.2.7 2v5.9c0 .6-.2 1.2-.3 1.7H22c1.2-.8 2-2.2 2-3.8v-3.7c0-1.2-.9-2.1-2-2.1zm.8-4.1c0-1.6-1.3-2.9-2.9-2.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9 1.7 0 2.9-1.3 2.9-2.9zM5.2 13c.1-.7.3-1.3.7-1.8H1.8c-1 .1-1.8.9-1.8 2V17c0 1.6.8 2.9 2 3.8h3.5c-.2-.6-.3-1.3-.3-2.1V13zM4 4.4c-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.7-1.3-2.9-2.9-2.9zm11.2 6.9H8.8c-1.1 0-2 .9-2 2v5.5c0 .7.2 1.4.4 2.1h9.5c.3-.6.4-1.3.4-2.1v-5.5c.1-1.1-.8-2-1.9-2z"})),title:n.title||(0,l.__)("Facebook Community","blocksy"),description:n.description||(0,l.__)("Share ideas, help others, ask questions and discuss your next project in our friendly community.","blocksy"),link:n.link||"https://www.facebook.com/groups/blocksy.community",buttonText:n.buttonText||(0,l.__)("Join Our Community","blocksy")},{key:"video_tutorials",hide:t.hide_support_video_section,icon:(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M13.3 3.7 8.5.4C7.4-.3 5.9-.1 5.2 1c-.3.4-.5.9-.5 1.4v19.1c0 1.3 1.1 2.4 2.4 2.4.5 0 1-.2 1.4-.4l4.7-3.3 9-6.3c1.1-.8 1.4-2.3.6-3.4l-.6-.6-8.9-6.2z"})),title:r.title||(0,l.__)("Video Tutorials","blocksy"),description:r.description||(0,l.__)("Learn how to do just about anything within Blocksy by following our byte-sized video tutorials.","blocksy"),link:r.link||"https://creativethemes.com/blocksy/video-tutorials/",buttonText:r.buttonText||(0,l.__)("Watch Tutorials","blocksy")},{key:"knowledge_base",hide:t.hide_support_docs_section,icon:(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M24 4.1v13.8c0 .7-.5 1.2-1.2 1.3-2 .1-6.1.5-8.9 1.9-.4.2-.9-.1-.9-.6V5.7c0-.2.1-.4.3-.5 2.7-1.7 7.2-2.1 9.4-2.3.7-.1 1.3.5 1.3 1.2zM1.4 2.9C.6 2.8 0 3.4 0 4.1v13.8c0 .7.5 1.2 1.2 1.3 2 .1 6.1.5 8.9 1.9.4.2.9-.1.9-.5V5.7c0-.2-.1-.4-.3-.5C8.1 3.5 3.6 3 1.4 2.9z"})),title:a.title||(0,l.__)("Knowledge Base","blocksy"),description:a.description||(0,l.__)("Dive in with our documentation and learn tips and tricks about Blocksy and its components.","blocksy"),link:a.link||"https://creativethemes.com/blocksy/docs/",buttonText:a.buttonText||(0,l.__)("View Documentation","blocksy")},{key:"support",hide:t.hide_support_section,icon:(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8.3 7.3 4.1 3C6.2 1.1 9 0 12 0s5.8 1.1 7.9 3l-4.3 4.3C14.6 6.5 13.4 6 12 6s-2.6.5-3.7 1.3zM12 18c-1.4 0-2.6-.5-3.7-1.3L4.1 21c2.1 1.9 4.9 3 7.9 3s5.8-1.1 7.9-3l-4.3-4.3c-1 .8-2.2 1.3-3.6 1.3zm9-13.9-4.3 4.3c.8 1 1.3 2.3 1.3 3.7s-.5 2.6-1.3 3.7l4.3 4.3c1.9-2.1 3-4.9 3-7.9s-1.1-6-3-8.1zM6 12c0-1.4.5-2.6 1.3-3.7L3 4.1C1.1 6.2 0 9 0 12s1.1 5.8 3 7.9l4.3-4.3C6.5 14.6 6 13.4 6 12z"})),title:o.title||(0,l.__)("Support","blocksy"),description:o.description||(0,l.__)("If your questions have not been answered by documentation or video tutorials, drop us a line.","blocksy"),link:o.link||ctDashboardLocalizations.support_url,buttonText:o.buttonText||(0,l.__)("Submit a Ticket","blocksy")}].filter(function(e){return!e.hide})};var cn=function({placement:t="bottom",render:n=function(t){return(0,e.createElement)("div",{class:"ct-support-container-wrapper"},t)}}){const r=ln();if(0===r.length)return null;return n((0,e.createElement)("ul",{className:"ct-support-container","data-placement":t},r.map(function({key:t,icon:n,title:r,description:a,link:o,buttonText:i}){return(0,e.createElement)("li",{key:t},(0,e.createElement)("h4",null,(0,e.createElement)("span",null,n),r),(0,e.createElement)("p",null,a),(0,e.createElement)("a",{href:o,className:"ct-button","data-hover":"blue",target:"_blank"},i))})))},un=jQuery,dn=n.n(un);const hn=function({href:t=""}){return ctDashboardLocalizations.plugin_data.hide_docs_section?null:(0,e.createElement)("a",{href:t,target:"_blank"},(0,e.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M23 2.1h-6.6c-1.8 0-3.4.9-4.4 2.3C11 3 9.4 2.1 7.6 2.1H1c-.6 0-1 .4-1 1v16.5c0 .6.4 1 1 1h7.7c1.3 0 2.3 1 2.3 2.3 0 .6.4 1 1 1s1-.4 1-1c0-1.3 1-2.3 2.3-2.3H23c.6 0 1-.4 1-1V3.1c0-.6-.4-1-1-1zM11 19.3c-.7-.4-1.5-.7-2.3-.7H2V4.1h5.6c1.9 0 3.4 1.5 3.4 3.4v11.8zm11-.7h-6.7c-.8 0-1.6.2-2.3.7V7.5c0-1.9 1.5-3.4 3.4-3.4H22v14.5z"})),(0,l.__)("Documentation","blocksy"))};var pn=function(){const{is_companion_active:t,companion_download_link:n,child_download_link:r}=(0,e.useContext)(s);let a={content:null},o={content:null};const[i,c]=(0,e.useState)(!1),[d,h]=(0,e.useState)(!1);u().trigger("ct:dashboard:home:before",a),u().trigger("ct:dashboard:home:after",o);const p=d||t,f=ln();return(0,e.createElement)("section",null,a.content,(0,e.createElement)("div",{className:"ct-dashboard-home-container","data-columns":0===f.length?"1":"2"},(0,e.createElement)("section",null,(0,e.createElement)("h4",null,(0,l.__)("Customizer Shortcuts","blocksy")),(0,e.createElement)("ul",{className:"ct-customizer-shortcuts-list"},(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Color Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Manage the colour palette, as well as setting colours for different elements of the website.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/general-options/colors/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=color")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Typography Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/general-options/typography/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=typography")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Header Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Configure the header to your liking with an easy to use drag and drop builder.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/header-elements/header-builder-elements/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=header")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Footer Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Arrange your footer in a way that actually makes sense with our drag and drop builder.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/footer-options/footer-introduction/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=footer")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Blog Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Adjust your blog roll options in a single place and make it stand out in the crowd.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/post-types/blog-posts/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=blog_posts")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Posts Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/post-types/single-posts/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_blog_posts")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Page Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Set the page container width, spacing, sidebar and more.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/post-types/pages/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_pages")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,l.__)("Sidebar Options","blocksy")),(0,e.createElement)("p",null,(0,l.__)("Change the sidebar behaviour and style with a nice set of options that come in handy.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(hn,{href:"https://creativethemes.com/blocksy/docs/general-options/sidebar/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=sidebar")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,l.__)("Customize","blocksy")))))),(0,e.createElement)(cn,{placement:"sidebar",render:function(t){return(0,e.createElement)("aside",null,(0,e.createElement)("h4",null,(0,l.__)("Need help or advice?","blocksy")),t)}})),o.content,"active"!==t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ct-dashboard-home-downloads"},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 20 20"},(0,e.createElement)("path",{d:"M3.1,0c-0.4,0-0.8,0.2-1,0.6L0.2,3.9C0.1,4.1,0,4.2,0,4.4v13.3C0,19,1,20,2.2,20h15.6c1.2,0,2.2-1,2.2-2.2V4.4c0-0.2-0.1-0.4-0.2-0.6l-1.9-3.3c-0.2-0.3-0.6-0.6-1-0.6H3.1z M3.7,2.2h12.6l1.3,2.2H2.4L3.7,2.2z M2.2,6.7h15.6v11.1H2.2V6.7zM8.9,8.3v3.3H5.6l4.4,4.4l4.4-4.4h-3.3V8.3H8.9z"})),(0,l.__)("Blocksy Companion","blocksy")),(0,e.createElement)("p",null,(0,l.__)("By downloading and installing this plugin you will have access to demo templates, extensions and a lot more stunning features.","blocksy")),(0,e.createElement)("a",{className:"ct-button",onClick:function(e){e.stopPropagation(),c(!0),dn().ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click",nonce:ct_localizations.nonce}}).then(function({success:e,data:t}){e&&(h(t.status),"active"===t.status&&location.assign(t.pluginUrl)),c(!1)})}},i?(0,l.__)("Installing & activating...","blocksy"):"uninstalled"===p?(0,l.__)("Install Blocksy Companion","blocksy"):"installed"===p?(0,l.__)("Activate Blocksy Companion","blocksy"):(0,l.__)("Blocksy Companion active!","blocksy"))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 20 20"},(0,e.createElement)("path",{d:"M3.1,0c-0.4,0-0.8,0.2-1,0.6L0.2,3.9C0.1,4.1,0,4.2,0,4.4v13.3C0,19,1,20,2.2,20h15.6c1.2,0,2.2-1,2.2-2.2V4.4c0-0.2-0.1-0.4-0.2-0.6l-1.9-3.3c-0.2-0.3-0.6-0.6-1-0.6H3.1z M3.7,2.2h12.6l1.3,2.2H2.4L3.7,2.2z M2.2,6.7h15.6v11.1H2.2V6.7zM8.9,8.3v3.3H5.6l4.4,4.4l4.4-4.4h-3.3V8.3H8.9z"})),(0,l.__)("Blocksy Child Theme","blocksy")),(0,e.createElement)("p",null,(0,l.__)("By using a child theme you can modify any file without the fear of breaking something in the parent theme.","blocksy")),(0,e.createElement)("a",{className:"ct-button",href:r,target:"_blank"},(0,l.__)("Download now","blocksy")))))))};var fn=function({status:t,plugin:n,onPluginsSync:r}){const[a,o]=(0,e.useState)(!1),i=async function(e,t){const n=new FormData;n.append("plugin",e),n.append("action",t),n.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),o(!0);try{await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n}),r()}catch(e){}o(!1)};return(0,e.createElement)("li",null,(0,e.createElement)("h4",{className:"ct-plugin-title"},n.title,a&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),n.description&&(0,e.createElement)("div",{className:"ct-plugin-description"},n.description),(0,e.createElement)("div",{className:"ct-plugin-actions"},"activated"===t&&(0,e.createElement)("a",{onClick:function(){return i(n.name,"premium_plugin_deactivate")},className:"ct-button"},(0,l.__)("Deactivate","blocksy")),"deactivated"===t&&(0,e.createElement)("a",{onClick:function(){return i(n.name,"premium_plugin_activate")},className:"ct-button-primary"},(0,l.__)("Activate","blocksy")),"uninstalled"===t&&!n.comingsoon&&"link"!==n.type&&(0,e.createElement)("a",{onClick:function(){return i(n.name,"premium_plugin_download")},className:"ct-button"},(0,l.__)("Install","blocksy")),"uninstalled"===t&&!n.comingsoon&&"link"===n.type&&(0,e.createElement)("a",{href:n.link,className:"ct-button",target:"_blank"},(0,l.__)("Download","blocksy")),"uninstalled"===t&&n.comingsoon&&(0,e.createElement)("span",{className:"ct-badge"},(0,l.__)("COMING SOON","blocksy"))))},mn=Dn(),vn=e=>Mn(e,mn),yn=Dn();vn.write=e=>Mn(e,yn);var gn=Dn();vn.onStart=e=>Mn(e,gn);var bn=Dn();vn.onFrame=e=>Mn(e,bn);var wn=Dn();vn.onFinish=e=>Mn(e,wn);var _n=[];vn.setTimeout=(e,t)=>{const n=vn.now()+t,r=()=>{const e=_n.findIndex(e=>e.cancel==r);~e&&_n.splice(e,1),Sn-=~e?1:0},a={time:n,handler:e,cancel:r};return _n.splice(En(n),0,a),Sn+=1,Rn(),a};var En=e=>~(~_n.findIndex(t=>t.time>e)||~_n.length);vn.cancel=e=>{gn.delete(e),bn.delete(e),wn.delete(e),mn.delete(e),yn.delete(e)},vn.sync=e=>{Cn=!0,vn.batchedUpdates(e),Cn=!1},vn.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vn.onStart(n)}return r.handler=e,r.cancel=()=>{gn.delete(n),t=null},r};var kn="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vn.use=e=>kn=e,vn.now="undefined"!=typeof performance?()=>performance.now():Date.now,vn.batchedUpdates=e=>e(),vn.catch=console.error,vn.frameLoop="always",vn.advance=()=>{"demand"!==vn.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):zn()};var xn=-1,Sn=0,Cn=!1;function Mn(e,t){Cn?(t.delete(e),e(0)):(t.add(e),Rn())}function Rn(){xn<0&&(xn=0,"demand"!==vn.frameLoop&&kn(Pn))}function Pn(){~xn&&(kn(Pn),vn.batchedUpdates(zn))}function zn(){const e=xn;xn=vn.now();const t=En(xn);t&&(Ln(_n.splice(0,t),e=>e.handler()),Sn-=t),Sn?(gn.flush(),mn.flush(e?Math.min(64,xn-e):16.667),bn.flush(),yn.flush(),wn.flush()):xn=-1}function Dn(){let e=new Set,t=e;return{add(n){Sn+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Sn-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Sn-=t.size,Ln(t,t=>t(n)&&e.add(t)),Sn+=e.size,t=e)}}}function Ln(e,t){e.forEach(e=>{try{t(e)}catch(e){vn.catch(e)}})}var On=Object.defineProperty,An={};function Tn(){}((e,t)=>{for(var n in t)On(e,n,{get:t[n],enumerable:!0})})(An,{assign:()=>Yn,colors:()=>Wn,createStringInterpolator:()=>Fn,skipAnimation:()=>Qn,to:()=>$n,willAdvance:()=>Jn});var jn={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function In(e,t){if(jn.arr(e)){if(!jn.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Nn=(e,t)=>e.forEach(t);function Un(e,t,n){if(jn.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Vn=e=>jn.und(e)?[]:jn.arr(e)?e:[e];function Bn(e,t){if(e.size){const n=Array.from(e);e.clear(),Nn(n,t)}}var Fn,$n,Hn=(e,...t)=>Bn(e,e=>e(...t)),qn=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Wn=null,Qn=!1,Jn=Tn,Yn=e=>{e.to&&($n=e.to),e.now&&(vn.now=e.now),void 0!==e.colors&&(Wn=e.colors),null!=e.skipAnimation&&(Qn=e.skipAnimation),e.createStringInterpolator&&(Fn=e.createStringInterpolator),e.requestAnimationFrame&&vn.use(e.requestAnimationFrame),e.batchedUpdates&&(vn.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Jn=e.willAdvance),e.frameLoop&&(vn.frameLoop=e.frameLoop)},Gn=new Set,Kn=[],Xn=[],Zn=0,er={get idle(){return!Gn.size&&!Kn.length},start(e){Zn>e.priority?(Gn.add(e),vn.onStart(tr)):(nr(e),vn(ar))},advance:ar,sort(e){if(Zn)vn.onFrame(()=>er.sort(e));else{const t=Kn.indexOf(e);~t&&(Kn.splice(t,1),rr(e))}},clear(){Kn=[],Gn.clear()}};function tr(){Gn.forEach(nr),Gn.clear(),vn(ar)}function nr(e){Kn.includes(e)||rr(e)}function rr(e){Kn.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Kn,t=>t.priority>e.priority),0,e)}function ar(e){const t=Xn;for(let n=0;n<Kn.length;n++){const r=Kn[n];Zn=r.priority,r.idle||(Jn(r),r.advance(e),r.idle||t.push(r))}return Zn=0,(Xn=Kn).length=0,(Kn=t).length>0}var or="[-+]?\\d*\\.?\\d+",ir=or+"%";function sr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var lr=new RegExp("rgb"+sr(or,or,or)),cr=new RegExp("rgba"+sr(or,or,or,or)),ur=new RegExp("hsl"+sr(or,ir,ir)),dr=new RegExp("hsla"+sr(or,ir,ir,or)),hr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fr=/^#([0-9a-fA-F]{6})$/,mr=/^#([0-9a-fA-F]{8})$/;function vr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yr(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=vr(a,r,e+1/3),i=vr(a,r,e),s=vr(a,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function gr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function br(e){return(parseFloat(e)%360+360)%360/360}function wr(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function _r(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Er(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=fr.exec(e))?parseInt(t[1]+"ff",16)>>>0:Wn&&void 0!==Wn[e]?Wn[e]:(t=lr.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|255)>>>0:(t=cr.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|wr(t[4]))>>>0:(t=hr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mr.exec(e))?parseInt(t[1],16)>>>0:(t=pr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ur.exec(e))?(255|yr(br(t[1]),_r(t[2]),_r(t[3])))>>>0:(t=dr.exec(e))?(yr(br(t[1]),_r(t[2]),_r(t[3]))|wr(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var kr=(e,t,n)=>{if(jn.fun(e))return e;if(jn.arr(e))return kr({range:e,output:t,extrapolate:n});if(jn.str(e.output[0]))return Fn(e);const r=e,a=r.output,o=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,a,o,i,s,l){let c=l?l(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:a===1/0?c+=r:c=c*(a-r)+r;return c}(e,o[t],o[t+1],a[t],a[t+1],l,i,s,r.map)}};var xr=1.70158,Sr=1.525*xr,Cr=xr+1,Mr=2*Math.PI/3,Rr=2*Math.PI/4.5,Pr=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},zr={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Cr*e*e*e-xr*e*e,easeOutBack:e=>1+Cr*Math.pow(e-1,3)+xr*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Sr)/2:(Math.pow(2*e-2,2)*((Sr+1)*(2*e-2)+Sr)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Mr),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Mr)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Rr)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Rr)/2+1,easeInBounce:e=>1-Pr(1-e),easeOutBounce:Pr,easeInOutBounce:e=>e<.5?(1-Pr(1-2*e))/2:(1+Pr(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,a="end"===t?Math.floor(r):Math.ceil(r);return o=0,i=1,s=a/e,Math.min(Math.max(s,o),i);var o,i,s}},Dr=Symbol.for("FluidValue.get"),Lr=Symbol.for("FluidValue.observers"),Or=e=>Boolean(e&&e[Dr]),Ar=e=>e&&e[Dr]?e[Dr]():e,Tr=e=>e[Lr]||null;function jr(e,t){const n=e[Lr];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var Ir=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Nr(this,e)}},Nr=(e,t)=>Fr(e,Dr,t);function Ur(e,t){if(e[Dr]){let n=e[Lr];n||Fr(e,Lr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Vr(e,t){const n=e[Lr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Lr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Br,Fr=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$r=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Hr=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qr=new RegExp(`(${$r.source})(%|[a-z]+)`,"i"),Wr=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Qr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Jr=e=>{const[t,n]=Yr(e);if(!t||qn())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Qr.test(n)?Jr(n):n||e},Yr=e=>{const t=Qr.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Gr=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Kr=e=>{Br||(Br=Wn?new RegExp(`(${Object.keys(Wn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Ar(e).replace(Qr,Jr).replace(Hr,Er).replace(Br,Er)),n=t.map(e=>e.match($r).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>kr({...e,output:t}));return e=>{const n=!qr.test(t[0])&&t.find(e=>qr.test(e))?.replace($r,"");let a=0;return t[0].replace($r,()=>`${r[a++](e)}${n||""}`).replace(Wr,Gr)}},Xr="react-spring: ",Zr=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Xr}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},ea=Zr(console.warn);var ta=Zr(console.warn);function na(e){return jn.str(e)&&("#"==e[0]||/\d/.test(e)||!qn()&&Qr.test(e)||e in(Wn||{}))}var ra=qn()?p.useEffect:p.useLayoutEffect;function aa(){const e=(0,p.useState)()[1],t=(()=>{const e=(0,p.useRef)(!1);return ra(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var oa=e=>(0,p.useEffect)(e,ia),ia=[];var sa=Symbol.for("Animated:node"),la=e=>e&&e[sa],ca=(e,t)=>{return n=e,r=sa,a=t,Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0});var n,r,a},ua=e=>e&&e[sa]&&e[sa].getPayload(),da=class{constructor(){ca(this,this)}getPayload(){return this.payload||[]}},ha=class extends da{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,jn.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ha(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return jn.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,jn.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},pa=class extends ha{constructor(e){super(0),this._string=null,this._toString=kr({output:[e,e]})}static create(e){return new pa(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(jn.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=kr({output:[this.getValue(),e]})),this._value=0,super.reset()}},fa={dependencies:null},ma=class extends da{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Un(this.source,(n,r)=>{var a;(a=n)&&a[sa]===a?t[r]=n.getValue(e):Or(n)?t[r]=Ar(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Nn(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Un(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){fa.dependencies&&Or(e)&&fa.dependencies.add(e);const t=ua(e);t&&Nn(t,e=>this.add(e))}},va=class extends ma{constructor(e){super(e)}static create(e){return new va(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(ya)),!0)}};function ya(e){return(na(e)?pa:ha).create(e)}function ga(e){const t=la(e);return t?t.constructor:jn.arr(e)?va:na(e)?pa:ha}var ba=(e,t)=>{const n=!jn.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,p.forwardRef)((r,a)=>{const o=(0,p.useRef)(null),i=n&&(0,p.useCallback)(e=>{o.current=function(e,t){e&&(jn.fun(e)?e(t):e.current=t);return t}(a,e)},[a]),[s,l]=function(e,t){const n=new Set;fa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ma(e),fa.dependencies=null,[e,n]}(r,t),c=aa(),u=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new wa(u,l),h=(0,p.useRef)();ra(()=>(h.current=d,Nn(l,e=>Ur(e,d)),()=>{h.current&&(Nn(h.current.deps,e=>Vr(e,h.current)),vn.cancel(h.current.update))})),(0,p.useEffect)(u,[]),oa(()=>()=>{const e=h.current;Nn(e.deps,t=>Vr(t,e))});const f=t.getComponentProps(s.getValue());return p.createElement(e,{...f,ref:i})})},wa=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vn.write(this.update)}};var _a=Symbol.for("AnimatedComponent"),Ea=e=>jn.str(e)?e:e&&jn.str(e.displayName)?e.displayName:jn.fun(e)&&e.name||null;function ka(e,...t){return jn.fun(e)?e(...t):e}var xa=(e,t)=>!0===e||!!(t&&e&&(jn.fun(e)?e(t):Vn(e).includes(t))),Sa=(e,t)=>jn.obj(e)?t&&e[t]:e,Ca=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ma=e=>e,Ra=(e,t=Ma)=>{let n=Pa;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const n=t(e[a],a);jn.und(n)||(r[a]=n)}return r},Pa=["config","onProps","onStart","onChange","onPause","onResume","onRest"],za={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Da(e){const t=function(e){const t={};let n=0;if(Un(e,(e,r)=>{za[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Un(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function La(e){return e=Ar(e),jn.arr(e)?e.map(La):na(e)?An.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Oa(e){for(const t in e)return!0;return!1}function Aa(e){return jn.fun(e)||jn.arr(e)&&jn.obj(e[0])}function Ta(e,t){e.ref?.delete(e),t?.delete(e)}function ja(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ia={tension:170,friction:26,mass:1,damping:1,easing:zr.linear,clamp:!1},Na=class{constructor(){this.velocity=0,Object.assign(this,Ia)}};function Ua(e,t){if(jn.und(t.decay)){const n=!jn.und(t.tension)||!jn.und(t.friction);!n&&jn.und(t.frequency)&&jn.und(t.damping)&&jn.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Va=[],Ba=class{constructor(){this.changed=!1,this.values=Va,this.toValues=null,this.fromValues=Va,this.config=new Na,this.immediate=!1}};function Fa(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((i,s)=>{let l,c,u=xa(n.cancel??r?.cancel,t);if(u)p();else{jn.und(n.pause)||(a.paused=xa(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||xa(e,t)),l=ka(n.delay||0,t),e?(a.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){a.resumeQueue.add(h),a.timeouts.delete(c),c.cancel(),l=c.time-vn.now()}function h(){l>0&&!An.skipAnimation?(a.delayed=!0,c=vn.setTimeout(p,l),a.pauseQueue.add(d),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},i)}catch(e){s(e)}}})}var $a=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Wa(e.get()):t.every(e=>e.noop)?Ha(e.get()):qa(e.get(),t.every(e=>e.finished)),Ha=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),qa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Wa=e=>({value:e,cancelled:!0,finished:!1});function Qa(e,t,n,r){const{callId:a,parentId:o,onRest:i}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=Ra(t,(e,t)=>"onRest"===t?void 0:e);let u,d;const h=new Promise((e,t)=>(u=e,d=t)),p=e=>{const t=a<=(n.cancelId||0)&&Wa(r)||a!==n.asyncId&&qa(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Ya,i=new Ga;return(async()=>{if(An.skipAnimation)throw Ja(n),i.result=qa(r,!1),d(i),i;p(o);const s=jn.obj(e)?{...e}:{...t,to:e};s.parentId=a,Un(c,(e,t)=>{jn.und(s[t])&&(s[t]=e)});const l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};let m;if(An.skipAnimation)return Ja(n),qa(r,!1);try{let t;t=jn.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),m=qa(r.get(),!0,!1)}catch(e){if(e instanceof Ya)m=e.result;else{if(!(e instanceof Ga))throw e;m=e.result}}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return jn.fun(i)&&vn.batchedUpdates(()=>{i(m,r,r.item)}),m})():l}function Ja(e,t){Bn(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ya=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ga=class extends Error{constructor(){super("SkipAnimationSignal")}},Ka=e=>e instanceof Za,Xa=1,Za=class extends Ir{constructor(){super(...arguments),this.id=Xa++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=la(this);return e&&e.getValue()}to(...e){return An.to(this,e)}interpolate(...e){return ea(`${Xr}The "interpolate" function is deprecated in v9 (use "to" instead)`),An.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){jr(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||er.sort(this),jr(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),to=e=>(1&e[eo])>0,no=e=>(2&e[eo])>0,ro=e=>(4&e[eo])>0,ao=(e,t)=>t?e[eo]|=3:e[eo]&=-3,oo=(e,t)=>t?e[eo]|=4:e[eo]&=-5,io=class extends Za{constructor(e,t){if(super(),this.animation=new Ba,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!jn.und(e)||!jn.und(t)){const n=jn.obj(e)?{...e}:{...t,from:e};jn.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(no(this)||this._state.asyncTo)||ro(this)}get goal(){return Ar(this.animation.to)}get velocity(){const e=la(this);return e instanceof ha?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return to(this)}get isAnimating(){return no(this)}get isPaused(){return ro(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,i=ua(r.to);!i&&Or(r.to)&&(a=Vn(Ar(r.to))),r.values.forEach((s,l)=>{if(s.done)return;const c=s.constructor==pa?1:i?i[l].lastPosition:a[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=jn.arr(o.velocity)?o.velocity[l]:o.velocity;let i;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(jn.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+a/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,i=a*r}else{i=null==s.lastVelocity?a:s.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!jn.und(r),p=n==c?s.v0>0:n<c;let f,m=!1;const v=1,y=Math.ceil(e/v);for(let e=0;e<y&&(f=Math.abs(i)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(i=-i*r,d=c));i+=(1e-6*-o.tension*(d-c)+.001*-o.friction*i)/o.mass*v,d+=i*v}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+o.easing(r)*(c-n),i=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});const s=la(this),l=s.getValue();if(t){const e=Ar(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return vn.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(no(this)){const{to:e,config:t}=this.animation;vn.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return jn.und(e)?(n=this.queue||[],this.queue=[]):n=[jn.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>$a(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ja(this._state,e&&this._lastCallId),vn.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=jn.obj(n)?n[t]:n,(null==n||Aa(n))&&(n=void 0),r=jn.obj(r)?r[t]:r,null==r&&(r=void 0);const a={to:n,from:r};return to(this)||(e.reverse&&([n,r]=[r,n]),r=Ar(r),jn.und(r)?la(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Ra(e,(e,t)=>/^on/.test(t)?Sa(e,n):e)),po(this,e,"onProps"),fo(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Fa(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{ro(this)||(oo(this,!0),Hn(o.pauseQueue),fo(this,"onPause",qa(this,so(this,this.animation.to)),this))},resume:()=>{ro(this)&&(oo(this,!1),no(this)&&this._resume(),Hn(o.resumeQueue),fo(this,"onResume",qa(this,so(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=lo(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Wa(this));const r=!jn.und(e.to),a=!jn.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Wa(this));this._lastToId=t.callId}const{key:o,defaultProps:i,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||r||t.default&&!jn.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!In(d,c);h&&(s.from=d),d=Ar(d);const p=!In(u,l);p&&this._focus(u);const f=Aa(t.to),{config:m}=s,{decay:v,velocity:y}=m;(r||a)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Ua(n={...n},t),t={...n,...t}),Ua(e,t),Object.assign(e,t);for(const t in Ia)null==e[t]&&(e[t]=Ia[t]);let{frequency:r,damping:a}=e;const{mass:o}=e;jn.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r)}(m,ka(t.config,o),t.config!==i.config?ka(i.config,o):void 0);let g=la(this);if(!g||jn.und(u))return n(qa(this,!0));const b=jn.und(t.reset)?a&&!t.default:!jn.und(d)&&xa(t.reset,o),w=b?d:this.get(),_=La(u),E=jn.num(_)||jn.arr(_)||na(_),k=!f&&(!E||xa(i.immediate||t.immediate,o));if(p){const e=ga(u);if(e!==g.constructor){if(!k)throw Error(`Cannot animate between ${g.constructor.name} and ${e.name}, as the "to" prop suggests`);g=this._set(_)}}const x=g.constructor;let S=Or(u),C=!1;if(!S){const e=b||!to(this)&&h;(p||e)&&(C=In(La(w),_),S=!C),(In(s.immediate,k)||k)&&In(m.decay,v)&&In(m.velocity,y)||(S=!0)}if(C&&no(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!f&&((S||Or(l))&&(s.values=g.getPayload(),s.toValues=Or(u)?null:x==pa?[1]:Vn(_)),s.immediate!=k&&(s.immediate=k,k||b||this._set(l)),S)){const{onRest:e}=s;Nn(ho,e=>po(this,t,e));const r=qa(this,so(this,l));Hn(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&vn.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?ka(i.onRest,r):s.onStart?.(r,this)})}b&&this._set(w),f?n(Qa(t.to,t,this._state,this)):S?this._start():no(this)&&!p?this._pendingCalls.add(n):n(Ha(w))}_focus(e){const t=this.animation;e!==t.to&&(Tr(this)&&this._detach(),t.to=e,Tr(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Or(t)&&(Ur(t,this),Ka(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Or(e)&&Vr(e,this)}_set(e,t=!0){const n=Ar(e);if(!jn.und(n)){const e=la(this);if(!e||!In(n,e.getValue())){const r=ga(n);e&&e.constructor==r?e.setValue(n):ca(this,r.create(n)),e&&vn.batchedUpdates(()=>{this._onChange(n,t)})}}return la(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,fo(this,"onStart",qa(this,so(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ka(this.animation.onChange,e,this)),ka(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;la(this).reset(Ar(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),no(this)||(ao(this,!0),ro(this)||this._resume())}_resume(){An.skipAnimation?this.finish():er.start(this)}_stop(e,t){if(no(this)){ao(this,!1);const n=this.animation;Nn(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),jr(this,{type:"idle",parent:this});const r=t?Wa(this.get()):qa(this.get(),so(this,e??n.to));Hn(this._pendingCalls,r),n.changed&&(n.changed=!1,fo(this,"onRest",r,this))}}};function so(e,t){const n=La(t);return In(La(e.get()),n)}function lo(e,t=e.loop,n=e.to){const r=ka(t);if(r){const a=!0!==r&&Da(r),o=(a||e).reverse,i=!a||a.reset;return co({...e,loop:t,default:!1,pause:void 0,to:!o||Aa(n)?n:void 0,from:i?e.from:void 0,reset:i,...a})}}function co(e){const{to:t,from:n}=e=Da(e),r=new Set;return jn.obj(t)&&uo(t,r),jn.obj(n)&&uo(n,r),e.keys=r.size?Array.from(r):null,e}function uo(e,t){Un(e,(e,n)=>null!=e&&t.add(n))}var ho=["onStart","onRest","onChange","onPause","onResume"];function po(e,t,n){e.animation[n]=t[n]!==Ca(t,n)?Sa(t[n],e.key):void 0}function fo(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var mo=["onStart","onChange","onRest"],vo=1,yo=class{constructor(e,t){this.id=vo++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];jn.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(co(e)),this}start(e){let{queue:t}=this;return e?t=Vn(e).map(co):this.queue=[],this._flush?this._flush(this,t):(xo(this,t),go(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Nn(Vn(t),t=>n[t].stop(!!e))}else Ja(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(jn.und(e))this.start({pause:!0});else{const t=this.springs;Nn(Vn(e),e=>t[e].pause())}return this}resume(e){if(jn.und(e))this.start({pause:!1});else{const t=this.springs;Nn(Vn(e),e=>t[e].resume())}return this}each(e){Un(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Bn(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,i=a||o&&n.size?this.get():null;a&&t.size&&Bn(t,([e,t])=>{t.value=i,e(t,this,this._item)}),o&&(this._started=!1,Bn(n,([e,t])=>{t.value=i,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}vn.onFrame(this._onFrame)}};function go(e,t){return Promise.all(t.map(t=>bo(e,t))).then(t=>$a(e,t))}async function bo(e,t,n){const{keys:r,to:a,from:o,loop:i,onRest:s,onResolve:l}=t,c=jn.obj(t.default)&&t.default;i&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const u=jn.arr(a)||jn.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Nn(mo,n=>{const r=t[n];if(jn.fun(r)){const a=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=a.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):a.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Hn(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=!0===t.cancel||!0===Ca(t,"cancel");(u||p&&d.asyncId)&&h.push(Fa(++e._lastAsyncId,{props:t,state:d,actions:{pause:Tn,resume:Tn,start(t,n){p?(Ja(d,e._lastAsyncId),n(Wa(e))):(t.onRest=s,n(Qa(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});const f=$a(e,await Promise.all(h));if(i&&f.finished&&(!n||!f.noop)){const n=lo(t,i,a);if(n)return xo(e,[n]),bo(e,n,!0)}return l&&vn.batchedUpdates(()=>l(f,e,e.item)),f}function wo(e,t){const n={...e.springs};return t&&Nn(Vn(t),e=>{jn.und(e.keys)&&(e=co(e)),jn.obj(e.to)||(e={...e,to:void 0}),ko(n,e,e=>Eo(e))}),_o(e,n),n}function _o(e,t){Un(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Ur(t,e))})}function Eo(e,t){const n=new io;return n.key=e,t&&Ur(n,t),n}function ko(e,t,n){t.keys&&Nn(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function xo(e,t){Nn(t,t=>{ko(e.springs,t,t=>Eo(t,e))})}var So,Co,Mo=({children:e,...t})=>{const n=(0,p.useContext)(Ro),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,p.useState)(()=>({inputs:t,result:e()})),r=(0,p.useRef)(),a=r.current;let o=a;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n;return(0,p.useEffect)(()=>{r.current=o,a==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:a}),[r,a]);const{Provider:o}=Ro;return p.createElement(o,{value:t},e)},Ro=(So=Mo,Co={},Object.assign(So,p.createContext(Co)),So.Provider._context=So,So.Consumer._context=So,So);Mo.Provider=Ro.Provider,Mo.Consumer=Ro.Consumer;var Po=()=>{const e=[],t=function(t){ta(`${Xr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Nn(e,(e,a)=>{if(jn.und(t))r.push(e.start());else{const o=n(t,e,a);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Nn(e,e=>e.pause(...arguments)),this},t.resume=function(){return Nn(e,e=>e.resume(...arguments)),this},t.set=function(t){Nn(e,(e,n)=>{const r=jn.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return Nn(e,(e,r)=>{if(jn.und(t))n.push(e.start());else{const a=this._getProps(t,e,r);a&&n.push(e.start(a))}}),n},t.stop=function(){return Nn(e,e=>e.stop(...arguments)),this},t.update=function(t){return Nn(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return jn.fun(e)?e(n,t):e};return t._getProps=n,t};function zo(e,t,n){const r=jn.fun(t)&&t,{reset:a,sort:o,trail:i=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,h=(0,p.useMemo)(()=>r||3==arguments.length?Po():void 0,[]),f=Vn(e),m=[],v=(0,p.useRef)(null),y=a?null:v.current;ra(()=>{v.current=m}),oa(()=>(Nn(m,e=>{h?.add(e.ctrl),e.ctrl.ref=h}),()=>{Nn(v.current,e=>{e.expired&&clearTimeout(e.expirationId),Ta(e.ctrl,h),e.ctrl.stop(!0)})}));const g=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map(e=>{const n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):Do++})}return jn.und(n)?e:jn.fun(n)?e.map(n):Vn(n)}(f,r?r():t,y),b=a&&v.current||[];ra(()=>Nn(b,({ctrl:e,item:t,key:n})=>{Ta(e,h),ka(c,t,n)}));const w=[];if(y&&Nn(y,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=g.indexOf(e.key))&&(m[t]=e)}),Nn(f,(e,t)=>{m[t]||(m[t]={key:g[t],item:e,phase:"mount",ctrl:new yo},m[t].ctrl.item=e)}),w.length){let e=-1;const{leave:n}=r?r():t;Nn(w,(t,r)=>{const a=y[r];~t?(e=m.indexOf(a),m[e]={...a,item:f[t]}):n&&m.splice(++e,0,a)})}jn.fun(o)&&m.sort((e,t)=>o(e.item,t.item));let _=-i;const E=aa(),k=Ra(t),x=new Map,S=(0,p.useRef)(new Map),C=(0,p.useRef)(!1);Nn(m,(e,n)=>{const a=e.key,o=e.phase,c=r?r():t;let h,p;const f=ka(c.delay||0,a);if("mount"==o)h=c.enter,p="enter";else{const e=g.indexOf(a)<0;if("leave"!=o)if(e)h=c.leave,p="leave";else{if(!(h=c.update))return;p="update"}else{if(e)return;h=c.enter,p="enter"}}if(h=ka(h,e.item,n),h=jn.obj(h)?Da(h):{to:h},!h.config){const t=d||k.config;h.config=ka(t,e.item,n,p)}_+=i;const m={...k,delay:f+_,ref:u,immediate:c.immediate,reset:!1,...h};if("enter"==p&&jn.und(m.from)){const a=r?r():t,o=jn.und(a.initial)||y?a.from:a.initial;m.from=ka(o,e.item,n)}const{onResolve:b}=m;m.onResolve=e=>{ka(b,e);const t=v.current,n=t.find(e=>e.key===a);if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){const t=ka(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(E,r)))}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(C.current=!0),E())}};const w=wo(e.ctrl,m);"leave"===p&&l?S.current.set(e,{phase:p,springs:w,payload:m}):x.set(e,{phase:p,springs:w,payload:m})});const M=(0,p.useContext)(Mo),R=function(e){const t=(0,p.useRef)();return(0,p.useEffect)(()=>{t.current=e}),t.current}(M),P=M!==R&&Oa(M);ra(()=>{P&&Nn(m,e=>{e.ctrl.start({default:M})})},[M]),Nn(x,(e,t)=>{if(S.current.size){const e=m.findIndex(e=>e.key===t.key);m.splice(e,1)}}),ra(()=>{Nn(S.current.size?S.current:x,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,h?.add(r),P&&"enter"==e&&r.start({default:M}),t&&(ja(r,t.ref),!r.ref&&!h||C.current?(r.start(t),C.current&&(C.current=!1)):r.update(t))})},a?void 0:n);const z=e=>p.createElement(p.Fragment,null,m.map((t,n)=>{const{springs:r}=x.get(t)||t.ctrl,a=e({...r},t.item,t,n);return a&&a.type?p.createElement(a.type,{...a.props,key:jn.str(t.key)||jn.num(t.key)?t.key:t.ctrl.id,ref:a.ref}):a}));return h?[z,h]:z}var Do=1;function Lo({items:e,children:t,...n}){return zo(e,n)(t)}var Oo=class extends Za{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=kr(...t);const n=this._get(),r=ga(n);ca(this,r.create(n))}advance(e){const t=this._get();In(t,this.get())||(la(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&To(this._active)&&jo(this)}_get(){const e=jn.arr(this.source)?this.source.map(Ar):Vn(Ar(this.source));return this.calc(...e)}_start(){this.idle&&!To(this._active)&&(this.idle=!1,Nn(ua(this),e=>{e.done=!1}),An.skipAnimation?(vn.batchedUpdates(()=>this.advance()),jo(this)):er.start(this))}_attach(){let e=1;Nn(Vn(this.source),t=>{Or(t)&&Ur(t,this),Ka(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Nn(Vn(this.source),e=>{Or(e)&&Vr(e,this)}),this._active.clear(),jo(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Vn(this.source).reduce((e,t)=>Math.max(e,(Ka(t)?t.priority:0)+1),0))}};function Ao(e){return!1!==e.idle}function To(e){return!e.size||Array.from(e).every(Ao)}function jo(e){e.idle||(e.idle=!0,Nn(ua(e),e=>{e.done=!0}),jr(e,{type:"idle",parent:e}))}An.assign({createStringInterpolator:Kr,to:(e,t)=>new Oo(e,t)});er.advance;var Io=/^--/;function No(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Io.test(e)||Vo.hasOwnProperty(e)&&Vo[e]?(""+t).trim():t+"px"}var Uo={};var Vo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bo=["Webkit","Ms","Moz","O"];Vo=Object.keys(Vo).reduce((e,t)=>(Bo.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Vo);var Fo=/^(matrix|translate|scale|rotate|skew)/,$o=/^(translate)/,Ho=/^(rotate|skew)/,qo=(e,t)=>jn.num(e)&&0!==e?e+t:e,Wo=(e,t)=>jn.arr(e)?e.every(e=>Wo(e,t)):jn.num(e)?e===t:parseFloat(e)===t,Qo=class extends ma{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>qo(e,"px")).join(",")})`,Wo(e,0)])),Un(r,(e,t)=>{if("transform"===t)a.push([e||""]),o.push(e=>[e,""===e]);else if(Fo.test(t)){if(delete r[t],jn.und(e))return;const n=$o.test(t)?"px":Ho.test(t)?"deg":"";a.push(Vn(e)),o.push("rotate3d"===t?([e,t,r,a])=>[`rotate3d(${e},${t},${r},${qo(a,n)})`,Wo(a,0)]:e=>[`${t}(${e.map(e=>qo(e,n)).join(",")})`,Wo(e,t.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new Jo(a,o)),super(r)}},Jo=class extends Ir{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Nn(this.inputs,(n,r)=>{const a=Ar(n[0]),[o,i]=this.transforms[r](jn.arr(a)?a:n.map(Ar));e+=" "+o,t=t&&i}),t?"none":e}observerAdded(e){1==e&&Nn(this.inputs,e=>Nn(e,e=>Or(e)&&Ur(e,this)))}observerRemoved(e){0==e&&Nn(this.inputs,e=>Nn(e,e=>Or(e)&&Vr(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),jr(this,e)}};An.assign({batchedUpdates:Tt.unstable_batchedUpdates,createStringInterpolator:Kr,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Yo=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new ma(e),getComponentProps:r=e=>e}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Ea(e)||"Anonymous";return(e=jn.str(e)?o[e]||(o[e]=ba(e,a)):e[_a]||(e[_a]=ba(e,a))).displayName=`Animated(${t})`,e};return Un(e,(t,n)=>{jn.arr(e)&&(n=Ea(t)),o[n]=o(t)}),{animated:o}})(["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","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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:a,children:o,scrollTop:i,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:Uo[t]||(Uo[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(const t in a)if(a.hasOwnProperty(t)){const n=No(t,a[t]);Io.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==r&&(e.className=r),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Qo(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Go=Yo.animated;let Ko=null,Xo=ctDashboardLocalizations.clean_install_plugins;var Zo=function(){const[t,n]=(0,e.useState)(!Ko),[r,a]=(0,e.useState)(Ko||[]),o=Object.values(Xo).map(function(e,t){return e.name=Object.keys(Xo)[t],e}),i=async function(e=!1){e&&n(!0);const t=new FormData;t.append("action","get_premium_plugins_status"),t.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce);try{const e=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});if(200===e.status){const{success:t,data:n}=await e.json();t&&(a(n),Ko=n)}}catch(e){}n(!1)};return(0,e.useEffect)(function(){i(!Ko)},[]),(0,e.createElement)("div",null,(0,e.createElement)(Lo,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return{duration:300}}},function(t,n){return n?(0,e.createElement)(Go.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))),(0,l.__)("Loading Plugins Status...","blocksy")):(0,e.createElement)(Go.div,{style:t},o.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{className:"ct-recommended-plugins-list"},o.map(function(t){return(0,e.createElement)(fn,{plugin:t,key:t.name,onPluginsSync:function(){return i()},status:(r.find(function({name:e}){return e===t.name})||{}).status})})),(0,e.createElement)(cn,null)))}))},ei=window.wp.date;let ti=null;const ni=function({versionDescriptor:t}){const[n,...r]=t.descriptor.split(/\r?\n/);return(0,e.createElement)("section",null,(0,e.createElement)("h2",null,(0,l.sprintf)((0,l.__)("Version: %s","blocksy"),t.version),(0,e.createElement)("span",null,(0,l.sprintf)((0,l.__)("Released on %s","blocksy"),t.date))),(0,e.createElement)("div",{className:"ct-release-info",dangerouslySetInnerHTML:{__html:`<ul><li>\n\n                        ${r.join("\n").trim().split("\n").map(function(e){return e.replace(/^-\s/,"")}).map(function(e){return e.replace(/`(.*?)`/g,"<code>$1</code>")}).map(function(e){return e.replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2">$1</a>')}).join("</li><li>")}\n                        </li></ul>`.replace(/New:/g,'<span class="new" title="New"></span>').replace(/Improvement:/g,'<span class="improvement" title="Enhance"></span>').replace(/Fix:/g,'<span class="fix" title="Fix"></span>')}}))};var ri=function(){const[t,n]=(0,e.useState)(!ti),[r,a]=(0,e.useState)(ti),[o,i]=(0,e.useState)(0);let s=!1;window.ctDashboardLocalizations&&window.ctDashboardLocalizations.plugin_data&&window.ctDashboardLocalizations.plugin_data.has_beta_consent&&(s=window.ctDashboardLocalizations.plugin_data.has_beta_consent);return(0,e.useEffect)(function(){!async function(e=!1){e&&n(!0);const t=new FormData;t.append("action","get_latest_changelog");try{const e=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});if(200===e.status){const{success:t,data:n}=await e.json();t&&n.changelog&&(a(n.changelog),ti=n.changelog)}}catch(e){}n(!1)}(!ti)},[]),(0,e.createElement)("section",{className:"ct-changelog-wrapper"},(0,e.createElement)(Lo,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return{duration:300}}},function(t,n){return n?(0,e.createElement)(Go.p,{className:"ct-loading-text",style:t},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))),(0,l.__)("Loading changelog...","blocksy")):(0,e.createElement)(Go.div,{style:t},(0,e.createElement)("div",{className:sn()("changelog-info",{"has-sources":r&&r.length>1})},r&&r.length>1&&(0,e.createElement)("ul",{className:"changelog-sources"},r.map(function({title:t},n){return(0,e.createElement)("li",{className:sn()({active:n===o}),onClick:function(){return i(n)},key:t},t)})),(0,e.createElement)("ul",{className:"changelog-explanation"},(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"new"})," ",(0,l.__)("New","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"fix"})," ",(0,l.__)("Fix","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"improvement"}),(0,l.__)("Improvement","blocksy")))),(0,e.createElement)("div",{className:"changelog-items"},r[o].changelog?function(e,{hasBetas:t}={}){return(n=e,n.replace(/[\u00A0-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/\r/g,"").replace(/(\r\n|\r|\n){3,}/g,"$1\n\n").split("\n\n").map(function(e){let[t,n]=e.split(/\r?\n/)[0].split(":");return{version:t,date:(0,ei.dateI18n)("F j, Y",new Date(n.trim())),descriptor:e}}).filter(function({version:e}){return!!t||-1===e.indexOf("beta")});var n}(r[o].changelog,{hasBetas:s}).map(function(t){return(0,e.createElement)(ni,{key:t.version,versionDescriptor:t})}):(0,l.__)("No changelog present at the moment.","blocksy")))}))};(Object.getOwnPropertyDescriptor(ri,"name")||{}).writable||Object.defineProperty(ri,"name",{value:"default",configurable:!0}),window.ctDashboardLocalizations.DashboardContext=s;class ai extends e.Component{constructor(...e){var t,n,r;super(...e),t=this,r={hasError:!1,error:null},(n=a(n="state"))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Dashboard Route Error:",e,t),this.props.onError&&this.props.onError(e,t)}render(){return this.state.hasError?null:this.props.children}}const oi=function({Component:n,...r}){const a=ft(),o=dt(),i=function(){let{matches:e}=p.useContext(lt),t=e[e.length-1];return t?t.params:{}}(),s=ht("*");return(0,e.createElement)(ai,null,(0,e.createElement)(n,t({},r,i,{navigate:a,location:o,match:s})))},ii=function(){return(0,e.createElement)("div",null,(0,e.createElement)(zt,null))},si=function(){const t=ft(),n=dt(),r=ht;return(0,e.createElement)(i,{value:{theme_version:"1.0.0",theme_name:"Word",...ctDashboardLocalizations,Link:Zt,useLocation:dt,navigate:t,useMatch:r,history:{push:t,location:n},location:n}},(0,e.createElement)("header",null,(0,e.createElement)(h,null),(0,e.createElement)(an,null)),(0,e.createElement)("section",null,(0,e.createElement)(ii,null)))},li=function(){const n=[];return u().trigger("ct:dashboard:routes",n),r=Ot((0,e.createElement)(Dt,{path:"/",element:(0,e.createElement)(si,null)},(0,e.createElement)(Dt,{index:!0,element:(0,e.createElement)(pn,null)}),(0,e.createElement)(Dt,{path:"plugins",element:(0,e.createElement)(Zo,null)}),(0,e.createElement)(Dt,{path:"changelog",element:(0,e.createElement)(ri,null)}),n.map(function({Component:n,key:r,path:a,...o}){return(0,e.createElement)(Dt,{key:r||a,path:a,element:(0,e.createElement)(oi,t({Component:n},o))})}))),pe({basename:null==a?void 0:a.basename,future:jt({},null==a?void 0:a.future,{v7_prependBasename:!0}),history:(o={window:null==a?void 0:a.window},void 0===o&&(o={}),E(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=_(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),b("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:w(t))},function(e,t){y("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},o)),hydrationData:(null==a?void 0:a.hydrationData)||Vt(),routes:r,mapRouteProperties:At,dataStrategy:null==a?void 0:a.dataStrategy,patchRoutesOnNavigation:null==a?void 0:a.patchRoutesOnNavigation,window:null==a?void 0:a.window}).initialize();var r,a,o};var ci=function(){const t=(0,e.useMemo)(function(){return li()},[]);return(0,e.createElement)(Jt,{router:t,future:{v7_startTransition:!0}})};document.addEventListener("DOMContentLoaded",function(){if(ctDashboardLocalizations.plugin_data&&document.getElementById("ct-dashboard")){(0,e.createRoot)(document.getElementById("ct-dashboard")).render((0,e.createElement)(ci,null))}})}()}();