?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/plugins/extendify/public/build/



?? Go up: /home/webdevt/www/wdp/wp-content/plugins/extendify/public

?? Viewing: extendify-launch-41f70ab6b80d4554088f.js

!function(){var e,t,r={184:function(e,t){var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=n.apply(null,r);i&&e.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)o.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},250:function(e,t,r){"use strict";var o=r(196),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useState,i=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=a({inst:{value:r,getSnapshot:t}}),n=o[0].inst,u=o[1];return s((function(){n.value=r,n.getSnapshot=t,c(n)&&u({inst:n})}),[e,r,t]),i((function(){return c(n)&&u({inst:n}),e((function(){c(n)&&u({inst:n})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:u},139:function(e,t,r){"use strict";var o=r(196),n=r(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,s=o.useRef,l=o.useEffect,c=o.useMemo,u=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=o(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var r=o(e);return void 0!==n&&n(t,r)?t:(i=e,s=r)}var i,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,o,n]);var m=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=m}),[m]),u(m),m}},688:function(e,t,r){"use strict";e.exports=r(250)},798:function(e,t,r){"use strict";e.exports=r(139)},196:function(e){"use strict";e.exports=window.React}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(a,i),a},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)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{BarChart:function(){return Np},Checkmark:function(){return Op},Design:function(){return Rp},Donate:function(){return Dp},LeftCaret:function(){return Vp},Logo:function(){return Fp},Monetization:function(){return _p},OpenEnvelope:function(){return jp},Pencil:function(){return Ip},Planner:function(){return Bp},PreviewIcon:function(){return Hp},PriceTag:function(){return zp},Radio:function(){return Up},RefreshIcon:function(){return $p},RightCaret:function(){return Zp},School:function(){return Wp},SearchIcon:function(){return qp},Shop:function(){return Gp},Speech:function(){return Xp},Spinner:function(){return Yp},SpinnerIcon:function(){return Jp},Ticket:function(){return Kp}});var t=window.wp.element,r=window.wp.blockLibrary,o=window.wp.data,a=n(196),i=n.t(a,2),s=n(688);const l=()=>{},c=l(),u=Object,d=e=>e===c,p=e=>"function"==typeof e,m=(e,t)=>({...e,...t}),f=new WeakMap;let h=0;const g=e=>{const t=typeof e,r=e&&e.constructor,o=r==Date;let n,a;if(u(e)!==e||o||r==RegExp)n=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(n=f.get(e),n)return n;if(n=++h+"~",f.set(e,n),r==Array){for(n="@",a=0;a<e.length;a++)n+=g(e[a])+",";f.set(e,n)}if(r==u){n="#";const t=u.keys(e).sort();for(;!d(a=t.pop());)d(e[a])||(n+=a+":"+g(e[a])+",");f.set(e,n)}}return n},y=new WeakMap,w={},b={},v="undefined",x=typeof window!=v,E=typeof document!=v,k=(e,t)=>{const r=y.get(e);return[()=>!d(t)&&e.get(t)||w,o=>{if(!d(t)){const n=e.get(t);t in b||(b[t]=n),r[5](t,m(n,o),n||w)}},r[6],()=>!d(t)&&t in b?b[t]:!d(t)&&e.get(t)||w]};let C=!0;const[S,P]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],T={isOnline:()=>C,isVisible:()=>{const e=E&&document.visibilityState;return d(e)||"hidden"!==e}},L={initFocus:e=>(E&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{E&&document.removeEventListener("visibilitychange",e),P("focus",e)}),initReconnect:e=>{const t=()=>{C=!0,e()},r=()=>{C=!1};return S("online",t),S("offline",r),()=>{P("online",t),P("offline",r)}}},A=!a.useId,M=!x||"Deno"in window,N=M?a.useEffect:a.useLayoutEffect,O="undefined"!=typeof navigator&&navigator.connection,R=!M&&O&&(["slow-2g","2g"].includes(O.effectiveType)||O.saveData),D=e=>{if(p(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]};let V=0;const F=()=>++V;async function _(...e){const[t,r,o,n]=e,a=m({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const u=!1!==a.revalidate,f=a.throwOnError;if(p(r)){const e=r,o=[],n=t.keys();for(const r of n)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&o.push(r);return Promise.all(o.map(h))}return h(r);async function h(r){const[n]=D(r);if(!n)return;const[a,m]=k(t,n),[h,g,w,b]=y.get(t),v=()=>{const e=h[n];return u&&(delete w[n],delete b[n],e&&e[0])?e[0](2).then((()=>a().data)):a().data};if(e.length<3)return v();let x,E=o;const C=F();g[n]=[C,0];const S=!d(l),P=a(),T=P.data,L=P._c,A=d(L)?T:L;if(S&&(l=p(l)?l(A,T):l,m({data:l,_c:A})),p(E))try{E=E(A)}catch(e){x=e}if(E&&p(E.then)){if(E=await E.catch((e=>{x=e})),C!==g[n][0]){if(x)throw x;return E}x&&S&&(e=>"function"==typeof s?s(e):!1!==s)(x)&&(i=!0,m({data:A,_c:c}))}if(i&&!x)if(p(i)){const e=i(E,A);m({data:e,error:c,_c:c})}else m({data:E,error:c,_c:c});if(g[n][1]=F(),Promise.resolve(v()).then((()=>{m({_c:c})})),!x)return E;if(f)throw x}}const j=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},I=(e,t)=>{if(!y.has(e)){const r=m(L,t),o={},n=_.bind(c,e);let a=l;const i={},s=(e,t)=>{const r=i[e]||[];return i[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},u=(t,r,o)=>{e.set(t,r);const n=i[t];if(n)for(const e of n)e(r,o)},d=()=>{if(!y.has(e)&&(y.set(e,[o,{},{},{},n,u,s]),!M)){const t=r.initFocus(setTimeout.bind(c,j.bind(c,o,0))),n=r.initReconnect(setTimeout.bind(c,j.bind(c,o,1)));a=()=>{t&&t(),n&&n(),y.delete(e)}}};return d(),[e,n,d,a]}return[e,y.get(e)[4]]},[B,H]=I(new Map),z=m({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,__,t,r,o)=>{const n=t.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!d(n)&&a>n||setTimeout(r,i,o)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:(e,t)=>g(e)==g(t),isPaused:()=>!1,cache:B,mutate:H,fallback:{}},T),U=(e,t)=>{const r=m(e,t);if(t){const{use:o,fallback:n}=e,{use:a,fallback:i}=t;o&&a&&(r.use=o.concat(a)),n&&i&&(r.fallback=m(n,i))}return r},$=(0,a.createContext)({}),Z=x&&window.__SWR_DEVTOOLS_USE__,W=Z?window.__SWR_DEVTOOLS_USE__:[],q=e=>p(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=()=>m(z,(0,a.useContext)($)),X=W.concat((e=>(t,r,o)=>{const n=r&&((...e)=>{const[o]=D(t),[,,,n]=y.get(B);if(o.startsWith("$inf$"))return r(...e);const a=n[o];return d(a)?r(...e):(delete n[o],a)});return e(t,n,o)}));Z&&(window.__SWR_DEVTOOLS_REACT__=a);const Y=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),J={dedupe:!0},K=u.defineProperty((e=>{const{value:t}=e,r=(0,a.useContext)($),o=p(t),n=(0,a.useMemo)((()=>o?t(r):t),[o,r,t]),i=(0,a.useMemo)((()=>o?n:U(r,n)),[o,r,n]),s=n&&n.provider,l=(0,a.useRef)(c);s&&!l.current&&(l.current=I(s(i.cache||B),n));const u=l.current;return u&&(i.cache=u[0],i.mutate=u[1]),N((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,a.createElement)($.Provider,m(e,{value:i}))}),"defaultValue",{value:z}),Q=(ee=(e,t,r)=>{const{cache:o,compare:n,suspense:i,fallbackData:l,revalidateOnMount:u,revalidateIfStale:f,refreshInterval:h,refreshWhenHidden:g,refreshWhenOffline:w,keepPreviousData:b}=r,[E,C,S,P]=y.get(o),[T,L]=D(e),O=(0,a.useRef)(!1),R=(0,a.useRef)(!1),V=(0,a.useRef)(T),j=(0,a.useRef)(t),I=(0,a.useRef)(r),B=()=>I.current,H=()=>B().isVisible()&&B().isOnline(),[z,U,$,Z]=k(o,T),W=(0,a.useRef)({}).current,q=d(l)?r.fallback[T]:l,G=(e,t)=>{for(const r in W){const o=r;if("data"===o){if(!n(e[o],t[o])){if(!d(e[o]))return!1;if(!n(ae,t[o]))return!1}}else if(t[o]!==e[o])return!1}return!0},X=(0,a.useMemo)((()=>{const e=!!T&&!!t&&(d(u)?!B().isPaused()&&!i&&(!!d(f)||f):u),r=t=>{const r=m(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},o=z(),n=Z(),a=r(o),s=o===n?a:r(n);let l=a;return[()=>{const e=r(z());return G(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[o,T]),K=(0,s.useSyncExternalStore)((0,a.useCallback)((e=>$(T,((t,r)=>{G(r,t)||e()}))),[o,T]),X[0],X[1]),Q=!O.current,ee=E[T]&&E[T].length>0,te=K.data,re=d(te)?q:te,oe=K.error,ne=(0,a.useRef)(re),ae=b?d(te)?ne.current:te:re,ie=!(ee&&!d(oe))&&(Q&&!d(u)?u:!B().isPaused()&&(i?!d(re)&&f:d(re)||f)),se=!!(T&&t&&Q&&ie),le=d(K.isValidating)?se:K.isValidating,ce=d(K.isLoading)?se:K.isLoading,ue=(0,a.useCallback)((async e=>{const t=j.current;if(!T||!t||R.current||B().isPaused())return!1;let o,a,i=!0;const s=e||{},l=!S[T]||!s.dedupe,u=()=>A?!R.current&&T===V.current&&O.current:T===V.current,m={isValidating:!1,isLoading:!1},f=()=>{U(m)},h=()=>{const e=S[T];e&&e[1]===a&&delete S[T]},g={isValidating:!0};d(z().data)&&(g.isLoading=!0);try{if(l&&(U(g),r.loadingTimeout&&d(z().data)&&setTimeout((()=>{i&&u()&&B().onLoadingSlow(T,r)}),r.loadingTimeout),S[T]=[t(L),F()]),[o,a]=S[T],o=await o,l&&setTimeout(h,r.dedupingInterval),!S[T]||S[T][1]!==a)return l&&u()&&B().onDiscarded(T),!1;m.error=c;const e=C[T];if(!d(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return f(),l&&u()&&B().onDiscarded(T),!1;const s=z().data;m.data=n(s,o)?s:o,l&&u()&&B().onSuccess(o,T,r)}catch(e){h();const t=B(),{shouldRetryOnError:r}=t;t.isPaused()||(m.error=e,l&&u()&&(t.onError(e,T,t),(!0===r||p(r)&&r(e))&&H()&&t.onErrorRetry(e,T,t,(e=>{const t=E[T];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return i=!1,f(),!0}),[T,o]),de=(0,a.useCallback)(((...e)=>_(o,V.current,...e)),[]);if(N((()=>{j.current=t,I.current=r,d(te)||(ne.current=te)})),N((()=>{if(!T)return;const e=ue.bind(c,J);let t=0;const r=((e,t,r)=>{const o=t[e]||(t[e]=[]);return o.push(r),()=>{const e=o.indexOf(r);e>=0&&(o[e]=o[o.length-1],o.pop())}})(T,E,((r,o={})=>{if(0==r){const r=Date.now();B().revalidateOnFocus&&r>t&&H()&&(t=r+B().focusThrottleInterval,e())}else if(1==r)B().revalidateOnReconnect&&H()&&e();else{if(2==r)return ue();if(3==r)return ue(o)}}));return R.current=!1,V.current=T,O.current=!0,U({_k:L}),ie&&(d(re)||M?e():(e=>{x&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{R.current=!0,r()}}),[T]),N((()=>{let e;function t(){const t=p(h)?h(z().data):h;t&&-1!==e&&(e=setTimeout(r,t))}function r(){z().error||!g&&!B().isVisible()||!w&&!B().isOnline()?t():ue(J).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[h,g,w,T]),(0,a.useDebugValue)(ae),i&&d(re)&&T){if(!A&&M)throw new Error("Fallback data is required when using suspense in SSR.");j.current=t,I.current=r,R.current=!1;const e=P[T];if(!d(e)){const t=de(e);Y(t)}if(!d(oe))throw oe;{const e=ue(J);d(ae)||(e.status="fulfilled",e.value=!0),Y(e)}}return{mutate:de,get data(){return W.data=!0,ae},get error(){return W.error=!0,oe},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ce}}},function(...e){const t=G(),[r,o,n]=q(e),a=U(t,n);let i=ee;const{use:s}=a,l=(s||[]).concat(X);for(let e=l.length;e--;)i=l[e](i);return i(r,o||a.fetcher||null,a)});var ee,te=window.wp.i18n;function re(e,t){return function(){return e.apply(t,arguments)}}const{toString:oe}=Object.prototype,{getPrototypeOf:ne}=Object,ae=(e=>t=>{const r=oe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ie=e=>(e=e.toLowerCase(),t=>ae(t)===e),se=e=>t=>typeof t===e,{isArray:le}=Array,ce=se("undefined"),ue=ie("ArrayBuffer"),de=se("string"),pe=se("function"),me=se("number"),fe=e=>null!==e&&"object"==typeof e,he=e=>{if("object"!==ae(e))return!1;const t=ne(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ge=ie("Date"),ye=ie("File"),we=ie("Blob"),be=ie("FileList"),ve=ie("URLSearchParams");function xe(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),le(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),a=n.length;let i;for(o=0;o<a;o++)i=n[o],t.call(null,e[i],i,e)}}function Ee(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ce=e=>!ce(e)&&e!==ke,Se=(Pe="undefined"!=typeof Uint8Array&&ne(Uint8Array),e=>Pe&&e instanceof Pe);var Pe;const Te=ie("HTMLFormElement"),Le=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ae=ie("RegExp"),Me=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};xe(r,((r,n)=>{let a;!1!==(a=t(r,n,e))&&(o[n]=a||r)})),Object.defineProperties(e,o)},Ne="abcdefghijklmnopqrstuvwxyz",Oe="0123456789",Re={DIGIT:Oe,ALPHA:Ne,ALPHA_DIGIT:Ne+Ne.toUpperCase()+Oe},De=ie("AsyncFunction");var Ve={isArray:le,isArrayBuffer:ue,isBuffer:function(e){return null!==e&&!ce(e)&&null!==e.constructor&&!ce(e.constructor)&&pe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||pe(e.append)&&("formdata"===(t=ae(e))||"object"===t&&pe(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ue(e.buffer),t},isString:de,isNumber:me,isBoolean:e=>!0===e||!1===e,isObject:fe,isPlainObject:he,isUndefined:ce,isDate:ge,isFile:ye,isBlob:we,isRegExp:Ae,isFunction:pe,isStream:e=>fe(e)&&pe(e.pipe),isURLSearchParams:ve,isTypedArray:Se,isFileList:be,forEach:xe,merge:function e(){const{caseless:t}=Ce(this)&&this||{},r={},o=(o,n)=>{const a=t&&Ee(r,n)||n;he(r[a])&&he(o)?r[a]=e(r[a],o):he(o)?r[a]=e({},o):le(o)?r[a]=o.slice():r[a]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&xe(arguments[e],o);return r},extend:(e,t,r,{allOwnKeys:o}={})=>(xe(t,((t,o)=>{r&&pe(t)?e[o]=re(t,r):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,o)=>{let n,a,i;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),a=n.length;a-- >0;)i=n[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==r&&ne(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ae,kindOfTest:ie,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray:e=>{if(!e)return null;if(le(e))return e;let t=e.length;if(!me(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm:Te,hasOwnProperty:Le,hasOwnProp:Le,reduceDescriptors:Me,freezeMethods:e=>{Me(e,((t,r)=>{if(pe(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];pe(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return le(e)?o(e):o(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Ee,global:ke,isContextDefined:Ce,ALPHABET:Re,generateString:(e=16,t=Re.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r},isSpecCompliantForm:function(e){return!!(e&&pe(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,o)=>{if(fe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=le(e)?[]:{};return xe(e,((e,t)=>{const a=r(e,o+1);!ce(a)&&(n[t]=a)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn:De,isThenable:e=>e&&(fe(e)||pe(e))&&pe(e.then)&&pe(e.catch)};function Fe(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n)}Ve.inherits(Fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _e=Fe.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{je[e]={value:e}})),Object.defineProperties(Fe,je),Object.defineProperty(_e,"isAxiosError",{value:!0}),Fe.from=(e,t,r,o,n,a)=>{const i=Object.create(_e);return Ve.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Fe.call(i,e.message,t,r,o,n),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var Ie=Fe;function Be(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function He(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function ze(e,t,r){return e?e.concat(t).map((function(e,t){return e=He(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Ue=Ve.toFlatObject(Ve,{},null,(function(e){return/^is[A-Z]/.test(e)}));var $e=function(e,t,r){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=Ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ve.isUndefined(t[e])}))).metaTokens,n=r.visitor||c,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ve.isDate(e))return e.toISOString();if(!s&&Ve.isBlob(e))throw new Ie("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(e)||Ve.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(Ve.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(Ve.isArray(e)&&function(e){return Ve.isArray(e)&&!e.some(Be)}(e)||(Ve.isFileList(e)||Ve.endsWith(r,"[]"))&&(s=Ve.toArray(e)))return r=He(r),s.forEach((function(e,o){!Ve.isUndefined(e)&&null!==e&&t.append(!0===i?ze([r],o,a):null===i?r:r+"[]",l(e))})),!1;return!!Be(e)||(t.append(ze(n,r,a),l(e)),!1)}const u=[],d=Object.assign(Ue,{defaultVisitor:c,convertValue:l,isVisitable:Be});if(!Ve.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!Ve.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+o.join("."));u.push(r),Ve.forEach(r,(function(r,a){!0===(!(Ve.isUndefined(r)||null===r)&&n.call(t,r,Ve.isString(a)?a.trim():a,o,d))&&e(r,o?o.concat(a):[a])})),u.pop()}}(e),t};function Ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function We(e,t){this._pairs=[],e&&$e(e,this,t)}const qe=We.prototype;qe.append=function(e,t){this._pairs.push([e,t])},qe.toString=function(e){const t=e?function(t){return e.call(this,t,Ze)}:Ze;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ge=We;function Xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,r){if(!t)return e;const o=r&&r.encode||Xe,n=r&&r.serialize;let a;if(a=n?n(t,r):Ve.isURLSearchParams(t)?t.toString():new Ge(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var Je=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ve.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ge,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},et=function(e){function t(e,r,o,n){let a=e[n++];const i=Number.isFinite(+a),s=n>=e.length;return a=!a&&Ve.isArray(o)?o.length:a,s?(Ve.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!i):(o[a]&&Ve.isObject(o[a])||(o[a]=[]),t(e,r,o[a],n)&&Ve.isArray(o[a])&&(o[a]=function(e){const t={},r=Object.keys(e);let o;const n=r.length;let a;for(o=0;o<n;o++)a=r[o],t[a]=e[a];return t}(o[a])),!i)}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){const r={};return Ve.forEachEntry(e,((e,o)=>{t(function(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,r,0)})),r}return null};const tt={transitional:Ke,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=Ve.isObject(e);if(n&&Ve.isHTMLForm(e)&&(e=new FormData(e)),Ve.isFormData(e))return o&&o?JSON.stringify(et(e)):e;if(Ve.isArrayBuffer(e)||Ve.isBuffer(e)||Ve.isStream(e)||Ve.isFile(e)||Ve.isBlob(e))return e;if(Ve.isArrayBufferView(e))return e.buffer;if(Ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $e(e,new Qe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return Qe.isNode&&Ve.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Ve.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $e(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),function(e,t,r){if(Ve.isString(e))try{return(0,JSON.parse)(e),Ve.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||tt.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&Ve.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ie.from(e,Ie.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ve.forEach(["delete","get","head","post","put","patch"],(e=>{tt.headers[e]={}}));var rt=tt;const ot=Ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nt=Symbol("internals");function at(e){return e&&String(e).trim().toLowerCase()}function it(e){return!1===e||null==e?e:Ve.isArray(e)?e.map(it):String(e)}function st(e,t,r,o,n){return Ve.isFunction(o)?o.call(this,t,r):(n&&(t=r),Ve.isString(t)?Ve.isString(o)?-1!==t.indexOf(o):Ve.isRegExp(o)?o.test(t):void 0:void 0)}class lt{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=at(t);if(!n)throw new Error("header name must be a non-empty string");const a=Ve.findKey(o,n);(!a||void 0===o[a]||!0===r||void 0===r&&!1!==o[a])&&(o[a||t]=it(e))}const a=(e,t)=>Ve.forEach(e,((e,r)=>n(e,r,t)));return Ve.isPlainObject(e)||e instanceof this.constructor?a(e,t):Ve.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&ot[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t})(e),t):null!=e&&n(t,e,r),this}get(e,t){if(e=at(e)){const r=Ve.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}(e);if(Ve.isFunction(t))return t.call(this,e,r);if(Ve.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=at(e)){const r=Ve.findKey(this,e);return!(!r||void 0===this[r]||t&&!st(0,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=at(e)){const n=Ve.findKey(r,e);!n||t&&!st(0,r[n],n,t)||(delete r[n],o=!0)}}return Ve.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!st(0,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return Ve.forEach(this,((o,n)=>{const a=Ve.findKey(r,n);if(a)return t[a]=it(o),void delete t[n];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(n):String(n).trim();i!==n&&delete t[n],t[i]=it(o),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ve.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&Ve.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[nt]=this[nt]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=at(e);t[o]||(function(e,t){const r=Ve.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[o]=!0)}return Ve.isArray(e)?e.forEach(o):o(e),this}}lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ve.reduceDescriptors(lt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),Ve.freezeMethods(lt);var ct=lt;function ut(e,t){const r=this||rt,o=t||r,n=ct.from(o.headers);let a=o.data;return Ve.forEach(e,(function(e){a=e.call(r,a,n.normalize(),t?t.status:void 0)})),n.normalize(),a}function dt(e){return!(!e||!e.__CANCEL__)}function pt(e,t,r){Ie.call(this,null==e?"canceled":e,Ie.ERR_CANCELED,t,r),this.name="CanceledError"}Ve.inherits(pt,Ie,{__CANCEL__:!0});var mt=pt,ft=Qe.isStandardBrowserEnv?{write:function(e,t,r,o,n,a){const i=[];i.push(e+"="+encodeURIComponent(t)),Ve.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Ve.isString(o)&&i.push("path="+o),Ve.isString(n)&&i.push("domain="+n),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ht(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var gt=Qe.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function o(r){let o=r;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=o(window.location.href),function(e){const t=Ve.isString(e)?o(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function yt(e,t){let r=0;const o=function(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=o[i];n||(n=l),r[a]=s,o[a]=l;let u=i,d=0;for(;u!==a;)d+=r[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-n<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n};c[t?"download":"upload"]=!0,e(c)}}var wt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let o=e.data;const n=ct.from(e.headers).normalize(),a=e.responseType;let i,s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}Ve.isFormData(o)&&(Qe.isStandardBrowserEnv||Qe.isStandardBrowserWebWorkerEnv?n.setContentType(!1):n.getContentType(/^\s*multipart\/form-data/)?Ve.isString(s=n.getContentType())&&n.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):n.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(t+":"+r))}const u=ht(e.baseURL,e.url);function d(){if(!c)return;const o=ct.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new Ie("Request failed with status code "+r.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:o,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Ye(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new Ie("Request aborted",Ie.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Ie("Network Error",Ie.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||Ke;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new Ie(t,o.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,c)),c=null},Qe.isStandardBrowserEnv){const t=(e.withCredentials||gt(u))&&e.xsrfCookieName&&ft.read(e.xsrfCookieName);t&&n.set(e.xsrfHeaderName,t)}void 0===o&&n.setContentType(null),"setRequestHeader"in c&&Ve.forEach(n.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Ve.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",yt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",yt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(r(!t||t.type?new mt(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);p&&-1===Qe.protocols.indexOf(p)?r(new Ie("Unsupported protocol "+p+":",Ie.ERR_BAD_REQUEST,e)):c.send(o||null)}))};const bt={http:null,xhr:wt};Ve.forEach(bt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const vt=e=>`- ${e}`,xt=e=>Ve.isFunction(e)||null===e||!1===e;var Et=e=>{e=Ve.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let a=0;a<t;a++){let t;if(r=e[a],o=r,!xt(r)&&(o=bt[(t=String(r)).toLowerCase()],void 0===o))throw new Ie(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+a]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(vt).join("\n"):" "+vt(e[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o};function kt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mt(null,e)}function Ct(e){return kt(e),e.headers=ct.from(e.headers),e.data=ut.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Et(e.adapter||rt.adapter)(e).then((function(t){return kt(e),t.data=ut.call(e,e.transformResponse,t),t.headers=ct.from(t.headers),t}),(function(t){return dt(t)||(kt(e),t&&t.response&&(t.response.data=ut.call(e,e.transformResponse,t.response),t.response.headers=ct.from(t.response.headers))),Promise.reject(t)}))}const St=e=>e instanceof ct?e.toJSON():e;function Pt(e,t){t=t||{};const r={};function o(e,t,r){return Ve.isPlainObject(e)&&Ve.isPlainObject(t)?Ve.merge.call({caseless:r},e,t):Ve.isPlainObject(t)?Ve.merge({},t):Ve.isArray(t)?t.slice():t}function n(e,t,r){return Ve.isUndefined(t)?Ve.isUndefined(e)?void 0:o(void 0,e,r):o(e,t,r)}function a(e,t){if(!Ve.isUndefined(t))return o(void 0,t)}function i(e,t){return Ve.isUndefined(t)?Ve.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,a){return a in t?o(r,n):a in e?o(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>n(St(e),St(t),!0)};return Ve.forEach(Object.keys(Object.assign({},e,t)),(function(o){const a=l[o]||n,i=a(e[o],t[o],o);Ve.isUndefined(i)&&a!==s||(r[o]=i)})),r}const Tt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Tt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Lt={};Tt.transitional=function(e,t,r){function o(e,t){return"[Axios v1.5.1] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new Ie(o(n," has been removed"+(t?" in "+t:"")),Ie.ERR_DEPRECATED);return t&&!Lt[n]&&(Lt[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}};var At={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const a=o[n],i=t[a];if(i){const t=e[a],r=void 0===t||i(t,a,e);if(!0!==r)throw new Ie("option "+a+" must be "+r,Ie.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ie("Unknown option "+a,Ie.ERR_BAD_OPTION)}},validators:Tt};const Mt=At.validators;class Nt{constructor(e){this.defaults=e,this.interceptors={request:new Je,response:new Je}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Pt(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&At.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=o&&(Ve.isFunction(o)?t.paramsSerializer={serialize:o}:At.assertOptions(o,{encode:Mt.function,serialize:Mt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=n&&Ve.merge(n.common,n[t.method]);n&&Ve.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=ct.concat(a,n);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Ct.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let p=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Ct.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ye(ht((e=Pt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ve.forEach(["delete","get","head","options"],(function(e){Nt.prototype[e]=function(t,r){return this.request(Pt(r||{},{method:e,url:t,data:(r||{}).data}))}})),Ve.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(Pt(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Nt.prototype[e]=t(),Nt.prototype[e+"Form"]=t(!0)}));var Ot=Nt;class Rt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new mt(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Rt((function(t){e=t}));return{token:t,cancel:e}}}var Dt=Rt;const Vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vt).forEach((([e,t])=>{Vt[t]=e}));var Ft=Vt;const _t=function e(t){const r=new Ot(t),o=re(Ot.prototype.request,r);return Ve.extend(o,Ot.prototype,r,{allOwnKeys:!0}),Ve.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return e(Pt(t,r))},o}(rt);_t.Axios=Ot,_t.CanceledError=mt,_t.CancelToken=Dt,_t.isCancel=dt,_t.VERSION="1.5.1",_t.toFormData=$e,_t.AxiosError=Ie,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return Ve.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=Pt,_t.AxiosHeaders=ct,_t.formToJSON=e=>et(Ve.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=Et,_t.HttpStatusCode=Ft,_t.default=_t;const jt=_t.create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Launch":!0,"X-Extendify":!0}});jt.interceptors.request.use((e=>Ht(e)),(e=>e)),jt.interceptors.response.use((e=>It(e)),(e=>Bt(e)));const It=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,Bt=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(It(e.response))},Ht=e=>(e.headers["X-Extendify-Launch-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Launch-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),zt=window.extOnbData.wpRoot,Ut=(e,t)=>jt.post("launch/options",{option:e,value:t}),$t=async e=>{const{data:t}=await jt.get("launch/options",{params:{option:e}});return t},Zt=e=>jt.post(`${zt}wp/v2/pages`,e),Wt=e=>jt.get(`${zt}wp/v2/pages/${e}`),qt=async e=>{if(e?.wordpressSlug){try{const t=await jt.post(`${zt}wp/v2/plugins`,{slug:e.wordpressSlug,status:"active"});if(!t.ok)return t}catch(e){}try{return await Gt(e)}catch(e){}}},Gt=async e=>{const t=new URL(`${zt}wp/v2/plugins`),r=new URLSearchParams(t.searchParams);r.set("search",e.wordpressSlug),t.search=r.toString();const o=await jt.get(t.toString()),n=o?.[0]?.plugin;if(!n)throw new Error("Plugin not found");return await jt.post(`${zt}wp/v2/plugins/${n}`,{status:"active"})},Xt=(e,t)=>jt.post(`${zt}wp/v2/template-parts/${e}`,{slug:`${e}`,theme:"extendable",type:"wp_template_part",status:"publish",
// translators: Launch is the product name. Unless otherwise specified by the glossary, do not translate this name.
description:(0,te.__)("Added by Launch","extendify-local"),content:t}),Yt=["header","header-with-center-nav-and-social","header-title-social-nav"],Jt=["footer","footer-social-icons","footer-with-center-logo-and-menu"],Kt=async()=>{const e=await jt.get(zt+"wp/v2/global-styles/themes/extendable/variations");if(!Array.isArray(e))throw new Error("Could not get theme variations");return[...e].sort((()=>Math.random()-.5))};var Qt=window.wp.apiFetch,er=n.n(Qt),tr=window.wp.components;function rr(e,t,...r){if(e in t){let o=t[e];return"function"==typeof o?o(...r):o}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,rr),o}function or(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var nr,ar=((nr=ar||{})[nr.None=0]="None",nr[nr.RenderStrategy=1]="RenderStrategy",nr[nr.Static=2]="Static",nr),ir=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ir||{});function sr({ourProps:e,theirProps:t,slot:r,defaultTag:o,features:n,visible:a=!0,name:i}){let s=cr(t,e);if(a)return lr(s,r,o,i);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=s;if(e)return lr(t,r,o,i)}if(1&l){let{unmount:e=!0,...t}=s;return rr(e?0:1,{0(){return null},1(){return lr({...t,hidden:!0,style:{display:"none"}},r,o,i)}})}return lr(s,r,o,i)}function lr(e,t={},r,o){let{as:n=r,children:i,refName:s="ref",...l}=pr(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof i?i(t):i;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,r=[];for(let[o,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&r.push(o);e&&(d["data-headlessui-state"]=r.join(" "))}if(n===a.Fragment&&Object.keys(dr(l)).length>0){if(!(0,a.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>or(null==e?void 0:e.className(...t),l.className):or(null==e?void 0:e.className,l.className),r=t?{className:t}:{};return(0,a.cloneElement)(u,Object.assign({},cr(u.props,dr(pr(l,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(u.ref,c.ref),r))}return(0,a.createElement)(n,Object.assign({},pr(l,["ref"]),n!==a.Fragment&&c,n!==a.Fragment&&d),u)}function cr(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let o of e)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=r[e]||(r[e]=[]),r[e].push(o[e])):t[e]=o[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...o){let n=r[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...o)}}});return t}function ur(e){var t;return Object.assign((0,a.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function dr(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function pr(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}var mr=Object.defineProperty,fr=(e,t,r)=>(((e,t,r)=>{t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let hr=new class{constructor(){fr(this,"current",this.detect()),fr(this,"handoffState","pending"),fr(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},gr=(e,t)=>{hr.isServer?(0,a.useEffect)(e,t):(0,a.useLayoutEffect)(e,t)};function yr(e){let t=(0,a.useRef)(e);return gr((()=>{t.current=e}),[e]),t}let wr=function(e){let t=yr(e);return a.useCallback(((...e)=>t.current(...e)),[t])},br=Symbol();function vr(...e){let t=(0,a.useRef)(e);(0,a.useEffect)((()=>{t.current=e}),[e]);let r=wr((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[br])))?void 0:r}var xr,Er=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Er||{});function kr(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in i&&i.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=a.useState(hr.isHandoffComplete);return t&&!1===hr.isHandoffComplete&&r(!1),a.useEffect((()=>{!0!==t&&r(!0)}),[t]),a.useEffect((()=>hr.handoff()),[]),!e&&t}let Cr=null!=(xr=a.useId)?xr:function(){let e=kr(),[t,r]=a.useState(e?()=>hr.nextId():null);return gr((()=>{null===t&&r(hr.nextId())}),[t]),null!=t?""+t:void 0};var Sr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Sr||{});let Pr=ur((function(e,t){let{features:r=1,...o}=e;return sr({ourProps:{ref:t,"aria-hidden":2==(2&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})}));function Tr(e){return hr.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Lr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Ar,Mr,Nr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Nr||{}),Or=((Mr=Or||{})[Mr.Error=0]="Error",Mr[Mr.Overflow=1]="Overflow",Mr[Mr.Success=2]="Success",Mr[Mr.Underflow=3]="Underflow",Mr),Rr=((Ar=Rr||{})[Ar.Previous=-1]="Previous",Ar[Ar.Next=1]="Next",Ar);var Dr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Dr||{});var Vr=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vr||{});function Fr(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let _r=["textarea","input"].join(",");function jr(e,t,{sorted:r=!0,relativeTo:o=null,skipElements:n=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?r?function(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let o=t(e),n=t(r);if(null===o||null===n)return 0;let a=o.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Lr)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);n.length>0&&i.length>1&&(i=i.filter((e=>!n.includes(e)))),o=null!=o?o:a.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(o))-1;if(4&t)return Math.max(0,i.indexOf(o))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=i.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=i[e],null==s||s.focus(u),d+=l}while(s!==a.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,_r))&&r}(s)&&s.select(),2}function Ir(e,t,r){let o=yr(t);(0,a.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)}),[e,r])}var Br=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Br||{});function Hr(){let e=(0,a.useRef)(!1);return gr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function zr(...e){return(0,a.useMemo)((()=>Tr(...e)),[...e])}function Ur(e,t,r,o){let n=yr(r);(0,a.useEffect)((()=>{function r(e){n.current(e)}return(e=null!=e?e:window).addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}),[e,t,o])}function $r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Zr(e,t){let r=(0,a.useRef)([]),o=wr(e);(0,a.useEffect)((()=>{let e=[...r.current];for(let[n,a]of t.entries())if(r.current[n]!==a){let n=o(t,e);return r.current=t,n}}),[o,...t])}function Wr(){let e=[],t={addEventListener(e,r,o,n){return e.addEventListener(r,o,n),t.add((()=>e.removeEventListener(r,o,n)))},requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame(...e){return t.requestAnimationFrame((()=>t.requestAnimationFrame(...e)))},setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return $r((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let o=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:o})}))},group(e){let t=Wr();return e(t),this.add((()=>t.dispose()))},add(t){return e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function qr(){let[e]=(0,a.useState)(Wr);return(0,a.useEffect)((()=>()=>e.dispose()),[e]),e}function Gr(e){let t=wr(e),r=(0,a.useRef)(!1);(0,a.useEffect)((()=>(r.current=!1,()=>{r.current=!0,$r((()=>{r.current&&t()}))})),[t])}function Xr(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var Yr=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Yr||{});let Jr=ur((function(e,t){let r=(0,a.useRef)(null),o=vr(r,t),{initialFocus:n,containers:i,features:s=30,...l}=e;kr()||(s=1);let c=zr(r);!function({ownerDocument:e},t){let r=function(e=!0){let t=(0,a.useRef)(Qr.slice());return Zr((([e],[r])=>{!0===r&&!1===e&&$r((()=>{t.current.splice(0)})),!1===r&&!0===e&&(t.current=Qr.slice())}),[e,Qr,t]),wr((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Zr((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Fr(r())}),[t]),Gr((()=>{t&&Fr(r())}))}({ownerDocument:c},Boolean(16&s));let u=function({ownerDocument:e,container:t,initialFocus:r},o){let n=(0,a.useRef)(null),i=Hr();return Zr((()=>{if(!o)return;let a=t.current;a&&$r((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===t)return void(n.current=t)}else if(a.contains(t))return void(n.current=t);null!=r&&r.current?Fr(r.current):jr(a,Nr.First)===Or.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),n.current=null==e?void 0:e.activeElement}))}),[o]),n}({ownerDocument:c,container:r,initialFocus:n},Boolean(2&s));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:o},n){let a=Hr();Ur(null==e?void 0:e.defaultView,"focus",(e=>{if(!n||!a.current)return;let i=Xr(r);t.current instanceof HTMLElement&&i.add(t.current);let s=o.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?eo(i,l)?(o.current=l,Fr(l)):(e.preventDefault(),e.stopPropagation(),Fr(s)):Fr(o.current)}),!0)}({ownerDocument:c,container:r,containers:i,previousActiveElement:u},Boolean(8&s));let d=function(){let e=(0,a.useRef)(0);return Ir("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),p=wr((e=>{let t=r.current;t&&rr(d.current,{[Br.Forwards]:()=>{jr(t,Nr.First,{skipElements:[e.relatedTarget]})},[Br.Backwards]:()=>{jr(t,Nr.Last,{skipElements:[e.relatedTarget]})}})})),m=qr(),f=(0,a.useRef)(!1),h={ref:o,onKeyDown(e){"Tab"==e.key&&(f.current=!0,m.requestAnimationFrame((()=>{f.current=!1})))},onBlur(e){let t=Xr(i);r.current instanceof HTMLElement&&t.add(r.current);let o=e.relatedTarget;o instanceof HTMLElement&&"true"!==o.dataset.headlessuiFocusGuard&&(eo(t,o)||(f.current?jr(r.current,rr(d.current,{[Br.Forwards]:()=>Nr.Next,[Br.Backwards]:()=>Nr.Previous})|Nr.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Fr(e.target)))}};return a.createElement(a.Fragment,null,Boolean(4&s)&&a.createElement(Pr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Sr.Focusable}),sr({ourProps:h,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&a.createElement(Pr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Sr.Focusable}))})),Kr=Object.assign(Jr,{features:Yr}),Qr=[];function eo(e,t){for(let r of e)if(r.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&Qr[0]!==e.target&&(Qr.unshift(e.target),Qr=Qr.filter((e=>null!=e&&e.isConnected)),Qr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}();var to=window.ReactDOM;let ro=(0,a.createContext)(!1);function oo(){return(0,a.useContext)(ro)}function no(e){return a.createElement(ro.Provider,{value:e.force},e.children)}let ao=a.Fragment,io=a.Fragment,so=(0,a.createContext)(null),lo=(0,a.createContext)(null),co=ur((function(e,t){let r=e,o=(0,a.useRef)(null),n=vr(function(e,t=!0){return Object.assign(e,{[br]:t})}((e=>{o.current=e})),t),i=zr(o),s=function(e){let t=oo(),r=(0,a.useContext)(so),o=zr(e),[n,i]=(0,a.useState)((()=>{if(!t&&null!==r||hr.isServer)return null;let e=null==o?void 0:o.getElementById("headlessui-portal-root");if(e)return e;if(null===o)return null;let n=o.createElement("div");return n.setAttribute("id","headlessui-portal-root"),o.body.appendChild(n)}));return(0,a.useEffect)((()=>{null!==n&&(null!=o&&o.body.contains(n)||null==o||o.body.appendChild(n))}),[n,o]),(0,a.useEffect)((()=>{t||null!==r&&i(r.current)}),[r,i,t]),n}(o),[l]=(0,a.useState)((()=>{var e;return hr.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),c=(0,a.useContext)(lo),u=kr();return gr((()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))}),[s,l]),gr((()=>{if(l&&c)return c.register(l)}),[c,l]),Gr((()=>{var e;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),u&&s&&l?(0,to.createPortal)(sr({ourProps:{ref:n},theirProps:r,defaultTag:ao,name:"Portal"}),l):null})),uo=ur((function(e,t){let{target:r,...o}=e,n={ref:vr(t)};return a.createElement(so.Provider,{value:r},sr({ourProps:n,theirProps:o,defaultTag:io,name:"Popover.Group"}))})),po=Object.assign(co,{Group:uo}),mo=(0,a.createContext)(null);function fo(){let e=(0,a.useContext)(mo);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,fo),e}return e}let ho=ur((function(e,t){let r=Cr(),{id:o=`headlessui-description-${r}`,...n}=e,a=fo(),i=vr(t);return gr((()=>a.register(o)),[o,a.register]),sr({ourProps:{ref:i,...a.props,id:o},theirProps:n,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})})),go=Object.assign(ho,{}),yo=(0,a.createContext)(null);yo.displayName="OpenClosedContext";var wo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(wo||{});function bo(){return(0,a.useContext)(yo)}function vo({value:e,children:t}){return a.createElement(yo.Provider,{value:e},t)}let xo=(0,a.createContext)((()=>{}));xo.displayName="StackContext";var Eo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Eo||{});function ko({children:e,onUpdate:t,type:r,element:o,enabled:n}){let i=(0,a.useContext)(xo),s=wr(((...e)=>{null==t||t(...e),i(...e)}));return gr((()=>{let e=void 0===n||!0===n;return e&&s(0,r,o),()=>{e&&s(1,r,o)}}),[s,r,o,n]),a.createElement(xo.Provider,{value:s},e)}function Co(e,t,r){let o=yr(t);(0,a.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)}),[e,r])}function So(e,t,r=!0){let o=(0,a.useRef)(!1);function n(r,n){if(!o.current||r.defaultPrevented)return;let a=n(r);if(null===a||!a.getRootNode().contains(a)||!a.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||r.composed&&r.composedPath().includes(t))return}return!function(e,t=0){var r;return e!==(null==(r=Tr(e))?void 0:r.body)&&rr(t,{0(){return e.matches(Lr)},1(){let t=e;for(;null!==t;){if(t.matches(Lr))return!0;t=t.parentElement}return!1}})}(a,Dr.Loose)&&-1!==a.tabIndex&&r.preventDefault(),t(r,a)}(0,a.useEffect)((()=>{requestAnimationFrame((()=>{o.current=r}))}),[r]);let i=(0,a.useRef)(null);Co("pointerdown",(e=>{var t,r;o.current&&(i.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),Co("mousedown",(e=>{var t,r;o.current&&(i.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),Co("click",(e=>{i.current&&(n(e,(()=>i.current)),i.current=null)}),!0),Co("touchend",(e=>n(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),Ir("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}const Po="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:To,useEffect:Lo,useLayoutEffect:Ao,useDebugValue:Mo}=i;function No(e){const t=e.getSnapshot,r=e.value;try{const e=t();return!Po(r,e)}catch{return!0}}const Oo="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,r){return t()}:function(e,t,r){const o=t(),[{inst:n},a]=To({inst:{value:o,getSnapshot:t}});return Ao((()=>{n.value=o,n.getSnapshot=t,No(n)&&a({inst:n})}),[e,o,t]),Lo((()=>(No(n)&&a({inst:n}),e((()=>{No(n)&&a({inst:n})})))),[e]),Mo(o),o},Ro="useSyncExternalStore"in i?(e=>e.useSyncExternalStore)(i):Oo;function Do(){let e;return{before({doc:t}){var r;let o=t.documentElement;e=(null!=(r=t.defaultView)?r:window).innerWidth-o.clientWidth},after({doc:t,d:r}){let o=t.documentElement,n=o.clientWidth-o.offsetWidth,a=e-n;r.style(o,"paddingRight",`${a}px`)}}}function Vo(){if(!(/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0))return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:r,meta:o}){function n(e){return o.containers.flatMap((e=>e())).some((t=>t.contains(e)))}r.microTask((()=>{if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=Wr();e.style(t.documentElement,"scroll-behavior","auto"),r.add((()=>r.microTask((()=>e.dispose()))))}r.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let o=null;r.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),i=t.querySelector(a);i&&!n(i)&&(o=i)}catch{}}),!0),r.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!n(e.target)&&e.preventDefault()}),{passive:!1}),r.add((()=>{window.scrollTo(0,window.pageYOffset+e),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}}function Fo(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let _o=function(e,t){let r=new Map,o=new Set;return{getSnapshot(){return r},subscribe(e){return o.add(e),()=>o.delete(e)},dispatch(e,...n){let a=t[e].call(r,...n);a&&(r=a,o.forEach((e=>e())))}}}(0,{PUSH(e,t){var r;let o=null!=(r=this.get(e))?r:{doc:e,count:0,d:Wr(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let o={doc:e,d:t,meta:Fo(r)},n=[Vo(),Do(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach((({before:e})=>null==e?void 0:e(o))),n.forEach((({after:e})=>null==e?void 0:e(o)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});_o.subscribe((()=>{let e=_o.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),o=0!==r.count;(o&&!e||!o&&e)&&_o.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&_o.dispatch("TEARDOWN",r)}}));let jo=new Map,Io=new Map;function Bo(e,t=!0){gr((()=>{var r;if(!t)return;let o="function"==typeof e?e():e.current;if(!o)return;let n=null!=(r=Io.get(o))?r:0;return Io.set(o,n+1),0!==n||(jo.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0),function(){var e;if(!o)return;let t=null!=(e=Io.get(o))?e:1;if(1===t?Io.delete(o):Io.set(o,t-1),1!==t)return;let r=jo.get(o);r&&(null===r["aria-hidden"]?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",r["aria-hidden"]),o.inert=r.inert,jo.delete(o))}}),[e,t])}function Ho({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var o;let n=(0,a.useRef)(null!=(o=null==r?void 0:r.current)?o:null),i=zr(n),s=wr((()=>{var r;let o=[];for(let t of e)null!==t&&(t instanceof HTMLElement?o.push(t):"current"in t&&t.current instanceof HTMLElement&&o.push(t.current));if(null!=t&&t.current)for(let e of t.current)o.push(e);for(let e of null!=(r=null==i?void 0:i.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(n.current)||o.some((t=>e.contains(t)))||o.push(e));return o}));return{resolveContainers:s,contains:wr((e=>s().some((t=>t.contains(e))))),mainTreeNodeRef:n,MainTreeNode:(0,a.useMemo)((()=>function(){return null!=r?null:a.createElement(Pr,{features:Sr.Hidden,ref:n})}),[n,r])}}var zo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zo||{}),Uo=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Uo||{});let $o={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Zo=(0,a.createContext)(null);function Wo(e){let t=(0,a.useContext)(Zo);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Wo),t}return t}function qo(e,t){return rr(t.type,$o,e,t)}Zo.displayName="DialogContext";let Go=ar.RenderStrategy|ar.Static,Xo=ur((function(e,t){var r;let o=Cr(),{id:n=`headlessui-dialog-${o}`,open:i,onClose:s,initialFocus:l,__demoMode:c=!1,...u}=e,[d,p]=(0,a.useState)(0),m=bo();void 0===i&&null!==m&&(i=(m&wo.Open)===wo.Open);let f=(0,a.useRef)(null),h=vr(f,t),g=zr(f),y=e.hasOwnProperty("open")||null!==m,w=e.hasOwnProperty("onClose");if(!y&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof i)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let b=i?0:1,[v,x]=(0,a.useReducer)(qo,{titleId:null,descriptionId:null,panelRef:(0,a.createRef)()}),E=wr((()=>s(!1))),k=wr((e=>x({type:0,id:e}))),C=!!kr()&&!c&&0===b,S=d>1,P=null!==(0,a.useContext)(Zo),[T,L]=function(){let e=(0,a.useContext)(lo),t=(0,a.useRef)([]),r=wr((r=>(t.current.push(r),e&&e.register(r),()=>o(r)))),o=wr((r=>{let o=t.current.indexOf(r);-1!==o&&t.current.splice(o,1),e&&e.unregister(r)})),n=(0,a.useMemo)((()=>({register:r,unregister:o,portals:t})),[r,o,t]);return[t,(0,a.useMemo)((()=>function({children:e}){return a.createElement(lo.Provider,{value:n},e)}),[n])]}(),{resolveContainers:A,mainTreeNodeRef:M,MainTreeNode:N}=Ho({portals:T,defaultContainers:[null!=(r=v.panelRef.current)?r:f.current]}),O=S?"parent":"leaf",R=null!==m&&(m&wo.Closing)===wo.Closing,D=!P&&!R&&C,V=(0,a.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==g?void 0:g.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(M.current)&&e instanceof HTMLElement)))?t:null}),[M]);Bo(V,D);let F=!!S||C,_=(0,a.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==g?void 0:g.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(M.current)&&e instanceof HTMLElement)))?t:null}),[M]);Bo(_,F),So(A,E,!(!C||S));let j=!(S||0!==b);Ur(null==g?void 0:g.defaultView,"keydown",(e=>{j&&(e.defaultPrevented||e.key===Er.Escape&&(e.preventDefault(),e.stopPropagation(),E()))})),function(e,t,r=(()=>[document.body])){!function(e,t,r){let o=function(e){return Ro(e.subscribe,e.getSnapshot,e.getSnapshot)}(_o),n=e?o.get(e):void 0,a=!!n&&n.count>0;gr((()=>{if(e&&t)return _o.dispatch("PUSH",e,r),()=>_o.dispatch("POP",e,r)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(g,!(R||0!==b||P),A),(0,a.useEffect)((()=>{if(0!==b||!f.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&E()}}));return e.observe(f.current),()=>e.disconnect()}),[b,f,E]);let[I,B]=function(){let[e,t]=(0,a.useState)([]);return[e.length>0?e.join(" "):void 0,(0,a.useMemo)((()=>function(e){let r=wr((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),o=r.indexOf(e);return-1!==o&&r.splice(o,1),r}))))),o=(0,a.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props})),[r,e.slot,e.name,e.props]);return a.createElement(mo.Provider,{value:o},e.children)}),[t])]}(),H=(0,a.useMemo)((()=>[{dialogState:b,close:E,setTitleId:k},v]),[b,v,E,k]),z=(0,a.useMemo)((()=>({open:0===b})),[b]),U={ref:h,id:n,role:"dialog","aria-modal":0===b||void 0,"aria-labelledby":v.titleId,"aria-describedby":I};return a.createElement(ko,{type:"Dialog",enabled:0===b,element:f,onUpdate:wr(((e,t)=>{"Dialog"===t&&rr(e,{[Eo.Add]:()=>p((e=>e+1)),[Eo.Remove]:()=>p((e=>e-1))})}))},a.createElement(no,{force:!0},a.createElement(po,null,a.createElement(Zo.Provider,{value:H},a.createElement(po.Group,{target:f},a.createElement(no,{force:!1},a.createElement(B,{slot:z,name:"Dialog.Description"},a.createElement(Kr,{initialFocus:l,containers:A,features:C?rr(O,{parent:Kr.features.RestoreFocus,leaf:Kr.features.All&~Kr.features.FocusLock}):Kr.features.None},a.createElement(L,null,sr({ourProps:U,theirProps:u,slot:z,defaultTag:"div",features:Go,visible:0===b,name:"Dialog"}))))))))),a.createElement(N,null))})),Yo=ur((function(e,t){let r=Cr(),{id:o=`headlessui-dialog-backdrop-${r}`,...n}=e,[{dialogState:i},s]=Wo("Dialog.Backdrop"),l=vr(t);(0,a.useEffect)((()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[s.panelRef]);let c=(0,a.useMemo)((()=>({open:0===i})),[i]);return a.createElement(no,{force:!0},a.createElement(po,null,sr({ourProps:{ref:l,id:o,"aria-hidden":!0},theirProps:n,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),Jo=ur((function(e,t){let r=Cr(),{id:o=`headlessui-dialog-panel-${r}`,...n}=e,[{dialogState:i},s]=Wo("Dialog.Panel"),l=vr(t,s.panelRef),c=(0,a.useMemo)((()=>({open:0===i})),[i]);return sr({ourProps:{ref:l,id:o,onClick:wr((e=>{e.stopPropagation()}))},theirProps:n,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),Ko=ur((function(e,t){let r=Cr(),{id:o=`headlessui-dialog-overlay-${r}`,...n}=e,[{dialogState:i,close:s}]=Wo("Dialog.Overlay");return sr({ourProps:{ref:vr(t),id:o,"aria-hidden":!0,onClick:wr((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let o=""===(null==t?void 0:t.getAttribute("disabled"));return(!o||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&o}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}))},theirProps:n,slot:(0,a.useMemo)((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),Qo=ur((function(e,t){let r=Cr(),{id:o=`headlessui-dialog-title-${r}`,...n}=e,[{dialogState:i,setTitleId:s}]=Wo("Dialog.Title"),l=vr(t);(0,a.useEffect)((()=>(s(o),()=>s(null))),[o,s]);let c=(0,a.useMemo)((()=>({open:0===i})),[i]);return sr({ourProps:{ref:l,id:o},theirProps:n,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),en=Object.assign(Xo,{Backdrop:Yo,Panel:Jo,Overlay:Ko,Title:Qo,Description:go});var tn=n(184),rn=n.n(tn);const on="undefined"!=typeof document,nn=on?a.useLayoutEffect:a.useEffect;function an(){const e=(0,a.useRef)(!1);return nn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}const sn=e=>e;class ln{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const cn=["prepare","read","update","preRender","render","postRender"],{schedule:un,cancel:dn,state:pn,steps:mn}=function(e,t){let r=!1,o=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=cn.reduce(((e,t)=>(e[t]=function(e){let t=new ln,r=new ln,o=0,n=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&n,c=l?t:r;return a&&i.add(e),c.add(e)&&l&&n&&(o=t.order.length),e},cancel:e=>{r.remove(e),i.delete(e)},process:l=>{if(n)a=!0;else{if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let r=0;r<o;r++){const o=t.order[r];o(l),i.has(o)&&(s.schedule(o),e())}n=!1,a&&(a=!1,s.process(l))}}};return s}((()=>r=!0)),e)),{}),i=e=>a[e].process(n),s=()=>{const t=performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(t-n.timestamp,40),1),n.timestamp=t,n.isProcessing=!0,cn.forEach(i),n.isProcessing=!1,r&&(o=!1,e(s))},l=cn.reduce(((t,i)=>{const l=a[i];return t[i]=(t,a=!1,i=!1)=>(r||(r=!0,o=!0,n.isProcessing||e(s)),l.schedule(t,a,i)),t}),{});return{schedule:l,cancel:e=>cn.forEach((t=>a[t].cancel(e))),state:n,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:sn),fn=(0,a.createContext)(null);function hn(e){const t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}class gn extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function yn({children:e,isPresent:t}){const r=(0,a.useId)(),o=(0,a.useRef)(null),n=(0,a.useRef)({width:0,height:0,top:0,left:0});return(0,a.useInsertionEffect)((()=>{const{width:e,height:a,top:i,left:s}=n.current;if(t||!o.current||!e||!a)return;o.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${a}px !important;\n            top: ${i}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}}),[t]),a.createElement(gn,{isPresent:t,childRef:o,sizeRef:n},a.cloneElement(e,{ref:o}))}const wn=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:s})=>{const l=hn(bn),c=(0,a.useId)(),u=(0,a.useMemo)((()=>({id:c,initial:t,isPresent:r,custom:n,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))})),i?void 0:[r]);return(0,a.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[r]),a.useEffect((()=>{!r&&!l.size&&o&&o()}),[r]),"popLayout"===s&&(e=a.createElement(yn,{isPresent:r},e)),a.createElement(fn.Provider,{value:u},e)};function bn(){return new Map}const vn=(0,a.createContext)({});let xn=sn,En=sn;const kn=e=>e.key||"",Cn=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:n,presenceAffectsLayout:i=!0,mode:s="sync"})=>{En(!n,"Replace exitBeforeEnter with mode='wait'");const l=(0,a.useContext)(vn).forceRender||function(){const e=an(),[t,r]=(0,a.useState)(0),o=(0,a.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,a.useCallback)((()=>un.postRender(o)),[o]),t]}()[0],c=an(),u=function(e){const t=[];return a.Children.forEach(e,(e=>{(0,a.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const p=(0,a.useRef)(new Map).current,m=(0,a.useRef)(d),f=(0,a.useRef)(new Map).current,h=(0,a.useRef)(!0);var g;if(nn((()=>{h.current=!1,function(e,t){e.forEach((e=>{const r=kn(e);t.set(r,e)}))}(u,f),m.current=d})),g=()=>{h.current=!0,f.clear(),p.clear()},(0,a.useEffect)((()=>()=>g()),[]),h.current)return a.createElement(a.Fragment,null,d.map((e=>a.createElement(wn,{key:kn(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:i,mode:s},e))));d=[...d];const y=m.current.map(kn),w=u.map(kn),b=y.length;for(let e=0;e<b;e++){const t=y[e];-1!==w.indexOf(t)||p.has(t)||p.set(t,void 0)}return"wait"===s&&p.size&&(d=[]),p.forEach(((e,r)=>{if(-1!==w.indexOf(r))return;const n=f.get(r);if(!n)return;const h=y.indexOf(r);let g=e;if(!g){const e=()=>{f.delete(r),p.delete(r);const e=m.current.findIndex((e=>e.key===r));if(m.current.splice(e,1),!p.size){if(m.current=u,!1===c.current)return;l(),o&&o()}};g=a.createElement(wn,{key:kn(n),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:s},n),p.set(r,g)}d.splice(h,0,g)})),d=d.map((e=>{const t=e.key;return p.has(t)?e:a.createElement(wn,{key:kn(e),isPresent:!0,presenceAffectsLayout:i,mode:s},e)})),a.createElement(a.Fragment,null,p.size?d:d.map((e=>(0,a.cloneElement)(e))))},Sn=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Pn=(0,a.createContext)({}),Tn=(0,a.createContext)({strict:!1});function Ln(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function An(e){return"string"==typeof e||Array.isArray(e)}function Mn(e){return"object"==typeof e&&"function"==typeof e.start}const Nn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],On=["initial",...Nn];function Rn(e){return Mn(e.animate)||On.some((t=>An(e[t])))}function Dn(e){return Boolean(Rn(e)||e.variants)}function Vn(e){return Array.isArray(e)?e.join(" "):e}const Fn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jn={};for(const e in Fn)jn[e]={isEnabled:t=>Fn[e].some((e=>!!t[e]))};const In=(0,a.createContext)({}),Bn=Symbol.for("motionComponentSymbol");function Hn({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:n}){e&&function(e){for(const t in e)jn[t]={...jn[t],...e[t]}}(e);const i=(0,a.forwardRef)((function(i,s){let l;const c={...(0,a.useContext)(Sn),...i,layoutId:zn(i)},{isStatic:u}=c,d=function(e){const{initial:t,animate:r}=function(e,t){if(Rn(e)){const{initial:t,animate:r}=e;return{initial:!1===t||An(t)?t:void 0,animate:An(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(Pn));return(0,a.useMemo)((()=>({initial:t,animate:r})),[Vn(t),Vn(r)])}(i),p=o(i,u);if(!u&&on){d.visualElement=function(e,t,r,o){const{visualElement:n}=(0,a.useContext)(Pn),i=(0,a.useContext)(Tn),s=(0,a.useContext)(fn),l=(0,a.useContext)(Sn).reducedMotion,c=(0,a.useRef)();o=o||i.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:n,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;(0,a.useInsertionEffect)((()=>{u&&u.update(r,s)}));const d=(0,a.useRef)(Boolean(window.HandoffAppearAnimations));return nn((()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,a.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),u}(n,p,c,t);const r=(0,a.useContext)(In),o=(0,a.useContext)(Tn).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,o,e,r))}return a.createElement(Pn.Provider,{value:d},l&&d.visualElement?a.createElement(l,{visualElement:d.visualElement,...c}):null,r(n,i,function(e,t,r){return(0,a.useCallback)((o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),r&&("function"==typeof r?r(o):Ln(r)&&(r.current=o))}),[t])}(p,d.visualElement,s),p,u,d.visualElement))}));return i[Bn]=n,i}function zn({layoutId:e}){const t=(0,a.useContext)(vn).id;return t&&void 0!==e?t+"-"+e:e}function Un(e){function t(t,r={}){return Hn(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const $n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Zn(e){return"string"==typeof e&&!e.includes("-")&&!!($n.indexOf(e)>-1||/[A-Z]/.test(e))}const Wn={},qn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gn=new Set(qn);function Xn(e,{layout:t,layoutId:r}){return Gn.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Wn[e]||"opacity"===e)}const Yn=e=>Boolean(e&&e.getVelocity),Jn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kn=qn.length,Qn=e=>t=>"string"==typeof t&&t.startsWith(e),ea=Qn("--"),ta=Qn("var(--"),ra=(e,t)=>t&&"number"==typeof e?t.transform(e):e,oa=(e,t,r)=>Math.min(Math.max(r,e),t),na={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},aa={...na,transform:e=>oa(0,1,e)},ia={...na,default:1},sa=e=>Math.round(1e5*e)/1e5,la=/(-)?([\d]*\.?[\d])+/g,ca=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ua=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function da(e){return"string"==typeof e}const pa=e=>({test:t=>da(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ma=pa("deg"),fa=pa("%"),ha=pa("px"),ga=pa("vh"),ya=pa("vw"),wa={...fa,parse:e=>fa.parse(e)/100,transform:e=>fa.transform(100*e)},ba={...na,transform:Math.round},va={borderWidth:ha,borderTopWidth:ha,borderRightWidth:ha,borderBottomWidth:ha,borderLeftWidth:ha,borderRadius:ha,radius:ha,borderTopLeftRadius:ha,borderTopRightRadius:ha,borderBottomRightRadius:ha,borderBottomLeftRadius:ha,width:ha,maxWidth:ha,height:ha,maxHeight:ha,size:ha,top:ha,right:ha,bottom:ha,left:ha,padding:ha,paddingTop:ha,paddingRight:ha,paddingBottom:ha,paddingLeft:ha,margin:ha,marginTop:ha,marginRight:ha,marginBottom:ha,marginLeft:ha,rotate:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:ia,scaleX:ia,scaleY:ia,scaleZ:ia,skew:ma,skewX:ma,skewY:ma,distance:ha,translateX:ha,translateY:ha,translateZ:ha,x:ha,y:ha,z:ha,perspective:ha,transformPerspective:ha,opacity:aa,originX:wa,originY:wa,originZ:ha,zIndex:ba,fillOpacity:aa,strokeOpacity:aa,numOctaves:ba};function xa(e,t,r,o){const{style:n,vars:a,transform:i,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const r=t[e];if(ea(e)){a[e]=r;continue}const o=va[e],d=ra(r,o);if(Gn.has(e)){if(l=!0,i[e]=d,!u)continue;r!==(o.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):n[e]=d}if(t.transform||(l||o?n.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let a="";for(let t=0;t<Kn;t++){const r=qn[t];void 0!==e[r]&&(a+=`${Jn[r]||r}(${e[r]}) `)}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),n?a=n(e,o?"":a):r&&o&&(a="none"),a}(e.transform,r,u,o):n.transform&&(n.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:r=0}=s;n.transformOrigin=`${e} ${t} ${r}`}}const Ea=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ka(e,t,r){for(const o in t)Yn(t[o])||Xn(o,r)||(e[o]=t[o])}function Ca(e,t,r){const o={},n=function(e,t,r){const o={};return ka(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t,r){return(0,a.useMemo)((()=>{const o=Ea();return xa(o,t,{enableHardwareAcceleration:!r},e),Object.assign({},o.vars,o.style)}),[t])}(e,t,r)),e.transformValues?e.transformValues(o):o}(e,t,r);return e.drag&&!1!==e.dragListener&&(o.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=n,o}const Sa=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Pa(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Sa.has(e)}let Ta=e=>!Pa(e);try{(La=require("@emotion/is-prop-valid").default)&&(Ta=e=>e.startsWith("on")?!Pa(e):La(e))}catch(e){}var La;function Aa(e,t,r){return"string"==typeof e?e:ha.transform(t+r*e)}const Ma={offset:"stroke-dashoffset",array:"stroke-dasharray"},Na={offset:"strokeDashoffset",array:"strokeDasharray"};function Oa(e,{attrX:t,attrY:r,attrScale:o,originX:n,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(xa(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:f,dimensions:h}=e;m.transform&&(h&&(f.transform=m.transform),delete m.transform),h&&(void 0!==n||void 0!==a||f.transform)&&(f.transformOrigin=function(e,t,r){return`${Aa(t,e.x,e.width)} ${Aa(r,e.y,e.height)}`}(h,void 0!==n?n:.5,void 0!==a?a:.5)),void 0!==t&&(m.x=t),void 0!==r&&(m.y=r),void 0!==o&&(m.scale=o),void 0!==i&&function(e,t,r=1,o=0,n=!0){e.pathLength=1;const a=n?Ma:Na;e[a.offset]=ha.transform(-o);const i=ha.transform(t),s=ha.transform(r);e[a.array]=`${i} ${s}`}(m,i,s,l,!1)}const Ra=()=>({...Ea(),attrs:{}}),Da=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Va(e,t,r,o){const n=(0,a.useMemo)((()=>{const r=Ra();return Oa(r,t,{enableHardwareAcceleration:!1},Da(o),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};ka(t,e.style,e),n.style={...t,...n.style}}return n}function Fa(e=!1){return(t,r,o,{latestValues:n},i)=>{const s=(Zn(t)?Va:Ca)(r,n,i,t),l=function(e,t,r){const o={};for(const n in e)"values"===n&&"object"==typeof e.values||(Ta(n)||!0===r&&Pa(n)||!t&&!Pa(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}(r,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=r,d=(0,a.useMemo)((()=>Yn(u)?u.get():u),[u]);return(0,a.createElement)(t,{...c,children:d})}}const _a=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ja(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(const t in r)e.style.setProperty(t,r[t])}const Ia=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ba(e,t,r,o){ja(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Ia.has(r)?r:_a(r),t.attrs[r])}function Ha(e,t){const{style:r}=e,o={};for(const n in r)(Yn(r[n])||t.style&&Yn(t.style[n])||Xn(n,e))&&(o[n]=r[n]);return o}function za(e,t){const r=Ha(e,t);for(const o in e)(Yn(e[o])||Yn(t[o]))&&(r[-1!==qn.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=e[o]);return r}function Ua(e,t,r,o={},n={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,o,n)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,o,n)),t}const $a=e=>Array.isArray(e),Za=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Wa=e=>$a(e)?e[e.length-1]||0:e;function qa(e){const t=Yn(e)?e.get():e;return Za(t)?t.toValue():t}const Ga=e=>(t,r)=>{const o=(0,a.useContext)(Pn),n=(0,a.useContext)(fn),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,a){const i={latestValues:Xa(o,n,a,e),renderState:t()};return r&&(i.mount=e=>r(o,e,i)),i}(e,t,o,n);return r?i():hn(i)};function Xa(e,t,r,o){const n={},a=o(e,{});for(const e in a)n[e]=qa(a[e]);let{initial:i,animate:s}=e;const l=Rn(e),c=Dn(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===i;const d=u?s:i;return d&&"boolean"!=typeof d&&!Mn(d)&&(Array.isArray(d)?d:[d]).forEach((t=>{const r=Ua(e,t);if(!r)return;const{transitionEnd:o,transition:a,...i}=r;for(const e in i){let t=i[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(n[e]=t)}for(const e in o)n[e]=o[e]})),n}const Ya={useVisualState:Ga({scrapeMotionValuesFromProps:za,createRenderState:Ra,onMount:(e,t,{renderState:r,latestValues:o})=>{un.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),un.render((()=>{Oa(r,o,{enableHardwareAcceleration:!1},Da(t.tagName),e.transformTemplate),Ba(t,r)}))}})},Ja={useVisualState:Ga({scrapeMotionValuesFromProps:Ha,createRenderState:Ea})};function Ka(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}const Qa=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ei(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ti=e=>t=>Qa(t)&&e(t,ei(t));function ri(e,t,r,o){return Ka(e,t,ti(r),o)}const oi=(e,t)=>r=>t(e(r)),ni=(...e)=>e.reduce(oi);function ai(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const ii=ai("dragHorizontal"),si=ai("dragVertical");function li(e){let t=!1;if("y"===e)t=si();else if("x"===e)t=ii();else{const e=ii(),r=si();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function ci(){const e=li(!0);return!e||(e(),!1)}class ui{constructor(e){this.isMounted=!1,this.node=e}update(){}}function di(e,t){const r="pointer"+(t?"enter":"leave"),o="onHover"+(t?"Start":"End");return ri(e.current,r,((r,n)=>{if("touch"===r.type||ci())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[o]&&un.update((()=>a[o](r,n)))}),{passive:!e.getProps()[o]})}const pi=(e,t)=>!!t&&(e===t||pi(e,t.parentElement));function mi(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ei(r))}const fi=new WeakMap,hi=new WeakMap,gi=e=>{const t=fi.get(e.target);t&&t(e)},yi=e=>{e.forEach(gi)};const wi={some:0,all:1},bi={inView:{Feature:class extends ui{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:o="some",once:n}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:wi[o]};return function(e,t,r){const o=function({root:e,...t}){const r=e||document;hi.has(r)||hi.set(r,{});const o=hi.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(yi,{root:e,...t})),o[n]}(t);return fi.set(e,r),o.observe(e),()=>{fi.delete(e),o.unobserve(e)}}(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,n&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:o}=this.node.getProps(),a=t?r:o;a&&a(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ui{constructor(){super(...arguments),this.removeStartListeners=sn,this.removeEndListeners=sn,this.removeAccessibleListeners=sn,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=ri(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:o}=this.node.getProps();un.update((()=>{pi(this.node.current,e.target)?r&&r(e,t):o&&o(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),n=ri(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ni(o,n),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Ka(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Ka(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&mi("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&un.update((()=>r(e,t)))}))})),mi("down",((e,t)=>{this.startPress(e,t)})))})),t=Ka(this.node.current,"blur",(()=>{this.isPressing&&mi("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=ni(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&un.update((()=>r(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ci()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&un.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=ri(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Ka(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ni(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ui{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ni(Ka(this.node.current,"focus",(()=>this.onFocus())),Ka(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ui{mount(){this.unmount=ni(di(this.node,!0),di(this.node,!1))}unmount(){}}}};function vi(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}function xi(e,t,r){const o=e.getProps();return Ua(o,t,void 0!==r?r:o.custom,function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}const Ei="data-"+_a("framerAppearId"),ki=e=>1e3*e,Ci=e=>e/1e3,Si=e=>Array.isArray(e)&&"number"==typeof e[0];function Pi(e){return Boolean(!e||"string"==typeof e&&Li[e]||Si(e)||Array.isArray(e)&&e.every(Pi))}const Ti=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Li={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function Ai(e){if(e)return Si(e)?Ti(e):Array.isArray(e)?e.map(Ai):Li[e]}const Mi=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function Ni(e,t,r,o){if(e===t&&r===o)return sn;return n=>0===n||1===n?n:Mi(function(e,t,r,o,n){let a,i,s=0;do{i=t+(r-t)/2,a=Mi(i,o,n)-e,a>0?r=i:t=i}while(Math.abs(a)>1e-7&&++s<12);return i}(n,0,1,e,r),t,o)}const Oi=Ni(.42,0,1,1),Ri=Ni(0,0,.58,1),Di=Ni(.42,0,.58,1),Vi=e=>Array.isArray(e)&&"number"!=typeof e[0],Fi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_i=e=>t=>1-e(1-t),ji=e=>1-Math.sin(Math.acos(e)),Ii=_i(ji),Bi=Fi(Ii),Hi=Ni(.33,1.53,.69,.99),zi=_i(Hi),Ui=Fi(zi),$i={linear:sn,easeIn:Oi,easeInOut:Di,easeOut:Ri,circIn:ji,circInOut:Bi,circOut:Ii,backIn:zi,backInOut:Ui,backOut:Hi,anticipate:e=>(e*=2)<1?.5*zi(e):.5*(2-Math.pow(2,-10*(e-1)))},Zi=e=>{if(Array.isArray(e)){En(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,o,n]=e;return Ni(t,r,o,n)}return"string"==typeof e?(En(void 0!==$i[e],`Invalid easing type '${e}'`),$i[e]):e},Wi=(e,t)=>r=>Boolean(da(r)&&ua.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),qi=(e,t,r)=>o=>{if(!da(o))return o;const[n,a,i,s]=o.match(la);return{[e]:parseFloat(n),[t]:parseFloat(a),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Gi={...na,transform:e=>Math.round((e=>oa(0,255,e))(e))},Xi={test:Wi("rgb","red"),parse:qi("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Gi.transform(e)+", "+Gi.transform(t)+", "+Gi.transform(r)+", "+sa(aa.transform(o))+")"},Yi={test:Wi("#"),parse:function(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}},transform:Xi.transform},Ji={test:Wi("hsl","hue"),parse:qi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+fa.transform(sa(t))+", "+fa.transform(sa(r))+", "+sa(aa.transform(o))+")"},Ki={test:e=>Xi.test(e)||Yi.test(e)||Ji.test(e),parse:e=>Xi.test(e)?Xi.parse(e):Ji.test(e)?Ji.parse(e):Yi.parse(e),transform:e=>da(e)?e:e.hasOwnProperty("red")?Xi.transform(e):Ji.transform(e)},Qi=(e,t,r)=>-r*e+r*t+e;function es(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const ts=(e,t,r)=>{const o=e*e;return Math.sqrt(Math.max(0,r*(t*t-o)+o))},rs=[Yi,Xi,Ji];function os(e){const t=(e=>rs.find((t=>t.test(e))))(e);En(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Ji&&(r=function({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,r/=100;let n=0,a=0,i=0;if(t/=100){const o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=es(s,o,e+1/3),a=es(s,o,e),i=es(s,o,e-1/3)}else n=a=i=r;return{red:Math.round(255*n),green:Math.round(255*a),blue:Math.round(255*i),alpha:o}}(r)),r}const ns=(e,t)=>{const r=os(e),o=os(t),n={...r};return e=>(n.red=ts(r.red,o.red,e),n.green=ts(r.green,o.green,e),n.blue=ts(r.blue,o.blue,e),n.alpha=Qi(r.alpha,o.alpha,e),Xi.transform(n))},as={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:sn},is={regex:ca,countKey:"Colors",token:"${c}",parse:Ki.parse},ss={regex:la,countKey:"Numbers",token:"${n}",parse:na.parse};function ls(e,{regex:t,countKey:r,token:o,parse:n}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,o),e.values.push(...a.map(n)))}function cs(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&ls(r,as),ls(r,is),ls(r,ss),r}function us(e){return cs(e).values}function ds(e){const{values:t,numColors:r,numVars:o,tokenised:n}=cs(e),a=t.length;return e=>{let t=n;for(let n=0;n<a;n++)t=n<o?t.replace(as.token,e[n]):n<o+r?t.replace(is.token,Ki.transform(e[n])):t.replace(ss.token,sa(e[n]));return t}}const ps=e=>"number"==typeof e?0:e,ms={test:function(e){var t,r;return isNaN(e)&&da(e)&&((null===(t=e.match(la))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(ca))||void 0===r?void 0:r.length)||0)>0},parse:us,createTransformer:ds,getAnimatableNone:function(e){const t=us(e);return ds(e)(t.map(ps))}},fs=(e,t)=>r=>`${r>0?t:e}`;function hs(e,t){return"number"==typeof e?r=>Qi(e,t,r):Ki.test(e)?ns(e,t):e.startsWith("var(")?fs(e,t):ws(e,t)}const gs=(e,t)=>{const r=[...e],o=r.length,n=e.map(((e,r)=>hs(e,t[r])));return e=>{for(let t=0;t<o;t++)r[t]=n[t](e);return r}},ys=(e,t)=>{const r={...e,...t},o={};for(const n in r)void 0!==e[n]&&void 0!==t[n]&&(o[n]=hs(e[n],t[n]));return e=>{for(const t in o)r[t]=o[t](e);return r}},ws=(e,t)=>{const r=ms.createTransformer(t),o=cs(e),n=cs(t);return o.numVars===n.numVars&&o.numColors===n.numColors&&o.numNumbers>=n.numNumbers?ni(gs(o.values,n.values),r):(xn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),fs(e,t))},bs=(e,t,r)=>{const o=t-e;return 0===o?1:(r-e)/o},vs=(e,t)=>r=>Qi(e,t,r);function xs(e,t,{clamp:r=!0,ease:o,mixer:n}={}){const a=e.length;if(En(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,r){const o=[],n=r||function(e){return"number"==typeof e?vs:"string"==typeof e?Ki.test(e)?ns:ws:Array.isArray(e)?gs:"object"==typeof e?ys:vs}(e[0]),a=e.length-1;for(let r=0;r<a;r++){let a=n(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||sn:t;a=ni(e,a)}o.push(a)}return o}(t,o,n),s=i.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const o=bs(e[r],e[r+1],t);return i[r](o)};return r?t=>l(oa(e[0],e[a-1],t)):l}function Es({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){const n=Vi(o)?o.map(Zi):Zi(o),a={done:!1,value:t[0]},i=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:function(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let o=1;o<=t;o++){const n=bs(0,t,o);e.push(Qi(r,1,n))}}(t,e.length-1),t}(t),e),s=xs(i,t,{ease:Array.isArray(n)?n:(l=t,c=n,l.map((()=>c||Di)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}function ks(e,t){return t?e*(1e3/t):0}const Cs=5;function Ss(e,t,r){const o=Math.max(t-Cs,0);return ks(r-e(o),t-o)}const Ps=.001,Ts=.01,Ls=10,As=.05,Ms=1;const Ns=12;function Os(e,t){return e*Math.sqrt(1-t*t)}const Rs=["duration","bounce"],Ds=["stiffness","damping","mass"];function Vs(e,t){return t.some((t=>void 0!==e[t]))}function Fs({keyframes:e,restDelta:t,restSpeed:r,...o}){const n=e[0],a=e[e.length-1],i={done:!1,value:n},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Vs(e,Ds)&&Vs(e,Rs)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,a;xn(e<=ki(Ls),"Spring duration must be 10 seconds or less");let i=1-t;i=oa(As,Ms,i),e=oa(Ts,Ls,Ci(e)),i<1?(n=t=>{const o=t*i,n=o*e,a=o-r,s=Os(t,i),l=Math.exp(-n);return Ps-a/s*l},a=t=>{const o=t*i*e,a=o*r+r,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-o),c=Os(Math.pow(t,2),i);return(-n(t)+Ps>0?-1:1)*((a-s)*l)/c}):(n=t=>Math.exp(-t*e)*((t-r)*e+1)-Ps,a=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let o=r;for(let r=1;r<Ns;r++)o-=e(o)/t(o);return o}(n,a,5/e);if(e=ki(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*i*Math.sqrt(o*t),duration:e}}}(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(o),m=u?-Ci(u):0,f=l/(2*Math.sqrt(s*c)),h=a-n,g=Ci(Math.sqrt(s/c)),y=Math.abs(h)<5;let w;if(r||(r=y?.01:2),t||(t=y?.005:.5),f<1){const e=Os(g,f);w=t=>{const r=Math.exp(-f*g*t);return a-r*((m+f*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===f)w=e=>a-Math.exp(-g*e)*(h+(m+g*h)*e);else{const e=g*Math.sqrt(f*f-1);w=t=>{const r=Math.exp(-f*g*t),o=Math.min(e*t,300);return a-r*((m+f*g*h)*Math.sinh(o)+e*h*Math.cosh(o))/e}}return{calculatedDuration:p&&d||null,next:e=>{const o=w(e);if(p)i.done=e>=d;else{let n=m;0!==e&&(n=f<1?Ss(w,e,o):0);const s=Math.abs(n)<=r,l=Math.abs(a-o)<=t;i.done=s&&l}return i.value=i.done?a:o,i}}}function _s({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=r*t;const h=d+f,g=void 0===i?h:i(h);g!==h&&(f=g-d);const y=e=>-f*Math.exp(-e/o),w=e=>g+y(e),b=e=>{const t=y(e),r=w(e);p.done=Math.abs(t)<=c,p.value=p.done?g:r};let v,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(v=e,x=Fs({keyframes:[p.value,m(p.value)],velocity:Ss(w,e,p.value),damping:n,stiffness:a,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==v||(t=!0,b(e),E(e)),void 0!==v&&e>v?x.next(e-v):(!t&&b(e),p)}}}const js=e=>{const t=({timestamp:t})=>e(t);return{start:()=>un.update(t,!0),stop:()=>dn(t),now:()=>pn.isProcessing?pn.timestamp:performance.now()}},Is=2e4;function Bs(e){let t=0,r=e.next(t);for(;!r.done&&t<Is;)t+=50,r=e.next(t);return t>=Is?1/0:t}const Hs={decay:_s,inertia:_s,tween:Es,keyframes:Es,spring:Fs};function zs({autoplay:e=!0,delay:t=0,driver:r=js,keyframes:o,type:n="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,f,h=1,g=!1;const y=()=>{f=new Promise((e=>{m=e}))};let w;y();const b=Hs[n]||Es;let v;b!==Es&&"number"!=typeof o[0]&&(v=xs([0,100],o,{clamp:!1}),o=[0,100]);const x=b({...p,keyframes:o});let E;"mirror"===s&&(E=b({...p,keyframes:[...o].reverse(),velocity:-(p.velocity||0)}));let k="idle",C=null,S=null,P=null;null===x.calculatedDuration&&a&&(x.calculatedDuration=Bs(x));const{calculatedDuration:T}=x;let L=1/0,A=1/0;null!==T&&(L=T+i,A=L*(a+1)-i);let M=0;const N=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),h<0&&(S=Math.min(e-A/h,S)),M=null!==C?C:Math.round(e-S)*h;const r=M-t*(h>=0?1:-1),n=h>=0?r<0:r>A;M=Math.max(r,0),"finished"===k&&null===C&&(M=A);let l=M,c=x;if(a){const e=M/L;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,a+1);const o=Boolean(t%2);o&&("reverse"===s?(r=1-r,i&&(r-=i/L)):"mirror"===s&&(c=E));let n=oa(0,1,r);M>A&&(n="reverse"===s&&o?1:0),l=n*L}const u=n?{done:!1,value:o[0]}:c.next(l);v&&(u.value=v(u.value));let{done:p}=u;n||null===T||(p=h>=0?M>=A:M<=0);const m=null===C&&("finished"===k||"running"===k&&p);return d&&d(u.value),m&&D(),u},O=()=>{w&&w.stop(),w=void 0},R=()=>{k="idle",O(),m(),y(),S=P=null},D=()=>{k="finished",u&&u(),O(),m()},V=()=>{if(g)return;w||(w=r(N));const e=w.now();l&&l(),null!==C?S=e-C:S&&"finished"!==k||(S=e),"finished"===k&&y(),P=S,C=null,k="running",w.start()};e&&V();const F={then(e,t){return f.then(e,t)},get time(){return Ci(M)},set time(e){e=ki(e),M=e,null===C&&w&&0!==h?S=w.now()-e/h:C=e},get duration(){const e=null===x.calculatedDuration?Bs(x):x.calculatedDuration;return Ci(e)},get speed(){return h},set speed(e){e!==h&&w&&(h=e,F.time=Ci(M))},get state(){return k},play:V,pause:()=>{k="paused",C=M},stop:()=>{g=!0,"idle"!==k&&(k="idle",c&&c(),R())},cancel:()=>{null!==P&&N(P),R()},complete:()=>{k="finished"},sample:e=>(S=0,N(e))};return F}const Us=function(e){let t;return()=>(void 0===t&&(t=Object.hasOwnProperty.call(Element.prototype,"animate")),t)}(),$s=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);const Zs={type:"spring",stiffness:500,damping:25,restSpeed:10},Ws={type:"keyframes",duration:.8},qs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gs=(e,{keyframes:t})=>t.length>2?Ws:Gn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Zs:qs,Xs=(e,t)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ms.test(t)&&"0"!==t||t.startsWith("url("))),Ys=new Set(["brightness","contrast","saturate","opacity"]);function Js(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=r.match(la)||[];if(!o)return e;const n=r.replace(o,"");let a=Ys.has(t)?1:0;return o!==r&&(a*=100),t+"("+a+n+")"}const Ks=/([a-z-]*)\(.*?\)/g,Qs={...ms,getAnimatableNone:e=>{const t=e.match(Ks);return t?t.map(Js).join(" "):e}},el={...va,color:Ki,backgroundColor:Ki,outlineColor:Ki,fill:Ki,stroke:Ki,borderColor:Ki,borderTopColor:Ki,borderRightColor:Ki,borderBottomColor:Ki,borderLeftColor:Ki,filter:Qs,WebkitFilter:Qs},tl=e=>el[e];function rl(e,t){let r=tl(e);return r!==Qs&&(r=ms),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const ol=e=>/^0[^.\s]+$/.test(e);function nl(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ol(e):void 0}function al(e,t){return e[t]||e.default||e}const il=(e,t,r,o={})=>n=>{const a=al(o,e)||{},i=a.delay||o.delay||0;let{elapsed:s=0}=o;s-=ki(i);const l=function(e,t,r,o){const n=Xs(t,r);let a;a=Array.isArray(r)?[...r]:[null,r];const i=void 0!==o.from?o.from:e.get();let s;const l=[];for(let e=0;e<a.length;e++)null===a[e]&&(a[e]=0===e?i:a[e-1]),nl(a[e])&&l.push(e),"string"==typeof a[e]&&"none"!==a[e]&&"0"!==a[e]&&(s=a[e]);if(n&&l.length&&s)for(let e=0;e<l.length;e++)a[l[e]]=rl(t,s);return a}(t,e,r,a),c=l[0],u=l[l.length-1],d=Xs(e,c),p=Xs(e,u);xn(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{n(),a.onComplete&&a.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:o,staggerDirection:n,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(a)||(m={...m,...Gs(e,m)}),m.duration&&(m.duration=ki(m.duration)),m.repeatDelay&&(m.repeatDelay=ki(m.repeatDelay)),!d||!p||!1===a.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:o}){const n=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:sn,pause:sn,stop:sn,then:e=>(e(),Promise.resolve()),cancel:sn,complete:sn});return t?zs({keyframes:[0,1],duration:0,delay:t,onComplete:n}):n()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=function(e,t,{onUpdate:r,onComplete:o,...n}){if(!Us()||!$s.has(t)||n.repeatDelay||"mirror"===n.repeatType||0===n.damping||"inertia"===n.type)return!1;let a,i,s=!1;const l=()=>{i=new Promise((e=>{a=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:p}=n;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Pi(t.ease))(t,n)){const e=zs({...n,repeat:0,delay:0});let t={done:!1,value:c[0]};const r=[];let o=0;for(;!t.done&&o<2e4;)t=e.sample(o),r.push(t.value),o+=10;p=void 0,c=r,u=o-10,d="linear"}const m=function(e,t,r,{delay:o=0,duration:n,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Ai(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===i?"alternate":"normal"})}(e.owner.current,t,c,{...n,duration:u,ease:d,times:p});n.syncStart&&(m.startTime=pn.isProcessing?pn.timestamp:document.timeline?document.timeline.currentTime:performance.now());const f=()=>m.cancel(),h=()=>{un.update(f),a(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}(c,n)),o&&o(),h()},{then(e,t){return i.then(e,t)},attachTimeline(e){return m.timeline=e,m.onfinish=null,sn},get time(){return Ci(m.currentTime||0)},set time(e){m.currentTime=ki(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Ci(u)},play:()=>{s||(m.play(),dn(f))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const r=zs({...n,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}h()},complete:()=>m.finish(),cancel:h}}(t,e,m);if(r)return r}return zs(m)};function sl(e){return Boolean(Yn(e)&&e.add)}const ll=e=>/^\-?\d*\.?\d+$/.test(e);function cl(e,t){-1===e.indexOf(t)&&e.push(t)}function ul(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class dl{constructor(){this.subscriptions=[]}add(e){return cl(this.subscriptions,e),()=>ul(this.subscriptions,e)}notify(e,t,r){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,r);else for(let n=0;n<o;n++){const o=this.subscriptions[n];o&&o(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pl={current:void 0};class ml{constructor(e,t={}){var r;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:r,timestamp:o}=pn;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,un.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>un.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new dl);const r=this.events[e].add(t);return"change"===e?()=>{r(),un.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return pl.current&&pl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ks(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fl(e,t){return new ml(e,t)}const hl=e=>t=>t.test(e),gl=[na,ha,fa,ma,ya,ga,{test:e=>"auto"===e,parse:e=>e}],yl=e=>gl.find(hl(e)),wl=[...gl,Ki,ms],bl=e=>wl.find(hl(e));function vl(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,fl(r))}function xl(e,t){if(t)return(t[e]||t.default||t).from}function El({protectedKeys:e,needsAnimating:t},r){const o=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,o}function kl(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");o&&(a=o);const c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(const t in s){const o=e.getValue(t),n=s[t];if(!o||void 0===n||u&&El(u,t))continue;const i={delay:r,elapsed:0,...a};if(window.HandoffAppearAnimations&&!o.hasAnimated){const r=e.getProps()[Ei];r&&(i.elapsed=window.HandoffAppearAnimations(r,t,o,un),i.syncStart=!0)}o.start(il(t,o,n,e.shouldReduceMotion&&Gn.has(t)?{type:!1}:i));const d=o.animation;sl(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return i&&Promise.all(c).then((()=>{i&&function(e,t){const r=xi(e,t);let{transitionEnd:o={},transition:n={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...o};for(const t in a)vl(e,t,Wa(a[t]))}(e,i)})),c}function Cl(e,t,r={}){const o=xi(e,t,r.custom);let{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);const a=o?()=>Promise.all(kl(e,o,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:a=0,staggerChildren:i,staggerDirection:s}=n;return function(e,t,r=0,o=0,n=1,a){const i=[],s=(e.variantChildren.size-1)*o,l=1===n?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(Sl).forEach(((e,o)=>{e.notify("AnimationStart",t),i.push(Cl(e,t,{...a,delay:r+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,a+o,i,s,r)}:()=>Promise.resolve(),{when:s}=n;if(s){const[e,t]="beforeChildren"===s?[a,i]:[i,a];return e().then((()=>t()))}return Promise.all([a(),i(r.delay)])}function Sl(e,t){return e.sortNodePosition(t)}const Pl=[...Nn].reverse(),Tl=Nn.length;function Ll(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const n=t.map((t=>Cl(e,t,r)));o=Promise.all(n)}else if("string"==typeof t)o=Cl(e,t,r);else{const n="function"==typeof t?xi(e,t,r.custom):t;o=Promise.all(kl(e,n,r))}return o.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}(e);const r={animate:Al(!0),whileInView:Al(),whileHover:Al(),whileTap:Al(),whileDrag:Al(),whileFocus:Al(),exit:Al()};let o=!0;const n=(t,r)=>{const o=xi(e,r);if(o){const{transition:e,transitionEnd:r,...n}=o;t={...t,...n,...r}}return t};function a(a,i){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Tl;t++){const h=Pl[t],g=r[h],y=void 0!==s[h]?s[h]:l[h],w=An(y),b=h===i?g.isActive:null;!1===b&&(p=t);let v=y===l[h]&&y!==s[h]&&w;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||Mn(y)||"boolean"==typeof y)continue;const x=(m=g.prevProp,"string"==typeof(f=y)?f!==m:!!Array.isArray(f)&&!vi(f,m));let E=x||h===i&&g.isActive&&!v&&w||t>p&&w;const k=Array.isArray(y)?y:[y];let C=k.reduce(n,{});!1===b&&(C={});const{prevResolvedValues:S={}}=g,P={...S,...C},T=e=>{E=!0,u.delete(e),g.needsAnimating[e]=!0};for(const e in P){const t=C[e],r=S[e];d.hasOwnProperty(e)||(t!==r?$a(t)&&$a(r)?!vi(t,r)||x?T(e):g.protectedKeys[e]=!0:void 0!==t?T(e):u.add(e):void 0!==t&&u.has(e)?T(e):g.protectedKeys[e]=!0)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(d={...d,...C}),o&&e.blockInitialAnimation&&(E=!1),E&&!v&&c.push(...k.map((e=>({animation:e,options:{type:h,...a}}))))}var m,f;if(u.size){const t={};u.forEach((r=>{const o=e.getBaseTarget(r);void 0!==o&&(t[r]=o)})),c.push({animation:t})}let h=Boolean(c.length);return o&&!1===s.initial&&!e.manuallyAnimateOnMount&&(h=!1),o=!1,h?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,o,n){var i;if(r[t].isActive===o)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,o)})),r[t].isActive=o;const s=a(n,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function Al(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Ml=0;const Nl={animation:{Feature:class extends ui{constructor(e){super(e),e.animationState||(e.animationState=Ll(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Mn(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ui{constructor(){super(...arguments),this.id=Ml++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;const n=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&n.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ol=(e,t)=>Math.abs(e-t);class Rl{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Fl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Ol(e.x,t.x),o=Ol(e.y,t.y);return Math.sqrt(r**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:o}=e,{timestamp:n}=pn;this.history.push({...o,timestamp:n});const{onStart:a,onMove:i}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Dl(t,this.transformPagePoint),un.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:r,onSessionEnd:o}=this.handlers,n=Fl("pointercancel"===e.type?this.lastMoveEventInfo:Dl(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,n),o&&o(e,n)},!Qa(e))return;this.handlers=t,this.transformPagePoint=r;const o=Dl(ei(e),this.transformPagePoint),{point:n}=o,{timestamp:a}=pn;this.history=[{...n,timestamp:a}];const{onSessionStart:i}=t;i&&i(e,Fl(o,this.history)),this.removeListeners=ni(ri(window,"pointermove",this.handlePointerMove),ri(window,"pointerup",this.handlePointerUp),ri(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),dn(this.updatePoint)}}function Dl(e,t){return t?{point:t(e.point)}:e}function Vl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fl({point:e},t){return{point:e,delta:Vl(e,jl(t)),offset:Vl(e,_l(t)),velocity:Il(t,.1)}}function _l(e){return e[0]}function jl(e){return e[e.length-1]}function Il(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const n=jl(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>ki(t)));)r--;if(!o)return{x:0,y:0};const a=Ci(n.timestamp-o.timestamp);if(0===a)return{x:0,y:0};const i={x:(n.x-o.x)/a,y:(n.y-o.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Bl(e){return e.max-e.min}function Hl(e,t=0,r=.01){return Math.abs(e-t)<=r}function zl(e,t,r,o=.5){e.origin=o,e.originPoint=Qi(t.min,t.max,e.origin),e.scale=Bl(r)/Bl(t),(Hl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Qi(r.min,r.max,e.origin)-e.originPoint,(Hl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ul(e,t,r,o){zl(e.x,t.x,r.x,o?o.originX:void 0),zl(e.y,t.y,r.y,o?o.originY:void 0)}function $l(e,t,r){e.min=r.min+t.min,e.max=e.min+Bl(t)}function Zl(e,t,r){e.min=t.min-r.min,e.max=e.min+Bl(t)}function Wl(e,t,r){Zl(e.x,t.x,r.x),Zl(e.y,t.y,r.y)}function ql(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Gl(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}const Xl=.35;function Yl(e,t,r){return{min:Jl(e,t),max:Jl(e,r)}}function Jl(e,t){return"number"==typeof e?e:e[t]||0}const Kl=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Ql=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ec(e){return[e("x"),e("y")]}function tc({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function rc(e){return void 0===e||1===e}function oc({scale:e,scaleX:t,scaleY:r}){return!rc(e)||!rc(t)||!rc(r)}function nc(e){return oc(e)||ac(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ac(e){return ic(e.x)||ic(e.y)}function ic(e){return e&&"0%"!==e}function sc(e,t,r){return r+t*(e-r)}function lc(e,t,r,o,n){return void 0!==n&&(e=sc(e,n,o)),sc(e,r,o)+t}function cc(e,t=0,r=1,o,n){e.min=lc(e.min,t,r,o,n),e.max=lc(e.max,t,r,o,n)}function uc(e,{x:t,y:r}){cc(e.x,t.translate,t.scale,t.originPoint),cc(e.y,r.translate,r.scale,r.originPoint)}function dc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function pc(e,t){e.min=e.min+t,e.max=e.max+t}function mc(e,t,[r,o,n]){const a=void 0!==t[n]?t[n]:.5,i=Qi(e.min,e.max,a);cc(e,t[r],t[o],i,t.scale)}const fc=["x","scaleX","originX"],hc=["y","scaleY","originY"];function gc(e,t){mc(e.x,t,fc),mc(e.y,t,hc)}function yc(e,t){return tc(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const wc=new WeakMap;class bc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ql(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;r&&!1===r.isPresent||(this.panSession=new Rl(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(ei(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:o,onDragStart:n}=this.getProps();if(r&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=li(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ec((e=>{let t=this.getAxisMotionValue(e).get()||0;if(fa.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const o=r.layout.layoutBox[e];o&&(t=Bl(o)*(parseFloat(t)/100))}}this.originPoint[e]=t})),n&&un.update((()=>n(e,t)),!1,!0);const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:o,onDirectionLock:n,onDrag:a}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:i}=t;if(o&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(i),void(null!==this.currentDirection&&n&&n(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:n}=this.getProps();n&&un.update((()=>n(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:o}=this.getProps();if(!r||!vc(e,o,this.currentDirection))return;const n=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},o){return void 0!==t&&e<t?e=o?Qi(t,e,o.min):Math.max(e,t):void 0!==r&&e>r&&(e=o?Qi(r,e,o.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),n.set(a)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;e&&Ln(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:o,right:n}){return{x:ql(e.x,r,n),y:ql(e.y,t,o)}}(r.layoutBox,e),this.elastic=function(e=Xl){return!1===e?e=0:!0===e&&(e=Xl),{x:Yl(e,"left","right"),y:Yl(e,"top","bottom")}}(t),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ec((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ln(e))return!1;const r=e.current;En(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const n=function(e,t,r){const o=yc(e,r),{scroll:n}=t;return n&&(pc(o.x,n.offset.x),pc(o.y,n.offset.y)),o}(r,o.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:Gl(e.x,t.x),y:Gl(e.y,t.y)}}(o.layout.layoutBox,n);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tc(e))}return a}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=ec((i=>{if(!vc(i,t,this.currentDirection))return;let l=s&&s[i]||{};a&&(l={min:0,max:0});const c=o?200:1e6,u=o?40:1e7,d={type:"inertia",velocity:r?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(il(e,r,0,t))}stopAnimation(){ec((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ec((t=>{const{drag:r}=this.getProps();if(!vc(t,r,this.currentDirection))return;const{projection:o}=this.visualElement,n=this.getAxisMotionValue(t);if(o&&o.layout){const{min:r,max:a}=o.layout.layoutBox[t];n.set(e[t]-Qi(r,a,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Ln(t)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ec((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();o[e]=function(e,t){let r=.5;const o=Bl(e),n=Bl(t);return n>o?r=bs(t.min,t.max-o,e.min):o>n&&(r=bs(e.min,e.max-n,t.min)),oa(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ec((t=>{if(!vc(t,e,null))return;const r=this.getAxisMotionValue(t),{min:n,max:a}=this.constraints[t];r.set(Qi(n,a,o[t]))}))}addListeners(){if(!this.visualElement.current)return;wc.set(this.visualElement,this);const e=ri(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ln(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const n=Ka(window,"resize",(()=>this.scalePositionWithinConstraints())),a=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ec((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{n(),e(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:a=Xl,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:a,dragMomentum:i}}}function vc(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const xc=e=>(t,r)=>{e&&un.update((()=>e(t,r)))},Ec={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ha.test(e))return e;e=parseFloat(e)}return`${kc(e,t.target.x)}% ${kc(e,t.target.y)}%`}},Sc={correct:(e,{treeScale:t,projectionDelta:r})=>{const o=e,n=ms.parse(e);if(n.length>5)return o;const a=ms.createTransformer(e),i="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;const c=Qi(s,l,.5);return"number"==typeof n[2+i]&&(n[2+i]/=c),"number"==typeof n[3+i]&&(n[3+i]/=c),a(n)}};class Pc extends a.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=e;var a;a=Lc,Object.assign(Wn,a),n&&(t.group&&t.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",(()=>{this.safeToRemove()})),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),Ec.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:o,isPresent:n}=this.props,a=r.projection;return a?(a.isPresent=n,o||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?a.promote():a.relegate()||un.postRender((()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Tc(e){const[t,r]=function(){const e=(0,a.useContext)(fn);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:o}=e,n=(0,a.useId)();return(0,a.useEffect)((()=>o(n)),[]),!t&&r?[!1,()=>r&&r(n)]:[!0]}(),o=(0,a.useContext)(vn);return a.createElement(Pc,{...e,layoutGroup:o,switchLayoutGroup:(0,a.useContext)(In),isPresent:t,safeToRemove:r})}const Lc={borderRadius:{...Cc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cc,borderTopRightRadius:Cc,borderBottomLeftRadius:Cc,borderBottomRightRadius:Cc,boxShadow:Sc},Ac=["TopLeft","TopRight","BottomLeft","BottomRight"],Mc=Ac.length,Nc=e=>"string"==typeof e?parseFloat(e):e,Oc=e=>"number"==typeof e||ha.test(e);function Rc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Dc=Fc(0,.5,Ii),Vc=Fc(.5,.95,sn);function Fc(e,t,r){return o=>o<e?0:o>t?1:r(bs(e,t,o))}function _c(e,t){e.min=t.min,e.max=t.max}function jc(e,t){_c(e.x,t.x),_c(e.y,t.y)}function Ic(e,t,r,o,n){return e=sc(e-=t,1/r,o),void 0!==n&&(e=sc(e,1/n,o)),e}function Bc(e,t,[r,o,n],a,i){!function(e,t=0,r=1,o=.5,n,a=e,i=e){if(fa.test(t)&&(t=parseFloat(t),t=Qi(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=Qi(a.min,a.max,o);e===a&&(s-=t),e.min=Ic(e.min,t,r,s,n),e.max=Ic(e.max,t,r,s,n)}(e,t[r],t[o],t[n],t.scale,a,i)}const Hc=["x","scaleX","originX"],zc=["y","scaleY","originY"];function Uc(e,t,r,o){Bc(e.x,t,Hc,r?r.x:void 0,o?o.x:void 0),Bc(e.y,t,zc,r?r.y:void 0,o?o.y:void 0)}function $c(e){return 0===e.translate&&1===e.scale}function Zc(e){return $c(e.x)&&$c(e.y)}function Wc(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function qc(e){return Bl(e.x)/Bl(e.y)}class Gc{constructor(){this.members=[]}add(e){cl(this.members,e),e.scheduleRender()}remove(e){if(ul(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xc(e,t,r){let o="";const n=e.x.translate/t.x,a=e.y.translate/t.y;if((n||a)&&(o=`translate3d(${n}px, ${a}px, 0) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:n}=r;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),n&&(o+=`rotateY(${n}deg) `)}const i=e.x.scale*t.x,s=e.y.scale*t.y;return 1===i&&1===s||(o+=`scale(${i}, ${s})`),o||"none"}const Yc=(e,t)=>e.depth-t.depth;class Jc{constructor(){this.children=[],this.isDirty=!1}add(e){cl(this.children,e),this.isDirty=!0}remove(e){ul(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yc),this.isDirty=!1,this.children.forEach(e)}}const Kc=["","X","Y","Z"];let Qc=0;const eu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tu({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Qc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;eu.totalNodes=eu.resolvedTargetDeltas=eu.recalculatedProjection=0,this.nodes.forEach(nu),this.nodes.forEach(du),this.nodes.forEach(pu),this.nodes.forEach(au),e=eu,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new dl),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:n,layout:a,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(a||n)&&(this.isLayoutDirty=!0),e){let r;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=performance.now(),o=({timestamp:t})=>{const n=t-r;n>=250&&(dn(o),e(n-250))};return un.read(o,!0),()=>dn(o)}(o),Ec.hasAnimatedSinceResize&&(Ec.hasAnimatedSinceResize=!1,this.nodes.forEach(uu))}))}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||a)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const n=this.options.transition||i.getDefaultTransition()||wu,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!Wc(this.targetLayout,o)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...al(n,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||uu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(su);this.isUpdating||this.nodes.forEach(lu),this.isUpdating=!1,this.nodes.forEach(cu),this.nodes.forEach(ru),this.nodes.forEach(ou),this.clearAllSnapshots();const e=performance.now();pn.delta=oa(0,1e3/60,e-pn.timestamp),pn.timestamp=e,pn.isProcessing=!0,mn.update.process(pn),mn.preRender.process(pn),mn.render.process(pn),pn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(iu),this.sharedNodes.forEach(fu)}scheduleUpdateProjection(){un.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){un.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ql(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:o(this.instance),offset:r(this.instance)})}resetTransform(){if(!n)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Zc(this.projectionDelta),r=this.getTransformTemplate(),o=r?r(this.latestValues,""):void 0,a=o!==this.prevTransformTemplateValue;e&&(t||nc(this.latestValues)||a)&&(n(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var o;return e&&(r=this.removeTransform(r)),xu((o=r).x),xu(o.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Ql();const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(pc(t.x,r.offset.x),pc(t.y,r.offset.y)),t}removeElementScroll(e){const t=Ql();jc(t,e);for(let r=0;r<this.path.length;r++){const o=this.path[r],{scroll:n,options:a}=o;if(o!==this.root&&n&&a.layoutScroll){if(n.isRoot){jc(t,e);const{scroll:r}=this.root;r&&(pc(t.x,-r.offset.x),pc(t.y,-r.offset.y))}pc(t.x,n.offset.x),pc(t.y,n.offset.y)}}return t}applyTransform(e,t=!1){const r=Ql();jc(r,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&gc(r,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),nc(o.latestValues)&&gc(r,o.latestValues)}return nc(this.latestValues)&&gc(r,this.latestValues),r}removeTransform(e){const t=Ql();jc(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!nc(r.latestValues))continue;oc(r.latestValues)&&r.updateSnapshot();const o=Ql();jc(o,r.measurePageBox()),Uc(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,o)}return nc(this.latestValues)&&Uc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==pn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==r;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:n,layoutId:a}=this.options;if(this.layout&&(n||a)){if(this.resolvedRelativeTargetAt=pn.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ql(),this.relativeTargetOrigin=Ql(),Wl(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),jc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,s,l;if(this.target||(this.target=Ql(),this.targetWithTransforms=Ql()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,$l(i.x,s.x,l.x),$l(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):jc(this.target,this.layout.layoutBox),uc(this.target,this.targetDelta)):jc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ql(),this.relativeTargetOrigin=Ql(),Wl(this.relativeTargetOrigin,this.target,e.target),jc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}eu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!oc(this.parent.latestValues)&&!ac(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===pn.timestamp&&(o=!1),o)return;const{layout:n,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!n&&!a)return;jc(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,o=!1){const n=r.length;if(!n)return;let a,i;t.x=t.y=1;for(let s=0;s<n;s++){a=r[s],i=a.projectionDelta;const n=a.instance;n&&n.style&&"contents"===n.style.display||(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&gc(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,uc(e,i)),o&&nc(a.latestValues)&&gc(e,a.latestValues))}t.x=dc(t.x),t.y=dc(t.y)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Kl(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Kl(),this.projectionDeltaWithTransform=Kl());const c=this.projectionTransform;Ul(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Xc(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),eu.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const r=this.snapshot,o=r?r.latestValues:{},n={...this.latestValues},a=Kl();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i=Ql(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(yu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;hu(a.x,e.x,r),hu(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wl(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,o){gu(e.x,t.x,r.x,o),gu(e.y,t.y,r.y,o)}(this.relativeTarget,this.relativeTargetOrigin,i,r),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Ql()),jc(d,this.relativeTarget)),s&&(this.animationValues=n,function(e,t,r,o,n,a){n?(e.opacity=Qi(0,void 0!==r.opacity?r.opacity:1,Dc(o)),e.opacityExit=Qi(void 0!==t.opacity?t.opacity:1,0,Vc(o))):a&&(e.opacity=Qi(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,o));for(let n=0;n<Mc;n++){const a=`border${Ac[n]}Radius`;let i=Rc(t,a),s=Rc(r,a);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||Oc(i)===Oc(s)?(e[a]=Math.max(Qi(Nc(i),Nc(s),o),0),(fa.test(s)||fa.test(i))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=Qi(t.rotate||0,r.rotate||0,o))}(n,o,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=un.update((()=>{Ec.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const o=Yn(0)?0:fl(0);return o.start(il("",o,1e3,r)),o.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:o,latestValues:n}=e;if(t&&r&&o){if(this!==e&&this.layout&&o&&Eu(this.options.animationType,this.layout.layoutBox,o.layoutBox)){r=this.target||Ql();const t=Bl(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const o=Bl(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+o}jc(t,r),gc(t,n),Ul(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gc),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const o=this.getStack();o&&o.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const o={};for(let t=0;t<Kc.length;t++){const n="rotate"+Kc[t];r[n]&&(o[n]=r[n],e.setStaticValue(n,0))}e.render();for(const t in o)e.setStaticValue(t,o[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,r;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=qa(e.pointerEvents)||"",o.transform=n?n(this.latestValues,""):"none",o;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=qa(e.pointerEvents)||""),this.hasProjected&&!nc(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}const i=a.animationValues||a.latestValues;this.applyTransformsToTarget(),o.transform=Xc(this.projectionDeltaWithTransform,this.treeScale,i),n&&(o.transform=n(i,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,a.animationValues?o.opacity=a===this?null!==(r=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:o.opacity=a===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in Wn){if(void 0===i[e])continue;const{correct:t,applyTo:r}=Wn[e],n="none"===o.transform?i[e]:t(i[e],a);if(r){const e=r.length;for(let t=0;t<e;t++)o[r[t]]=n}else o[e]=n}return this.options.layoutId&&(o.pointerEvents=a===this?qa(e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function ru(e){e.updateLayout()}function ou(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:o}=e.layout,{animationType:n}=e.options,a=r.source!==e.layout.source;"size"===n?ec((e=>{const o=a?r.measuredBox[e]:r.layoutBox[e],n=Bl(o);o.min=t[e].min,o.max=o.min+n})):Eu(n,r.layoutBox,t)&&ec((o=>{const n=a?r.measuredBox[o]:r.layoutBox[o],i=Bl(t[o]);n.max=n.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+i)}));const i=Kl();Ul(i,t,r.layoutBox);const s=Kl();a?Ul(s,e.applyTransform(o,!0),r.measuredBox):Ul(s,t,r.layoutBox);const l=!Zc(i);let c=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:n,layout:a}=o;if(n&&a){const i=Ql();Wl(i,r.layoutBox,n.layoutBox);const s=Ql();Wl(s,t,a.layoutBox),Wc(i,s)||(c=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nu(e){eu.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function au(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iu(e){e.clearSnapshot()}function su(e){e.clearMeasurements()}function lu(e){e.isLayoutDirty=!1}function cu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function uu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function du(e){e.resolveTargetDelta()}function pu(e){e.calcProjection()}function mu(e){e.resetRotation()}function fu(e){e.removeLeadSnapshot()}function hu(e,t,r){e.translate=Qi(t.translate,0,r),e.scale=Qi(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function gu(e,t,r,o){e.min=Qi(t.min,r.min,o),e.max=Qi(t.max,r.max,o)}function yu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wu={duration:.45,ease:[.4,0,.1,1]},bu=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),vu=bu("applewebkit/")&&!bu("chrome/")?Math.round:sn;function xu(e){e.min=vu(e.min),e.max=vu(e.max)}function Eu(e,t,r){return"position"===e||"preserve-aspect"===e&&!Hl(qc(t),qc(r),.2)}const ku=tu({attachResizeListener:(e,t)=>Ka(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cu={current:void 0},Su=tu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cu.current){const e=new ku({});e.mount(window),e.setOptions({layoutScroll:!0}),Cu.current=e}return Cu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Pu={pan:{Feature:class extends ui{constructor(){super(...arguments),this.removePointerDownListener=sn}onPointerDown(e){this.session=new Rl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:xc(e),onStart:xc(t),onMove:r,onEnd:(e,t)=>{delete this.session,o&&un.update((()=>o(e,t)))}}}mount(){this.removePointerDownListener=ri(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ui{constructor(e){super(e),this.removeGroupControls=sn,this.removeListeners=sn,this.controls=new bc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Su,MeasureLayout:Tc}},Tu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Lu(e,t,r=1){En(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,n]=function(e){const t=Tu.exec(e);if(!t)return[,];const[,r,o]=t;return[r,o]}(e);if(!o)return;const a=window.getComputedStyle(t).getPropertyValue(o);if(a){const e=a.trim();return ll(e)?parseFloat(e):e}return ta(n)?Lu(n,t,r+1):n}const Au=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mu=e=>Au.has(e),Nu=e=>e===na||e===ha,Ou=(e,t)=>parseFloat(e.split(", ")[t]),Ru=(e,t)=>(r,{transform:o})=>{if("none"===o||!o)return 0;const n=o.match(/^matrix3d\((.+)\)$/);if(n)return Ou(n[1],t);{const t=o.match(/^matrix\((.+)\)$/);return t?Ou(t[1],e):0}},Du=new Set(["x","y","z"]),Vu=qn.filter((e=>!Du.has(e))),Fu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ru(4,13),y:Ru(5,14)};Fu.translateX=Fu.x,Fu.translateY=Fu.y;function _u(e,t,r,o){return(e=>Object.keys(e).some(Mu))(t)?((e,t,r={},o={})=>{t={...t},o={...o};const n=Object.keys(t).filter(Mu);let a=[],i=!1;const s=[];if(n.forEach((n=>{const l=e.getValue(n);if(!e.hasValue(n))return;let c=r[n],u=yl(c);const d=t[n];let p;if($a(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=yl(c);for(let r=t;r<e&&null!==d[r];r++)p?En(yl(d[r])===p,"All keyframes must be of the same type"):(p=yl(d[r]),En(p===u||Nu(u)&&Nu(p),"Keyframes must be of the same dimension as the current value"))}else p=yl(d);if(u!==p)if(Nu(u)&&Nu(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[n]=parseFloat(d):Array.isArray(d)&&p===ha&&(t[n]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[n]=u.transform(d):(i||(a=function(e){const t=[];return Vu.forEach((r=>{const o=e.getValue(r);void 0!==o&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),i=!0),s.push(n),o[n]=void 0!==o[n]?o[n]:t[n],l.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,n=((e,t,r)=>{const o=t.measureViewportBox(),n=t.current,a=getComputedStyle(n),{display:i}=a,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=Fu[e](o,a)})),t.render();const l=t.measureViewportBox();return r.forEach((r=>{const o=t.getValue(r);o&&o.jump(s[r]),e[r]=Fu[r](l,a)})),e})(t,e,s);return a.length&&a.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),on&&null!==r&&window.scrollTo({top:r}),{target:n,transitionEnd:o}}return{target:t,transitionEnd:o}})(e,t,r,o):{target:t,transitionEnd:o}}const ju={current:null},Iu={current:!1},Bu=new WeakMap,Hu=Object.keys(jn),zu=Hu.length,Uu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$u=On.length;class Zu{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:o,visualState:n},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>un.render(this.render,!1,!0);const{latestValues:i,renderState:s}=n;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Rn(t),this.isVariantNode=Dn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==i[e]&&Yn(t)&&(t.set(i[e],!1),sl(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Bu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Iu.current||function(){if(Iu.current=!0,on)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ju.current=e.matches;e.addListener(t),t()}else ju.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ju.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Bu.delete(this.current),this.projection&&this.projection.unmount(),dn(this.notifyUpdate),dn(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=Gn.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&un.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),n=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{o(),n()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,o,n){let a,i;for(let e=0;e<zu;e++){const r=Hu[e],{isEnabled:o,Feature:n,ProjectionNode:s,MeasureLayout:l}=jn[r];s&&(a=s),o(t)&&(!this.features[r]&&n&&(this.features[r]=new n(this)),l&&(i=l))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:r,drag:o,dragConstraints:i,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:Boolean(o)||i&&Ln(i),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:s,layoutRoot:l})}return i}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ql()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Uu.length;t++){const r=Uu[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o=e["on"+r];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=function(e,t,r){const{willChange:o}=t;for(const n in t){const a=t[n],i=r[n];if(Yn(a))e.addValue(n,a),sl(o)&&o.add(n);else if(Yn(i))e.addValue(n,fl(a,{owner:e})),sl(o)&&o.remove(n);else if(i!==a)if(e.hasValue(n)){const t=e.getValue(n);!t.hasAnimated&&t.set(a)}else{const t=e.getStaticValue(n);e.addValue(n,fl(void 0!==t?t:a,{owner:e}))}}for(const o in r)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<$u;e++){const r=On[e],o=this.props[r];(An(o)||!1===o)&&(t[r]=o)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=fl(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,o="string"==typeof r||"object"==typeof r?null===(t=Ua(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==o)return o;const n=this.getBaseTargetFromProps(this.props,e);return void 0===n||Yn(n)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new dl),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Wu extends Zu{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:o},n){let a=function(e,t,r){const o={};for(const n in e){const e=xl(n,t);if(void 0!==e)o[n]=e;else{const e=r.getValue(n);e&&(o[n]=e.get())}}return o}(r,e||{},this);if(o&&(t&&(t=o(t)),r&&(r=o(r)),a&&(a=o(a))),n){!function(e,t,r){var o,n;const a=Object.keys(t).filter((t=>!e.hasValue(t))),i=a.length;if(i)for(let s=0;s<i;s++){const i=a[s],l=t[i];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(n=null!==(o=r[i])&&void 0!==o?o:e.readValue(i))&&void 0!==n?n:t[i]),null!=c&&("string"==typeof c&&(ll(c)||ol(c))?c=parseFloat(c):!bl(c)&&ms.test(l)&&(c=rl(i,l)),e.addValue(i,fl(c,{owner:e})),void 0===r[i]&&(r[i]=c),null!==c&&e.setBaseTarget(i,c))}}(this,r,a);const e=((e,t,r,o)=>{const n=function(e,{...t},r){const o=e.current;if(!(o instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!ta(t))return;const r=Lu(t,o);r&&e.set(r)}));for(const e in t){const n=t[e];if(!ta(n))continue;const a=Lu(n,o);a&&(t[e]=a,r||(r={}),void 0===r[e]&&(r[e]=n))}return{target:t,transitionEnd:r}}(e,t,o);return _u(e,t=n.target,r,o=n.transitionEnd)})(this,r,a,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class qu extends Wu{readValueFromInstance(e,t){if(Gn.has(t)){const e=tl(t);return e&&e.default||0}{const o=(r=e,window.getComputedStyle(r)),n=(ea(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof n?n.trim():n}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return yc(e,t)}build(e,t,r,o){xa(e,t,r,o.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Ha(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Yn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,o){ja(e,t,r,o)}}class Gu extends Wu{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Gn.has(t)){const e=tl(t);return e&&e.default||0}return t=Ia.has(t)?t:_a(t),e.getAttribute(t)}measureInstanceViewportBox(){return Ql()}scrapeMotionValuesFromProps(e,t){return za(e,t)}build(e,t,r,o){Oa(e,t,r,this.isSVGTag,o.transformTemplate)}renderInstance(e,t,r,o){Ba(e,t,0,o)}mount(e){this.isSVGTag=Da(e.tagName),super.mount(e)}}const Xu=(e,t)=>Zn(e)?new Gu(t,{enableHardwareAcceleration:!1}):new qu(t,{enableHardwareAcceleration:!0}),Yu={...Nl,...bi,...Pu,layout:{ProjectionNode:Su,MeasureLayout:Tc}},Ju=Un(((e,t)=>function(e,{forwardMotionProps:t=!1},r,o){return{...Zn(e)?Ya:Ja,preloadedFeatures:r,useRender:Fa(t),createVisualElement:o,Component:e}}(e,t,Yu,Xu))),Ku=({setPage:e,resetState:r})=>{var o;const n=null!==(o=window.extOnbData.oldPagesIds)&&void 0!==o?o:[],[a,i]=(0,t.useState)(!1),[s,l]=(0,t.useState)(!1),c=(0,t.useRef)(null);return(0,t.useEffect)((()=>{n.length>0&&(i(!0),e(0))}),[n.length,i,e]),(0,t.createElement)(Cn,null,a&&(0,t.createElement)(en,{initialFocus:c,static:!0,open:a,as:Ju.div,initial:!1,animate:{opacity:1},exit:{opacity:0},"data-test":"confirmation-launch",className:"extendify-launch extendify-launch-modal",onClose:()=>null},(0,t.createElement)("div",{className:"mx-auto md:p-8 w-full flex justify-center items-center h-screen absolute top-0"},(0,t.createElement)("div",{className:"fixed inset-0 bg-black/30",style:{backdropFilter:"blur(2px)",zIndex:99999},"aria-hidden":"true"}),(0,t.createElement)("div",{style:{zIndex:100099},className:"sm:flex rounded relative shadow-2xl sm:overflow-hidden bg-white max-w-screen-3xl"},(0,t.createElement)(en.Panel,{className:"my-6 mx-8 flex flex-col gap-8"},(0,t.createElement)(en.Title,{className:"m-0 text-gray-900 text-xl flex items-center"},(0,te.__)("Start over?","extendify-local")),(0,t.createElement)("div",{className:"text-left relative"},(0,t.createElement)("p",{className:"text-lg m-0 mb-2"},(0,te.__)("Go through the onboarding process again to create a new site.","extendify-local")),(0,t.createElement)("p",{className:"text-base m-0"},(0,t.createElement)("strong",null,(0,te.sprintf)(
// translators: %3$s is the number of old pages
(0,te.__)("%s pages created in the prior onboarding session will be deleted.","extendify-local"),n.length)))),(0,t.createElement)("div",{className:"flex justify-end space-x-4"},(0,t.createElement)(Qu,{"data-test":"modal-exit-button",onClick:()=>window.location.href=`${window.extOnbData.adminUrl}admin.php?page=extendify-assist`,disabled:s,className:"bg-white text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,te.__)("Exit","extendify-local")),(0,t.createElement)(Qu,{onClick:async()=>{l(!0),r();for(const e of n)await er()({path:`/wp/v2/pages/${e}`,method:"DELETE"});i(!1)},disabled:s,className:"bg-design-main text-design-text border-design-main","data-test":"modal-continue-button"},s?(0,t.createElement)("div",{className:"flex items-center justify-center"},(0,t.createElement)(tr.Spinner,null),(0,t.createElement)("div",null,(0,te.__)("Processing","extendify-local"))):(0,te.__)("Continue","extendify-local"))))))))},Qu=(0,t.forwardRef)(((e,r)=>(0,t.createElement)("button",{ref:r,...e,className:rn()("rounded flex items-center px-6 py-3 leading-6 button-focus border",{"opacity-50 cursor-not-allowed":e.disabled},e.className),type:"button"},e.children))),ed=({show:e})=>e?(0,t.createElement)(Cn,null,(0,t.createElement)(Ju.div,{className:"extendify-launch w-full fixed bottom-[100px] pb-4 flex justify-end z-max px-12"},(0,t.createElement)("div",{className:"shadow-2xl"},(0,t.createElement)(tr.Snackbar,null,(0,te.__)("Just a moment, this is taking longer than expected.","extendify-local"))))):null;function td(e,...t){e&&t.length>0&&e.classList.add(...t)}function rd(e,...t){e&&t.length>0&&e.classList.remove(...t)}function od(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let nd=(0,a.createContext)(null);nd.displayName="TransitionContext";var ad=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ad||{});let id=(0,a.createContext)(null);function sd(e){return"children"in e?sd(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ld(e,t){let r=yr(e),o=(0,a.useRef)([]),n=Hr(),i=qr(),s=wr(((e,t=ir.Hidden)=>{let a=o.current.findIndex((({el:t})=>t===e));-1!==a&&(rr(t,{[ir.Unmount](){o.current.splice(a,1)},[ir.Hidden](){o.current[a].state="hidden"}}),i.microTask((()=>{var e;!sd(o)&&n.current&&(null==(e=r.current)||e.call(r))})))})),l=wr((e=>{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>s(e,ir.Unmount)})),c=(0,a.useRef)([]),u=(0,a.useRef)(Promise.resolve()),d=(0,a.useRef)({enter:[],leave:[],idle:[]}),p=wr(((e,r,o)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(d.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>o(r))):o(r)})),m=wr(((e,t,r)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return(0,a.useMemo)((()=>({children:o,register:l,unregister:s,onStart:p,onStop:m,wait:u,chains:d})),[l,s,o,p,m,d,u])}function cd(){}id.displayName="NestingContext";let ud=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function dd(e){var t;let r={};for(let o of ud)r[o]=null!=(t=e[o])?t:cd;return r}let pd=ar.RenderStrategy,md=ur((function(e,t){let{show:r,appear:o=!1,unmount:n=!0,...i}=e,s=(0,a.useRef)(null),l=vr(s,t);kr();let c=bo();if(void 0===r&&null!==c&&(r=(c&wo.Open)===wo.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,a.useState)(r?"visible":"hidden"),p=ld((()=>{d("hidden")})),[m,f]=(0,a.useState)(!0),h=(0,a.useRef)([r]);gr((()=>{!1!==m&&h.current[h.current.length-1]!==r&&(h.current.push(r),f(!1))}),[h,r]);let g=(0,a.useMemo)((()=>({show:r,appear:o,initial:m})),[r,o,m]);(0,a.useEffect)((()=>{if(r)d("visible");else if(sd(p)){let e=s.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[r,p]);let y={unmount:n},w=wr((()=>{var t;m&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),b=wr((()=>{var t;m&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return a.createElement(id.Provider,{value:p},a.createElement(nd.Provider,{value:g},sr({ourProps:{...y,as:a.Fragment,children:a.createElement(fd,{ref:l,...y,...i,beforeEnter:w,beforeLeave:b})},theirProps:{},defaultTag:a.Fragment,features:pd,visible:"visible"===u,name:"Transition"})))})),fd=ur((function(e,t){var r,o;let{beforeEnter:n,afterEnter:i,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:m,leaveFrom:f,leaveTo:h,...g}=e,y=(0,a.useRef)(null),w=vr(y,t),b=null==(r=g.unmount)||r?ir.Unmount:ir.Hidden,{show:v,appear:x,initial:E}=function(){let e=(0,a.useContext)(nd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[k,C]=(0,a.useState)(v?"visible":"hidden"),S=function(){let e=(0,a.useContext)(id);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:T}=S;(0,a.useEffect)((()=>P(y)),[P,y]),(0,a.useEffect)((()=>{if(b===ir.Hidden&&y.current)return v&&"visible"!==k?void C("visible"):rr(k,{hidden:()=>T(y),visible:()=>P(y)})}),[k,y,P,T,v,b]);let L=yr({base:od(g.className),enter:od(c),enterFrom:od(u),enterTo:od(d),entered:od(p),leave:od(m),leaveFrom:od(f),leaveTo:od(h)}),A=function(e){let t=(0,a.useRef)(dd(e));return(0,a.useEffect)((()=>{t.current=dd(e)}),[e]),t}({beforeEnter:n,afterEnter:i,beforeLeave:s,afterLeave:l}),M=kr();(0,a.useEffect)((()=>{if(M&&"visible"===k&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,k,M]);let N=x&&v&&E,O=!M||E&&!x?"idle":v?"enter":"leave",R=function(e=0){let[t,r]=(0,a.useState)(e),o=Hr(),n=(0,a.useCallback)((e=>{o.current&&r((t=>t|e))}),[t,o]),i=(0,a.useCallback)((e=>Boolean(t&e)),[t]),s=(0,a.useCallback)((e=>{o.current&&r((t=>t&~e))}),[r,o]),l=(0,a.useCallback)((e=>{o.current&&r((t=>t^e))}),[r]);return{flags:t,addFlag:n,hasFlag:i,removeFlag:s,toggleFlag:l}}(0),D=wr((e=>rr(e,{enter:()=>{R.addFlag(wo.Opening),A.current.beforeEnter()},leave:()=>{R.addFlag(wo.Closing),A.current.beforeLeave()},idle:()=>{}}))),V=wr((e=>rr(e,{enter:()=>{R.removeFlag(wo.Opening),A.current.afterEnter()},leave:()=>{R.removeFlag(wo.Closing),A.current.afterLeave()},idle:()=>{}}))),F=ld((()=>{C("hidden"),T(y)}),S);!function({immediate:e,container:t,direction:r,classes:o,onStart:n,onStop:a}){let i=Hr(),s=qr(),l=yr(r);gr((()=>{e&&(l.current="enter")}),[e]),gr((()=>{let e=Wr();s.add(e.dispose);let r=t.current;if(r&&"idle"!==l.current&&i.current)return e.dispose(),n.current(l.current),e.add(function(e,t,r,o){let n=r?"enter":"leave",a=Wr(),i=void 0!==o?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(o):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let s=rr(n,{enter:()=>t.enter,leave:()=>t.leave}),l=rr(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=rr(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return rd(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),td(e,...t.base,...s,...c),a.nextFrame((()=>{rd(e,...t.base,...s,...c),td(e,...t.base,...s,...l),function(e,t){let r=Wr();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:n}=getComputedStyle(e),[a,i]=[o,n].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=a+i;if(0!==s){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),s),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let o=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),o())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(rd(e,...t.base,...s),td(e,...t.base,...t.entered),i())))})),a.dispose}(r,o.current,"enter"===l.current,(()=>{e.dispose(),a.current(l.current)}))),e.dispose}),[r])}({immediate:N,container:y,classes:L,direction:O,onStart:yr((e=>{F.onStart(y,e,D)})),onStop:yr((e=>{F.onStop(y,e,V),"leave"===e&&!sd(F)&&(C("hidden"),T(y))}))});let _=g,j={ref:w};return N?_={..._,className:or(g.className,...L.current.enter,...L.current.enterFrom)}:(_.className=or(g.className,null==(o=y.current)?void 0:o.className),""===_.className&&delete _.className),a.createElement(id.Provider,{value:F},a.createElement(vo,{value:rr(k,{visible:wo.Open,hidden:wo.Closed})|R.flags},sr({ourProps:j,theirProps:_,defaultTag:"div",features:pd,visible:"visible"===k,name:"Transition.Child"})))})),hd=ur((function(e,t){let r=null!==(0,a.useContext)(nd),o=null!==bo();return a.createElement(a.Fragment,null,!r&&o?a.createElement(md,{ref:t,...e}):a.createElement(fd,{ref:t,...e}))})),gd=Object.assign(md,{Child:hd,Root:md});var yd={grad:.9,turn:360,rad:360/(2*Math.PI)},wd=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},bd=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},vd=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},xd=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ed=function(e){return{r:vd(e.r,0,255),g:vd(e.g,0,255),b:vd(e.b,0,255),a:vd(e.a)}},kd=function(e){return{r:bd(e.r),g:bd(e.g),b:bd(e.b),a:bd(e.a,3)}},Cd=/^#([0-9a-f]{3,8})$/i,Sd=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pd=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,a=Math.max(t,r,o),i=a-Math.min(t,r,o),s=i?a===t?(r-o)/i:a===r?2+(o-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:n}},Td=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var a=Math.floor(t),i=o*(1-r),s=o*(1-(t-a)*r),l=o*(1-(1-t+a)*r),c=a%6;return{r:255*[o,s,i,i,l,o][c],g:255*[l,o,o,s,i,i][c],b:255*[i,i,l,o,o,s][c],a:n}},Ld=function(e){return{h:xd(e.h),s:vd(e.s,0,100),l:vd(e.l,0,100),a:vd(e.a)}},Ad=function(e){return{h:bd(e.h),s:bd(e.s),l:bd(e.l),a:bd(e.a,3)}},Md=function(e){return Td((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},Nd=function(e){return{h:(t=Pd(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},Od=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fd={string:[[function(e){var t=Cd.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?bd(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?bd(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Dd.exec(e)||Vd.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ed({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Od.exec(e)||Rd.exec(e);if(!t)return null;var r,o,n=Ld({h:(r=t[1],o=t[2],void 0===o&&(o="deg"),Number(r)*(yd[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Md(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,a=void 0===n?1:n;return wd(t)&&wd(r)&&wd(o)?Ed({r:Number(t),g:Number(r),b:Number(o),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,a=void 0===n?1:n;if(!wd(t)||!wd(r)||!wd(o))return null;var i=Ld({h:Number(t),s:Number(r),l:Number(o),a:Number(a)});return Md(i)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,a=void 0===n?1:n;if(!wd(t)||!wd(r)||!wd(o))return null;var i=function(e){return{h:xd(e.h),s:vd(e.s,0,100),v:vd(e.v,0,100),a:vd(e.a)}}({h:Number(t),s:Number(r),v:Number(o),a:Number(a)});return Td(i)},"hsv"]]},_d=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},jd=function(e,t){var r=Nd(e);return{h:r.h,s:vd(r.s+100*t,0,100),l:r.l,a:r.a}},Id=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Bd=function(e,t){var r=Nd(e);return{h:r.h,s:r.s,l:vd(r.l+100*t,0,100),a:r.a}},Hd=function(){function e(e){this.parsed=function(e){return"string"==typeof e?_d(e.trim(),Fd.string):"object"==typeof e&&null!==e?_d(e,Fd.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return bd(Id(this.rgba),2)},e.prototype.isDark=function(){return Id(this.rgba)<.5},e.prototype.isLight=function(){return Id(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=kd(this.rgba)).r,r=e.g,o=e.b,a=(n=e.a)<1?Sd(bd(255*n)):"","#"+Sd(t)+Sd(r)+Sd(o)+a;var e,t,r,o,n,a},e.prototype.toRgb=function(){return kd(this.rgba)},e.prototype.toRgbString=function(){return t=(e=kd(this.rgba)).r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},e.prototype.toHsl=function(){return Ad(Nd(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ad(Nd(this.rgba))).h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},e.prototype.toHsv=function(){return e=Pd(this.rgba),{h:bd(e.h),s:bd(e.s),v:bd(e.v),a:bd(e.a,3)};var e},e.prototype.invert=function(){return zd({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),zd(jd(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),zd(jd(this.rgba,-e))},e.prototype.grayscale=function(){return zd(jd(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),zd(Bd(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),zd(Bd(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?zd({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):bd(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Nd(this.rgba);return"number"==typeof e?zd({h:e,s:t.s,l:t.l,a:t.a}):bd(t.h)},e.prototype.isEqual=function(e){return this.toHex()===zd(e).toHex()},e}(),zd=function(e){return e instanceof Hd?e:new Hd(e)};const Ud=({pages:e})=>{const[r,o]=(0,t.useState)(0);return(0,t.useEffect)((()=>{const t=setTimeout((()=>{o((t=>(t+1)%e.length))}),1e4);return()=>clearTimeout(t)}),[e.length,r]),(0,t.createElement)("div",{className:"mt-3"},(0,t.createElement)($d,{pageName:e[r]}))},$d=({pageName:e})=>{const[r,o]=(0,t.useState)(!1),[n,a]=(0,t.useState)(!1),[i,s]=(0,t.useState)("");return(0,t.useLayoutEffect)((()=>{const e=window.getComputedStyle(document.body).getPropertyValue("--ext-banner-main");o(zd(e).isLight())}),[]),(0,t.useEffect)((()=>{a(!1);const t=setTimeout((()=>{a(!0),s(e)}),700);return()=>clearTimeout(t)}),[e]),(0,t.createElement)(Cn,null,n?(0,t.createElement)(Ju.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0,transition:{duration:.6}},exit:{opacity:0,x:-50},transition:{ease:"easeInOut"},className:"p-4 rounded w-96 mt-12 border-8 border-gray-200 border-opacity-25",style:{mixBlendMode:r?"difference":"plus-lighter"}},(0,t.createElement)("h1",{className:"text-banner-text opacity-60 mb-8",style:{mixBlendMode:"plus-lighter"}},i),(0,t.createElement)("div",{className:"space-y-6"},[0,1,2].map((e=>{const r=3*e;return(0,t.createElement)(Ju.div,{"aria-hidden":"true",key:e,initial:{opacity:0},animate:{opacity:1},transition:e?{duration:r/2,delay:r}:{},role:"status",className:"max-w-sm space-y-2"},(0,t.createElement)(Zd,{i:e*r,className:"w-48 h-3 mb-3"}),(0,t.createElement)(Zd,{i:e*r,className:"w-full h-2"}),(0,t.createElement)(Zd,{i:e*r,className:"w-full max-w-[90%] h-2"}),(0,t.createElement)(Zd,{i:e*r,className:"w-full h-2"}),(0,t.createElement)(Zd,{i:e*r,className:"w-full h-2"}))})))):null)},Zd=({className:e,i:r})=>(0,t.createElement)("div",{className:`rounded-full ${e}`,style:{backgroundColor:"rgba(204, 204, 204, 0.25)",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite",animationDelay:`${r}s`,mixBlendMode:"plus-lighter"}});var Wd={};!function e(t,r,o,n){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function i(){}function s(e){var o=r.exports.Promise,n=void 0!==o?o:t.Promise;return"function"==typeof n?new n(e):(e(i,i),null)}var l,c,u,d,p,m,f,h,g,y=(u=Math.floor(1e3/60),d={},p=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(l=function(e){var t=Math.random();return d[t]=requestAnimationFrame((function r(o){p===o||p+u-1<o?(p=o,delete d[t],e()):d[t]=requestAnimationFrame(r)})),t},c=function(e){d[e]&&cancelAnimationFrame(d[e])}):(l=function(e){return setTimeout(e,u)},c=function(e){return clearTimeout(e)}),{frame:l,cancel:c}),w=(h={},function(){if(m)return m;if(!o&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,o,n){if(f)return t(r,null),f;var a=Math.random().toString(36).slice(2);return f=s((function(o){function i(t){t.data.callback===a&&(delete h[a],e.removeEventListener("message",i),f=null,n(),o())}e.addEventListener("message",i),t(r,a),h[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),h)h[t](),delete h[t]}}(m)}return m}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function v(e,t,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],r)}function x(e){return e<0?0:Math.floor(e)}function E(e){return parseInt(e,16)}function k(e){return e.map(C)}function C(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function S(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function P(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function T(e,r){var i,l=!e,c=!!v(r||{},"resize"),u=!1,d=v(r,"disableForReducedMotion",Boolean),p=a&&v(r||{},"useWorker")?w():null,m=l?S:P,f=!(!e||!p||!e.__confetti_initialized),h="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(t,r,a){for(var l,c,u,d,p=v(t,"particleCount",x),f=v(t,"angle",Number),h=v(t,"spread",Number),g=v(t,"startVelocity",Number),w=v(t,"decay",Number),b=v(t,"gravity",Number),E=v(t,"drift",Number),C=v(t,"colors",k),S=v(t,"ticks",Number),P=v(t,"shapes"),T=v(t,"scalar"),L=function(e){var t=v(e,"origin",Object);return t.x=v(t,"x",Number),t.y=v(t,"y",Number),t}(t),A=p,M=[],N=e.width*L.x,O=e.height*L.y;A--;)M.push((void 0,void 0,c=(l={x:N,y:O,angle:f,spread:h,startVelocity:g,color:C[A%C.length],shape:P[(0,d=P.length,Math.floor(Math.random()*(d-0))+0)],ticks:S,decay:w,gravity:b,drift:E,scalar:T}).angle*(Math.PI/180),u=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar}));return i?i.addFettis(M):(i=function(e,t,r,a,i){var l,c,u=t.slice(),d=e.getContext("2d"),p=s((function(t){function s(){l=c=null,d.clearRect(0,0,a.width,a.height),i(),t()}l=y.frame((function t(){!o||a.width===n.width&&a.height===n.height||(a.width=e.width=n.width,a.height=e.height=n.height),a.width||a.height||(r(e),a.width=e.width,a.height=e.height),d.clearRect(0,0,a.width,a.height),u=u.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var r=t.tick++/t.totalTicks,o=t.x+t.random*t.tiltCos,n=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,i=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(i-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,o,n,a,i,s,l){e.save(),e.translate(t,r),e.rotate(a),e.scale(o,n),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(i-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var s=Math.PI/2*3,l=4*t.scalar,c=8*t.scalar,u=t.x,d=t.y,p=5,m=Math.PI/p;p--;)u=t.x+Math.cos(s)*c,d=t.y+Math.sin(s)*c,e.lineTo(u,d),s+=m,u=t.x+Math.cos(s)*l,d=t.y+Math.sin(s)*l,e.lineTo(u,d),s+=m;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(n)),e.lineTo(Math.floor(a),Math.floor(i)),e.lineTo(Math.floor(o),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),u.length?l=y.frame(t):s()})),c=s}));return{addFettis:function(e){return u=u.concat(e),p},canvas:e,promise:p,reset:function(){l&&y.cancel(l),c&&c()}}}(e,M,m,r,a)).promise}function b(r){var o=d||v(r,"disableForReducedMotion",Boolean),n=v(r,"zIndex",Number);if(o&&h)return s((function(e){e()}));l&&i?e=i.canvas:l&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(n),document.body.appendChild(e)),c&&!f&&m(e);var a={width:e.width,height:e.height};function y(){if(p){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return m(t),void p.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function w(){i=null,c&&(u=!1,t.removeEventListener("resize",y)),l&&e&&(document.body.removeChild(e),e=null,f=!1)}return p&&!f&&p.init(e),f=!0,p&&(e.__confetti_initialized=!0),c&&!u&&(u=!0,t.addEventListener("resize",y,!1)),p?p.fire(r,a,w):g(r,a,w)}return b.reset=function(){p&&p.reset(),i&&i.reset()},b}function L(){return g||(g=T(null,{useWorker:!0,resize:!0})),g}r.exports=function(){return L().apply(this,arguments)},r.exports.reset=function(){L().reset()},r.exports.create=T}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Wd,!1);var qd=Wd.exports;Wd.exports.create;var Gd=window.wp.mediaUtils,Xd=window.wp.url;const Yd=e=>{let t;const r=new Set,o=(e,o)=>{const n="function"==typeof e?e(t):e;if(!Object.is(n,t)){const e=t;t=(null!=o?o:"object"!=typeof n)?n:Object.assign({},t,n),r.forEach((r=>r(t,e)))}},n=()=>t,a={setState:o,getState:n,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(o,n,a),a};var Jd=n(798);const{useSyncExternalStoreWithSelector:Kd}=Jd;let Qd=!1;const ep=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?Yd(e):Yd)(e):e,r=(e,r)=>function(e,t=e.getState,r){r&&!Qd&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Qd=!0);const o=Kd(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,a.useDebugValue)(o),o}(t,e,r);return Object.assign(r,t),r},tp=e=>e?ep(e):ep,rp=new Map,op=e=>{const t=rp.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},np=(e,t={})=>(r,o,n)=>{const{enabled:a,anonymousActionType:i,store:s,...l}=t;let c;try{c=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,o,n);const{connection:u,...d}=((e,t,r)=>{if(void 0===e)return{type:"untracked",connection:t.connect(r)};const o=rp.get(r.name);if(o)return{type:"tracked",store:e,...o};const n={connection:t.connect(r),stores:{}};return rp.set(r.name,n),{type:"tracked",store:e,...n}})(s,c,l);let p=!0;n.setState=(e,t,a)=>{const c=r(e,t);if(!p)return c;const d=void 0===a?{type:i||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===s?(null==u||u.send(d,o()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...op(l.name),[s]:n.getState()}),c)};const m=(...e)=>{const t=p;p=!1,r(...e),p=t},f=e(n.setState,o,n);if("untracked"===d.type?null==u||u.init(f):(d.stores[d.store]=n,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?f:t.getState()]))))),n.dispatchFromDevtools&&"function"==typeof n.dispatch){let e=!1;const t=n.dispatch;n.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):ap(e.payload,(e=>{if("__setState"!==e.type)n.dispatchFromDevtools&&"function"==typeof n.dispatch&&n.dispatch(e);else{if(void 0===s)return void m(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[s];if(null==t)return;JSON.stringify(n.getState())!==JSON.stringify(t)&&m(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return m(f),void 0===s?null==u?void 0:u.init(n.getState()):null==u?void 0:u.init(op(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(n.getState())):null==u?void 0:u.init(op(l.name));case"ROLLBACK":return ap(e.state,(e=>{if(void 0===s)return m(e),void(null==u||u.init(n.getState()));m(e[s]),null==u||u.init(op(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ap(e.state,(e=>{void 0!==s?JSON.stringify(n.getState())!==JSON.stringify(e[s])&&m(e[s]):m(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,o=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!o)return;return m(void 0===s?o:o[s]),void(null==u||u.send(null,r))}case"PAUSE_RECORDING":return p=!p}return}})),f},ap=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};function ip(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var o;const n=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(o=r.getItem(e))?o:null;return a instanceof Promise?a.then(n):n(a)},setItem:(e,o)=>r.setItem(e,JSON.stringify(o,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}const sp=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(e){return sp(e)(r)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return sp(t)(e)}}}},lp=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,o,n)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)}),o,n);const u=sp(a.serialize),d=()=>{const e=a.partialize({...o()});let t;const r=u({state:e,version:a.version}).then((e=>c.setItem(a.name,e))).catch((e=>{t=e}));if(t)throw t;return r},p=n.setState;n.setState=(e,t)=>{p(e,t),d()};const m=e(((...e)=>{r(...e),d()}),o,n);let f;const h=()=>{var e;if(!c)return;i=!1,s.forEach((e=>e(o())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,o()))||void 0;return sp(c.getItem.bind(c))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=a.merge(e,null!=(t=o())?t:m),r(f,!0),d()})).then((()=>{null==t||t(f,void 0),i=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return n.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),f||m})(e,t)):((e,t)=>(r,o,n)=>{let a={storage:ip((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)}),o,n);const u=()=>{const e=a.partialize({...o()});return c.setItem(a.name,{state:e,version:a.version})},d=n.setState;n.setState=(e,t)=>{d(e,t),u()};const p=e(((...e)=>{r(...e),u()}),o,n);let m;const f=()=>{var e,t;if(!c)return;i=!1,s.forEach((e=>{var t;return e(null!=(t=o())?t:p)}));const n=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=o())?e:p))||void 0;return sp(c.getItem.bind(c))(a.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=a.merge(e,null!=(t=o())?t:p),r(m,!0),u()})).then((()=>{null==n||n(m,void 0),m=o(),i=!0,l.forEach((e=>e(m)))})).catch((e=>{null==n||n(void 0,e)}))};return n.persist={setOptions:e=>{a={...a,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>f(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||f(),m||p})(e,t);var cp;const up=`extendify-site-selection-${window.extOnbData.siteId}`,dp={siteType:{},siteInformation:{title:void 0},businessInformation:{description:void 0,tones:[],acceptTerms:!1},siteTypeSearch:[],style:null,pages:void 0,plugins:void 0,goals:void 0},pp={...dp,...null!==(cp=JSON.parse(localStorage.getItem(up)||"{}")?.state)&&void 0!==cp?cp:{}},mp={getItem:async()=>JSON.stringify(await gp()),setItem:async(e,t)=>{localStorage.setItem(e,t),await yp(t)},removeItem:()=>{}},fp=tp(lp(np(((e,t)=>({...pp,setSiteType(t){e({...dp,siteType:t})},setSiteTypeSearch(t){e((e=>({siteTypeSearch:[...e.siteTypeSearch,t].slice(-10)})))},setSiteInformation(r,o){const n={...t().siteInformation,[r]:o};e({siteInformation:n})},setBusinessInformation(r,o){const n={...t().businessInformation,[r]:o};e({businessInformation:n})},has(e,r){var o;return!!r?.id&&(null!==(o=t()?.[e])&&void 0!==o?o:[])?.some((e=>e.id===r.id))},add(r,o){var n;t().has(r,o)||e({[r]:[...null!==(n=t()?.[r])&&void 0!==n?n:[],o]})},addMany(r,o,n={}){var a;n.clearExisting?e({[r]:o}):e({[r]:[...null!==(a=t()?.[r])&&void 0!==a?a:[],...o]})},remove(r,o){e({[r]:t()?.[r]?.filter((e=>e.id!==o.id))})},removeMany(r,o){e({[r]:t()?.[r]?.filter((e=>!o.some((t=>t.id===e.id))))})},toggle(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle(t){e({style:t})},canLaunch(){var e,r;return Object.keys(null!==(e=t()?.siteType)&&void 0!==e?e:{})?.length>0&&Object.keys(null!==(r=t()?.style)&&void 0!==r?r:{})?.length>0},resetState(){e(dp)}})),{name:"Extendify User Selection"}),{name:up,storage:ip((()=>mp))})),hp="https://patterns.extendify.com",gp=()=>jt.get("launch/user-selection-data"),yp=e=>jt.post("launch/user-selection-data",{data:e}),wp=async(e,t)=>{const{wpLanguage:r,wpVersion:o,showLocalizedCopy:n}=window.extOnbData,{goals:a,plugins:i}=fp.getState(),s=new URL(`${hp}/api/${e}-templates`);s.searchParams.append("siteType",t?.slug),o&&s.searchParams.append("wpVersion",o),r&&s.searchParams.append("lang",r),a?.length&&s.searchParams.append("goals",JSON.stringify(a)),i?.length&&s.searchParams.append("plugins",JSON.stringify(i)),n&&s.searchParams.append("showLocalizedCopy",!0);const l=await fetch(s.toString(),{headers:{"Content-Type":"application/json"}});if(!l.ok)throw new Error("Bad response from server");return await l.json()},bp=async e=>{const t=await wp("home",e),{headers:r,footers:o}=await(async()=>{let e=await jt.get(zt+"wp/v2/template-parts");e=e?.filter((e=>"extendable"===e.theme));const t=e?.filter((e=>Yt.includes(e?.slug))),r=e?.filter((e=>Jt.includes(e?.slug)));return{headers:t,footers:r}})();if(!t?.length)throw new Error("Could not get styles");return t.map((({id:e,patterns:t},n)=>{var a,i;const s=r[n%r.length],l=o[n%o.length];return{id:e,code:t.map((({code:e})=>e)).flat(),headerCode:null!==(a=s?.content?.raw?.trim())&&void 0!==a?a:"",footerCode:null!==(i=l?.content?.raw?.trim())&&void 0!==i?i:""}}))},vp=e=>e.replace(/(https?:\/\/\S+\?w=\d+)/gi,"$1&q=10&auto=format,compress&fm=avif"),xp=async()=>{try{return await jt.get("launch/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),xp()},Ep=(e,t)=>e?.filter((e=>e.includes(t)))?.length,kp=async e=>{const t={};return t[e.slug]=await Zt({title:e.name,status:"publish",content:e.patterns?.map((({code:e})=>e))?.join(""),template:"no-title",meta:{made_with_extendify_launch:!0}}),t?.home&&(await Ut("show_on_front","page"),await Ut("page_on_front",t.home.id)),t?.blog&&await Ut("page_for_posts",t.blog.id),t},Cp=({setAcceptTerms:e,acceptTerms:r,termsUrl:o})=>o?(0,t.createElement)("label",{htmlFor:"accept-terms",className:"text-lg ml-1 flex items-center focus-within:text-design-mains after:content-['*'] after:ml-0.5 after:text-red-500"},(0,t.createElement)("span",{className:"relative"},(0,t.createElement)("input",{id:"accept-terms",className:"h-5 w-5 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:()=>e(!r),checked:r}),(0,t.createElement)("svg",{className:"absolute block inset-0 h-6 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,t.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,t.createElement)("span",{className:"ml-1",dangerouslySetInnerHTML:{__html:(0,te.sprintf)(
// translators: at the end of the sentence, there is a link to the terms of use
(0,te.__)("I agree to the %1$sAI terms and conditions%2$s","extendify-local"),`<a href="${o}" target="_blank" class="text-design-main opacity-90 no-underline hover:underline hover:underline-offset-4 hover:opacity-100" rel="noreferrer">`,"</a>")}})):null,Sp=({description:e,setDescription:r})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",{htmlFor:"extendify-business-info-input",className:"text-lg md:text-base leading-8 md:leading-10 m-0 text-gray-900 font-semibold after:content-['*'] after:ml-0.5 after:text-red-500"},(0,te.__)("Website description","extendify-local")),(0,t.createElement)("textarea",{"data-test":"business-info-input",autoComplete:"off",autoFocus:!0,rows:"4",name:"business-info-input",id:"extendify-business-info-input",className:"w-full rounded-lg border border-gray-300 h-40 p-2 input-focus ring-offset-0 placeholder:italic placeholder:text-md placeholder:opacity-50",value:null!=e?e:"",onChange:e=>r(e.target.value),placeholder:(0,te.__)("E.g., We are a yoga studio in Lakewood, CO with professionally trained instructors with focus on hot yoga for therapeutic purposes.","extendify-local")})),Pp=()=>{const{businessInformation:e,setBusinessInformation:r}=fp(),o=[{label:(0,te.__)("Professional","extendify-local"),value:"professional"},{label:(0,te.__)("Friendly","extendify-local"),value:"friendly"},{label:(0,te.__)("Inspirational","extendify-local"),value:"inspirational"},{label:(0,te.__)("Informative","extendify-local"),value:"informative"},{label:(0,te.__)("Persuasive","extendify-local"),value:"persuasive"}];return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",{htmlFor:"extendify-business-info-tone",className:"text-lg md:text-base leading-8 md:leading-10 m-0 text-gray-900 font-semibold"},(0,te.__)("Select your site's tone","extendify-local")),(0,t.createElement)("div",{className:"flex justify-left w-full flex-wrap gap-2"},o.map((o=>{const n=e.tones?.find((({value:e})=>e===o.value));return(0,t.createElement)("div",{key:o.value,className:rn()("relative border rounded border-gray-300",{"bg-gray-100":n,"border-gray-300":!n})},(0,t.createElement)("label",{htmlFor:o.value,className:"w-full flex items-center justify-between text-gray-900 p-2 h-full"},(0,t.createElement)("div",{className:"flex items-center flex-auto"},(0,t.createElement)("span",{className:"w-4 h-4 relative inline-block mr-1 align-middle"},(0,t.createElement)("input",{id:o.value,className:"h-4 w-4 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:()=>(t=>{let{tones:o}=e;const n=o?.find((({value:e})=>e===t.value))?o?.filter((({value:e})=>e!==t.value)):[...o,t];r("tones",n)})(o),checked:!!e.tones?.find((({value:e})=>e===o.value))}),(0,t.createElement)("svg",{className:"absolute block h-4 w-4 -mt-px inset-0 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,t.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,t.createElement)("span",{className:"text-sm font-small"},o.label))))}))))},Tp=({title:e,description:r})=>(0,t.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},(0,t.createElement)("div",{className:"flex flex-col gap-2 mb-8 md:mb-12"},(0,t.createElement)("h2",{className:"text-2xl leading-8 md:leading-10 m-0 text-gray-900 text-center"},e),(0,t.createElement)("p",{className:"text-gray-700 text-base text-center leading-6 m-0"},r))),Lp=e=>(0,t.createElement)("button",{...e,className:rn()("rounded flex items-center px-6 py-3 leading-6 button-focus border",{"opacity-50 cursor-not-allowed":e.disabled},e.className),type:"button"},e.children),Ap=np((()=>({generating:!1})),{name:"Extendify Launch Globals"}),Mp=tp(Ap);var Np=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),Op=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),Rp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,t.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),Dp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),Vp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:`icon ${r}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),Fp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),_p=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,t.createElement)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1.23 13.33V19H10.9v-1.69c-1.5-.31-2.77-1.28-2.86-2.97h1.71c.09.92.72 1.64 2.32 1.64 1.71 0 2.1-.86 2.1-1.39 0-.73-.39-1.41-2.34-1.87-2.17-.53-3.66-1.42-3.66-3.21 0-1.51 1.22-2.48 2.72-2.81V5h2.34v1.71c1.63.39 2.44 1.63 2.49 2.97h-1.71c-.04-.97-.56-1.64-1.94-1.64-1.31 0-2.1.59-2.1 1.43 0 .73.57 1.22 2.34 1.67 1.77.46 3.66 1.22 3.66 3.42-.01 1.6-1.21 2.48-2.74 2.77z",opacity:".3"}),(0,t.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"}))})),jp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),Ip=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),Bp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),Hp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z",fill:"currentColor"}))})),zp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),Up=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))})),$p=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))})),Zp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:`icon ${r}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),Wp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,t.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,t.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),qp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,t.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),Gp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),Xp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,t.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),Yp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,t.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))})),Jp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,t.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,t.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,t.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,t.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,t.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,t.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,t.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))})),Kp=(0,t.memo)((e=>{const{className:r,...o}=e;return(0,t.createElement)("svg",{className:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,t.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,t.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));const Qp=()=>{const{currentPageIndex:e,setPage:r,replaceHistory:o,pushHistory:n}=Um();return(0,t.useEffect)((()=>{const t=()=>{null===history.state&&o(e)};window.addEventListener("load",t);const a=()=>{const t=e-1;-1===t&&history.go(-1),r(t),n(t)};return window.addEventListener("popstate",a),()=>{window.removeEventListener("load",t),window.removeEventListener("popstate",a)}}),[r,o,n,e]),(0,t.createElement)("div",{className:"flex justify-between"},(0,t.createElement)("span",{className:"flex-1 self-start"},(0,t.createElement)(tm,null)),(0,t.createElement)("span",{className:"grow hidden md:flex items-center justify-center"},(0,t.createElement)(em,null)),(0,t.createElement)("span",{className:"flex-1 flex justify-end"},(0,t.createElement)(rm,null)))},em=()=>{const{currentPageIndex:e,pages:r}=Um(),o=Um((e=>e.count())),n=Array.from(r.entries());return(0,t.createElement)("div",{className:"flex",role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuetext":n[e][1].state.getState().title,"aria-valuemax":o-1},n.map((([r],n)=>{const a=n<e?"bg-design-main":"bg-gray-200";return(0,t.createElement)("div",{key:r,className:"flex items-center"},n!==e&&(0,t.createElement)("div",{className:`${a} w-2.5 h-2.5 rounded-full`}),n===e&&(0,t.createElement)("div",{className:"bg-design-main w-4 h-4 rounded-full flex items-center justify-center"},(0,t.createElement)("div",{className:"bg-white/80 w-1.5 h-1.5 rounded-full"})),n<o-1&&(0,t.createElement)("div",{className:`${a} w-16 h-0.5`}))})))},tm=()=>{const{previousPage:e,currentPageIndex:r}=Um();return 0===r?(0,t.createElement)(Lp,{onClick:()=>window.location.href=`${window.extOnbData.adminUrl}admin.php?page=extendify-assist`,className:"bg-white text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Vp,{className:"h-5 w-5 mt-px"}),(0,te.__)("Exit Launch","extendify-local"))):(0,t.createElement)(Lp,{onClick:e,"data-test":"back-button",className:"bg-white text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Vp,{className:"h-5 w-5 mt-px"}),(0,te.__)("Back","extendify-local")))},rm=()=>{const{nextPage:e,currentPageIndex:r,pages:o}=Um(),n=Um((e=>e.count())),a=fp((e=>e.canLaunch())),i=r===n-1,s=Array.from(o.keys())[r],l=o.get(s).state,[c,u]=(0,t.useState)(!1),[d,p]=(0,t.useState)(!1),[m,f]=(0,t.useState)({}),[h,g]=(0,t.useState)(!1),y=()=>{if(m?.message){g(!0);const e=setTimeout((()=>{g(!1)}),3e3);return()=>clearTimeout(e)}a&&i?Mp.setState({generating:!0}):e()};return(0,t.useEffect)((()=>{const{ready:e,canSkip:t,validation:r}=l?.getState()||{};return p(null!=t&&t),u(null!=e&&e),f(null!=r?r:{}),l.subscribe((e=>{p(e.canSkip),u(e.ready),f(e.validation)}))}),[l,r]),(0,t.createElement)(t.Fragment,null,d?(0,t.createElement)(Lp,{onClick:()=>y(),"data-test":"back-button",className:"bg-white mr-2 text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,t.createElement)(t.Fragment,null,(0,te.__)("Skip","extendify-local"),(0,t.createElement)(Zp,{className:"h-5 w-5 mt-px"}))):(0,t.createElement)(Lp,{onClick:y,disabled:!c,className:"bg-design-main text-design-text border-design-main","data-test":"next-button"},(0,t.createElement)(t.Fragment,null,(0,te.__)("Next","extendify-local"),(0,t.createElement)(Zp,{className:"h-5 w-5 mt-px"}))),(0,t.createElement)(Cn,null,h&&m&&(0,t.createElement)(Ju.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"extendify-launch w-full fixed bottom-[100px] pb-4 flex justify-end z-max"},(0,t.createElement)("div",{className:"shadow-2xl"},(0,t.createElement)(tr.Snackbar,{actions:m?.action?[m?.action]:[]},m?.message)))))},om=({children:e,includeNav:r=!0})=>{var o;return(0,t.createElement)("div",{className:"flex flex-col h-[calc(100dvh)]"},(0,t.createElement)("div",{className:"flex-none px-6 py-5 md:px-12 md:py-6 w-full bg-banner-main"},window.extOnbData?.partnerLogo?(0,t.createElement)("img",{className:"w-auto h-12",src:window.extOnbData.partnerLogo,alt:null!==(o=window.extOnbData?.partnerName)&&void 0!==o?o:""}):(0,t.createElement)(Fp,{className:"text-banner-text w-auto h-8"})),e,r&&(0,t.createElement)("div",{className:"flex-none px-6 py-5 md:px-12 md:py-6 w-full bg-white shadow-surface border-t border-gray-100 z-10"},(0,t.createElement)(Qp,null)))},nm=(e,t)=>tp(np(t,{name:`Extendify Launch ${e}`})),am=nm("Business Information",(()=>({title:(0,te.__)("Business Information","extendify-local"),showInSidebar:!0,ready:!0,canSkip:!0,validation:null}))),im=()=>{const{businessInformation:e,setBusinessInformation:r}=fp(),[o,n]=(0,t.useState)(e?.description||""),a=Um((e=>e.nextPage)),i=window.extOnbData?.consentTermsUrlAI;return(0,t.useEffect)((()=>{const e=setTimeout((()=>{r("description",o)}),500);return am.setState({canSkip:!o}),()=>clearTimeout(e)}),[o,r]),(0,t.useEffect)((()=>{i&&(!e.acceptTerms&&e.description?am.setState({validation:{message:(0,te.__)("Please accept the terms to continue","extendify-local")}}):am.setState({validation:null}))}),[e,i]),(0,t.createElement)("form",{onSubmit:e=>{e.preventDefault(),am.getState().ready&&a()}},(0,t.createElement)("div",{className:"mb-2"},(0,t.createElement)(Sp,{description:o,setDescription:n})),(0,t.createElement)("div",{className:"mb-8"},(0,t.createElement)(Pp,null)),i?(0,t.createElement)("div",{className:"mb-8 flex items-center"},(0,t.createElement)(Cp,{termsUrl:i,acceptTerms:e.acceptTerms,setAcceptTerms:e=>{r("acceptTerms",e)}})):null)},sm=e=>{const{label:r,description:o,Icon:n,...a}=e;return(0,t.createElement)("label",{className:"w-full flex items-center justify-between text-gray-900 font-semibold p-4 h-full",htmlFor:e.id},(0,t.createElement)("div",{className:"flex items-center flex-auto"},(0,t.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,t.createElement)("input",{...a,className:"h-5 w-5 rounded-sm m-0",type:"checkbox"}),(0,t.createElement)("svg",{className:"absolute block h-5 w-5 -mt-px inset-0 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,t.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,t.createElement)("span",null,(0,t.createElement)("span",{className:"text-sm font-medium"},r),o?(0,t.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},o):(0,t.createElement)("span",null))),n&&(0,t.createElement)(n,{className:"flex-none text-design-main h-6 w-6"}))},lm=()=>(0,t.createElement)("p",{className:"w-full text-center text-base text-gray-700"},(0,te.__)("Loading...","extendify-local")),cm=(e,t,r={})=>{const{data:o,error:n}=Q(e,(e=>t(e)),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,...r});return{data:o,loading:!o&&!n,error:n}},um=()=>(async()=>{const e=await jt.get("launch/goals");if(!e?.data)throw new Error("Could not get goals");return e.data})(),dm=()=>({key:"goals"}),pm=()=>(async()=>{const e=await jt.get("launch/suggested-plugins");if(!e?.data)throw new Error("Could not get suggested plugins");return e.data})(),mm=()=>({key:"plugins"}),fm=nm("Goals",(()=>({title:(0,te.__)("Goals","extendify-local"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>0===fp.getState().goals?.length}))),hm=()=>{const{addMany:r,toggle:o,goals:n}=fp(),[a,i]=(0,t.useState)(null!=n?n:[]),{data:s}=cm(dm,um),{data:l}=cm(mm,pm),c=Um((e=>e.nextPage));return(0,t.useEffect)((()=>{fm.setState({ready:!0})}),[]),(0,t.useEffect)((()=>{fm.setState({ready:!1});const e=setTimeout((()=>{r("goals",a,{clearExisting:!0});const e=a?.map((e=>e.slug)),t=l?.filter((t=>t.goals.find((t=>e?.includes(t)))));r("plugins",t,{clearExisting:!0}),fm.setState({ready:!0})}),750);return()=>clearTimeout(e)}),[a,r,o,l]),(0,t.createElement)("form",{"data-test":"goals-form",onSubmit:e=>{e.preventDefault(),c()},className:"w-full grid xl:grid-cols-2 gap-4 goal-select"},(0,t.createElement)("input",{type:"submit",className:"hidden"}),s?.map(((r,o)=>{const n=a?.find((({slug:e})=>e===r.slug)),s=e[r.icon];return(0,t.createElement)("div",{key:r.id,className:rn()("relative border rounded-lg border-gray-300",{"bg-gray-100":n}),"data-test":"goal-item"},(0,t.createElement)("div",{className:"flex items-center gap-4 h-full"},(0,t.createElement)(sm,{autoFocus:0===o,label:r.title,id:`goal-${r.slug}`,description:r.description,checked:!!a?.find((({slug:e})=>e===r.slug)),onChange:()=>(e=>{const t=a?.find((({slug:t})=>t===e.slug))?a?.filter((({slug:t})=>t!==e.slug)):[...a,e];i(t)})(r),Icon:s})))})))};var gm=window.wp.blockEditor,ym=window.wp.blocks,wm=window.lodash;const bm=new WeakMap,vm=({container:e,onLoad:r,ready:o,loadDelay:n})=>{const a=(()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[i,s]=(0,t.useState)(0),[l,c]=(0,t.useState)(null),[u,d]=(0,t.useState)(!1),p=(0,t.useRef)(!1),m=(0,t.useCallback)((async(e,t)=>{var r;if(e.getBoundingClientRect().top<t.getBoundingClientRect().top)return;p.current=!0;let o=t.querySelector('[style*="scale"]')?.style?.transform?.match(/scale\((.*?)\)/)?.[1];o=o?parseFloat(o):null;const n=t.offsetHeight/(null!==(r=o)&&void 0!==r?r:1);e.style.setProperty("max-height",`${n}px`,"important");const a=e.contentDocument.querySelectorAll(".wp-block-cover");for(const e of a)bm.has(e)||bm.set(e,e.style.minHeight),e.style.minHeight=bm.get(e);t.offsetHeight,await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>requestAnimationFrame(e)));for(const t of a){const r=parseFloat(e.contentDocument.defaultView.getComputedStyle(t).height);t.offsetHeight,t.style.minHeight=r>784?"784px":r+"px"}e.style.setProperty("max-height","none","important"),p.current=!1}),[]);return(0,t.useLayoutEffect)((()=>{if(!o)return;const t=setTimeout((()=>{const t=e?.querySelector("iframe[title]");if(!t)return s((e=>e+1));c(t),requestAnimationFrame((()=>r(t,e)))}),100);return()=>clearTimeout(t)}),[l,o,i,e,r]),(0,t.useLayoutEffect)((()=>{if(d(!1),!l?.contentDocument)return;const t={attributes:!1,childList:!0,subtree:!0};requestAnimationFrame((()=>r(l,e))),setTimeout((()=>r()),2e3);const r=(0,wm.debounce)((()=>{a.current&&!p.current&&(o.disconnect(),m(l,e).then((()=>{setTimeout((()=>d(!0)),n),a.current&&o.observe(l.contentDocument,t)})))}),300),o=new MutationObserver(r);return o.observe(l.contentDocument,t),()=>{r.cancel(),o?.disconnect()}}),[l,e,a,o,m,n]),{loading:!l,ready:u}};var xm=JSON.parse('{"Bloom":"body{--wp--preset--color--foreground: #000000;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #014932;--wp--preset--color--secondary: #395144;--wp--preset--color--tertiary: #FFEFEA;--wp--preset--color--foreground-alt: #333333;--wp--custom--elements--button--border--radius: 0.4rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 1px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--top: calc(0.838rem - 1px);--wp--custom--elements--button--spacing--padding--right: calc(2.5rem - 1px);--wp--custom--elements--button--spacing--padding--bottom: calc(0.838rem - 1px);--wp--custom--elements--button--spacing--padding--left: calc(2.5rem - 1px);--wp--custom--elements--button--typography--font-size: 1.0625rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 0.4rem;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--top: calc(0.838rem - 1px);--wp--custom--elements--input--spacing--padding--right: calc(1rem - 1px);--wp--custom--elements--input--spacing--padding--bottom: calc(0.838rem - 1px);--wp--custom--elements--input--spacing--padding--left: calc(1rem - 1px);--wp--custom--elements--input--typography--font-size: 1.0625rem;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--ibm-plex-sans);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--marcellus);}h1{font-weight: 400;}h2{font-weight: 400;}h3{font-weight: 400;}h4{font-weight: 400;}h5{font-weight: 400;}h6{font-weight: 400;}.wp-element-button, .wp-block-button__link{border-radius: 0.4rem;font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2.5rem;padding-bottom: 0.838rem;padding-left: 2.5rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Brisbane":"body{--wp--preset--color--foreground: #f7fafc;--wp--preset--color--background: #3f5762;--wp--preset--color--primary: #F9F6DE;--wp--preset--color--secondary: #fcf8f2;--wp--preset--color--tertiary: #2d3f47;--wp--custom--blocks--core-table--variant-stripes--color--background: var(--wp--preset--color--primary);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--radio-canada);line-height: var(--wp--custom--typography--line-height--medium);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--arsenal);}h1{font-weight: 500;letter-spacing: -0.01em;}h2{font-weight: 500;letter-spacing: 0.01em;}h3{font-weight: 600;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Cairo":"body{--wp--preset--color--foreground: #ffffff;--wp--preset--color--background: #393646;--wp--preset--color--primary: #F4EEE0;--wp--preset--color--secondary: #EFE1D1;--wp--preset--color--tertiary: #4F4557;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--source-serif-pro);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","FusionSky":"body{--wp--preset--color--foreground: #000000;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #0B51C2;--wp--preset--color--secondary: #C4FF47;--wp--preset--color--tertiary: #F9FAFE;--wp--preset--color--foreground-alt: #333333;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--mulish);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--jost);}h1{font-weight: 400;}h2{font-weight: 400;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);font-size: inherit;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Gdansk":"body{--wp--preset--color--foreground: #fcece8;--wp--preset--color--background: #0c0c0b;--wp--preset--color--primary: #f5ac8e;--wp--preset--color--secondary: #9d2c1e;--wp--preset--color--tertiary: #50140d;--wp--custom--elements--button--color--text: var(--wp--preset--color--background);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inter);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--montserrat);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);letter-spacing: 0.02em;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Glasgow":"body{--wp--preset--color--background: #dbd3ce;--wp--preset--color--foreground: #13100f;--wp--preset--color--primary: #3b2300;--wp--preset--color--secondary: #d4a72c;--wp--preset--color--tertiary: #c6b6ac;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--rubik);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--rubik);}h1{font-weight: 500;}h2{font-weight: 500;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Graphite":"body{--wp--preset--color--foreground: #000000;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #000000;--wp--preset--color--secondary: #262626;--wp--preset--color--tertiary: #E9E8E6;--wp--preset--color--foreground-alt: #444444;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--manrope);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--gotu);font-weight: 400;}.wp-element-button, .wp-block-button__link{font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2rem;padding-bottom: 0.838rem;padding-left: 2rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Hong Kong":"body{--wp--preset--color--background: #ffebe9;--wp--preset--color--foreground: #a40e26;--wp--preset--color--primary: #A30026;--wp--preset--color--secondary: #ffcecb;--wp--preset--color--tertiary: #ffffff;--wp--custom--elements--button--border--radius: 8px;--wp--custom--elements--button--border--color: var(--wp--preset--color--primary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--primary);--wp--custom--elements--button--color--text: var(--wp--preset--color--tertiary);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: var(--wp--preset--font-size--small);--wp--custom--elements--button--typography--text-transform: uppercase;--wp--custom--elements--button--typography--letter-spacing: 0.15rem;--wp--custom--elements--button--typography--font-weight: 400;--wp--custom--elements--input--border--radius: 8px;--wp--custom--spacing--small: min(3rem, 4vw);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--space-mono);font-size: 1rem;font-weight: 400;line-height: var(--wp--custom--typography--line-height--large);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--space-mono);}h1{font-weight: 700;letter-spacing: normal;}h2{font-weight: 700;letter-spacing: normal;}h3{font-weight: 700;letter-spacing: normal;}h4{font-weight: 700;letter-spacing: normal;}h5{font-weight: 700;letter-spacing: normal;}h6{font-weight: 700;letter-spacing: normal;}.wp-element-button, .wp-block-button__link{border-radius: 0.5rem;font-size: var(--wp--preset--font-size--small);font-weight: 400;letter-spacing: 0.15rem;text-transform: uppercase;}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--primary);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--primary);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Kampala":"body{--wp--preset--color--background: #f7f9fe;--wp--preset--color--foreground: #010110;--wp--preset--color--primary: #0B119C;--wp--preset--color--secondary: #c1cbf9;--wp--preset--color--tertiary: #ffffff;--wp--custom--elements--button--border--radius: 0.5rem;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--hind);}h1{letter-spacing: -0.01em;}h6{font-weight: 900;}.wp-element-button, .wp-block-button__link{border-radius: 0.5rem;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Lagoon":"body{--wp--preset--color--foreground: #292929;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #13607E;--wp--preset--color--secondary: #1F4F70;--wp--preset--color--tertiary: #faf7f8;--wp--preset--color--foreground-alt: #292929;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--mulish);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--baloo-tamma-2);}.wp-element-button, .wp-block-button__link{font-size: var(--wp--preset--font-size--small);font-weight: 600;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Odesa":"body{--wp--preset--color--foreground: #0b0449;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #0b0449;--wp--preset--color--secondary: #f3c8cf;--wp--preset--color--tertiary: #fcf9f5;--wp--preset--color--foreground-alt: #595769;--wp--custom--elements--button--border--radius: 2px;--wp--custom--elements--button--border--width: 1px;--wp--custom--elements--input--border--radius: 2px;--wp--custom--elements--input--border--width: 1px;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--roboto-flex);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--source-serif-pro);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: -0.01em;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);letter-spacing: 0.01em;text-transform: normal;}h6{font-weight: var(--wp--custom--typography--font-weight--black);letter-spacing: 0.02em;}.wp-element-button, .wp-block-button__link{border-radius: 2px;font-size: var(--wp--preset--font-size--small);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Onyx":"body{--wp--preset--color--foreground: #FFFCFC;--wp--preset--color--background: #17181A;--wp--preset--color--primary: #FFFCFC;--wp--preset--color--secondary: #C4C4C4;--wp--preset--color--tertiary: #000000;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--archivo);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--archivo);}h1{font-weight: 500;}h2{font-weight: 500;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.wp-element-button, .wp-block-button__link{border-radius: 0.2rem;font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2.5rem;padding-bottom: 0.838rem;padding-left: 2.5rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Orange":"body{--wp--preset--color--background: #ffffff;--wp--preset--color--foreground: #1A1A1A;--wp--preset--color--primary: #DE3707;--wp--preset--color--secondary: #02235B;--wp--preset--color--tertiary: #f2f3f5;--wp--preset--font-size--small: 1rem;--wp--preset--font-size--medium: 1.25rem;--wp--preset--font-size--large: 2.25rem;--wp--preset--font-size--x-large: 3rem;--wp--preset--font-size--xx-large: 3.75rem;--wp--custom--elements--button--border--radius: 0;--wp--custom--elements--button--border--color: var(--wp--preset--color--primary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--primary);--wp--custom--elements--button--color--text: var(--wp--preset--color--white);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.15rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--button--typography--line-height: 1.384;--wp--custom--elements--input--border--radius: 0;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--heebo);font-size: 1rem;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--montserrat);}h1{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h2{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h3{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h4{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h5{font-weight: 500;letter-spacing: normal;}h6{font-weight: 500;letter-spacing: normal;}.wp-element-button, .wp-block-button__link{border-radius: 2px;}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}.has-xx-large-font-size{font-size: var(--wp--preset--font-size--xx-large) !important;}","Piraeus":"body{--wp--preset--color--foreground: #ffffff;--wp--preset--color--background: #272725;--wp--preset--color--primary: #A89F84;--wp--preset--color--secondary: #3F2D0B;--wp--preset--color--tertiary: #32322D;--wp--custom--elements--button--border--radius: 0;--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--roboto-flex);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--geom);}h1{font-weight: var(--wp--custom--typography--font-weight--light);letter-spacing: -0.02em;}h2{font-weight: var(--wp--custom--typography--font-weight--light);}h3{font-weight: var(--wp--custom--typography--font-weight--light);letter-spacing: 0.04em;}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h5{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;text-transform: normal;}h6{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--primary);border-radius: 0;color: var(--wp--preset--color--foreground);}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Porto":"body{--wp--preset--color--foreground: #4D4848;--wp--preset--color--background: #F8FAF9;--wp--preset--color--primary: #854836;--wp--preset--color--secondary: #0D1B1E;--wp--preset--color--tertiary: #F8ECEA;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inconsolata);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--karla);}h1{letter-spacing: -0.07em;}h2{letter-spacing: -0.04em;}h3{letter-spacing: -0.03em;}h4{letter-spacing: -0.03em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--extra-bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Rio":"body{--wp--preset--color--foreground: #010101;--wp--preset--color--background: #fbfbfb;--wp--preset--color--primary: #174c2f;--wp--preset--color--secondary: #ffd800;--wp--preset--color--tertiary: #A8E1FF;--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--space-mono);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--space-mono);}h1{font-weight: var(--wp--custom--typography--font-weight--regular);}h2{font-weight: var(--wp--custom--typography--font-weight--regular);}h3{font-weight: var(--wp--custom--typography--font-weight--regular);}h4{font-weight: var(--wp--custom--typography--font-weight--regular);}h5{font-weight: var(--wp--custom--typography--font-weight--regular);}h6{font-weight: var(--wp--custom--typography--font-weight--regular);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Santa Fe":"body{--wp--preset--color--foreground: #111111;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #1f033b;--wp--preset--color--secondary: #d5dce3;--wp--preset--color--tertiary: #f0ede4;--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--radio-canada);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--noto-serif-display);}h1{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: -0.01em;}h3{font-weight: var(--wp--custom--typography--font-weight--medium);}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Thimphu":"body{--wp--preset--color--foreground: #f24139;--wp--preset--color--background: #ffebcc;--wp--preset--color--primary: #f24139;--wp--preset--color--secondary: #3a312e;--wp--preset--color--tertiary: #ffdda6;--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--heebo);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--heebo);}h1{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--medium);}h3{font-weight: var(--wp--custom--typography--font-weight--medium);}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h5{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h6{font-weight: var(--wp--custom--typography--font-weight--black);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Tokyo":"body{--wp--preset--color--foreground: #010101;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #d61935;--wp--preset--color--secondary: #e3f2f2;--wp--preset--color--tertiary: #ffeae6;--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inter);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--oswald); text-transform: uppercase;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}"}');const Em=({style:e,onSelect:r,selected:o})=>{var n;const a=(0,t.useRef)(null),i=(0,t.useRef)(null),s=(0,t.useRef)(null),[l,c]=(0,t.useState)(!1),u=e?.variation,d=u?.settings?.color?.palette?.theme,p=(0,t.useMemo)((()=>xm?.[e?.variation?.title]?(0,gm.transformStyles)([{css:xm[e?.variation?.title]}],"html body.editor-styles-wrapper"):null),[e?.variation]),m=(0,t.useCallback)((e=>{let t=performance.now(),r=0;const o=()=>{if(r>=150)return;const n=performance.now();if(n-t<100)return requestAnimationFrame(o);t=n,e?.contentDocument?.querySelector("[href*=load-styles]")?.remove();const a=`<style id="ext-tj">\n                html body.editor-styles-wrapper { background-color: var(--wp--preset--color--background) }\n                ${p}\n            </style>`;e.contentDocument?.getElementById("ext-tj")||e.contentDocument?.body?.insertAdjacentHTML("beforeend",a),r++,requestAnimationFrame(o)};o()}),[p]),{loading:f,ready:h}=vm({container:i.current,ready:l,onLoad:m,loadDelay:2e3}),g=(0,t.useMemo)((()=>{const t=[e?.headerCode,e?.code.slice(0,3).join("\n"),e?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');return(0,ym.rawHandler)({HTML:vp(t)})}),[e]);return(0,t.useEffect)((()=>{if(!s.current)return s.current=new IntersectionObserver((e=>{e[0].isIntersecting&&c(!0)})),s.current.observe(i.current),()=>s.current.disconnect()}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{"data-test":"layout-preview",className:"w-full h-full relative overflow-hidden",ref:i,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?(0,te.__)("Press to select","extendify-local"):void 0,"aria-selected":r?o:void 0,onKeyDown:t=>{["Enter","Space"," "].includes(t.key)&&r&&r({...e,variation:u})},onClick:r?()=>r({...e,variation:u}):()=>{}},l?(0,t.createElement)(Ju.div,{ref:a,className:rn()("absolute inset-0 z-20",{"opacity-0":!h}),initial:{opacity:0},animate:{opacity:f?0:1}},(0,t.createElement)(gm.BlockPreview,{blocks:g,viewportWidth:1400,additionalStyles:[{css:'.rich-text [data-rich-text-placeholder]:after { content: "" }'}]})):null,(0,t.createElement)(Cn,null,h||(0,t.createElement)(Ju.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"absolute inset-0 z-30",style:{backgroundColor:zd(null!==(n=d?.find((({slug:e})=>"primary"===e))?.color)&&void 0!==n?n:"#ccc").alpha(.25).toRgbString(),backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}}))))},km=({siteType:e})=>bp(e),Cm=e=>({key:"home-pages-list",siteType:null!=e?e:fp?.getState().siteType}),Sm=nm("Layout",(()=>({title:(0,te.__)("Layout","extendify-local"),showInSidebar:!0,ready:!1}))),Pm=({styleData:e})=>{const{data:r}=cm("variations",Kt),o=(()=>{const e=(0,t.useRef)(!1);return(0,t.useLayoutEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[n,a]=(0,t.useState)([]),{setStyle:i,style:s}=fp(),l=(0,t.useCallback)((e=>i(e)),[i]),c=(0,t.useRef)(),u=(0,t.useRef)(!1);return(0,t.useEffect)((()=>{Sm.setState({ready:!!s?.variation?.title})}),[s]),(0,t.useEffect)((()=>{e&&r&&(n.length||(i(null),(async()=>{const t=Array.from(e.entries());for(const[e,n]of t){if(!o.current)return;a((t=>[...t,{...n,variation:r[e%r.length]}]));const t=Math.floor(851*Math.random())+150;await new Promise((e=>setTimeout(e,t)))}})()))}),[e,o,r,n.length,i]),(0,t.useEffect)((()=>{if(!s||!n||u.current)return;const e=c.current?.querySelector(`#layout-style-${s.slug} [role="button"]`);e&&(u.current=!0,e.focus())}),[s,n]),(0,t.createElement)("div",{className:"gap-8 grid md:grid-cols-2 lg:grid-cols-3","data-test":"layout-preview-wrapper",ref:c},n?.map((e=>(0,t.createElement)("div",{className:"relative",key:e.id},(0,t.createElement)(Cn,null,(0,t.createElement)(Ju.div,{initial:{opacity:0},animate:{opacity:1},duration:.7,className:rn()("relative overflow-hidden border border-gray-200 rounded cursor-pointer hover:ring-4 hover:ring-gray-300 ring-offset-2 ring-offset-white hover:outline-none focus-within:ring-4 focus-within:ring-offset-2 focus-within:ring-offset-white focus-within:ring-design-main focus-within:outline-none",{"ring-4 ring-offset-2 ring-offset-white ring-design-main hover:ring-design-main":s?.id===e.id}),style:{aspectRatio:"1.55"}},(0,t.createElement)(Em,{style:e,onSelect:l,selected:s?.id===e.id}))),(0,t.createElement)("span",{"aria-hidden":"true"},s?.id===e.id?(0,t.createElement)(Op,{className:"absolute top-0 right-0 m-2 text-design-text bg-design-main w-6 h-6 z-50 rounded-full translate-x-5 -translate-y-5"}):null)))),e?.slice(n?.length).map(((e,r)=>(0,t.createElement)(Cn,{key:r},(0,t.createElement)(Ju.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},duration:.7,className:"relative bg-gray-50",style:{aspectRatio:"1.55",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}})))))},Tm=(0,t.forwardRef)((({style:e},r)=>{const o=(0,t.useRef)(null),n=(0,t.useRef)(null),[a,i]=(0,t.useState)(!1),s=(0,t.useMemo)((()=>xm?.[e?.variation?.title]?(0,gm.transformStyles)([{css:xm[e?.variation?.title]}],"html body.editor-styles-wrapper"):null),[e?.variation]),l=(0,t.useCallback)((e=>{let t=performance.now(),r=0;const o=()=>{if(r>=150)return;const n=performance.now();if(n-t<100)return requestAnimationFrame(o);t=n,e?.contentDocument?.querySelector("[href*=load-styles]")?.remove();const a=`<style id="ext-tj">\n                html body.editor-styles-wrapper { background-color: var(--wp--preset--color--background) }\n                ${s}\n            </style>`;e.contentDocument?.getElementById("ext-tj")||e.contentDocument?.body?.insertAdjacentHTML("beforeend",a),r++,requestAnimationFrame(o)};o()}),[s]),{ready:c}=vm({container:r.current,ready:a,onLoad:l,loadDelay:400}),u=(0,t.useMemo)((()=>{const t=[e?.headerCode,e?.code,e?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');return(0,ym.rawHandler)({HTML:vp(t)})}),[e]);return(0,t.useEffect)((()=>{i(!1);const e=setTimeout((()=>i(!0)),0);return()=>clearTimeout(e)}),[u]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Cn,null,c||(0,t.createElement)(Ju.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute inset-0 z-30 pointer-events-none",style:{backgroundColor:"rgba(204, 204, 204, 0.25)",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}},(0,t.createElement)("div",{className:"absolute inset-0 flex items-center justify-center"},(0,t.createElement)(tr.Spinner,{className:"w-10 h-10 text-design-main"})))),(0,t.createElement)("div",{"data-test":"layout-preview",ref:n,className:rn()("group w-full bg-transparent z-10",{"opacity-0":!c})},(0,t.createElement)("div",{ref:o,className:"relative rounded-lg"},(0,t.createElement)(gm.BlockPreview,{blocks:u,viewportWidth:1400,additionalStyles:[{css:'.rich-text [data-rich-text-placeholder]:after { content: "" }'}]}))))})),Lm=({label:e,slug:r,description:o,checked:n,onChange:a,locked:i=!1})=>(0,t.createElement)("label",{className:rn()("flex items-center py-3.5 px-4",{"cursor-not-allowed":i,"hover:text-design-main focus-within:text-design-mains":!i}),htmlFor:r},(0,t.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,t.createElement)("input",{id:r,className:"h-5 w-5 rounded-sm m-0",style:{"--ext-design-main":i?"#BBBBBB":void 0},disabled:i,type:"checkbox",onChange:i?void 0:a,checked:!!i||n}),(0,t.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,t.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,t.createElement)("span",{className:"flex flex-col grow overflow-hidden"},(0,t.createElement)("span",{className:"text-base font-medium leading-tight truncate"},e),o?(0,t.createElement)("span",{className:"block pt-1"},o):(0,t.createElement)("span",null))),Am=({page:e,previewing:r,onPreview:o,checked:n,onChange:a,forceChecked:i=!1})=>(0,t.createElement)("div",{className:"border border-gray-300 rounded flex items-center"},(0,t.createElement)("div",{className:rn()("grow text-gray-900 overflow-hidden",{"bg-gray-300":i})},(0,t.createElement)(Lm,{label:e.name,slug:e.slug,checked:n,onChange:a,locked:i})),(0,t.createElement)("button",{type:"button",className:rn()("flex items-center h-full min-h-6 min-w-6 shrink py-3 px-4 border-l border-gray-300 cursor-pointer",{"bg-gray-100 text-gray-800":!r,"bg-design-main text-white":r}),onClick:o},(0,t.createElement)(Hp,{className:"h-6 w-6"}))),Mm=({siteType:e})=>(async e=>{const t=await wp("page",e);if(!t?.recommended)throw new Error("Could not get pages");return{recommended:t.recommended.map((({slug:e,...t})=>({...t,slug:e,id:e}))),optional:t.optional.map((({slug:e,...t})=>({...t,slug:e,id:e})))}})(e),Nm=e=>({key:"pages-list",siteType:null!=e?e:fp?.getState().siteType}),Om=nm("Pages",(()=>({title:(0,te.__)("Pages","extendify-local"),showInSidebar:!0,ready:!0}))),Rm=async()=>({title:await $t("blogname")}),Dm=()=>({key:"site-info"}),Vm=nm("Site Title",(()=>({title:(0,te.__)("Site Title","extendify-local"),default:void 0,showInSidebar:!0,ready:!1}))),Fm=()=>{const{siteInformation:e,setSiteInformation:r}=fp(),o=Um((e=>e.nextPage)),{data:n}=cm(Dm,Rm),a=(0,t.useRef)(null),[i,s]=(0,t.useState)(e?.title);return(0,t.useEffect)((()=>{var t;void 0===e.title&&s(null!==(t=n?.title)&&void 0!==t?t:"")}),[n.title,e.title]),(0,t.useEffect)((()=>{if(void 0===i)return;Vm.setState({ready:!1});const e=setTimeout((()=>{Ut("blogname",i),r("title",i),Vm.setState({ready:!0})}),750);return()=>clearTimeout(e)}),[r,i]),(0,t.useEffect)((()=>{const e=requestAnimationFrame((()=>a.current?.focus()));return()=>cancelAnimationFrame(e)}),[]),void 0===e?.title?(0,t.createElement)(lm,null):(0,t.createElement)("form",{onSubmit:e=>{e.preventDefault(),Vm.getState().ready&&o()}},(0,t.createElement)("label",{htmlFor:"extendify-site-title-input",className:"sr-only"},(0,te.__)("What's the name of your website?","extendify-local")),(0,t.createElement)("div",{className:"mb-8"},(0,t.createElement)("input",{"data-test":"site-title-input",autoComplete:"off",ref:a,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-full rounded border border-gray-200 h-12 py-6 px-4 input-focus ring-offset-0",value:null!=i?i:"",onChange:e=>s(e.target.value),placeholder:(0,te.__)("Enter your website name","extendify-local")})))},_m=((e,t)=>(...r)=>{const[o,n,a]=q(r),i=(a.use||[]).concat(t);return e(o,n,{...a,use:i})})(Q,(e=>(t,r,o)=>(o.revalidateOnFocus=!1,o.revalidateIfStale=!1,o.revalidateOnReconnect=!1,e(t,r,o)))),jm=nm("Site Industry",(()=>({title:(0,te.__)("Site Industry","extendify-local"),showInSidebar:!0,ready:!1}))),Im=()=>{const{nextPage:e}=Um(),{siteType:r,setSiteType:o,setSiteTypeSearch:n}=fp(),[a,i]=(0,t.useState)(""),[s,l]=(0,t.useState)(""),{data:c,loading:u}=(e=>{const{data:t,error:r}=_m(e||"cold-boot",(async()=>{const{wpLanguage:t}=window.extOnbData,r=performance.now(),o=new URL(`${hp}/api/site-types`);e&&o.searchParams.append("search",e),e||o.searchParams.append("boot","true"),t&&o.searchParams.append("lang",t);const n=await fetch(o.toString(),{headers:{"Content-Type":"application/json"}});if(!e)return;if(!n.ok)throw new Error("Bad response from server");const a=await n.json();if(!Array.isArray(a))throw new Error("Bad response from server");return{siteTypes:a,time:((performance.now()-r)/1e3).toFixed(4)}}));return{data:t,error:r,loading:!t&&!r}})(s),{siteTypes:d}=null!=c?c:{};return(0,t.useEffect)((()=>{jm.setState({ready:!!r?.slug})}),[r]),(0,t.useEffect)((()=>{if(!a)return;const e=setTimeout((()=>l(a)),300),t=setTimeout((()=>n(a)),1e3);return()=>{clearTimeout(e),clearTimeout(t)}}),[a,n]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"relative"},(0,t.createElement)("input",{autoFocus:!0,"data-test":"site-type-search",className:"w-full h-14 px-4 m-0 input-focus ring-offset-0 focus:bg-white relative z-20 rounded border border-gray-300 shadow-sm outline-none",autoComplete:"off",spellCheck:!1,placeholder:(0,te.__)("Search for your business type","extendify-local"),onChange:e=>i(e.target.value)})),u&&a&&(0,t.createElement)("div",{className:"mt-5 text-sm"},(0,te.__)("Searching...","extendify-local")),(0,t.createElement)("div",{className:"mt-5 flex flex-col gap-3","data-test":"site-type-list"},r?.name&&(!u||!a)&&(0,t.createElement)("div",{className:"group gap-2 flex justify-between items-center py-2.5 px-3 text-base relative overflow-hidden border border-gray-200 rounded bg-gray-100 transition-all duration-100 ease-in-out"},r.name,(0,t.createElement)(Op,{className:"h-5 w-5"})),d?.map((r=>(0,t.createElement)("button",{key:r.id,type:"button",className:"group gap-2 flex justify-between items-center py-2.5 px-3 text-base bg-gray-50 relative overflow-hidden border border-gray-200 rounded cursor-pointer hover:bg-gray-100 transition-all duration-100 ease-in-out",onClick:()=>(({slug:t,name:r,language:n})=>{e(),o({slug:t,name:r,language:n}),Ut("extendify_siteType",{slug:t,name:r,language:n})})(r)},r.name,(0,t.createElement)(Zp,{className:"h-5 w-5 invisible group-hover:visible"}))))))},Bm=[["site-type",{component:()=>{const{loading:e}=fp();return(0,t.createElement)(om,null,(0,t.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,t.createElement)(Tp,{title:(0,te.__)("What is your WordPress site about?","extendify-local"),description:(0,te.__)("We will help you create your WordPress website quickly.","extendify-local")}),(0,t.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},e?(0,t.createElement)(lm,null):(0,t.createElement)(Im,null))))},state:jm}],["site-title",{component:()=>{const{loading:e}=cm(Dm,Rm);return(0,t.useEffect)((()=>{Vm.setState({ready:!e})}),[e]),(0,t.createElement)(om,null,(0,t.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,t.createElement)(Tp,{title:(0,te.__)("What's the name of your new site?","extendify-local"),description:(0,te.__)("You can change this later.","extendify-local")}),(0,t.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},e?(0,t.createElement)(lm,null):(0,t.createElement)(Fm,null))))},fetcher:Rm,fetchData:Dm,state:Vm}],["goals",{component:()=>{const{loading:e}=cm(dm,um),{loading:r}=cm(mm,pm);return(0,t.createElement)(om,null,(0,t.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,t.createElement)(Tp,{title:(0,te.__)("What are your goals for your website?","extendify-local"),description:(0,te.__)("We'll make sure your website has what it needs to achieve your goals.","extendify-local")}),(0,t.createElement)("div",{className:"w-full relative max-w-3xl mx-auto"},e||r?(0,t.createElement)(lm,null):(0,t.createElement)(hm,null))))},fetcher:um,fetchData:dm,state:fm}],["layout",{component:()=>{const{loading:e,data:r}=cm(Cm,km);return(0,t.createElement)(om,null,(0,t.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,t.createElement)(Tp,{title:(0,te.__)("Pick a design for your website","extendify-local"),description:(0,te.__)("You can personalize this later.","extendify-local")}),(0,t.createElement)("div",{className:"w-full relative max-w-6xl mx-auto"},e?(0,t.createElement)(lm,null):(0,t.createElement)(Pm,{styleData:r}))))},fetcher:km,fetchData:Cm,state:Sm}],["pages",{component:()=>{const{data:e,loading:r}=cm(Nm,Mm),[o,n]=(0,t.useState)(),[a,i]=(0,t.useState)(),{pages:s,remove:l,add:c,has:u,style:d}=fp(),p=(0,t.useRef)(),m=(0,t.useMemo)((()=>({id:"home-page",slug:"home-page",name:(0,te.__)("Home page","extendify-local"),patterns:d?.code.map(((e,t)=>({name:`pattern-${t}`,code:e})))})),[d]),f=(0,t.useMemo)((()=>({...d,code:o?o.patterns.map((({code:e})=>e)).join(""):""})),[d,o]),h=e=>{if(!u("pages",e))return c("pages",e),n(e);l("pages",e)};return(0,t.useEffect)((()=>{let e;const t=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{p?.current?.scrollTo(0,0)}))}));return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}),[o]),(0,t.useEffect)((()=>{o||n(m)}),[o,m]),(0,t.useEffect)((()=>{s||e?.recommended&&e.recommended.forEach((e=>c("pages",e)))}),[s,e?.recommended,c]),(0,t.createElement)(om,null,(0,t.createElement)("div",{className:"grow lg:flex overflow-y-scroll space-y-4 lg:space-y-0"},(0,t.createElement)("div",{className:"h-full bg-gray-100 grow pt-0 px-4 lg:pb-0 l6:px-16 xl:px-32 overflow-y-hidden min-h-screen lg:min-h-0"},(0,t.createElement)("div",{className:"h-full flex flex-col"},(0,t.createElement)("h3",{className:"text-base lg:text-lg font-medium text-gray-700 text-center my-2 lg:my-4"},o?.name),(0,t.createElement)("div",{ref:p,className:"h-full lg:h-auto grow rounded-t-lg relative lg:overflow-y-scroll"},o&&!r&&(0,t.createElement)(Tm,{ref:p,style:f})))),(0,t.createElement)("div",{className:"flex items-center w-full lg:max-w-lg flex-col px-6 py-8 lg:py-16 lg:px-12 overflow-y-auto"},(0,t.createElement)(Tp,{title:(0,te.__)("Pick the pages to add to your website","extendify-local"),description:(0,te.__)("We already selected the most common pages for your type of website.","extendify-local")}),(0,t.createElement)("div",{className:"flex flex-col gap-4 pb-4 w-full","data-test":"recommended-pages"},(0,t.createElement)(Am,{page:m,previewing:m.id===o?.id,onPreview:()=>n(m),checked:!0,forceChecked:!0,onChange:()=>{}}),e?.recommended?.map((e=>(0,t.createElement)(Am,{key:e.id,page:e,previewing:e.id===o?.id,onPreview:()=>n(e),checked:u("pages",e),onChange:()=>h(e)})))),(0,t.createElement)("div",{className:"flex items-center justify-center"},(0,t.createElement)("button",{type:"button","data-test":"expand-more",onClick:i,className:"bg-transparent text-sm text-center font-medium text-gray-900 my-4 cursor-pointer hover:text-design-main button-focus"},(0,te.__)("View more pages","extendify-local"))),a&&(0,t.createElement)("div",{className:"flex flex-col gap-4 pb-4 w-full","data-test":"optional-pages"},e?.optional?.map((e=>(0,t.createElement)(Am,{key:e.id,page:e,previewing:e.id===o?.id,onPreview:()=>n(e),checked:s?.some((t=>t.id===e.id)),onChange:()=>h(e)})))))))},fetcher:Mm,fetchData:Nm,state:Om}],["business-information",{component:()=>(0,t.createElement)(om,null,(0,t.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,t.createElement)(Tp,{title:(0,te.__)("Let us create custom copy for your website","extendify-local"),description:(0,te.__)("Our AI Assistant will take your input and create customized copy for each page. Describe your website or business with as much detail as you'd like and we'll use it to create your perfect site.","extendify-local")}),(0,t.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},(0,t.createElement)(im,null)))),state:am}]],Hm=Bm?.filter((e=>!window.extOnbData?.partnerSkipSteps?.includes(e[0]))),zm=lp(np(((e,t)=>({pages:new Map(Hm),currentPageIndex:0,count(){return t().pages.size},getPageOrder(){return Array.from(t().pages.keys())},getCurrentPageData(){return t().pages.get(t().getCurrentPageSlug())},getCurrentPageSlug(){return t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0])},getNextPageData(){const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().getPageOrder()[e])},setPage(r){"string"==typeof r&&(r=t().getPageOrder().indexOf(r)),r>t().count()-1||r<0||e({currentPageIndex:r})},pushHistory(e){history.pushState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},replaceHistory(e){history.replaceState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},nextPage(){const e=t().currentPageIndex+1;t().pushHistory(e),t().setPage(e)},previousPage(){const e=t().currentPageIndex-1;t().replaceHistory(e),t().setPage(e)}})),{name:"Extendify Launch Pages",serialize:!0}),{name:`extendify-pages-${window.extOnbData.siteId}`,partialize:e=>{var t,r,o;return{currentPageIndex:null!==(t=e?.currentPageIndex)&&void 0!==t?t:0,currentPageSlug:null!==(r=e?.getCurrentPageSlug())&&void 0!==r?r:null,availablePages:null!==(o=e?.getPageOrder())&&void 0!==o?o:[]}}}),Um=tp(zm),$m=()=>{var e;const[r]=(0,t.useState)(!0),[o,n]=(0,t.useState)(!1),[a,i]=(0,t.useState)(["#ffffff"]),[s,l]=(0,t.useState)(!0),c=fp((e=>e.canLaunch())),{pages:u,style:d,plugins:p,goals:m,businessInformation:f,siteType:h,siteInformation:g,siteTypeSearch:y}=fp(),[w,b]=(0,t.useState)([]),[v,x]=(0,t.useState)([]),E=e=>b((t=>[e,...t])),k=e=>x((t=>[e,...t])),[C,S]=(0,t.useState)([]),{setPage:P}=Um();((e=!0)=>{(0,t.useEffect)((()=>{if(!e)return;const t=e=>(e.preventDefault(),e.returnValue=""),r={capture:!0};return window.addEventListener("beforeunload",t,r),()=>{window.removeEventListener("beforeunload",t,r)}}),[e])})(s);const T=(0,t.useCallback)((async()=>{if(!c)throw new Error((0,te.__)("Site is not ready to launch.","extendify-local"));try{var e;if(await Ut("permalink_structure","/%postname%/"),await xp(),E((0,te.__)("Applying your website styles","extendify-local")),k((0,te.__)("Creating a beautiful website","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await xp(),await(t=null!==(e=d?.variation)&&void 0!==e?e:{},((e,t)=>jt.post(`${zt}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extOnbData.globalStylesPostID,t)),await xp(),await Xt("extendable/header",d?.headerCode),await xp(),await Xt("extendable/footer",d?.footerCode),p?.length){E((0,te.__)("Installing necessary plugins","extendify-local"));const e=[...p].sort((({wordpressSlug:e})=>"give"===e?-1:1));for(const[t,r]of e.entries()){k((0,te.__)(`${t+1}/${p.length}: ${r.name}`,"extendify-local")),await xp();try{await qt(r)}catch(e){await xp(),await qt(r)}}E((0,te.__)("Populating data","extendify-local")),k((0,te.__)("Personalizing your experience","extendify-local")),await(async()=>await jt.get("launch/prefetch-assist-data"))(),await xp()}let r,o;E((0,te.__)("Adding page content","extendify-local")),k((0,te.__)("Starting off with a full website","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await xp();const a={slug:"home",name:(0,te.__)("Home","extendify-local"),patterns:d.code.map((e=>({code:e})))},i={slug:"blog",name:(0,te.__)("Blog","extendify-local"),patterns:[]};await xp(),f.description&&(k((0,te.__)("Creating pages with custom content","extendify-local")),[a,...u].forEach((e=>S((t=>[...t,e.name]))))),r=await(async(e,t)=>{if(!t.businessInformation.description)return await(async e=>{const t={};for(const r of e)t[r.slug]=await Zt({title:r.name,status:"publish",content:r.patterns?.map((({code:e})=>e))?.join(""),template:"no-title",meta:{made_with_extendify_launch:!0}});return t?.home&&(await Ut("show_on_front","page"),await Ut("page_on_front",t.home.id)),t?.blog&&await Ut("page_for_posts",t.blog.id),t})(e);const{siteId:r,partnerId:o,wpLanguage:n,wpVersion:a}=window.extOnbData;return(await Promise.allSettled(e.map((e=>(async(e,t)=>{const r=await fetch("https://ai.extendify.com/api/patterns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,userState:t})});if(!r.ok)throw new Error("Bad response from server");return await r.json()})(e,{...t,siteId:r,partnerId:o,siteVersion:a,language:n}).then((e=>kp(e))).catch((()=>kp(e)))))))?.filter((e=>e.value))?.reduce(((e,t)=>({...e,...t.value})),{})})([...u,i,a],{goals:m,businessInformation:f,siteType:h,siteInformation:g,siteTypeSearch:y}),S([]),await xp(),k((0,te.__)("Setting up site layout","extendify-local"));const s=m?.some((e=>"blog"===e.slug));o=[...u,s?i:null,a].filter(Boolean).sort(((e,t)=>e?.name?.localeCompare(t?.name)));let{data:c}=await jt.get("launch/active-plugins");if(Array.isArray(c)||(c="object"==typeof c?Object.keys(c):void 0),Ep(c,"woocommerce")){const e=await $t("woocommerce_shop_page_id"),t=await Wt(e),r=await $t("woocommerce_cart_page_id"),n=await Wt(r);if(e&&t&&r&&n){const a={id:e,slug:t.slug,title:t.title.rendered},i={id:r,slug:n.slug,title:n.title.rendered};o=[...o,a,i]}}if(Ep(c,"the-events-calendar")){const e={slug:"events",title:(0,te.__)("Events","extendify-local")};o=[...o,e]}Ep(c,"wpforms-lite")&&await Ut("wpforms_activation_redirect","skip"),Ep(c,"all-in-one-seo-pack")&&await Ut("aioseo_activation_redirect","skip"),Ep(c,"google-analytics-for-wordpress")&&await Ut("_transient__monsterinsights_activation_redirect",null),await(async e=>{await $t("site_logo").then((async t=>{if(!parseInt(t)){var r;const t=null!==(r=(0,Xd.getFilename)(e))&&void 0!==r?r:"default-logo.png",o=await(await fetch(e)).blob();await(0,Gd.uploadMedia)({filesList:[new File([o],t,{type:"image/x-png"})],onFileChange:async([e])=>{e.id&&await Ut("site_logo",e.id)},onError:console.error})}}))})("https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png"),await xp();const w=((e,t,r,o=null)=>{o||(o=/(<!--\s*wp:navigation\b[^>]*>)([^]*?)(<!--\s*\/wp:navigation\s*-->)/gi);const n=e.filter((e=>Boolean(t[e.slug]?.id))).filter((({slug:e})=>"home"!==e)).map((e=>{const{id:r,title:o,link:n,type:a}=t[e.slug];return`\x3c!-- wp:navigation-link { "label":"${o.rendered}", "type":"${a}", "id":"${r}", "url":"${n}", "kind":"post-type", "isTopLevelLink":true } /--\x3e`})).join("");return r.replace(o,`$1${n}$3`)})(o,r,d?.headerCode);return await xp(),await Xt("extendable/header",w),E((0,te.__)("Setting up your Site Assistant","extendify-local")),k((0,te.__)("Helping you to succeed","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await xp(),E((0,te.__)("Your website has been created!","extendify-local")),k((0,te.__)("Redirecting in 3, 2, 1...","extendify-local")),n(!0),l(!1),await new Promise((e=>setTimeout(e,2500))),await xp(),await Ut("extendify_onboarding_completed",(new Date).toISOString()),r}catch(e){if(console.error(e),e.status>=400&&e.status<500){l(!1);const e=(0,te.__)("We encountered a server error we cannot recover from. Please reload the page and try again.","extendify-local");alert(e),location.href=window.extOnbData.adminUrl}return await new Promise((e=>setTimeout(e,2e3))),T()}var t}),[u,p,d,c,m,f,h,g,y,S]);return(0,t.useEffect)((()=>{T().then((()=>{P(0),window.location.replace(window.extOnbData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[T,P]),(0,t.useEffect)((()=>{const e=window.getComputedStyle(document.body),t=e?.getPropertyValue("--ext-banner-main"),r=e?.getPropertyValue("--ext-banner-text");t&&i([zd(t).darken(.3).toHex(),zd(r).alpha(.5).toHex(),zd(t).lighten(.2).toHex()])}),[]),((e={},r=0,o=!1)=>{(0,t.useEffect)((()=>{if(!o)return;const t=Date.now()+r,n=()=>{qd({...e,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<t&&requestAnimationFrame((()=>{requestAnimationFrame(n)}))};n()}),[e,r,o])})({particleCount:3,angle:320,spread:220,origin:{x:0,y:0},colors:a},2500,o),(0,t.createElement)(gd,{show:r,appear:!0,enter:"transition-all ease-in-out duration-500",enterFrom:"md:w-40vw md:max-w-md",enterTo:"md:w-full md:max-w-full",className:"bg-banner-main text-banner-text py-12 px-10 md:h-screen flex flex-col justify-between shrink-0"},(0,t.createElement)("div",{className:"max-w-prose"},(0,t.createElement)("div",{className:"md:min-h-48"},window.extOnbData?.partnerLogo?(0,t.createElement)("div",{className:"mb-8"},(0,t.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(e=window.extOnbData?.partnerName)&&void 0!==e?e:""})):(0,t.createElement)(Fp,{className:"logo text-banner-text w-32 sm:w-40 mb-8"}),(0,t.createElement)("div",{"data-test":"message-area"},w.map(((e,o)=>{if(!o)return(0,t.createElement)(gd,{appear:!0,show:r,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-4xl flex space-x-4 items-center",key:e},e)})),(0,t.createElement)("div",{className:"flex space-x-4 items-center mt-6"},(0,t.createElement)(Yp,{className:"spin"}),v.map(((e,o)=>{if(!o)return(0,t.createElement)(gd,{appear:!0,show:r,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-lg",key:e},e)}))),C.length>0?(0,t.createElement)(Ud,{pages:C}):null))))},Zm=()=>(0,t.createElement)(om,{includeNav:!1},(0,t.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,t.createElement)(Tp,{title:(0,te.__)("One more thing before we start.","extendify-local")}),(0,t.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},(0,t.createElement)("p",{className:"text-base"},(0,te.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify-local")),(0,t.createElement)("a",{className:"text-base text-design-main font-medium underline mt-4",href:`${window.extOnbData.site}/wp-admin/theme-install.php?theme=extendable`},(0,te.__)("Take me there","extendify-local"))))),Wm=()=>{const{updateSettings:e}=(0,o.useDispatch)("core/block-editor"),[n,a]=(0,t.useState)(!1),{siteType:i,resetState:s}=fp(),l=Um((e=>{const t=e.getCurrentPageData();return t?.component})),{fetcher:c,fetchData:u}=Um((e=>e.getNextPageData())),{setPage:d,currentPageIndex:p}=Um(),{mutate:m}=G(),{generating:f}=Mp(),[h,g]=(0,t.useState)(!1),[y,w]=(0,t.useState)(!1),b=(0,o.useSelect)((e=>e("core").getCurrentTheme()));return(()=>{const{goals:e,pages:r,plugins:o,siteType:n,style:a,siteTypeSearch:i}=fp(),{generating:s}=Mp(),{pages:l,currentPageIndex:c}=Um(),[u,d]=(0,t.useState)(),[p,m]=(0,t.useState)([]),[f,h]=(0,t.useState)(new Set);(0,t.useEffect)((()=>{const e=[...l].map((e=>e[0]));m((t=>t?.at(-1)===e[c]?t:[...t,e[c]]))}),[c,l]),(0,t.useEffect)((()=>{s&&m((e=>[...e,"launched"]))}),[s]),(0,t.useEffect)((()=>{Object.keys(null!=a?a:{})?.length&&h((e=>{const t=new Set(e);return t.add(a),t}))}),[a]),(0,t.useEffect)((()=>{let e="launch";const t=window.location?.search;e=t?.indexOf("DEVMODE")>-1?"launch-dev":e,e=t?.indexOf("LOCALMODE")>-1?"launch-local":e,d(window?.extOnbData?.config?.api[e])}),[]),(0,t.useEffect)((()=>{if(!u)return;let t=0,s=0;const l=c?1e3:0;return t=window.setTimeout((()=>{const t=new AbortController;s=window.setTimeout((()=>{t.abort()}),500),fetch(`${u}/progress`,{method:"POST",headers:{"Content-type":"application/json",Accept:"application/json"},signal:t.signal,body:JSON.stringify({selectedGoals:e?.map((e=>e.id)),selectedGoalsSlugs:e?.map((e=>e.slug)),selectedPages:r?.map((e=>e.id)),selectedPagesSlugs:r?.map((e=>e.slug)),selectedPlugins:o?.map((e=>e.name)),selectedSiteType:n?.slug?[n.slug]:[],selectedSiteTypeSlug:n?.slug,selectedStyle:a?.recordId?[a.recordId]:[],selectedStyleSlug:a?.slug,stepProgress:p,viewedStyles:[...f].map((e=>e.recordId)).slice(1),viewedStylesSlugs:[...f].map((e=>e.slug)).slice(1),siteTypeSearch:i,insightsId:window.extOnbData?.siteId,activeTests:JSON.stringify(window.extOnbData?.activeTests),partnerName:window.extOnbData?.partnerId,wpLanguage:window.extOnbData?.wpLanguage,siteCreatedAt:window.extOnbData?.siteCreatedAt})}).catch((()=>{}))}),l),()=>[t,s].forEach((e=>window.clearTimeout(e)))}),[u,e,r,o,n,a,l,p,f,i,c])})(),(0,t.useEffect)((()=>{e(window.extOnbData.editorStyles)}),[e]),(0,t.useEffect)((()=>{(0,r.registerCoreBlocks)()}),[]),(0,t.useEffect)((()=>{b?.textdomain&&"extendable"!==b?.textdomain&&w(!0)}),[b]),(0,t.useEffect)((()=>{g(!0),Ut("extendify_launch_loaded",(new Date).toISOString())}),[]),(0,t.useEffect)((()=>{if(c){const e="function"==typeof u?u():u;m(e,(()=>c(e)))}}),[c,m,u]),h?(0,t.createElement)(K,{value:{errorRetryInterval:1e3,onErrorRetry:(e,t,r,o,{retryCount:i})=>{403!==e?.data?.status?n||(console.error(t,e),a(!0),setTimeout((()=>{a(!1),o({retryCount:i})}),5e3)):window.location.reload()}}},(0,t.createElement)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white"},y?(0,t.createElement)(Zm,null):i?.slug||0===p?f?(0,t.createElement)($m,null):l?(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ku,{setPage:d,resetState:s}),(0,t.createElement)(l,null)):null:(d(0),null)),(0,t.createElement)(ed,{show:n})):null};requestAnimationFrame((()=>{const e=document.getElementById("extendify-launch-page");e&&("function"==typeof t.createRoot?(0,t.createRoot)(e).render((0,t.createElement)(Wm,null)):(0,t.render)((0,t.createElement)(Wm,null),e))}))}()}();


??

??