File "index.js"

Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/team-updraft/lib-onboarding-wizard/Wizard/Onboarding/build/index.js
File size: 345.19 KB
MIME-type: text/plain
Charset: utf-8

 
Open Back
(()=>{var e,t,n,r,o={20:(e,t,n)=>{"use strict";var r=n(609),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},74:(e,t,n)=>{e.exports=window.DOMPurify||(window.DOMPurify=n(454).default||n(454))},162:(e,t,n)=>{"use strict";var r=n(609),o=n(888),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,d=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var u=s(null);if(null===u.current){var f={hasValue:!1,value:null};u.current=f}else f=u.current;u=c(function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,o]);var p=i(e,u[0],u[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}},242:(e,t,n)=>{"use strict";e.exports=n(162)},405:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");var n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)}},454:e=>{"use strict";const{entries:t,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:i,seal:s,create:l}=Object,{apply:c,construct:d}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),s||(s=function(e){return e}),c||(c=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const u=_(Array.prototype.forEach),f=_(Array.prototype.lastIndexOf),p=_(Array.prototype.pop),m=_(Array.prototype.push),h=_(Array.prototype.splice),g=_(String.prototype.toLowerCase),y=_(String.prototype.toString),v=_(String.prototype.match),b=_(String.prototype.replace),w=_(String.prototype.indexOf),C=_(String.prototype.trim),x=_(Object.prototype.hasOwnProperty),k=_(RegExp.prototype.test),E=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(S,t)});var S;function _(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return c(e,t,r)}}function N(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let a=t.length;for(;a--;){let n=t[a];if("string"==typeof n){const e=o(n);e!==n&&(r(t)||(t[a]=e),n=e)}e[n]=!0}return e}function A(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function T(e){const n=l(null);for(const[r,o]of t(e))x(e,r)&&(Array.isArray(o)?n[r]=A(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=T(o):n[r]=o);return n}function R(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=o(e)}return function(){return null}}const M=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),O=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=i(["#text"]),z=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),B=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=s(/<%[\w\W]*|[\w\W]*%>/gm),V=s(/\$\{[\w\W]*/gm),U=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=s(/^aria-[\-\w]+$/),Z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i),q=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:q,DATA_ATTR:U,DOCTYPE_NAME:Y,ERB_EXPR:F,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:W,TMPLIT_EXPR:V});const J=function(){return"undefined"==typeof window?null:window};var ee=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J();const r=t=>e(t);if(r.version="3.3.0",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let{document:o}=n;const a=o,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:S,Element:_,NodeFilter:A,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:V,trustedTypes:U}=n,G=_.prototype,X=R(G,"cloneNode"),K=R(G,"remove"),q=R(G,"nextSibling"),ee=R(G,"childNodes"),te=R(G,"parentNode");if("function"==typeof d){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ne,re="";const{implementation:oe,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:se}=o,{importNode:le}=a;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof t&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:ue,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=Q;let{IS_ALLOWED_URI:ve}=Q,be=null;const we=N({},[...M,...O,...L,...D,...j]);let Ce=null;const xe=N({},[...z,...B,...$,...H]);let ke=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,Se=null;const _e=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ne=!0,Ae=!0,Te=!1,Re=!0,Me=!1,Oe=!0,Le=!1,Ie=!1,De=!1,Pe=!1,je=!1,ze=!1,Be=!0,$e=!1,He=!0,We=!1,Fe={},Ve=null;const Ue=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Ze=N({},["audio","video","img","source","image","track"]);let Xe=null;const Ke=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Je=Qe,et=!1,tt=null;const nt=N({},[Ye,qe,Qe],y);let rt=N({},["mi","mo","mn","ms","mtext"]),ot=N({},["annotation-xml"]);const at=N({},["title","style","font","a","script"]);let it=null;const st=["application/xhtml+xml","text/html"];let lt=null,ct=null;const dt=o.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=T(e),it=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===it?y:g,be=x(e,"ALLOWED_TAGS")?N({},e.ALLOWED_TAGS,lt):we,Ce=x(e,"ALLOWED_ATTR")?N({},e.ALLOWED_ATTR,lt):xe,tt=x(e,"ALLOWED_NAMESPACES")?N({},e.ALLOWED_NAMESPACES,y):nt,Xe=x(e,"ADD_URI_SAFE_ATTR")?N(T(Ke),e.ADD_URI_SAFE_ATTR,lt):Ke,Ge=x(e,"ADD_DATA_URI_TAGS")?N(T(Ze),e.ADD_DATA_URI_TAGS,lt):Ze,Ve=x(e,"FORBID_CONTENTS")?N({},e.FORBID_CONTENTS,lt):Ue,Ee=x(e,"FORBID_TAGS")?N({},e.FORBID_TAGS,lt):T({}),Se=x(e,"FORBID_ATTR")?N({},e.FORBID_ATTR,lt):T({}),Fe=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||Z,Je=e.NAMESPACE||Qe,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Ae=!1),je&&(Pe=!0),Fe&&(be=N({},j),Ce=[],!0===Fe.html&&(N(be,M),N(Ce,z)),!0===Fe.svg&&(N(be,O),N(Ce,B),N(Ce,H)),!0===Fe.svgFilters&&(N(be,L),N(Ce,B),N(Ce,H)),!0===Fe.mathMl&&(N(be,D),N(Ce,$),N(Ce,H))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?_e.tagCheck=e.ADD_TAGS:(be===we&&(be=T(be)),N(be,e.ADD_TAGS,lt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?_e.attributeCheck=e.ADD_ATTR:(Ce===xe&&(Ce=T(Ce)),N(Ce,e.ADD_ATTR,lt))),e.ADD_URI_SAFE_ATTR&&N(Xe,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(Ve===Ue&&(Ve=T(Ve)),N(Ve,e.FORBID_CONTENTS,lt)),He&&(be["#text"]=!0),Le&&N(be,["html","head","body"]),be.table&&(N(be,["tbody"]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(U,s)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));i&&i(e),ct=e}},pt=N({},[...O,...L,...I]),mt=N({},[...D,...P]),ht=function(e){m(r.removed,{element:e});try{te(e).removeChild(e)}catch(t){K(e)}},gt=function(e,t){try{m(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||je)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(De)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ne?ne.createHTML(e):e;if(Je===Qe)try{t=(new V).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?re:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Je===Qe?se.call(t,Le?"html":"body")[0]:Le?t.documentElement:a},vt=function(e){return ae.call(e.ownerDocument||e,e,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof S&&e instanceof S};function Ct(e,t,n){u(e,e=>{e.call(r,t,n,ct)})}const xt=function(e){let t=null;if(Ct(ce.beforeSanitizeElements,e,null),bt(e))return ht(e),!0;const n=lt(e.nodeName);if(Ct(ce.uponSanitizeElement,e,{tagName:n,allowedTags:be}),Oe&&e.hasChildNodes()&&!wt(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(Oe&&8===e.nodeType&&k(/<[/\w]/g,e.data))return ht(e),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(n))&&(!be[n]||Ee[n])){if(!Ee[n]&&Et(n)){if(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(He&&!Ve[n]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=X(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,q(e))}}return ht(e),!0}return e instanceof _&&!function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=g(e.tagName),r=g(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===qe?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(pt[n]):e.namespaceURI===Ye?t.namespaceURI===Qe?"math"===n:t.namespaceURI===qe?"math"===n&&ot[r]:Boolean(mt[n]):e.namespaceURI===Qe?!(t.namespaceURI===qe&&!ot[r])&&!(t.namespaceURI===Ye&&!rt[r])&&!mt[n]&&(at[n]||!pt[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,u([de,ue,fe],e=>{t=b(t,e," ")}),e.textContent!==t&&(m(r.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(ce.afterSanitizeElements,e,null),!1):(ht(e),!0)},kt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in o||n in dt))return!1;if(Ae&&!Se[t]&&k(pe,t));else if(Ne&&k(me,t));else if(_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e));else if(!Ce[t]||Se[t]){if(!(Et(e)&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&k(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t,e))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Xe[t]);else if(k(ve,b(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!Ge[e])if(Te&&!k(he,b(n,ge,"")));else if(n)return!1;return!0},Et=function(e){return"annotation-xml"!==e&&v(e,ye)},St=function(e){Ct(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||bt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:s,value:l}=a,c=lt(i),d=l;let f="value"===i?d:C(d);if(n.attrName=c,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Ct(ce.uponSanitizeAttribute,e,n),f=n.attrValue,!$e||"id"!==c&&"name"!==c||(gt(i,e),f="user-content-"+f),Oe&&k(/((--!?|])>)|<\/(style|title|textarea)/i,f)){gt(i,e);continue}if("attributename"===c&&v(f,"href")){gt(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){gt(i,e);continue}if(!Re&&k(/\/>/i,f)){gt(i,e);continue}Me&&u([de,ue,fe],e=>{f=b(f,e," ")});const m=lt(e.nodeName);if(kt(m,c,f)){if(ne&&"object"==typeof U&&"function"==typeof U.getAttributeType)if(s);else switch(U.getAttributeType(m,c)){case"TrustedHTML":f=ne.createHTML(f);break;case"TrustedScriptURL":f=ne.createScriptURL(f)}if(f!==d)try{s?e.setAttributeNS(s,i,f):e.setAttribute(i,f),bt(e)?ht(e):p(r.removed)}catch(t){gt(i,e)}}else gt(i,e)}Ct(ce.afterSanitizeAttributes,e,null)},_t=function e(t){let n=null;const r=vt(t);for(Ct(ce.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ct(ce.uponSanitizeShadowNode,n,null),xt(n),St(n),n.content instanceof c&&e(n.content);Ct(ce.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Ie||ft(t),r.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=lt(e.nodeName);if(!be[t]||Ee[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=yt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Pe&&!Me&&!Le&&-1===e.indexOf("<"))return ne&&ze?ne.createHTML(e):e;if(n=yt(e),!n)return Pe?null:ze?re:""}n&&De&&ht(n.firstChild);const l=vt(We?e:n);for(;i=l.nextNode();)xt(i),St(i),i.content instanceof c&&_t(i.content);if(We)return e;if(Pe){if(je)for(s=ie.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Ce.shadowroot||Ce.shadowrootmode)&&(s=le.call(a,s,!0)),s}let d=Le?n.outerHTML:n.innerHTML;return Le&&be["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&k(Y,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Me&&u([de,ue,fe],e=>{d=b(d,e," ")}),ne&&ze?ne.createHTML(d):d},r.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},r.clearConfig=function(){ct=null,Ie=!1},r.isValidAttribute=function(e,t,n){ct||ft({});const r=lt(e),o=lt(t);return kt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&m(ce[e],t)},r.removeHook=function(e,t){if(void 0!==t){const n=f(ce[e],t);return-1===n?void 0:h(ce[e],n,1)[0]}return p(ce[e])},r.removeHooks=function(e){ce[e]=[]},r.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();e.exports=ee},493:(e,t,n)=>{"use strict";var r=n(609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,d=r[1];return s(function(){o.value=n,o.getSnapshot=t,c(o)&&d({inst:o})},[e,n,t]),i(function(){return c(o)&&d({inst:o}),e(function(){c(o)&&d({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},609:e=>{"use strict";e.exports=window.React},795:e=>{"use strict";e.exports=window.ReactDOM},848:(e,t,n)=>{"use strict";e.exports=n(20)},888:(e,t,n)=>{"use strict";e.exports=n(493)}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.m=o,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>e+".index.js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@teamupdraft/onboarding:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+o){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={16:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,s,l]=n,c=0;if(a.some(t=>0!==e[t])){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);l&&l(i)}for(t&&t(n);c<a.length;c++)o=a[c],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunk_teamupdraft_onboarding=globalThis.webpackChunk_teamupdraft_onboarding||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0,(()=>{"use strict";var e=i(609),t=i.t(e,2);const n=window.wp.element;function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1;const r=e.map(e=>{const r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function s(...t){return e.useCallback(a(...t),t)}"undefined"==typeof window||!window.document||window.document.createElement;var l=i(848);function c(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const a=e.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,c=r?.[t]?.[i]||a,d=e.useMemo(()=>s,Object.values(s));return(0,l.jsx)(c.Provider,{value:d,children:o})};return s.displayName=n+"Provider",[s,function(r,s){const l=s?.[t]?.[i]||a,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},d(o,...n)]}function d(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}var u=globalThis?.document?e.useLayoutEffect:()=>{},f=t[" useId ".trim().toString()]||(()=>{}),p=0;function m(t){const[n,r]=e.useState(f());return u(()=>{t||r(e=>e??String(p++))},[t]),t||(n?`radix-${n}`:"")}var h=t[" useInsertionEffect ".trim().toString()]||u;function g({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[a,i,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),a=e.useRef(r),i=e.useRef(n);return h(()=>{i.current=n},[n]),e.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,o,i]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:a;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else i(e)},[l,t,i,s]);return[c,d]}Symbol("RADIX:SYNC_STATE");var y=i(795);function v(t){const n=b(t),r=e.forwardRef((t,r)=>{const{children:o,...a}=t,i=e.Children.toArray(o),s=i.find(C);if(s){const t=s.props.children,o=i.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return(0,l.jsx)(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return(0,l.jsx)(n,{...a,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function b(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?a(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var w=Symbol("radix.slottable");function C(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===w}var x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=v(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...a}=e,i=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...a,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function k(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var E,S="dismissableLayer.update",_=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:d,onDismiss:u,...f}=t,p=e.useContext(_),[m,h]=e.useState(null),g=m?.ownerDocument??globalThis?.document,[,y]=e.useState({}),v=s(n,e=>h(e)),b=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=b.indexOf(w),N=m?b.indexOf(m):-1,A=p.layersWithOutsidePointerEventsDisabled.size>0,M=N>=C,O=function(t,n=globalThis?.document){const r=k(t),o=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){R("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...p.branches].some(e=>e.contains(t));M&&!n&&(i?.(e),d?.(e),e.defaultPrevented||u?.())},g),L=function(t,n=globalThis?.document){const r=k(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{e.target&&!o.current&&R("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...p.branches].some(e=>e.contains(t))||(c?.(e),d?.(e),e.defaultPrevented||u?.())},g);return function(t,n=globalThis?.document){const r=k(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{N===p.layers.size-1&&(a?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},g),e.useEffect(()=>{if(m)return o&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(E=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),T(),()=>{o&&1===p.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=E)}},[m,g,o,p]),e.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),T())},[m,p]),e.useEffect(()=>{const e=()=>y({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),(0,l.jsx)(x.div,{...f,ref:v,style:{pointerEvents:A?M?"auto":"none":void 0,...t.style},onFocusCapture:r(t.onFocusCapture,L.onFocusCapture),onBlurCapture:r(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:r(t.onPointerDownCapture,O.onPointerDownCapture)})});N.displayName="DismissableLayer";var A=e.forwardRef((t,n)=>{const r=e.useContext(_),o=e.useRef(null),a=s(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,l.jsx)(x.div,{...t,ref:a})});function T(){const e=new CustomEvent(S);document.dispatchEvent(e)}function R(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&y.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}A.displayName="DismissableLayerBranch";var M="focusScope.autoFocusOnMount",O="focusScope.autoFocusOnUnmount",L={bubbles:!1,cancelable:!0},I=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...c}=t,[d,u]=e.useState(null),f=k(a),p=k(i),m=e.useRef(null),h=s(n,e=>u(e)),g=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(g.paused||!d)return;const t=e.target;d.contains(t)?m.current=t:z(m.current,{select:!0})},t=function(e){if(g.paused||!d)return;const t=e.relatedTarget;null!==t&&(d.contains(t)||z(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&z(d)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return d&&r.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,d,g.paused]),e.useEffect(()=>{if(d){B.add(g);const e=document.activeElement;if(!d.contains(e)){const t=new CustomEvent(M,L);d.addEventListener(M,f),d.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(z(r,{select:t}),document.activeElement!==n)return}(D(d).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&z(d))}return()=>{d.removeEventListener(M,f),setTimeout(()=>{const t=new CustomEvent(O,L);d.addEventListener(O,p),d.dispatchEvent(t),t.defaultPrevented||z(e??document.body,{select:!0}),d.removeEventListener(O,p),B.remove(g)},0)}}},[d,f,p,g]);const y=e.useCallback(e=>{if(!r&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,a]=function(e){const t=D(e);return[P(t,e),P(t.reverse(),e)]}(t);o&&a?e.shiftKey||n!==a?e.shiftKey&&n===o&&(e.preventDefault(),r&&z(a,{select:!0})):(e.preventDefault(),r&&z(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,g.paused]);return(0,l.jsx)(x.div,{tabIndex:-1,...c,ref:h,onKeyDown:y})});function D(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function P(e,t){for(const n of e)if(!j(n,{upTo:t}))return n}function j(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}I.displayName="FocusScope";var B=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}();function $(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var H=e.forwardRef((t,n)=>{const{container:r,...o}=t,[a,i]=e.useState(!1);u(()=>i(!0),[]);const s=r||a&&globalThis?.document?.body;return s?y.createPortal((0,l.jsx)(x.div,{...o,ref:n}),s):null});H.displayName="Portal";var W=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),a=e.useRef(t),i=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=F(o.current);i.current="mounted"===l?e:"none"},[l]),u(()=>{const e=o.current,n=a.current;if(n!==t){const r=i.current,o=F(e);c(t?"MOUNT":"none"===o||"none"===e?.display?"UNMOUNT":n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),a.current=t}},[t,c]),u(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const i=F(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(c("ANIMATION_END"),!a.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(i.current=F(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),a="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),i=s(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(a));return"function"==typeof r||o.isPresent?e.cloneElement(a,{ref:i}):null};function F(e){return e?.animationName||"none"}W.displayName="Presence";var V=0;function U(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??G()),document.body.insertAdjacentElement("beforeend",e[1]??G()),V++,()=>{1===V&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),V--}},[])}function G(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Z.apply(this,arguments)};function X(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var K="right-scroll-bar-position",Y="width-before-scroll-bar";function q(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Q="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,J=new WeakMap;function ee(e){return e}var te=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ee);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Z({async:!0,ssr:!1},e),t}(),ne=function(){},re=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:ne,onWheelCapture:ne,onTouchMoveCapture:ne}),a=o[0],i=o[1],s=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,u=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,y=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,C=X(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,k=function(t,n){var r,o,a,i=(r=n||null,o=function(e){return t.forEach(function(t){return q(t,e)})},(a=(0,e.useState)(function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=o,a.facade);return Q(function(){var e=J.get(i);if(e){var n=new Set(e),r=new Set(t),o=i.current;n.forEach(function(e){r.has(e)||q(e,null)}),r.forEach(function(e){n.has(e)||q(e,o)})}J.set(i,t)},[t]),i}([r,n]),E=Z(Z({},C),a);return e.createElement(e.Fragment,null,u&&e.createElement(x,{sideCar:te,removeScrollBar:d,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(l),Z(Z({},E),{ref:k})):e.createElement(b,Z({},E,{className:c,ref:k}),l))});re.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},re.classNames={fullWidth:Y,zeroRight:K};var oe=function(t){var n=t.sideCar,r=X(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Z({},r))};oe.isSideCarExport=!0;var ae=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i.nc;return t&&e.setAttribute("nonce",t),e}())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ie=function(){var t,n=(t=ae(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},se={left:0,top:0,right:0,gap:0},le=function(e){return parseInt(e||"",10)||0},ce=ie(),de="data-scroll-locked",ue=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(de,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(K," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Y," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(K," .").concat(K," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Y," .").concat(Y," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(de,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},fe=function(){var e=parseInt(document.body.getAttribute(de)||"0",10);return isFinite(e)?e:0},pe=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(de,(fe()+1).toString()),function(){var e=fe()-1;e<=0?document.body.removeAttribute(de):document.body.setAttribute(de,e.toString())}},[]);var i=e.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return se;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[le(n),le(r),le(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(a)},[a]);return e.createElement(ce,{styles:ue(i,!n,a,r?"":"!important")})},me=!1;if("undefined"!=typeof window)try{var he=Object.defineProperty({},"passive",{get:function(){return me=!0,!0}});window.addEventListener("test",he,he),window.removeEventListener("test",he,he)}catch(e){me=!1}var ge=!!me&&{passive:!1},ye=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ve=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),be(e,r)){var o=we(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},be=function(e,t){return"v"===e?function(e){return ye(e,"overflowY")}(t):function(e){return ye(e,"overflowX")}(t)},we=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Ce=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xe=function(e){return[e.deltaX,e.deltaY]},ke=function(e){return e&&"current"in e?e.current:e},Ee=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Se=0,_e=[];function Ne(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ae=(Te=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(Se++)[0],i=e.useState(ie)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(ke),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=Ce(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var f=ve(u,d);if(!f)return!0;if(f?n=u:(n="v"===u?"h":"v",f=ve(u,d)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,c=a>0,d=0,u=0;do{if(!i)break;var f=we(e,i),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&be(e,i)&&(d+=m,u+=p);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&(Math.abs(d)<1||!1)||!c&&(Math.abs(u)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:c)},[]),c=e.useCallback(function(e){var t=e;if(_e.length&&_e[_e.length-1]===i){var r="deltaY"in t?xe(t):Ce(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(s.current.shards||[]).map(ke).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?l(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=e.useCallback(function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:Ne(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),u=e.useCallback(function(e){r.current=Ce(e),o.current=void 0},[]),f=e.useCallback(function(e){d(e.type,xe(e),e.target,l(e,t.lockRef.current))},[]),p=e.useCallback(function(e){d(e.type,Ce(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return _e.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ge),document.addEventListener("touchmove",c,ge),document.addEventListener("touchstart",u,ge),function(){_e=_e.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,ge),document.removeEventListener("touchmove",c,ge),document.removeEventListener("touchstart",u,ge)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(i,{styles:Ee(a)}):null,m?e.createElement(pe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},te.useMedium(Te),oe);var Te,Re=e.forwardRef(function(t,n){return e.createElement(re,Z({},t,{ref:n,sideCar:Ae}))});Re.classNames=re.classNames;const Me=Re;var Oe=new WeakMap,Le=new WeakMap,Ie={},De=0,Pe=function(e){return e&&(e.host||Pe(e.parentNode))},je=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Pe(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Ie[n]||(Ie[n]=new WeakMap);var a=Ie[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Oe.get(e)||0)+1,c=(a.get(e)||0)+1;Oe.set(e,l),a.set(e,c),i.push(e),1===l&&o&&Le.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),s.clear(),De++,function(){i.forEach(function(e){var t=Oe.get(e)-1,o=a.get(e)-1;Oe.set(e,t),a.set(e,o),t||(Le.has(e)||e.removeAttribute(r),Le.delete(e)),o||e.removeAttribute(n)}),--De||(Oe=new WeakMap,Oe=new WeakMap,Le=new WeakMap,Ie={})}}(r,o,n,"aria-hidden")):function(){return null}},ze="Dialog",[Be,$e]=c(ze),[He,We]=Be(ze),Fe=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,c=e.useRef(null),d=e.useRef(null),[u,f]=g({prop:o,defaultProp:a??!1,onChange:i,caller:ze});return(0,l.jsx)(He,{scope:n,triggerRef:c,contentRef:d,contentId:m(),titleId:m(),descriptionId:m(),open:u,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};Fe.displayName=ze;var Ve="DialogTrigger",Ue=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=We(Ve,n),i=s(t,a.triggerRef);return(0,l.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":dt(a.open),...o,ref:i,onClick:r(e.onClick,a.onOpenToggle)})});Ue.displayName=Ve;var Ge="DialogPortal",[Ze,Xe]=Be(Ge,{forceMount:void 0}),Ke=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=t,i=We(Ge,n);return(0,l.jsx)(Ze,{scope:n,forceMount:r,children:e.Children.map(o,e=>(0,l.jsx)(W,{present:r||i.open,children:(0,l.jsx)(H,{asChild:!0,container:a,children:e})}))})};Ke.displayName=Ge;var Ye="DialogOverlay",qe=e.forwardRef((e,t)=>{const n=Xe(Ye,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=We(Ye,e.__scopeDialog);return a.modal?(0,l.jsx)(W,{present:r||a.open,children:(0,l.jsx)(Je,{...o,ref:t})}):null});qe.displayName=Ye;var Qe=v("DialogOverlay.RemoveScroll"),Je=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(Ye,n);return(0,l.jsx)(Me,{as:Qe,allowPinchZoom:!0,shards:[o.contentRef],children:(0,l.jsx)(x.div,{"data-state":dt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),et="DialogContent",tt=e.forwardRef((e,t)=>{const n=Xe(et,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=We(et,e.__scopeDialog);return(0,l.jsx)(W,{present:r||a.open,children:a.modal?(0,l.jsx)(nt,{...o,ref:t}):(0,l.jsx)(rt,{...o,ref:t})})});tt.displayName=et;var nt=e.forwardRef((t,n)=>{const o=We(et,t.__scopeDialog),a=e.useRef(null),i=s(n,o.contentRef,a);return e.useEffect(()=>{const e=a.current;if(e)return je(e)},[]),(0,l.jsx)(ot,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:r(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:r(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:r(t.onFocusOutside,e=>e.preventDefault())})}),rt=e.forwardRef((t,n)=>{const r=We(et,t.__scopeDialog),o=e.useRef(!1),a=e.useRef(!1);return(0,l.jsx)(ot,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target,i=r.triggerRef.current?.contains(n);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),ot=e.forwardRef((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,...c}=t,d=We(et,r),u=e.useRef(null),f=s(n,u);return U(),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,l.jsx)(N,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":dt(d.open),...c,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(mt,{titleId:d.titleId}),(0,l.jsx)(ht,{contentRef:u,descriptionId:d.descriptionId})]})]})}),at="DialogTitle",it=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(at,n);return(0,l.jsx)(x.h2,{id:o.titleId,...r,ref:t})});it.displayName=at;var st="DialogDescription",lt=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(st,n);return(0,l.jsx)(x.p,{id:o.descriptionId,...r,ref:t})});lt.displayName=st;var ct="DialogClose";function dt(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=We(ct,n);return(0,l.jsx)(x.button,{type:"button",...o,ref:t,onClick:r(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ct;var ut="DialogTitleWarning",[ft,pt]=function(t,n){const r=e.createContext(n),o=t=>{const{children:n,...o}=t,a=e.useMemo(()=>o,Object.values(o));return(0,l.jsx)(r.Provider,{value:a,children:n})};return o.displayName=t+"Provider",[o,function(o){const a=e.useContext(r);if(a)return a;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}(ut,{contentName:et,titleName:at,docsSlug:"dialog"}),mt=({titleId:t})=>{const n=pt(ut),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},ht=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pt("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");n&&e&&(document.getElementById(n)||console.warn(r))},[r,t,n]),null},gt=Fe,yt=Ue,vt=Ke,bt=qe,wt=tt,Ct=it,xt=lt,kt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Et=e.forwardRef((e,t)=>(0,l.jsx)(x.span,{...e,ref:t,style:{...kt,...e.style}}));Et.displayName="VisuallyHidden";var St=Et;const _t=window.wp.i18n,Nt=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.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."),n.clear()}},i=t=e(r,o,a);return a};var At=i(242);const{useDebugValue:Tt}=e,{useSyncExternalStoreWithSelector:Rt}=At;let Mt=!1;const Ot=e=>e,Lt=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?Nt(e):Nt)(e):e,n=(e,n)=>function(e,t=Ot,n){n&&!Mt&&(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"),Mt=!0);const r=Rt(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Tt(r),r}(t,e,n);return Object.assign(n,t),n},It=window.wp.apiFetch;var Dt=i.n(It);const Pt=e=>-1===(e=(window.teamupdraft_onboarding||{}).rest_url+e).indexOf("?")?"?":"&",jt=async e=>{const{method:t,path:n,data:r}=e;return"GET"===t&&(e.path=`${e.path}${Pt(e.path)}${Ht(e.data)}`,delete e.data),Dt()(e).then(e=>{if(!e.request_success)throw new Error("invalid data error");if(e.code)throw new Error(e.message);return delete e.request_success,e}).catch(o=>$t(t,n,r).catch(()=>{throw console.log(o.message,e.path),o}))},zt=async(e={},t)=>{const n=window.teamupdraft_onboarding||{},r=n.prefix+"/v1/onboarding/do_action/"+t;e.nonce=n.nonce;let o={path:r,method:"POST",data:e};return await jt(o)},Bt=()=>{let e=(window.teamupdraft_onboarding||{}).admin_ajax_url;return"https:"===window.location.protocol&&-1===e.indexOf("https://")?e.replace("http://","https://"):e},$t=async(e,t,n=null)=>{const r=Ht(n);n.path=t;const o="GET"===e?`${Bt()}&rest_action=${t.replace("?","&")}&`+r:Bt(),a={method:e,headers:{"Content-Type":"application/json; charset=UTF-8"}};"POST"===e&&(a.body=JSON.stringify({path:t,data:n}));try{const e=await fetch(o,a);if(!e.ok)return Promise.reject(new Error("AJAX request failed"));const t=await e.json();return t.data&&Object.prototype.hasOwnProperty.call(t.data,"request_success")?(delete t.data.request_success,Promise.resolve(t.data)):Promise.reject(new Error("AJAX request failed"))}catch(e){return Promise.reject(new Error("AJAX request failed"))}},Ht=e=>Object.keys(e).filter(t=>void 0!==e[t]&&null!==e[t]).map(t=>{const n=Wt(e[t]);return Array.isArray(n)?n.map(e=>`${encodeURIComponent(t)}[]=${encodeURIComponent(e)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(n)}`}).join("&"),Wt=e=>Array.isArray(e)?e:"object"==typeof e&&null!==e?JSON.stringify(e):e,Ft=(e,t)=>{let n="";switch(e){case"download":n=(0,_t.__)("...installing %s","wp-optimize").replace("%s",t);break;case"activate":n=(0,_t.__)("...activating %s","wp-optimize").replace("%s",t);break;default:n=""}return n},Vt=(Gt=e=>({isOpen:!1,isUpdating:!1,isInstalling:!1,wizardCompletedOnce:!1,currentStepIndex:0,responseMessage:"",responseCode:!1,footerMessage:"",trackingTestRunning:!1,trackingTestCompleted:!1,trackingTestSuccess:!1,continueDisabled:!1,licenseStatus:"none",setContinueDisabled:t=>e({continueDisabled:t}),setFooterMessage:t=>e({footerMessage:t}),setResponseMessage:t=>e({responseMessage:t}),setTrackingTestRunning:t=>e({trackingTestRunning:t}),setTrackingTestCompleted:t=>e({trackingTestCompleted:t}),setTrackingTestSuccess:t=>e({trackingTestSuccess:t}),getCurrentStep:()=>{const e=Vt.getState();return(e.steps?.filter(e=>!1!==e.visible)||[])[e.currentStepIndex]},getCurrentStepDocumentation:()=>{const e=Vt.getState();let t=e.steps[e.currentStepIndex]?.documentation;return t||e.onboardingData.documentation},getCurrentStepSolutions:()=>{const e=Vt.getState();let t=e.steps[e.currentStepIndex]?.solutions;return t||[]},responseSuccess:!0,setResponseSuccess:t=>e({responseSuccess:t}),completedSteps:[],onboardingData:window.teamupdraft_onboarding||{},steps:[],setOpen:t=>e({isOpen:t}),setCurrentStepIndex:t=>e({currentStepIndex:t}),addSuccessStep:t=>e(e=>({completedSteps:[...e.completedSteps,t]})),isLastStep:()=>{const t=Vt.getState(),n=t.currentStepIndex===t.steps.length-1;return n&&!t.wizardCompletedOnce&&(e({wizardCompletedOnce:!0}),zt({},"user_completed_wizard")),n},settings:[],getSettings:()=>{const t=Vt.getState();if(t.settings.length>0)return t.settings;const n=t.onboardingData.fields;return e({settings:n}),n},getValue:e=>{const t=Vt.getState();return t.settings.find(t=>t.id===e)?.value},isEdited:e=>{const t=Vt.getState();return!!t.settings.find(t=>t.id===e)?.edited},setValue:async(t,n)=>{const r=Vt.getState(),o=(await r.getSettings()).map(e=>e.id===t?{...e,value:n,edited:!0}:e);e({settings:o})},updateStepSettings:async t=>{e({isUpdating:!0});let n={step:Vt.getState().getCurrentStep().id,settings:t};await zt(n,"update_settings"),e({isUpdating:!1,settings:t})},updateEmail:async()=>{var t,n,r,o;e({isUpdating:!0});const a=Vt.getState().getCurrentStep(),i=Vt.getState().getSettings(),s=null!==(t=a?.fields?.find(e=>"email"===e.type)?.id)&&void 0!==t?t:null,l=null!==(n=a?.fields?.find(e=>"checkbox"===e.type)?.id)&&void 0!==n?n:null,c=null!==(r=i?.find(e=>e.id===s)?.value)&&void 0!==r?r:null,d=null!==(o=i?.find(e=>e.id===l)?.value)&&void 0!==o?o:null;let u={step:a.id,email:c,tips_tricks:d};await zt(u,"update_email"),e({isUpdating:!1})},validateLicense:async()=>{var t,n,r,o;e({isUpdating:!0}),e({licenseStatus:"activating"});const a=Vt.getState().getCurrentStep(),i=Vt.getState(),s=i.onboardingData,l=i.getSettings(),c=null!==(t=a?.fields?.find(e=>"email"===e.type)?.id)&&void 0!==t?t:null,d=null!==(n=a?.fields?.find(e=>"password"===e.type)?.id)&&void 0!==n?n:null,u=null!==(r=l?.find(e=>e.id===c)?.value)&&void 0!==r?r:"",f=null!==(o=l?.find(e=>e.id===d)?.value)&&void 0!==o?o:"";let p=!1,m=(0,_t.__)("Something went wrong. Please contact plugin support.","wp-optimize"),h=!1;if(u||(m=(0,_t.__)("Please enter your email address.","wp-optimize"),p=!0),f||(m=(0,_t.__)("Please enter your password.","wp-optimize"),p=!0,e({responseCode:"BADAUTHPWD"})),u||f||(m=(0,_t.__)("Please enter both email and password.","wp-optimize"),p=!0),p)return e({isUpdating:!1}),e({licenseStatus:"failed"}),e({responseSuccess:h,responseMessage:m}),!1;let g={action:"udmupdater_ajax",subaction:"connect",nonce:s.udmupdater_nonce,userid:s.udmupdater_muid,slug:s.udmupdater_slug,email:u,password:f},y=await(async(e=null)=>{const t=new URL(Bt());t.search="";const n=t.toString(),r={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams(e).toString()};try{const e=await fetch(n,r);if(!e.ok)return Promise.reject(new Error("AJAX request failed"));const t=await e.json();return Promise.resolve(t)}catch(e){return Promise.reject(new Error("AJAX request failed"))}})(g);try{y.hasOwnProperty("code")?(console.log("Code: "+y.code),e({responseCode:y.code}),"INVALID"==y.code?m=(0,_t.__)("The response from the remote site could not be decoded. (More information is recorded in the browser console).","wp-optimize"):"BADAUTH"==y.code?y.hasOwnProperty("data")?(m=y.msg,"invalidpassword"===y.data&&(e({responseCode:"BADAUTHPWD"}),m=(0,_t.__)("Oops, invalid password.","wp-optimize"))):m=(0,_t.__)("Your email address and password were not recognised.","wp-optimize"):"OK"==y.code?(m="",h=!0,e({licenseStatus:"activated"})):"ERR"==y.code&&(m=(0,_t.__)("Your login was accepted, but no available entitlement for this plugin was found.","wp-optimize")+" "+(0,_t.__)("Has your licence expired, or have you used all your available licences elsewhere?","wp-optimize"))):(m=(0,_t.__)("The response from the remote site could not be decoded. (More information is recorded in the browser console).","wp-optimize"),console.log("No response code found"),console.log(y))}catch(e){m=(0,_t.__)("The response from the remote site could not be decoded. (More information is recorded in the browser console).","wp-optimize"),console.log(e),console.log(y)}return e({isUpdating:!1}),e({responseSuccess:h,responseMessage:m}),h||e({licenseStatus:"failed"}),h},getPluginsStep:()=>Vt.getState().steps.find(e=>Array.isArray(e.fields)&&e.fields.some(e=>"plugins"===e.id)),updatePluginAction:(t,n)=>{e(e=>{const r=e.getPluginsStep();return r?{steps:e.steps.map(e=>e.id!==r.id?e:{...e,fields:e.fields.map(e=>"plugins"!==e.id?e:{...e,options:e.options.map(e=>e.id===t?{...e,action:n}:e)})})}:{}})},installPlugins:async()=>{e({isInstalling:!0});const t=Vt.getState(),n=t.getPluginsStep(),r=n?.fields?.find(e=>"plugins"===e.id),o=t.getValue("plugins");for(const n of o){const o=r?.options.find(e=>e.id===n);let a=o?.action||"download",i=null;for(;;){if("installed"===a||"upgrade-to-pro"===a||void 0===a||a===i){e({footerMessage:""});break}e({footerMessage:Ft(a,n)});let r={plugin:n},o=await zt(r,a);i=a,a=o?.data?.next_action,await t.updatePluginAction(n,a)}}e({isInstalling:!1})},setSteps:t=>e({steps:t}),getConditionalText:(e,t,{isUpdating:n=!1,isInstalling:r=!1,responseMessage:o="",responseSuccess:a=!1,licenseStatus:i="none"}={},s="")=>{const l=e[t+"_conditional"];if(!l)return s;if("license"===e.type&&(n||""!==o&&a||"none"!==i)){if("activated"==i&&l.hasOwnProperty("licenseActivated"))return l.licenseActivated;if(n&&l.hasOwnProperty("isUpdating"))return l.isUpdating}return r&&l.hasOwnProperty("isInstalling")?l.isInstalling:s},areAllInstalled:e=>!(!Array.isArray(e)||0===e.length)&&e.every(e=>"installed"===e?.action||"upgrade-to-pro"===e?.action)}),Gt?Lt(Gt):Lt),Ut=Vt;var Gt;function Zt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zt(e))&&(r&&(r+=" "),r+=t);return r}const Kt=Xt,Yt=(0,n.memo)((0,n.forwardRef)(({className:t},n)=>{const{onboardingData:r}=Ut();return(0,e.createElement)("div",{ref:n,className:Xt("default-style",t)},(0,e.createElement)("div",{className:"flex flex-row items-center space-x-2 px-4"},r.logo&&(0,e.createElement)("img",{src:r.logo,alt:"Logo",className:"h-8 w-auto"}),(0,e.createElement)("div",{className:"font-semibold text-2xl sm:text-4xl leading-snug sm:leading-7 text-center"},(0,_t.sprintf)((0,_t.__)("Welcome to %s!","wp-optimize"),r.plugin_name))))})),qt=(0,n.memo)((0,n.forwardRef)(({className:t,handleClose:n},r)=>{var o;const{onboardingData:a,isLastStep:i}=Ut();return(0,e.createElement)("div",{ref:r,className:Xt("default-style",t,i()?"opacity-0 pointer-events-none":"opacity-100")},(0,e.createElement)("button",{onClick:n,className:"text-gray-500 text-md underline"},(0,_t.__)(null!==(o=a.exit_wizard_text)&&void 0!==o?o:"Exit setup","wp-optimize")))})),Qt=({logo:t,logo_class:n,title:r,currentStepIndex:o,content:a,footer:i,triggerClassName:s,children:l,isOpen:c,onClose:d})=>(0,e.createElement)(gt,{open:c,onOpenChange:e=>{e||d?.()}},s&&(0,e.createElement)(yt,{className:s},l),(0,e.createElement)(vt,{container:document.getElementById("onboarding-modal-root")},(0,e.createElement)(bt,{className:"bg-blue-lightest fixed inset-0 z-[100001]"}),(0,e.createElement)(wt,{onOpenAutoFocus:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),onEscapeKeyDown:e=>e.preventDefault(),className:"fixed inset-0 z-[100002] py-[24px]"},(0,e.createElement)("div",{className:"flex h-full w-full flex-col justify-between overflow-y-auto custom-scrollbar"},(0,e.createElement)(Yt,{className:"shrink-0 mx-auto"}),(0,e.createElement)("div",{className:"w-full my-6 py-2 md:my-8 md:p-4"},(0,e.createElement)("div",{className:"mx-auto w-[94vw] sm:w-[70vw] max-w-[480px] p-6 rounded-2xl bg-white focus:outline-none data-[state=open]:animate-contentShow"},0===o&&(0,e.createElement)("div",{className:"mt-2"},t&&(0,e.createElement)("img",{src:t,alt:"Logo",className:`h-[54px] w-auto mx-auto ${n||""}`}),(0,e.createElement)(Ct,{className:"text-lg font-semibold text-black"},(0,e.createElement)(St,null,"Onboarding"))),(0,e.createElement)(xt,{className:"sr-only"},r," - ","string"==typeof a?a:"Onboarding step content"),(0,e.createElement)("div",{className:"text-base text-black mb-3"},a),i&&(0,e.createElement)("div",{className:"flex flex-row justify-end gap-2"},i))),(0,e.createElement)(qt,{className:"shrink-0 mx-auto w-full text-center",handleClose:d})))));class Jt extends n.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?(0,e.createElement)("div",{className:"p-4 bg-red-50 border border-red-200 rounded-md"},(0,e.createElement)("h2",{className:"text-red-800 font-semibold mb-2"},(0,_t.__)("Something went wrong","wp-optimize")),(0,e.createElement)("p",{className:"text-red-600"},(0,_t.__)("Please try refreshing the page or contact support if the problem persists.","wp-optimize"))):this.props.children}}const en=({children:t,onClick:n,link:r,btnVariant:o="secondary",disabled:a=!1,size:i="md",className:s="",...l})=>{const c=Xt("rounded-xl transition-all duration-200",{"bg-primary border border-primary text-white hover:bg-primary hover:[box-shadow:0_0_0_3px_rgba(43,129,51,0.5)] focus:[box-shadow:0_0_0_3px_rgba(43,129,51,0.5)]":"primary"===o,"bg-[var(--teamupdraft-orange-dark)] border border-[var(--teamupdraft-orange-dark)] text-white hover:bg-[#C4511C] focus:bg-[#C4511C]":"secondary"===o,"bg-gray-100 border border-gray-400 text-gray-600 hover:bg-gray-200 hover:text-gray hover:[box-shadow:0_0_0_3px_rgba(0,0,0,0.1)] focus:[box-shadow:0_0_0_3px_rgba(0,0,0,0.1)]":"tertiary"===o,"bg-red border border-red text-white hover:bg-red hover:[box-shadow:0_0_0_3px_rgba(198,39,59,0.5)] focus:[box-shadow:0_0_0_3px_rgba(198,39,59,0.5)]":"danger"===o,"bg-transparent text-[var(--teamupdraft-grey-600)] hover:text-[var(--teamupdraft-grey-900)]":"transparent"===o,"bg-transparent border border-[var(--teamupdraft-grey-100)] text-[var(--teamupdraft-grey-200)]":"transparent-disabled"===o},{"py-0.5 text-sm font-normal":"sm"===i,"py-1.5 text-base font-medium":"md"===i,"py-2 text-lg font-semibold":"lg"===i},{"opacity-50 cursor-not-allowed":a},s);return r?(0,e.createElement)("a",{href:r,target:"_blank",className:c},t):(0,e.createElement)("button",{type:l.type||"button",onClick:n,className:c,disabled:a,...l},t)};en.displayName="ButtonInput";const tn=en,nn=["top","right","bottom","left"],rn=Math.min,on=Math.max,an=Math.round,sn=Math.floor,ln=e=>({x:e,y:e}),cn={left:"right",right:"left",bottom:"top",top:"bottom"},dn={start:"end",end:"start"};function un(e,t,n){return on(e,rn(t,n))}function fn(e,t){return"function"==typeof e?e(t):e}function pn(e){return e.split("-")[0]}function mn(e){return e.split("-")[1]}function hn(e){return"x"===e?"y":"x"}function gn(e){return"y"===e?"height":"width"}const yn=new Set(["top","bottom"]);function vn(e){return yn.has(pn(e))?"y":"x"}function bn(e){return hn(vn(e))}function wn(e){return e.replace(/start|end/g,e=>dn[e])}const Cn=["left","right"],xn=["right","left"],kn=["top","bottom"],En=["bottom","top"];function Sn(e){return e.replace(/left|right|bottom|top/g,e=>cn[e])}function Nn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function An(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tn(e,t,n){let{reference:r,floating:o}=e;const a=vn(t),i=bn(t),s=gn(i),l=pn(t),c="y"===a,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(mn(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Rn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=fn(t,e),m=Nn(p),h=s[f?"floating"===u?"reference":"floating":u],g=An(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=An(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}function Mn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function On(e){return nn.some(t=>e[t]>=0)}const Ln=new Set(["left","top"]);function In(){return"undefined"!=typeof window}function Dn(e){return zn(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jn(e){var t;return null==(t=(zn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zn(e){return!!In()&&(e instanceof Node||e instanceof Pn(e).Node)}function Bn(e){return!!In()&&(e instanceof Element||e instanceof Pn(e).Element)}function $n(e){return!!In()&&(e instanceof HTMLElement||e instanceof Pn(e).HTMLElement)}function Hn(e){return!(!In()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot)}const Wn=new Set(["inline","contents"]);function Fn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Wn.has(o)}const Vn=new Set(["table","td","th"]);function Un(e){return Vn.has(Dn(e))}const Gn=[":popover-open",":modal"];function Zn(e){return Gn.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Xn=["transform","translate","scale","rotate","perspective"],Kn=["transform","translate","scale","rotate","perspective","filter"],Yn=["paint","layout","strict","content"];function qn(e){const t=Qn(),n=Bn(e)?tr(e):e;return Xn.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Kn.some(e=>(n.willChange||"").includes(e))||Yn.some(e=>(n.contain||"").includes(e))}function Qn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Jn=new Set(["html","body","#document"]);function er(e){return Jn.has(Dn(e))}function tr(e){return Pn(e).getComputedStyle(e)}function nr(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rr(e){if("html"===Dn(e))return e;const t=e.assignedSlot||e.parentNode||Hn(e)&&e.host||jn(e);return Hn(t)?t.host:t}function or(e){const t=rr(e);return er(t)?e.ownerDocument?e.ownerDocument.body:e.body:$n(t)&&Fn(t)?t:or(t)}function ar(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=or(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Pn(o);if(a){const e=ir(i);return t.concat(i,i.visualViewport||[],Fn(o)?o:[],e&&n?ar(e):[])}return t.concat(o,ar(o,[],n))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sr(e){const t=tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$n(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=an(n)!==a||an(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function lr(e){return Bn(e)?e:e.contextElement}function cr(e){const t=lr(e);if(!$n(t))return ln(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=sr(t);let i=(a?an(n.width):n.width)/r,s=(a?an(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const dr=ln(0);function ur(e){const t=Pn(e);return Qn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dr}function fr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=lr(e);let i=ln(1);t&&(r?Bn(r)&&(i=cr(r)):i=cr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Pn(e))&&t}(a,n,r)?ur(a):ln(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(a){const e=Pn(a),t=r&&Bn(r)?Pn(r):r;let n=e,o=ir(n);for(;o&&r&&t!==n;){const e=cr(o),t=o.getBoundingClientRect(),r=tr(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=i,n=Pn(o),o=ir(n)}}return An({width:d,height:u,x:l,y:c})}function pr(e,t){const n=nr(e).scrollLeft;return t?t.left+n:fr(jn(e)).left+n}function mr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pr(e,n),y:n.top+t.scrollTop}}const hr=new Set(["absolute","fixed"]);function gr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Pn(e),r=jn(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Qn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=pr(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=jn(e),n=nr(e),r=e.ownerDocument.body,o=on(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=on(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+pr(e);const s=-n.scrollTop;return"rtl"===tr(r).direction&&(i+=on(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(jn(e));else if(Bn(t))r=function(e,t){const n=fr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=$n(e)?cr(e):ln(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ur(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return An(r)}function yr(e,t){const n=rr(e);return!(n===t||!Bn(n)||er(n))&&("fixed"===tr(n).position||yr(n,t))}function vr(e,t,n){const r=$n(t),o=jn(t),a="fixed"===n,i=fr(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=ln(0);function c(){l.x=pr(o)}if(r||!r&&!a)if(("body"!==Dn(t)||Fn(o))&&(s=nr(t)),r){const e=fr(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const d=!o||r||a?ln(0):mr(o,s);return{x:i.left+s.scrollLeft-l.x-d.x,y:i.top+s.scrollTop-l.y-d.y,width:i.width,height:i.height}}function br(e){return"static"===tr(e).position}function wr(e,t){if(!$n(e)||"fixed"===tr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Cr(e,t){const n=Pn(e);if(Zn(e))return n;if(!$n(e)){let t=rr(e);for(;t&&!er(t);){if(Bn(t)&&!br(t))return t;t=rr(t)}return n}let r=wr(e,t);for(;r&&Un(r)&&br(r);)r=wr(r,t);return r&&er(r)&&br(r)&&!qn(r)?n:r||function(e){let t=rr(e);for(;$n(t)&&!er(t);){if(qn(t))return t;if(Zn(t))return null;t=rr(t)}return null}(e)||n}const xr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=jn(r),s=!!t&&Zn(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=ln(1);const d=ln(0),u=$n(r);if((u||!u&&!a)&&(("body"!==Dn(r)||Fn(i))&&(l=nr(r)),$n(r))){const e=fr(r);c=cr(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const f=!i||u||a?ln(0):mr(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:jn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a="clippingAncestors"===n?Zn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ar(e,[],!1).filter(e=>Bn(e)&&"body"!==Dn(e)),o=null;const a="fixed"===tr(e).position;let i=a?rr(e):e;for(;Bn(i)&&!er(i);){const t=tr(i),n=qn(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&hr.has(o.position)||Fn(i)&&!n&&yr(e,i))?r=r.filter(e=>e!==i):o=t,i=rr(i)}return t.set(e,r),r}(t,this._c):[].concat(n),i=[...a,r],s=i[0],l=i.reduce((e,n)=>{const r=gr(t,n,o);return e.top=on(r.top,e.top),e.right=rn(r.right,e.right),e.bottom=rn(r.bottom,e.bottom),e.left=on(r.left,e.left),e},gr(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Cr,getElementRects:async function(e){const t=this.getOffsetParent||Cr,n=this.getDimensions,r=await n(e.floating);return{reference:vr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=sr(e);return{width:t,height:n}},getScale:cr,isElement:Bn,isRTL:function(e){return"rtl"===tr(e).direction}};function kr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Er=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=pn(n),s=mn(n),l="y"===vn(n),c=Ln.has(i)?-1:1,d=a&&l?-1:1,u=fn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*d,y:f*c}:{x:f*c,y:p*d}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Sr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fn(e,t),c={x:n,y:r},d=await Rn(t,l),u=vn(pn(o)),f=hn(u);let p=c[f],m=c[u];if(a){const e="y"===f?"bottom":"right";p=un(p+d["y"===f?"top":"left"],p,p-d[e])}if(i){const e="y"===u?"bottom":"right";m=un(m+d["y"===u?"top":"left"],m,m-d[e])}const h=s.fn({...t,[f]:p,[u]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[u]:i}}}}}},_r=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=fn(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=pn(o),v=vn(s),b=pn(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=f||(b||!h?[Sn(s)]:function(e){const t=Sn(e);return[wn(e),t,wn(t)]}(s)),x="none"!==m;!f&&x&&C.push(...function(e,t,n,r){const o=mn(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?xn:Cn:t?Cn:xn;case"left":case"right":return t?kn:En;default:return[]}}(pn(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(wn)))),a}(s,h,m,w));const k=[s,...C],E=await Rn(t,g),S=[];let _=(null==(r=a.flip)?void 0:r.overflows)||[];if(d&&S.push(E[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=mn(e),o=bn(e),a=gn(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Sn(i)),[i,Sn(i)]}(o,i,w);S.push(E[e[0]],E[e[1]])}if(_=[..._,{placement:o,overflows:S}],!S.every(e=>e<=0)){var N,A;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=k[e];if(t&&("alignment"!==u||v===vn(t)||_.every(e=>vn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(A=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=_.filter(e=>{if(x){const t=vn(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Nr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=fn(e,t),d=await Rn(t,c),u=pn(o),f=mn(o),p="y"===vn(o),{width:m,height:h}=a.floating;let g,y;"top"===u||"bottom"===u?(g=u,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,g="end"===f?"top":"bottom");const v=h-d.top-d.bottom,b=m-d.left-d.right,w=rn(h-d[g],v),C=rn(m-d[y],b),x=!t.middlewareData.shift;let k=w,E=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=v),x&&!f){const e=on(d.left,0),t=on(d.right,0),n=on(d.top,0),r=on(d.bottom,0);p?E=m-2*(0!==e||0!==t?e+t:on(d.left,d.right)):k=h-2*(0!==n||0!==r?n+r:on(d.top,d.bottom))}await l({...t,availableWidth:E,availableHeight:k});const S=await i.getDimensions(s.floating);return m!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},Ar=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const e=Mn(await Rn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:On(e)}}}case"escaped":{const e=Mn(await Rn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:On(e)}}}default:return{}}}}},Tr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=fn(e,t)||{};if(null==c)return{};const u=Nn(d),f={x:n,y:r},p=bn(o),m=gn(p),h=await i.getDimensions(c),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],C=f[p]-a.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let k=x?x[b]:0;k&&await(null==i.isElement?void 0:i.isElement(x))||(k=s.floating[b]||a.floating[m]);const E=w/2-C/2,S=k/2-h[m]/2-1,_=rn(u[y],S),N=rn(u[v],S),A=_,T=k-h[m]-N,R=k/2-h[m]/2+E,M=un(A,R,T),O=!l.arrow&&null!=mn(o)&&R!==M&&a.reference[m]/2-(R<A?_:N)-h[m]/2<0,L=O?R<A?R-A:R-T:0;return{[p]:f[p]+L,data:{[p]:M,centerOffset:R-M-L,...O&&{alignmentOffset:L}},reset:O}}}),Rr=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=fn(e,t),d={x:n,y:r},u=vn(o),f=hn(u);let p=d[f],m=d[u];const h=fn(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var y,v;const e="y"===f?"width":"height",t=Ln.has(pn(o)),n=a.reference[u]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[u])||0)+(t?0:g.crossAxis),r=a.reference[u]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[u])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[u]:m}}}},Mr=(e,t,n)=>{const r=new Map,o={platform:xr,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Tn(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:a,fn:h}=s[n],{x:g,y,data:v,reset:b}=await h({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=y?y:u,p={...p,[a]:{...p[a],...v}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:d,y:u}=Tn(c,f,l))),n=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var Or="undefined"!=typeof document?e.useLayoutEffect:function(){};function Lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Lr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Lr(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ir(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dr(e,t){const n=Ir(e);return Math.round(t*n)/n}function Pr(t){const n=e.useRef(t);return Or(()=>{n.current=t}),n}const jr=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Tr({element:n.current,padding:r}).fn(t):{}:n?Tr({element:n,padding:r}).fn(t):{};var o}}),zr=(e,t)=>({...Er(e),options:[e,t]}),Br=(e,t)=>({...Sr(e),options:[e,t]}),$r=(e,t)=>({...Rr(e),options:[e,t]}),Hr=(e,t)=>({..._r(e),options:[e,t]}),Wr=(e,t)=>({...Nr(e),options:[e,t]}),Fr=(e,t)=>({...Ar(e),options:[e,t]}),Vr=(e,t)=>({...jr(e),options:[e,t]});var Ur=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,l.jsx)(x.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Ur.displayName="Arrow";var Gr=Ur;function Zr(t){const[n,r]=e.useState(void 0);return u(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}var Xr="Popper",[Kr,Yr]=c(Xr),[qr,Qr]=Kr(Xr),Jr=t=>{const{__scopePopper:n,children:r}=t,[o,a]=e.useState(null);return(0,l.jsx)(qr,{scope:n,anchor:o,onAnchorChange:a,children:r})};Jr.displayName=Xr;var eo="PopperAnchor",to=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...a}=t,i=Qr(eo,r),c=e.useRef(null),d=s(n,c),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||c.current,e!==u.current&&i.onAnchorChange(u.current)}),o?null:(0,l.jsx)(x.div,{...a,ref:d})});to.displayName=eo;var no="PopperContent",[ro,oo]=Kr(no),ao=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:i="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:b,...w}=t,C=Qr(no,r),[E,S]=e.useState(null),_=s(n,e=>S(e)),[N,A]=e.useState(null),T=Zr(N),R=T?.width??0,M=T?.height??0,O=o+("center"!==i?"-"+i:""),L="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},I=Array.isArray(p)?p:[p],D=I.length>0,P={padding:L,boundary:I.filter(co),altBoundary:D},{refs:j,floatingStyles:z,placement:B,isPositioned:$,middlewareData:H}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(o);Lr(p,o)||m(o);const[h,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),C=e.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),x=i||h,k=s||v,E=e.useRef(null),S=e.useRef(null),_=e.useRef(u),N=null!=c,A=Pr(c),T=Pr(a),R=Pr(d),M=e.useCallback(()=>{if(!E.current||!S.current)return;const e={placement:n,strategy:r,middleware:p};T.current&&(e.platform=T.current),Mr(E.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!Lr(_.current,t)&&(_.current=t,y.flushSync(()=>{f(t)}))})},[p,n,r,T,R]);Or(()=>{!1===d&&_.current.isPositioned&&(_.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[d]);const O=e.useRef(!1);Or(()=>(O.current=!0,()=>{O.current=!1}),[]),Or(()=>{if(x&&(E.current=x),k&&(S.current=k),x&&k){if(A.current)return A.current(x,k,M);M()}},[x,k,M,A,N]);const L=e.useMemo(()=>({reference:E,floating:S,setReference:w,setFloating:C}),[w,C]),I=e.useMemo(()=>({reference:x,floating:k}),[x,k]),D=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!I.floating)return e;const t=Dr(I.floating,u.x),n=Dr(I.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Ir(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,I.floating,u.x,u.y]);return e.useMemo(()=>({...u,update:M,refs:L,elements:I,floatingStyles:D}),[u,M,L,I,D])}({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=lr(e),d=o||a?[...c?ar(c):[],...ar(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const u=c&&s?function(e,t){let n,r=null;const o=jn(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-sn(u)+"px "+-sn(o.clientWidth-(d+f))+"px "+-sn(o.clientHeight-(u+p))+"px "+-sn(d)+"px",threshold:on(0,rn(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||kr(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let h=l?fr(e):null;return l&&function t(){const r=fr(e);h&&!kr(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}(...e,{animationFrame:"always"===v}),elements:{reference:C.anchor},middleware:[zr({mainAxis:a+M,alignmentAxis:c}),f&&Br({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?$r():void 0,...P}),f&&Hr({...P}),Wr({...P,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),N&&Vr({element:N,padding:d}),uo({arrowWidth:R,arrowHeight:M}),g&&Fr({strategy:"referenceHidden",...P})]}),[W,F]=fo(B),V=k(b);u(()=>{$&&V?.()},[$,V]);const U=H.arrow?.x,G=H.arrow?.y,Z=0!==H.arrow?.centerOffset,[X,K]=e.useState();return u(()=>{E&&K(window.getComputedStyle(E).zIndex)},[E]),(0,l.jsx)("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:$?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,l.jsx)(ro,{scope:r,placedSide:W,onArrowChange:A,arrowX:U,arrowY:G,shouldHideArrow:Z,children:(0,l.jsx)(x.div,{"data-side":W,"data-align":F,...w,ref:_,style:{...w.style,animation:$?void 0:"none"}})})})});ao.displayName=no;var io="PopperArrow",so={top:"bottom",right:"left",bottom:"top",left:"right"},lo=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=oo(io,n),a=so[o.placedSide];return(0,l.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(Gr,{...r,ref:t,style:{...r.style,display:"block"}})})});function co(e){return null!==e}lo.displayName=io;var uo=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=fo(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=a?d:`${u}px`,m=-s+"px"):"top"===l?(p=a?d:`${u}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=a?d:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=a?d:`${f}px`),{data:{x:p,y:m}}}});function fo(e){const[t,n="center"]=e.split("-");return[t,n]}var po=Jr,mo=to,ho=ao,go=lo,[yo,vo]=c("Tooltip",[Yr]),bo=Yr(),wo="TooltipProvider",Co=700,xo="tooltip.open",[ko,Eo]=yo(wo),So=t=>{const{__scopeTooltip:n,delayDuration:r=Co,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,s=e.useRef(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect(()=>{const e=d.current;return()=>window.clearTimeout(e)},[]),(0,l.jsx)(ko,{scope:n,isOpenDelayedRef:s,delayDuration:r,onOpen:e.useCallback(()=>{window.clearTimeout(d.current),s.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback(e=>{c.current=e},[]),disableHoverableContent:a,children:i})};So.displayName=wo;var _o="Tooltip",[No,Ao]=yo(_o),To=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:a,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=t,d=Eo(_o,t.__scopeTooltip),u=bo(n),[f,p]=e.useState(null),h=m(),y=e.useRef(0),v=s??d.disableHoverableContent,b=c??d.delayDuration,w=e.useRef(!1),[C,x]=g({prop:o,defaultProp:a??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(xo))):d.onClose(),i?.(e)},caller:_o}),k=e.useMemo(()=>C?w.current?"delayed-open":"instant-open":"closed",[C]),E=e.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w.current=!1,x(!0)},[x]),S=e.useCallback(()=>{window.clearTimeout(y.current),y.current=0,x(!1)},[x]),_=e.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{w.current=!0,x(!0),y.current=0},b)},[b,x]);return e.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,l.jsx)(po,{...u,children:(0,l.jsx)(No,{scope:n,contentId:h,open:C,stateAttribute:k,trigger:f,onTriggerChange:p,onTriggerEnter:e.useCallback(()=>{d.isOpenDelayedRef.current?_():E()},[d.isOpenDelayedRef,_,E]),onTriggerLeave:e.useCallback(()=>{v?S():(window.clearTimeout(y.current),y.current=0)},[S,v]),onOpen:E,onClose:S,disableHoverableContent:v,children:r})})};To.displayName=_o;var Ro="TooltipTrigger",Mo=e.forwardRef((t,n)=>{const{__scopeTooltip:o,...a}=t,i=Ao(Ro,o),c=Eo(Ro,o),d=bo(o),u=s(n,e.useRef(null),i.onTriggerChange),f=e.useRef(!1),p=e.useRef(!1),m=e.useCallback(()=>f.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,l.jsx)(mo,{asChild:!0,...d,children:(0,l.jsx)(x.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:u,onPointerMove:r(t.onPointerMove,e=>{"touch"!==e.pointerType&&(p.current||c.isPointerInTransitRef.current||(i.onTriggerEnter(),p.current=!0))}),onPointerLeave:r(t.onPointerLeave,()=>{i.onTriggerLeave(),p.current=!1}),onPointerDown:r(t.onPointerDown,()=>{i.open&&i.onClose(),f.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:r(t.onFocus,()=>{f.current||i.onOpen()}),onBlur:r(t.onBlur,i.onClose),onClick:r(t.onClick,i.onClose)})})});Mo.displayName=Ro;var Oo="TooltipPortal",[Lo,Io]=yo(Oo,{forceMount:void 0}),Do=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Ao(Oo,t);return(0,l.jsx)(Lo,{scope:t,forceMount:n,children:(0,l.jsx)(W,{present:n||a.open,children:(0,l.jsx)(H,{asChild:!0,container:o,children:r})})})};Do.displayName=Oo;var Po="TooltipContent",jo=e.forwardRef((e,t)=>{const n=Io(Po,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Ao(Po,e.__scopeTooltip);return(0,l.jsx)(W,{present:r||i.open,children:i.disableHoverableContent?(0,l.jsx)(Wo,{side:o,...a,ref:t}):(0,l.jsx)(zo,{side:o,...a,ref:t})})}),zo=e.forwardRef((t,n)=>{const r=Ao(Po,t.__scopeTooltip),o=Eo(Po,t.__scopeTooltip),a=e.useRef(null),i=s(n,a),[c,d]=e.useState(null),{trigger:u,onClose:f}=r,p=a.current,{onPointerInTransitChange:m}=o,h=e.useCallback(()=>{d(null),m(!1)},[m]),g=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);d(a),m(!0)},[m]);return e.useEffect(()=>()=>h(),[h]),e.useEffect(()=>{if(u&&p){const e=e=>g(e,p),t=e=>g(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,g,h]),e.useEffect(()=>{if(c){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||p?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,d=s.x,u=s.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}(n,c);r?h():o&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,c,f,h]),(0,l.jsx)(Wo,{...t,ref:i})}),[Bo,$o]=yo(_o,{isInside:!1}),Ho=function(e){const t=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=w,t}("TooltipContent"),Wo=e.forwardRef((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=t,d=Ao(Po,r),u=bo(r),{onClose:f}=d;return e.useEffect(()=>(document.addEventListener(xo,f),()=>document.removeEventListener(xo,f)),[f]),e.useEffect(()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,l.jsx)(N,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,l.jsxs)(ho,{"data-state":d.stateAttribute,...u,...c,ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,l.jsx)(Ho,{children:o}),(0,l.jsx)(Bo,{scope:r,isInside:!0,children:(0,l.jsx)(St,{id:d.contentId,role:"tooltip",children:a||o})})]})})});jo.displayName=Po;var Fo="TooltipArrow",Vo=e.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bo(n);return $o(Fo,n).isInside?null:(0,l.jsx)(go,{...o,...r,ref:t})});Vo.displayName=Fo;var Uo=So,Go=To,Zo=Mo,Xo=Do,Ko=jo,Yo=Vo;const qo=(0,e.createContext)(null),Qo=({container:t,children:n})=>(0,e.createElement)(qo.Provider,{value:t},n);var Jo=i(74);const ea=({html:t})=>(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:t}}),ta=(t,n)=>{if(/<[^>]+>/.test(t)){const a=(r=t,(o=n)?o(r):Jo.sanitize(r,{ADD_ATTR:["target","rel","class","style"]}));return(0,e.createElement)(ea,{html:a})}var r,o;return(0,e.createElement)(e.Fragment,null,t)},na=({children:t,tooltip:r,delayDuration:o=400,triggerClassName:a})=>{var i,s,l;const c=null!==(i=(0,e.useContext)(qo))&&void 0!==i?i:void 0,[d,u]=(0,n.useState)(!1),f=null!==(s=r.side)&&void 0!==s?s:"right",p=null!==(l=r.align)&&void 0!==l?l:"center";return(0,e.createElement)(Uo,{delayDuration:o},(0,e.createElement)(Go,{open:d,onOpenChange:u},(0,e.createElement)(Zo,{asChild:!0},(0,e.createElement)("div",{onClick:e=>{e.preventDefault(),u(e=>!e)},className:Xt("w-fit",a)},t)),(0,e.createElement)(Xo,{container:c},(0,e.createElement)(Ko,{className:"burst-tooltip-content bg-[var(--teamupdraft-grey-900)] text-white max-w-[195px] rounded-md px-3 py-2 gap-1 z-10",side:f,align:p,sideOffset:5},(()=>{const t=r.heading,n=r.text;return(0,e.createElement)("div",{className:"flex flex-col gap-1"},t&&("string"==typeof t?(0,e.createElement)("h4",{className:"text-lg font-medium"},ta(t)):(0,e.createElement)("div",{className:"flex flex-row items-center gap-1"},(0,e.createElement)("h4",{className:"text-lg font-medium"},t.text),t.icon&&(0,e.createElement)(iu,{name:t.icon,color:"var(--teamupdraft-orange-dark)",size:14,className:"ml-1"}))),"string"==typeof n?(0,e.createElement)("p",{className:"text-md"},ta(n)):n&&(0,e.createElement)("p",{className:"text-md"},n))})(),(0,e.createElement)(Yo,{style:{fill:"var(--teamupdraft-grey-900)"},className:"burst-tooltip-arrow"})))))},ra={"arrow-right":({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M9 18l6-6-6-6"})),"arrow-left":({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M15 18l-6-6 6-6"})),database:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1.5,...a})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,xmlns:"http://www.w3.org/2000/svg",...a},(0,e.createElement)("path",{d:"M12 21C9.48333 21 7.35417 20.6125 5.6125 19.8375C3.87083 19.0625 3 18.1167 3 17V7C3 5.9 3.87917 4.95833 5.6375 4.175C7.39583 3.39167 9.51667 3 12 3C14.4833 3 16.6042 3.39167 18.3625 4.175C20.1208 4.95833 21 5.9 21 7V17C21 18.1167 20.1292 19.0625 18.3875 19.8375C16.6458 20.6125 14.5167 21 12 21ZM12 9.025C13.4833 9.025 14.975 8.8125 16.475 8.3875C17.975 7.9625 18.8167 7.50833 19 7.025C18.8167 6.54167 17.9792 6.08333 16.4875 5.65C14.9958 5.21667 13.5 5 12 5C10.4833 5 8.99583 5.2125 7.5375 5.6375C6.07917 6.0625 5.23333 6.525 5 7.025C5.23333 7.525 6.07917 7.98333 7.5375 8.4C8.99583 8.81667 10.4833 9.025 12 9.025ZM12 14C12.7 14 13.375 13.9667 14.025 13.9C14.675 13.8333 15.2958 13.7375 15.8875 13.6125C16.4792 13.4875 17.0375 13.3333 17.5625 13.15C18.0875 12.9667 18.5667 12.7583 19 12.525V9.525C18.5667 9.75833 18.0875 9.96667 17.5625 10.15C17.0375 10.3333 16.4792 10.4875 15.8875 10.6125C15.2958 10.7375 14.675 10.8333 14.025 10.9C13.375 10.9667 12.7 11 12 11C11.3 11 10.6167 10.9667 9.95 10.9C9.28333 10.8333 8.65417 10.7375 8.0625 10.6125C7.47083 10.4875 6.91667 10.3333 6.4 10.15C5.88333 9.96667 5.41667 9.75833 5 9.525V12.525C5.41667 12.7583 5.88333 12.9667 6.4 13.15C6.91667 13.3333 7.47083 13.4875 8.0625 13.6125C8.65417 13.7375 9.28333 13.8333 9.95 13.9C10.6167 13.9667 11.3 14 12 14ZM12 19C12.7667 19 13.5458 18.9417 14.3375 18.825C15.1292 18.7083 15.8583 18.5542 16.525 18.3625C17.1917 18.1708 17.75 17.9542 18.2 17.7125C18.65 17.4708 18.9167 17.225 19 16.975V14.525C18.5667 14.7583 18.0875 14.9667 17.5625 15.15C17.0375 15.3333 16.4792 15.4875 15.8875 15.6125C15.2958 15.7375 14.675 15.8333 14.025 15.9C13.375 15.9667 12.7 16 12 16C11.3 16 10.6167 15.9667 9.95 15.9C9.28333 15.8333 8.65417 15.7375 8.0625 15.6125C7.47083 15.4875 6.91667 15.3333 6.4 15.15C5.88333 14.9667 5.41667 14.7583 5 14.525V17C5.08333 17.25 5.34583 17.4917 5.7875 17.725C6.22917 17.9583 6.78333 18.1708 7.45 18.3625C8.11667 18.5542 8.85 18.7083 9.65 18.825C10.45 18.9417 11.2333 19 12 19Z",fill:n,stroke:r,strokeWidth:o})),compress:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M5 14C4.71667 14 4.47917 13.9042 4.2875 13.7125C4.09583 13.5208 4 13.2833 4 13C4 12.7167 4.09583 12.4792 4.2875 12.2875C4.47917 12.0958 4.71667 12 5 12H19C19.2833 12 19.5208 12.0958 19.7125 12.2875C19.9042 12.4792 20 12.7167 20 13C20 13.2833 19.9042 13.5208 19.7125 13.7125C19.5208 13.9042 19.2833 14 19 14H5ZM5 11C4.71667 11 4.47917 10.9042 4.2875 10.7125C4.09583 10.5208 4 10.2833 4 10C4 9.71667 4.09583 9.47917 4.2875 9.2875C4.47917 9.09583 4.71667 9 5 9H19C19.2833 9 19.5208 9.09583 19.7125 9.2875C19.9042 9.47917 20 9.71667 20 10C20 10.2833 19.9042 10.5208 19.7125 10.7125C19.5208 10.9042 19.2833 11 19 11H5ZM12 22C11.7167 22 11.4792 21.9042 11.2875 21.7125C11.0958 21.5208 11 21.2833 11 21V18.8L10.1 19.7C9.91667 19.8833 9.68333 19.975 9.4 19.975C9.11667 19.975 8.88333 19.8833 8.7 19.7C8.51667 19.5167 8.425 19.2833 8.425 19C8.425 18.7167 8.51667 18.4833 8.7 18.3L11.3 15.7C11.4 15.6 11.5083 15.5292 11.625 15.4875C11.7417 15.4458 11.8667 15.425 12 15.425C12.1333 15.425 12.2583 15.4458 12.375 15.4875C12.4917 15.5292 12.6 15.6 12.7 15.7L15.3 18.3C15.4833 18.4833 15.5792 18.7125 15.5875 18.9875C15.5958 19.2625 15.5 19.5 15.3 19.7C15.1167 19.8833 14.8875 19.9792 14.6125 19.9875C14.3375 19.9958 14.1 19.9083 13.9 19.725L13 18.85V21C13 21.2833 12.9042 21.5208 12.7125 21.7125C12.5208 21.9042 12.2833 22 12 22ZM12 7.575C11.8667 7.575 11.7417 7.55417 11.625 7.5125C11.5083 7.47083 11.4 7.4 11.3 7.3L8.7 4.7C8.51667 4.51667 8.425 4.28333 8.425 4C8.425 3.71667 8.51667 3.48333 8.7 3.3C8.88333 3.11667 9.11667 3.025 9.4 3.025C9.68333 3.025 9.91667 3.11667 10.1 3.3L11 4.2V2C11 1.71667 11.0958 1.47917 11.2875 1.2875C11.4792 1.09583 11.7167 1 12 1C12.2833 1 12.5208 1.09583 12.7125 1.2875C12.9042 1.47917 13 1.71667 13 2V4.2L13.9 3.3C14.0833 3.11667 14.3167 3.025 14.6 3.025C14.8833 3.025 15.1167 3.11667 15.3 3.3C15.4833 3.48333 15.575 3.71667 15.575 4C15.575 4.28333 15.4833 4.51667 15.3 4.7L12.7 7.3C12.6 7.4 12.4917 7.47083 12.375 7.5125C12.2583 7.55417 12.1333 7.575 12 7.575Z",fill:n,stroke:r,strokeWidth:o})),cache:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M12 10C11.7167 10 11.4792 10.0958 11.2875 10.2875C11.0958 10.4792 11 10.7167 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88333 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.5 17.5 11.7333 17.6 12 17.6C12.2667 17.6 12.5 17.5 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.9042 10.4792 12.7125 10.2875C12.5208 10.0958 12.2833 10 12 10ZM5 8V19H19V8H5ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V6.525C3 6.29167 3.0375 6.06667 3.1125 5.85C3.1875 5.63333 3.3 5.43333 3.45 5.25L4.7 3.725C4.88333 3.49167 5.1125 3.3125 5.3875 3.1875C5.6625 3.0625 5.95 3 6.25 3H17.75C18.05 3 18.3375 3.0625 18.6125 3.1875C18.8875 3.3125 19.1167 3.49167 19.3 3.725L20.55 5.25C20.7 5.43333 20.8125 5.63333 20.8875 5.85C20.9625 6.06667 21 6.29167 21 6.525V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5.4 6H18.6L17.75 5H6.25L5.4 6Z",fill:n,stroke:r,strokeWidth:o})),minify:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M9.9998 15.3998L4.0998 21.2998C3.91647 21.4831 3.68314 21.5748 3.3998 21.5748C3.11647 21.5748 2.88314 21.4831 2.6998 21.2998C2.51647 21.1165 2.4248 20.8831 2.4248 20.5998C2.4248 20.3165 2.51647 20.0831 2.6998 19.8998L8.5998 13.9998H4.9998C4.71647 13.9998 4.47897 13.904 4.2873 13.7123C4.09564 13.5206 3.9998 13.2831 3.9998 12.9998C3.9998 12.7165 4.09564 12.479 4.2873 12.2873C4.47897 12.0956 4.71647 11.9998 4.9998 11.9998H10.9998C11.2831 11.9998 11.5206 12.0956 11.7123 12.2873C11.904 12.479 11.9998 12.7165 11.9998 12.9998V18.9998C11.9998 19.2831 11.904 19.5206 11.7123 19.7123C11.5206 19.904 11.2831 19.9998 10.9998 19.9998C10.7165 19.9998 10.479 19.904 10.2873 19.7123C10.0956 19.5206 9.9998 19.2831 9.9998 18.9998V15.3998ZM15.3998 9.9998H18.9998C19.2831 9.9998 19.5206 10.0956 19.7123 10.2873C19.904 10.479 19.9998 10.7165 19.9998 10.9998C19.9998 11.2831 19.904 11.5206 19.7123 11.7123C19.5206 11.904 19.2831 11.9998 18.9998 11.9998H12.9998C12.7165 11.9998 12.479 11.904 12.2873 11.7123C12.0956 11.5206 11.9998 11.2831 11.9998 10.9998V4.9998C11.9998 4.71647 12.0956 4.47897 12.2873 4.2873C12.479 4.09564 12.7165 3.9998 12.9998 3.9998C13.2831 3.9998 13.5206 4.09564 13.7123 4.2873C13.904 4.47897 13.9998 4.71647 13.9998 4.9998V8.5998L19.8998 2.6998C20.0831 2.51647 20.3165 2.4248 20.5998 2.4248C20.8831 2.4248 21.1165 2.51647 21.2998 2.6998C21.4831 2.88314 21.5748 3.11647 21.5748 3.3998C21.5748 3.68314 21.4831 3.91647 21.2998 4.0998L15.3998 9.9998Z",fill:n,stroke:r,strokeWidth:o})),"magic-wand":({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.63498 7.07976C8.25225 6.89008 7.80285 6.89008 7.42007 7.07976C7.21559 7.18109 6.99692 7.40066 6.82417 7.57418C6.65066 7.7469 6.43109 7.9656 6.32976 8.17005C6.14008 8.55285 6.14008 9.00225 6.32976 9.38498C6.43109 9.5895 6.60609 9.76373 6.7796 9.93645L6.82417 9.98093L13.3136 16.4704C13.4863 16.6439 13.6605 16.8189 13.865 16.9202C14.2478 17.1099 14.6972 17.1099 15.08 16.9202C15.2844 16.8189 15.5031 16.5994 15.6758 16.4258C15.8493 16.2531 16.0689 16.0344 16.1702 15.83C16.3599 15.4472 16.3599 14.9978 16.1702 14.615C16.0689 14.4105 15.8939 14.2363 15.7204 14.0636L9.23093 7.57418L9.18645 7.52963C9.01373 7.35609 8.8395 7.18109 8.63498 7.07976ZM7.62068 8.36993C7.73498 8.25563 7.80435 8.18655 7.85948 8.13735C7.9146 8.07975 8.05943 7.99913 8.19765 8.13735C8.2527 8.18655 8.32208 8.25563 8.43645 8.36993L9.64988 9.58343L8.83418 10.3992L7.62068 9.1857C7.50638 9.0714 7.43729 9.00203 7.3881 8.9469C7.25118 8.80995 7.33105 8.66438 7.3881 8.60873C7.43729 8.55368 7.50638 8.48423 7.62068 8.36993Z",fill:n}),(0,e.createElement)("path",{d:"M12.75 0.9375C12.9853 0.9375 13.1959 1.08405 13.2775 1.30479L13.4986 1.90225C13.8064 2.73393 13.9111 2.98225 14.0894 3.16059C14.2678 3.33892 14.5161 3.44363 15.3478 3.75138L15.9452 3.97246C16.1659 4.05414 16.3125 4.26463 16.3125 4.5C16.3125 4.73537 16.1659 4.94586 15.9452 5.02754L15.3478 5.24862C14.5161 5.55638 14.2678 5.66108 14.0894 5.83941C13.9111 6.01775 13.8064 6.26607 13.4986 7.09776L13.2775 7.69522C13.1959 7.91595 12.9853 8.0625 12.75 8.0625C12.5147 8.0625 12.3041 7.91595 12.2225 7.69522L12.0014 7.09776C11.6936 6.26607 11.5889 6.01775 11.4106 5.83941C11.2322 5.66108 10.9839 5.55638 10.1522 5.24862L9.55478 5.02754C9.33405 4.94586 9.1875 4.73537 9.1875 4.5C9.1875 4.26463 9.33405 4.05414 9.55478 3.97246L10.1522 3.75138C10.9839 3.44363 11.2322 3.33892 11.4106 3.16059C11.5889 2.98225 11.6936 2.73393 12.0014 1.90225L12.2225 1.30479C12.3041 1.08405 12.5147 0.9375 12.75 0.9375Z",fill:n}),(0,e.createElement)("path",{d:"M4.5 2.4375C4.73537 2.4375 4.94586 2.58405 5.02754 2.80479L5.19335 3.25288C5.42863 3.88871 5.4971 4.03911 5.604 4.14601C5.71089 4.2529 5.86129 4.32137 6.49712 4.55665L6.94521 4.72246C7.16595 4.80414 7.3125 5.01463 7.3125 5.25C7.3125 5.48537 7.16595 5.69586 6.94521 5.77754L6.49712 5.94335C5.86129 6.17863 5.71089 6.2471 5.604 6.354C5.4971 6.46089 5.42863 6.61129 5.19335 7.24712L5.02754 7.69522C4.94586 7.91595 4.73537 8.0625 4.5 8.0625C4.26463 8.0625 4.05414 7.91595 3.97246 7.69522L3.80665 7.24712C3.57137 6.61129 3.5029 6.46089 3.39601 6.354C3.28911 6.2471 3.13871 6.17863 2.50288 5.94335L2.05479 5.77754C1.83405 5.69586 1.6875 5.48537 1.6875 5.25C1.6875 5.01463 1.83405 4.80414 2.05479 4.72246L2.50288 4.55665C3.13871 4.32137 3.28911 4.2529 3.39601 4.146C3.5029 4.03911 3.57137 3.88871 3.80665 3.25288L3.97246 2.80479C4.05414 2.58405 4.26463 2.4375 4.5 2.4375Z",fill:n})),license:({size:t=48,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 48 48",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M10 40C8.9 40 7.95833 39.6083 7.175 38.825C6.39167 38.0417 6 37.1 6 36V34.4C6 33.2667 6.29167 32.225 6.875 31.275C7.45833 30.325 8.23333 29.6 9.2 29.1C11.2667 28.0667 13.3667 27.2917 15.5 26.775C17.6333 26.2583 19.8 26 22 26C22.4667 26 22.9333 26.0083 23.4 26.025C23.8667 26.0417 24.3333 26.0833 24.8 26.15C25.1667 26.1833 25.4583 26.325 25.675 26.575C25.8917 26.825 26 27.1333 26 27.5C26.0667 29.0667 26.45 30.5417 27.15 31.925C27.85 33.3083 28.7833 34.4833 29.95 35.45C30.1833 35.6167 30.3667 35.825 30.5 36.075C30.6333 36.325 30.7 36.6 30.7 36.9V38C30.7 38.5667 30.5083 39.0417 30.125 39.425C29.7417 39.8083 29.2667 40 28.7 40H10ZM22 24C19.8 24 17.9167 23.2167 16.35 21.65C14.7833 20.0833 14 18.2 14 16C14 13.8 14.7833 11.9167 16.35 10.35C17.9167 8.78333 19.8 8 22 8C24.2 8 26.0833 8.78333 27.65 10.35C29.2167 11.9167 30 13.8 30 16C30 18.2 29.2167 20.0833 27.65 21.65C26.0833 23.2167 24.2 24 22 24ZM37 28C37.5667 28 38.0417 27.8083 38.425 27.425C38.8083 27.0417 39 26.5667 39 26C39 25.4333 38.8083 24.9583 38.425 24.575C38.0417 24.1917 37.5667 24 37 24C36.4333 24 35.9583 24.1917 35.575 24.575C35.1917 24.9583 35 25.4333 35 26C35 26.5667 35.1917 27.0417 35.575 27.425C35.9583 27.8083 36.4333 28 37 28ZM37.3 45.3L35.3 43.3C35.2333 43.2333 35.1333 43 35 42.6V33.7C33.5333 33.2667 32.3333 32.4417 31.4 31.225C30.4667 30.0083 30 28.6 30 27C30 25.0667 30.6833 23.4167 32.05 22.05C33.4167 20.6833 35.0667 20 37 20C38.9333 20 40.5833 20.6833 41.95 22.05C43.3167 23.4167 44 25.0667 44 27C44 28.5 43.575 29.8333 42.725 31C41.875 32.1667 40.8 33 39.5 33.5L41.3 35.3C41.5 35.5 41.6 35.7333 41.6 36C41.6 36.2667 41.5 36.5 41.3 36.7L39.7 38.3C39.5 38.5 39.4 38.7333 39.4 39C39.4 39.2667 39.5 39.5 39.7 39.7L41.3 41.3C41.5 41.5 41.6 41.7333 41.6 42C41.6 42.2667 41.5 42.5 41.3 42.7L38.7 45.3C38.5 45.5 38.2667 45.6 38 45.6C37.7333 45.6 37.5 45.5 37.3 45.3Z",fill:n,stroke:r,strokeWidth:o})),settings:({size:t=48,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 48 48",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M21.6509 44C20.7509 44 19.9759 43.7 19.3259 43.1C18.6759 42.5 18.2843 41.7667 18.1509 40.9L17.7009 37.6C17.2676 37.4333 16.8593 37.2333 16.4759 37C16.0926 36.7667 15.7176 36.5167 15.3509 36.25L12.2509 37.55C11.4176 37.9167 10.5843 37.95 9.75094 37.65C8.9176 37.35 8.2676 36.8167 7.80094 36.05L5.45094 31.95C4.98427 31.1833 4.85094 30.3667 5.05094 29.5C5.25094 28.6333 5.70094 27.9167 6.40094 27.35L9.05094 25.35C9.0176 25.1167 9.00094 24.8917 9.00094 24.675V23.325C9.00094 23.1083 9.0176 22.8833 9.05094 22.65L6.40094 20.65C5.70094 20.0833 5.25094 19.3667 5.05094 18.5C4.85094 17.6333 4.98427 16.8167 5.45094 16.05L7.80094 11.95C8.2676 11.1833 8.9176 10.65 9.75094 10.35C10.5843 10.05 11.4176 10.0833 12.2509 10.45L15.3509 11.75C15.7176 11.4833 16.1009 11.2333 16.5009 11C16.9009 10.7667 17.3009 10.5667 17.7009 10.4L18.1509 7.1C18.2843 6.23333 18.6759 5.5 19.3259 4.9C19.9759 4.3 20.7509 4 21.6509 4H26.3509C27.2509 4 28.0259 4.3 28.6759 4.9C29.3259 5.5 29.7176 6.23333 29.8509 7.1L30.3009 10.4C30.7343 10.5667 31.1426 10.7667 31.5259 11C31.9093 11.2333 32.2843 11.4833 32.6509 11.75L35.7509 10.45C36.5843 10.0833 37.4176 10.05 38.2509 10.35C39.0843 10.65 39.7343 11.1833 40.2009 11.95L42.5509 16.05C43.0176 16.8167 43.1509 17.6333 42.9509 18.5C42.7509 19.3667 42.3009 20.0833 41.6009 20.65L38.9509 22.65C38.9843 22.8833 39.0009 23.1083 39.0009 23.325V24.675C39.0009 24.8917 38.9676 25.1167 38.9009 25.35L41.5509 27.35C42.2509 27.9167 42.7009 28.6333 42.9009 29.5C43.1009 30.3667 42.9676 31.1833 42.5009 31.95L40.1009 36.05C39.6343 36.8167 38.9843 37.35 38.1509 37.65C37.3176 37.95 36.4843 37.9167 35.6509 37.55L32.6509 36.25C32.2843 36.5167 31.9009 36.7667 31.5009 37C31.1009 37.2333 30.7009 37.4333 30.3009 37.6L29.8509 40.9C29.7176 41.7667 29.3259 42.5 28.6759 43.1C28.0259 43.7 27.2509 44 26.3509 44H21.6509ZM22.0009 40H25.9509L26.6509 34.7C27.6843 34.4333 28.6426 34.0417 29.5259 33.525C30.4093 33.0083 31.2176 32.3833 31.9509 31.65L36.9009 33.7L38.8509 30.3L34.5509 27.05C34.7176 26.5833 34.8343 26.0917 34.9009 25.575C34.9676 25.0583 35.0009 24.5333 35.0009 24C35.0009 23.4667 34.9676 22.9417 34.9009 22.425C34.8343 21.9083 34.7176 21.4167 34.5509 20.95L38.8509 17.7L36.9009 14.3L31.9509 16.4C31.2176 15.6333 30.4093 14.9917 29.5259 14.475C28.6426 13.9583 27.6843 13.5667 26.6509 13.3L26.0009 8H22.0509L21.3509 13.3C20.3176 13.5667 19.3593 13.9583 18.4759 14.475C17.5926 14.9917 16.7843 15.6167 16.0509 16.35L11.1009 14.3L9.15094 17.7L13.4509 20.9C13.2843 21.4 13.1676 21.9 13.1009 22.4C13.0343 22.9 13.0009 23.4333 13.0009 24C13.0009 24.5333 13.0343 25.05 13.1009 25.55C13.1676 26.05 13.2843 26.55 13.4509 27.05L9.15094 30.3L11.1009 33.7L16.0509 31.6C16.7843 32.3667 17.5926 33.0083 18.4759 33.525C19.3593 34.0417 20.3176 34.4333 21.3509 34.7L22.0009 40ZM24.1009 31C26.0343 31 27.6843 30.3167 29.0509 28.95C30.4176 27.5833 31.1009 25.9333 31.1009 24C31.1009 22.0667 30.4176 20.4167 29.0509 19.05C27.6843 17.6833 26.0343 17 24.1009 17C22.1343 17 20.4759 17.6833 19.1259 19.05C17.7759 20.4167 17.1009 22.0667 17.1009 24C17.1009 25.9333 17.7759 27.5833 19.1259 28.95C20.4759 30.3167 22.1343 31 24.1009 31Z",fill:n,stroke:r,strokeWidth:o})),plugin:({size:t=48,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 48 48",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M23 38H25V34.3L32 27.3V18H16V27.3L23 34.3V38ZM19 40V36L13.15 30.15C12.7833 29.7833 12.5 29.3583 12.3 28.875C12.1 28.3917 12 27.8833 12 27.35V18C12 16.9 12.3917 15.9583 13.175 15.175C13.9583 14.3917 14.9 14 16 14H18L16 16V8C16 7.43333 16.1917 6.95833 16.575 6.575C16.9583 6.19167 17.4333 6 18 6C18.5667 6 19.0417 6.19167 19.425 6.575C19.8083 6.95833 20 7.43333 20 8V14H28V8C28 7.43333 28.1917 6.95833 28.575 6.575C28.9583 6.19167 29.4333 6 30 6C30.5667 6 31.0417 6.19167 31.425 6.575C31.8083 6.95833 32 7.43333 32 8V16L30 14H32C33.1 14 34.0417 14.3917 34.825 15.175C35.6083 15.9583 36 16.9 36 18V27.35C36 27.8833 35.9 28.3917 35.7 28.875C35.5 29.3583 35.2167 29.7833 34.85 30.15L29 36V40C29 40.5667 28.8083 41.0417 28.425 41.425C28.0417 41.8083 27.5667 42 27 42H21C20.4333 42 19.9583 41.8083 19.575 41.425C19.1917 41.0417 19 40.5667 19 40Z",fill:n,stroke:r,strokeWidth:o})),"loading-circle":({size:t=18,fill:n="none",stroke:r="none",strokeWidth:o=2,viewBox:a="0 0 18 18",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M9 16.5C7.975 16.5 7.00625 16.3031 6.09375 15.9094C5.18125 15.5156 4.38438 14.9781 3.70312 14.2969C3.02188 13.6156 2.48438 12.8188 2.09063 11.9062C1.69688 10.9938 1.5 10.025 1.5 9C1.5 7.9625 1.69688 6.99063 2.09063 6.08438C2.48438 5.17813 3.02188 4.38438 3.70312 3.70312C4.38438 3.02188 5.18125 2.48438 6.09375 2.09063C7.00625 1.69688 7.975 1.5 9 1.5C9.2125 1.5 9.39063 1.57188 9.53438 1.71563C9.67813 1.85938 9.75 2.0375 9.75 2.25C9.75 2.4625 9.67813 2.64062 9.53438 2.78438C9.39063 2.92813 9.2125 3 9 3C7.3375 3 5.92188 3.58438 4.75313 4.75313C3.58438 5.92188 3 7.3375 3 9C3 10.6625 3.58438 12.0781 4.75313 13.2469C5.92188 14.4156 7.3375 15 9 15C10.6625 15 12.0781 14.4156 13.2469 13.2469C14.4156 12.0781 15 10.6625 15 9C15 8.7875 15.0719 8.60938 15.2156 8.46563C15.3594 8.32188 15.5375 8.25 15.75 8.25C15.9625 8.25 16.1406 8.32188 16.2844 8.46563C16.4281 8.60938 16.5 8.7875 16.5 9C16.5 10.025 16.3031 10.9938 15.9094 11.9062C15.5156 12.8188 14.9781 13.6156 14.2969 14.2969C13.6156 14.9781 12.8219 15.5156 11.9156 15.9094C11.0094 16.3031 10.0375 16.5 9 16.5Z",fill:n,stroke:r,strokeWidth:o})),"continue-arrow-right":({size:t=16,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 12 9",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M9.1125 5.24989H0.75C0.5375 5.24989 0.359375 5.17801 0.215625 5.03426C0.071875 4.89051 0 4.71239 0 4.49989C0 4.28739 0.071875 4.10926 0.215625 3.96551C0.359375 3.82176 0.5375 3.74989 0.75 3.74989H9.1125L6.975 1.61239C6.825 1.46239 6.75312 1.28739 6.75937 1.08739C6.76562 0.887387 6.8375 0.712387 6.975 0.562387C7.125 0.412387 7.30312 0.334262 7.50937 0.328012C7.71562 0.321762 7.89375 0.393637 8.04375 0.543637L11.475 3.97489C11.55 4.04989 11.6031 4.13114 11.6344 4.21864C11.6656 4.30614 11.6812 4.39989 11.6812 4.49989C11.6812 4.59989 11.6656 4.69364 11.6344 4.78114C11.6031 4.86864 11.55 4.94989 11.475 5.02489L8.04375 8.45614C7.89375 8.60614 7.71562 8.67801 7.50937 8.67176C7.30312 8.66551 7.125 8.58739 6.975 8.43739C6.8375 8.28739 6.76562 8.11239 6.75937 7.91239C6.75312 7.71239 6.825 7.53739 6.975 7.38739L9.1125 5.24989Z"})),key:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 23 13",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M6.25879 8.5C5.70879 8.5 5.23796 8.30417 4.84629 7.9125C4.45462 7.52083 4.25879 7.05 4.25879 6.5C4.25879 5.95 4.45462 5.47917 4.84629 5.0875C5.23796 4.69583 5.70879 4.5 6.25879 4.5C6.80879 4.5 7.27962 4.69583 7.67129 5.0875C8.06296 5.47917 8.25879 5.95 8.25879 6.5C8.25879 7.05 8.06296 7.52083 7.67129 7.9125C7.27962 8.30417 6.80879 8.5 6.25879 8.5ZM6.25879 12.5C4.59212 12.5 3.17546 11.9167 2.00879 10.75C0.842122 9.58333 0.258789 8.16667 0.258789 6.5C0.258789 4.83333 0.842122 3.41667 2.00879 2.25C3.17546 1.08333 4.59212 0.5 6.25879 0.5C7.37546 0.5 8.38796 0.775 9.29629 1.325C10.2046 1.875 10.9255 2.6 11.4588 3.5H19.8338C19.9671 3.5 20.0963 3.525 20.2213 3.575C20.3463 3.625 20.4588 3.7 20.5588 3.8L22.5588 5.8C22.6588 5.9 22.7296 6.00833 22.7713 6.125C22.813 6.24167 22.8338 6.36667 22.8338 6.5C22.8338 6.63333 22.813 6.75833 22.7713 6.875C22.7296 6.99167 22.6588 7.1 22.5588 7.2L19.3838 10.375C19.3005 10.4583 19.2005 10.525 19.0838 10.575C18.9671 10.625 18.8505 10.6583 18.7338 10.675C18.6171 10.6917 18.5005 10.6833 18.3838 10.65C18.2671 10.6167 18.1588 10.5583 18.0588 10.475L16.7588 9.5L15.3338 10.575C15.2505 10.6417 15.1588 10.6917 15.0588 10.725C14.9588 10.7583 14.8588 10.775 14.7588 10.775C14.6588 10.775 14.5546 10.7583 14.4463 10.725C14.338 10.6917 14.2421 10.6417 14.1588 10.575L12.6338 9.5H11.4588C10.9255 10.4 10.2046 11.125 9.29629 11.675C8.38796 12.225 7.37546 12.5 6.25879 12.5ZM6.25879 10.5C7.19212 10.5 8.01296 10.2167 8.72129 9.65C9.42962 9.08333 9.90046 8.36667 10.1338 7.5H13.2588L14.7088 8.525L16.7588 7L18.5338 8.375L20.4088 6.5L19.4088 5.5H10.1338C9.90046 4.63333 9.42962 3.91667 8.72129 3.35C8.01296 2.78333 7.19212 2.5 6.25879 2.5C5.15879 2.5 4.21712 2.89167 3.43379 3.675C2.65046 4.45833 2.25879 5.4 2.25879 6.5C2.25879 7.6 2.65046 8.54167 3.43379 9.325C4.21712 10.1083 5.15879 10.5 6.25879 10.5Z"})),firewall:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 16 19",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M0 16.5V2.5C0 1.95 0.195833 1.47917 0.5875 1.0875C0.979167 0.695833 1.45 0.5 2 0.5H14C14.55 0.5 15.0208 0.695833 15.4125 1.0875C15.8042 1.47917 16 1.95 16 2.5V8.5C16 9.05 15.8042 9.52083 15.4125 9.9125C15.0208 10.3042 14.55 10.5 14 10.5H2V12.5H6C6.28333 12.5 6.52083 12.5958 6.7125 12.7875C6.90417 12.9792 7 13.2167 7 13.5C7 13.7833 6.90417 14.0208 6.7125 14.2125C6.52083 14.4042 6.28333 14.5 6 14.5H2V16.5H6C6.28333 16.5 6.52083 16.5958 6.7125 16.7875C6.90417 16.9792 7 17.2167 7 17.5C7 17.7833 6.90417 18.0208 6.7125 18.2125C6.52083 18.4042 6.28333 18.5 6 18.5H2C1.45 18.5 0.979167 18.3042 0.5875 17.9125C0.195833 17.5208 0 17.05 0 16.5ZM11.4 15.7L14.25 12.85C14.4333 12.6667 14.6667 12.575 14.95 12.575C15.2333 12.575 15.4667 12.6667 15.65 12.85C15.8333 13.0333 15.925 13.2667 15.925 13.55C15.925 13.8333 15.8333 14.0667 15.65 14.25L12.1 17.8C11.9 18 11.6667 18.1 11.4 18.1C11.1333 18.1 10.9 18 10.7 17.8L9.3 16.4C9.11667 16.2167 9.025 15.9833 9.025 15.7C9.025 15.4167 9.11667 15.1833 9.3 15C9.48333 14.8167 9.71667 14.725 10 14.725C10.2833 14.725 10.5167 14.8167 10.7 15L11.4 15.7ZM2 8.5H7V6.5H2V8.5ZM9 8.5H14V6.5H9V8.5ZM2 4.5H7V2.5H2V4.5ZM9 4.5H14V2.5H9V4.5Z"})),"user-lock":({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 19 20",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M2 16.5C1.45 16.5 0.979167 16.3042 0.5875 15.9125C0.195833 15.5208 0 15.05 0 14.5V13.7C0 13.1333 0.145833 12.6125 0.4375 12.1375C0.729167 11.6625 1.11667 11.3 1.6 11.05C2.63333 10.5333 3.68333 10.1458 4.75 9.8875C5.81667 9.62917 6.9 9.5 8 9.5C8.23333 9.5 8.46667 9.50417 8.7 9.5125C8.93333 9.52083 9.16667 9.54167 9.4 9.575C9.58333 9.59167 9.72917 9.6625 9.8375 9.7875C9.94583 9.9125 10 10.0667 10 10.25C10.0333 11.0333 10.225 11.7708 10.575 12.4625C10.925 13.1542 11.3917 13.7417 11.975 14.225C12.0917 14.3083 12.1833 14.4125 12.25 14.5375C12.3167 14.6625 12.35 14.8 12.35 14.95V15.5C12.35 15.7833 12.2542 16.0208 12.0625 16.2125C11.8708 16.4042 11.6333 16.5 11.35 16.5H2ZM8 8.5C6.9 8.5 5.95833 8.10833 5.175 7.325C4.39167 6.54167 4 5.6 4 4.5C4 3.4 4.39167 2.45833 5.175 1.675C5.95833 0.891667 6.9 0.5 8 0.5C9.1 0.5 10.0417 0.891667 10.825 1.675C11.6083 2.45833 12 3.4 12 4.5C12 5.6 11.6083 6.54167 10.825 7.325C10.0417 8.10833 9.1 8.5 8 8.5ZM15.5 10.5C15.7833 10.5 16.0208 10.4042 16.2125 10.2125C16.4042 10.0208 16.5 9.78333 16.5 9.5C16.5 9.21667 16.4042 8.97917 16.2125 8.7875C16.0208 8.59583 15.7833 8.5 15.5 8.5C15.2167 8.5 14.9792 8.59583 14.7875 8.7875C14.5958 8.97917 14.5 9.21667 14.5 9.5C14.5 9.78333 14.5958 10.0208 14.7875 10.2125C14.9792 10.4042 15.2167 10.5 15.5 10.5ZM15.65 19.15L14.65 18.15C14.6167 18.1167 14.5667 18 14.5 17.8V13.35C13.7667 13.1333 13.1667 12.7208 12.7 12.1125C12.2333 11.5042 12 10.8 12 10C12 9.03333 12.3417 8.20833 13.025 7.525C13.7083 6.84167 14.5333 6.5 15.5 6.5C16.4667 6.5 17.2917 6.84167 17.975 7.525C18.6583 8.20833 19 9.03333 19 10C19 10.75 18.7875 11.4167 18.3625 12C17.9375 12.5833 17.4 13 16.75 13.25L17.65 14.15C17.75 14.25 17.8 14.3667 17.8 14.5C17.8 14.6333 17.75 14.75 17.65 14.85L16.85 15.65C16.75 15.75 16.7 15.8667 16.7 16C16.7 16.1333 16.75 16.25 16.85 16.35L17.65 17.15C17.75 17.25 17.8 17.3667 17.8 17.5C17.8 17.6333 17.75 17.75 17.65 17.85L16.35 19.15C16.25 19.25 16.1333 19.3 16 19.3C15.8667 19.3 15.75 19.25 15.65 19.15Z"})),"user-shield":({size:t=60,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 36 41",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M16 0.799805C16.2667 0.799805 16.5083 0.816471 16.725 0.849805C16.9417 0.883138 17.1667 0.949805 17.4 1.0498L29.4 5.5498C30.1667 5.8498 30.7917 6.33314 31.275 6.9998C31.7583 7.66647 32 8.41647 32 9.2498V15.4998C32 16.0665 31.8083 16.5415 31.425 16.9248C31.0417 17.3081 30.5667 17.4998 30 17.4998C29.4333 17.4998 28.9583 17.3081 28.575 16.9248C28.1917 16.5415 28 16.0665 28 15.4998V9.2998L16 4.7998L4 9.2998V18.6998C4 20.3665 4.24167 22.0331 4.725 23.6998C5.20833 25.3665 5.875 26.9498 6.725 28.4498C7.575 29.9498 8.60833 31.2998 9.825 32.4998C11.0417 33.6998 12.3667 34.6831 13.8 35.4498C14.3 35.7165 14.6583 36.0998 14.875 36.5998C15.0917 37.0998 15.1 37.5998 14.9 38.0998C14.6667 38.6331 14.2917 38.9998 13.775 39.1998C13.2583 39.3998 12.75 39.3665 12.25 39.0998C8.48333 37.2331 5.5 34.4165 3.3 30.6498C1.1 26.8831 0 22.8998 0 18.6998V9.2498C0 8.41647 0.241667 7.66647 0.725 6.9998C1.20833 6.33314 1.83333 5.8498 2.6 5.5498L14.6 1.0498C14.8333 0.949805 15.0667 0.883138 15.3 0.849805C15.5333 0.816471 15.7667 0.799805 16 0.799805ZM26 40.4998C23.2333 40.4998 20.875 39.5248 18.925 37.5748C16.975 35.6248 16 33.2665 16 30.4998C16 27.7331 16.975 25.3748 18.925 23.4248C20.875 21.4748 23.2333 20.4998 26 20.4998C28.7667 20.4998 31.125 21.4748 33.075 23.4248C35.025 25.3748 36 27.7331 36 30.4998C36 33.2665 35.025 35.6248 33.075 37.5748C31.125 39.5248 28.7667 40.4998 26 40.4998ZM26 30.4998C26.8333 30.4998 27.5417 30.2081 28.125 29.6248C28.7083 29.0415 29 28.3331 29 27.4998C29 26.6665 28.7083 25.9581 28.125 25.3748C27.5417 24.7915 26.8333 24.4998 26 24.4998C25.1667 24.4998 24.4583 24.7915 23.875 25.3748C23.2917 25.9581 23 26.6665 23 27.4998C23 28.3331 23.2917 29.0415 23.875 29.6248C24.4583 30.2081 25.1667 30.4998 26 30.4998ZM26 36.4998C26.8333 36.4998 27.6167 36.3415 28.35 36.0248C29.0833 35.7081 29.7333 35.2498 30.3 34.6498C30.4667 34.4498 30.5333 34.2248 30.5 33.9748C30.4667 33.7248 30.3167 33.5331 30.05 33.3998C29.4167 33.0998 28.7583 32.8748 28.075 32.7248C27.3917 32.5748 26.7 32.4998 26 32.4998C25.3 32.4998 24.6083 32.5748 23.925 32.7248C23.2417 32.8748 22.5833 33.0998 21.95 33.3998C21.6833 33.5331 21.5333 33.7248 21.5 33.9748C21.4667 34.2248 21.5333 34.4498 21.7 34.6498C22.2667 35.2498 22.9167 35.7081 23.65 36.0248C24.3833 36.3415 25.1667 36.4998 26 36.4998Z"})),bolt:({size:t=60,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 29 41",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M11.8704 32.9832L22.2204 20.5832H14.2204L15.6704 9.23318L6.42045 22.5832H13.3704L11.8704 32.9832ZM8.77045 26.5832H2.57045C1.77045 26.5832 1.17878 26.2248 0.795447 25.5082C0.412113 24.7915 0.45378 24.0998 0.920447 23.4332L15.8704 1.93318C16.2038 1.46652 16.6371 1.14152 17.1704 0.958182C17.7038 0.774849 18.2538 0.783182 18.8204 0.983182C19.3871 1.18318 19.8038 1.53318 20.0704 2.03318C20.3371 2.53318 20.4371 3.06652 20.3704 3.63318L18.7704 16.5832H26.5204C27.3871 16.5832 27.9954 16.9665 28.3454 17.7332C28.6954 18.4998 28.5871 19.2165 28.0204 19.8832L11.5704 39.5832C11.2038 40.0165 10.7538 40.2999 10.2204 40.4332C9.68711 40.5665 9.17045 40.5165 8.67045 40.2832C8.17045 40.0499 7.77878 39.6915 7.49545 39.2082C7.21211 38.7248 7.10378 38.1998 7.17045 37.6332L8.77045 26.5832Z"})),"link-arrow":({size:t=16,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 10 9",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M7.85835 2.57477L1.92502 8.50811C1.80279 8.63033 1.64724 8.69144 1.45835 8.69144C1.26946 8.69144 1.11391 8.63033 0.991683 8.50811C0.869461 8.38588 0.80835 8.23033 0.80835 8.04144C0.80835 7.85255 0.869461 7.69699 0.991683 7.57477L6.92502 1.64144H1.85835C1.66946 1.64144 1.51113 1.57755 1.38335 1.44977C1.25557 1.32199 1.19168 1.16366 1.19168 0.974772C1.19168 0.785883 1.25557 0.62755 1.38335 0.499772C1.51113 0.371994 1.66946 0.308105 1.85835 0.308105H8.52502C8.7139 0.308105 8.87224 0.371994 9.00002 0.499772C9.12779 0.62755 9.19168 0.785883 9.19168 0.974772V7.64144C9.19168 7.83033 9.12779 7.98866 9.00002 8.11644C8.87224 8.24422 8.7139 8.3081 8.52502 8.3081C8.33613 8.3081 8.17779 8.24422 8.05002 8.11644C7.92224 7.98866 7.85835 7.83033 7.85835 7.64144V2.57477Z"})),minus:({size:t=16,fill:n="currentColor",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 16 16",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M2 7.5H14V8.5H2V7.5Z"})),plus:({size:t=16,fill:n="currentColor",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 16 16",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M7.5 2V14H8.5V2H7.5ZM2 7.5V8.5H14V7.5H2Z"})),backup:({size:t=18,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 18 18",...i})=>(0,e.createElement)("svg",{width:t,height:t,fill:n,stroke:r,strokeWidth:o,viewBox:a,strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M9 18C6.9 18 5.04167 17.3625 3.425 16.0875C1.80833 14.8125 0.758333 13.1833 0.275 11.2C0.208333 10.95 0.258333 10.7208 0.425 10.5125C0.591667 10.3042 0.816667 10.1833 1.1 10.15C1.36667 10.1167 1.60833 10.1667 1.825 10.3C2.04167 10.4333 2.19167 10.6333 2.275 10.9C2.675 12.4 3.5 13.625 4.75 14.575C6 15.525 7.41667 16 9 16C10.95 16 12.6042 15.3208 13.9625 13.9625C15.3208 12.6042 16 10.95 16 9C16 7.05 15.3208 5.39583 13.9625 4.0375C12.6042 2.67917 10.95 2 9 2C7.85 2 6.775 2.26667 5.775 2.8C4.775 3.33333 3.93333 4.06667 3.25 5H5C5.28333 5 5.52083 5.09583 5.7125 5.2875C5.90417 5.47917 6 5.71667 6 6C6 6.28333 5.90417 6.52083 5.7125 6.7125C5.52083 6.90417 5.28333 7 5 7H1C0.716667 7 0.479167 6.90417 0.2875 6.7125C0.0958333 6.52083 0 6.28333 0 6V2C0 1.71667 0.0958333 1.47917 0.2875 1.2875C0.479167 1.09583 0.716667 1 1 1C1.28333 1 1.52083 1.09583 1.7125 1.2875C1.90417 1.47917 2 1.71667 2 2V3.35C2.85 2.28333 3.8875 1.45833 5.1125 0.875C6.3375 0.291667 7.63333 0 9 0C10.25 0 11.4208 0.2375 12.5125 0.7125C13.6042 1.1875 14.5542 1.82917 15.3625 2.6375C16.1708 3.44583 16.8125 4.39583 17.2875 5.4875C17.7625 6.57917 18 7.75 18 9C18 10.25 17.7625 11.4208 17.2875 12.5125C16.8125 13.6042 16.1708 14.5542 15.3625 15.3625C14.5542 16.1708 13.6042 16.8125 12.5125 17.2875C11.4208 17.7625 10.25 18 9 18ZM9 11C8.45 11 7.97917 10.8042 7.5875 10.4125C7.19583 10.0208 7 9.55 7 9C7 8.45 7.19583 7.97917 7.5875 7.5875C7.97917 7.19583 8.45 7 9 7C9.55 7 10.0208 7.19583 10.4125 7.5875C10.8042 7.97917 11 8.45 11 9C11 9.55 10.8042 10.0208 10.4125 10.4125C10.0208 10.8042 9.55 11 9 11Z"})),migrate:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:a,fill:n,xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M5.8248 17L7.7248 18.9C7.9248 19.1 8.02064 19.3333 8.0123 19.6C8.00397 19.8667 7.8998 20.1 7.6998 20.3C7.4998 20.4833 7.26647 20.5792 6.9998 20.5875C6.73314 20.5958 6.4998 20.5 6.2998 20.3L2.6998 16.7C2.5998 16.6 2.52897 16.4917 2.4873 16.375C2.44564 16.2583 2.4248 16.1333 2.4248 16C2.4248 15.8667 2.44564 15.7417 2.4873 15.625C2.52897 15.5083 2.5998 15.4 2.6998 15.3L6.2998 11.7C6.48314 11.5167 6.7123 11.425 6.9873 11.425C7.2623 11.425 7.4998 11.5167 7.6998 11.7C7.8998 11.9 7.9998 12.1375 7.9998 12.4125C7.9998 12.6875 7.8998 12.925 7.6998 13.125L5.8248 15H19.9998C20.2831 15 20.5206 15.0958 20.7123 15.2875C20.904 15.4792 20.9998 15.7167 20.9998 16C20.9998 16.2833 20.904 16.5208 20.7123 16.7125C20.5206 16.9042 20.2831 17 19.9998 17H5.8248ZM18.1748 8.99999H3.9998C3.71647 8.99999 3.47897 8.90415 3.2873 8.71249C3.09564 8.52082 2.9998 8.28332 2.9998 7.99999C2.9998 7.71665 3.09564 7.47915 3.2873 7.28749C3.47897 7.09582 3.71647 6.99999 3.9998 6.99999H18.1748L16.2748 5.09999C16.0748 4.89999 15.979 4.66665 15.9873 4.39999C15.9956 4.13332 16.0998 3.89999 16.2998 3.69999C16.4998 3.51665 16.7331 3.42082 16.9998 3.41249C17.2665 3.40415 17.4998 3.49999 17.6998 3.69999L21.2998 7.29999C21.3998 7.39999 21.4706 7.50832 21.5123 7.62499C21.554 7.74165 21.5748 7.86665 21.5748 7.99999C21.5748 8.13332 21.554 8.25832 21.5123 8.37499C21.4706 8.49165 21.3998 8.59999 21.2998 8.69999L17.6998 12.3C17.5165 12.4833 17.2873 12.575 17.0123 12.575C16.7373 12.575 16.4998 12.4833 16.2998 12.3C16.0998 12.1 15.9998 11.8625 15.9998 11.5875C15.9998 11.3125 16.0998 11.075 16.2998 10.875L18.1748 8.99999Z",fill:"currentColor"})),restore:({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:a,fill:n,xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M12 21.7185C10.75 21.7185 9.57917 21.481 8.4875 21.006C7.39583 20.531 6.44583 19.8894 5.6375 19.081C4.82917 18.2727 4.1875 17.3227 3.7125 16.231C3.2375 15.1394 3 13.9685 3 12.7185C3 12.4352 3.09583 12.1977 3.2875 12.006C3.47917 11.8144 3.71667 11.7185 4 11.7185C4.28333 11.7185 4.52083 11.8144 4.7125 12.006C4.90417 12.1977 5 12.4352 5 12.7185C5 14.6685 5.67917 16.3227 7.0375 17.681C8.39583 19.0394 10.05 19.7185 12 19.7185C13.95 19.7185 15.6042 19.0394 16.9625 17.681C18.3208 16.3227 19 14.6685 19 12.7185C19 10.7685 18.3208 9.11435 16.9625 7.75602C15.6042 6.39768 13.95 5.71852 12 5.71852H11.85L12.7 6.56852C12.9 6.76852 12.9958 7.00185 12.9875 7.26852C12.9792 7.53518 12.8833 7.76852 12.7 7.96852C12.5 8.16852 12.2625 8.27268 11.9875 8.28102C11.7125 8.28935 11.475 8.19352 11.275 7.99352L8.7 5.41852C8.5 5.21852 8.4 4.98518 8.4 4.71852C8.4 4.45185 8.5 4.21852 8.7 4.01852L11.275 1.44352C11.475 1.24352 11.7125 1.14768 11.9875 1.15602C12.2625 1.16435 12.5 1.26852 12.7 1.46852C12.8833 1.66852 12.9792 1.90185 12.9875 2.16852C12.9958 2.43518 12.9 2.66852 12.7 2.86852L11.85 3.71852H12C13.25 3.71852 14.4208 3.95602 15.5125 4.43102C16.6042 4.90602 17.5542 5.54768 18.3625 6.35602C19.1708 7.16435 19.8125 8.11435 20.2875 9.20602C20.7625 10.2977 21 11.4685 21 12.7185C21 13.9685 20.7625 15.1394 20.2875 16.231C19.8125 17.3227 19.1708 18.2727 18.3625 19.081C17.5542 19.8894 16.6042 20.531 15.5125 21.006C14.4208 21.481 13.25 21.7185 12 21.7185Z"})),"cloud-upload":({size:t=24,fill:n="none",stroke:r="none",strokeWidth:o=1,viewBox:a="0 0 24 24",...i})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:a,fill:n,xmlns:"http://www.w3.org/2000/svg",...i},(0,e.createElement)("path",{d:"M11 12.85L10.1 13.725C9.91667 13.9083 9.6875 14 9.4125 14C9.1375 14 8.9 13.9 8.7 13.7C8.51667 13.5167 8.425 13.2833 8.425 13C8.425 12.7167 8.51667 12.4833 8.7 12.3L11.3 9.7C11.5 9.5 11.7333 9.4 12 9.4C12.2667 9.4 12.5 9.5 12.7 9.7L15.3 12.3C15.4833 12.4833 15.5792 12.7125 15.5875 12.9875C15.5958 13.2625 15.5 13.5 15.3 13.7C15.1167 13.8833 14.8875 13.9792 14.6125 13.9875C14.3375 13.9958 14.1 13.9083 13.9 13.725L13 12.85V18H18.5C19.2 18 19.7917 17.7583 20.275 17.275C20.7583 16.7917 21 16.2 21 15.5C21 14.8 20.7583 14.2083 20.275 13.725C19.7917 13.2417 19.2 13 18.5 13H17V11C17 9.61667 16.5125 8.4375 15.5375 7.4625C14.5625 6.4875 13.3833 6 12 6C10.6167 6 9.4375 6.4875 8.4625 7.4625C7.4875 8.4375 7 9.61667 7 11H6.5C5.53333 11 4.70833 11.3417 4.025 12.025C3.34167 12.7083 3 13.5333 3 14.5C3 15.4667 3.34167 16.2917 4.025 16.975C4.70833 17.6583 5.53333 18 6.5 18H8C8.28333 18 8.52083 18.0958 8.7125 18.2875C8.90417 18.4792 9 18.7167 9 19C9 19.2833 8.90417 19.5208 8.7125 19.7125C8.52083 19.9042 8.28333 20 8 20H6.5C4.98333 20 3.6875 19.475 2.6125 18.425C1.5375 17.375 1 16.0917 1 14.575C1 13.275 1.39167 12.1167 2.175 11.1C2.95833 10.0833 3.98333 9.43333 5.25 9.15C5.66667 7.61667 6.5 6.375 7.75 5.425C9 4.475 10.4167 4 12 4C13.95 4 15.6042 4.67917 16.9625 6.0375C18.3208 7.39583 19 9.05 19 11C20.15 11.1333 21.1042 11.6292 21.8625 12.4875C22.6208 13.3458 23 14.35 23 15.5C23 16.75 22.5625 17.8125 21.6875 18.6875C20.8125 19.5625 19.75 20 18.5 20H13C12.45 20 11.9792 19.8042 11.5875 19.4125C11.1958 19.0208 11 18.55 11 18V12.85Z"}))};function oa(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function aa(e){if("string"!=typeof e)throw new Error(oa(7));return e.charAt(0).toUpperCase()+e.slice(1)}const ia=aa;function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(null,arguments)}var la=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ca=Math.abs,da=String.fromCharCode,ua=Object.assign;function fa(e){return e.trim()}function pa(e,t,n){return e.replace(t,n)}function ma(e,t){return e.indexOf(t)}function ha(e,t){return 0|e.charCodeAt(t)}function ga(e,t,n){return e.slice(t,n)}function ya(e){return e.length}function va(e){return e.length}function ba(e,t){return t.push(e),e}var wa=1,Ca=1,xa=0,ka=0,Ea=0,Sa="";function _a(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:wa,column:Ca,length:i,return:""}}function Na(e,t){return ua(_a("",null,null,"",null,null,0),e,{length:-e.length},t)}function Aa(){return Ea=ka>0?ha(Sa,--ka):0,Ca--,10===Ea&&(Ca=1,wa--),Ea}function Ta(){return Ea=ka<xa?ha(Sa,ka++):0,Ca++,10===Ea&&(Ca=1,wa++),Ea}function Ra(){return ha(Sa,ka)}function Ma(){return ka}function Oa(e,t){return ga(Sa,e,t)}function La(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ia(e){return wa=Ca=1,xa=ya(Sa=e),ka=0,[]}function Da(e){return Sa="",e}function Pa(e){return fa(Oa(ka-1,Ba(91===e?e+2:40===e?e+1:e)))}function ja(e){for(;(Ea=Ra())&&Ea<33;)Ta();return La(e)>2||La(Ea)>3?"":" "}function za(e,t){for(;--t&&Ta()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return Oa(e,Ma()+(t<6&&32==Ra()&&32==Ta()))}function Ba(e){for(;Ta();)switch(Ea){case e:return ka;case 34:case 39:34!==e&&39!==e&&Ba(Ea);break;case 40:41===e&&Ba(e);break;case 92:Ta()}return ka}function $a(e,t){for(;Ta()&&e+Ea!==57&&(e+Ea!==84||47!==Ra()););return"/*"+Oa(t,ka-1)+"*"+da(47===e?e:Ta())}function Ha(e){for(;!La(Ra());)Ta();return Oa(e,ka)}var Wa="-ms-",Fa="-moz-",Va="-webkit-",Ua="comm",Ga="rule",Za="decl",Xa="@keyframes";function Ka(e,t){for(var n="",r=va(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ya(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Za:return e.return=e.return||e.value;case Ua:return"";case Xa:return e.return=e.value+"{"+Ka(e.children,r)+"}";case Ga:e.value=e.props.join(",")}return ya(n=Ka(e.children,r))?e.return=e.value+"{"+n+"}":""}function qa(e){return Da(Qa("",null,null,null,[""],e=Ia(e),0,[0],e))}function Qa(e,t,n,r,o,a,i,s,l){for(var c=0,d=0,u=i,f=0,p=0,m=0,h=1,g=1,y=1,v=0,b="",w=o,C=a,x=r,k=b;g;)switch(m=v,v=Ta()){case 40:if(108!=m&&58==ha(k,u-1)){-1!=ma(k+=pa(Pa(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Pa(v);break;case 9:case 10:case 13:case 32:k+=ja(m);break;case 92:k+=za(Ma()-1,7);continue;case 47:switch(Ra()){case 42:case 47:ba(ei($a(Ta(),Ma()),t,n),l);break;default:k+="/"}break;case 123*h:s[c++]=ya(k)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+d:-1==y&&(k=pa(k,/\f/g,"")),p>0&&ya(k)-u&&ba(p>32?ti(k+";",r,n,u-1):ti(pa(k," ","")+";",r,n,u-2),l);break;case 59:k+=";";default:if(ba(x=Ja(k,t,n,c,d,o,s,b,w=[],C=[],u),a),123===v)if(0===d)Qa(k,t,x,x,w,a,u,s,C);else switch(99===f&&110===ha(k,3)?100:f){case 100:case 108:case 109:case 115:Qa(e,x,x,r&&ba(Ja(e,x,x,0,0,o,s,b,o,w=[],u),C),o,C,u,s,r?w:C);break;default:Qa(k,x,x,x,[""],C,0,s,C)}}c=d=p=0,h=y=1,b=k="",u=i;break;case 58:u=1+ya(k),p=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Aa())continue;switch(k+=da(v),v*h){case 38:y=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(ya(k)-1)*y,y=1;break;case 64:45===Ra()&&(k+=Pa(Ta())),f=Ra(),d=u=ya(b=k+=Ha(Ma())),v++;break;case 45:45===m&&2==ya(k)&&(h=0)}}return a}function Ja(e,t,n,r,o,a,i,s,l,c,d){for(var u=o-1,f=0===o?a:[""],p=va(f),m=0,h=0,g=0;m<r;++m)for(var y=0,v=ga(e,u+1,u=ca(h=i[m])),b=e;y<p;++y)(b=fa(h>0?f[y]+" "+v:pa(v,/&\f/g,f[y])))&&(l[g++]=b);return _a(e,t,n,0===o?Ga:s,l,c,d)}function ei(e,t,n){return _a(e,t,n,Ua,da(Ea),ga(e,2,-2),0)}function ti(e,t,n,r){return _a(e,t,n,Za,ga(e,0,r),ga(e,r+1,-1),r)}var ni=function(e,t,n){for(var r=0,o=0;r=o,o=Ra(),38===r&&12===o&&(t[n]=1),!La(o);)Ta();return Oa(e,ka)},ri=new WeakMap,oi=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ri.get(n))&&!r){ri.set(e,!0);for(var o=[],a=function(e,t){return Da(function(e,t){var n=-1,r=44;do{switch(La(r)){case 0:38===r&&12===Ra()&&(t[n]=1),e[n]+=ni(ka-1,t,n);break;case 2:e[n]+=Pa(r);break;case 4:if(44===r){e[++n]=58===Ra()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=da(r)}}while(r=Ta());return e}(Ia(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ai=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ii(e,t){switch(function(e,t){return 45^ha(e,0)?(((t<<2^ha(e,0))<<2^ha(e,1))<<2^ha(e,2))<<2^ha(e,3):0}(e,t)){case 5103:return Va+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Va+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Va+e+Fa+e+Wa+e+e;case 6828:case 4268:return Va+e+Wa+e+e;case 6165:return Va+e+Wa+"flex-"+e+e;case 5187:return Va+e+pa(e,/(\w+).+(:[^]+)/,Va+"box-$1$2"+Wa+"flex-$1$2")+e;case 5443:return Va+e+Wa+"flex-item-"+pa(e,/flex-|-self/,"")+e;case 4675:return Va+e+Wa+"flex-line-pack"+pa(e,/align-content|flex-|-self/,"")+e;case 5548:return Va+e+Wa+pa(e,"shrink","negative")+e;case 5292:return Va+e+Wa+pa(e,"basis","preferred-size")+e;case 6060:return Va+"box-"+pa(e,"-grow","")+Va+e+Wa+pa(e,"grow","positive")+e;case 4554:return Va+pa(e,/([^-])(transform)/g,"$1"+Va+"$2")+e;case 6187:return pa(pa(pa(e,/(zoom-|grab)/,Va+"$1"),/(image-set)/,Va+"$1"),e,"")+e;case 5495:case 3959:return pa(e,/(image-set\([^]*)/,Va+"$1$`$1");case 4968:return pa(pa(e,/(.+:)(flex-)?(.*)/,Va+"box-pack:$3"+Wa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Va+e+e;case 4095:case 3583:case 4068:case 2532:return pa(e,/(.+)-inline(.+)/,Va+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ya(e)-1-t>6)switch(ha(e,t+1)){case 109:if(45!==ha(e,t+4))break;case 102:return pa(e,/(.+:)(.+)-([^]+)/,"$1"+Va+"$2-$3$1"+Fa+(108==ha(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ma(e,"stretch")?ii(pa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ha(e,t+1))break;case 6444:switch(ha(e,ya(e)-3-(~ma(e,"!important")&&10))){case 107:return pa(e,":",":"+Va)+e;case 101:return pa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Va+(45===ha(e,14)?"inline-":"")+"box$3$1"+Va+"$2$3$1"+Wa+"$2box$3")+e}break;case 5936:switch(ha(e,t+11)){case 114:return Va+e+Wa+pa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Va+e+Wa+pa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Va+e+Wa+pa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Va+e+Wa+e+e}return e}var si=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Za:e.return=ii(e.value,e.length);break;case Xa:return Ka([Na(e,{value:pa(e.value,"@","@"+Va)})],r);case Ga:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ka([Na(e,{props:[pa(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ka([Na(e,{props:[pa(t,/:(plac\w+)/,":"+Va+"input-$1")]}),Na(e,{props:[pa(t,/:(plac\w+)/,":-moz-$1")]}),Na(e,{props:[pa(t,/:(plac\w+)/,Wa+"input-$1")]})],r)}return""})}}],li=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||si,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,c,d,u,f=[Ya,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=(c=[oi,ai].concat(a,f),d=va(c),function(e,t,n,r){for(var o="",a=0;a<d;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ka(qa(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new la({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return m.sheet.hydrate(s),m},ci={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function di(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ui=/[A-Z]|^ms/g,fi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pi=function(e){return 45===e.charCodeAt(1)},mi=function(e){return null!=e&&"boolean"!=typeof e},hi=di(function(e){return pi(e)?e:e.replace(ui,"-$&").toLowerCase()}),gi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fi,function(e,t,n){return vi={name:t,styles:n,next:vi},t})}return 1===ci[e]||pi(e)||"number"!=typeof t||0===t?t:t+"px"};function yi(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return vi={name:o.name,styles:o.styles,next:vi},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)vi={name:i.name,styles:i.styles,next:vi},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yi(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":mi(s)&&(r+=hi(a)+":"+gi(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=yi(e,t,i);switch(a){case"animation":case"animationName":r+=hi(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)mi(i[c])&&(r+=hi(a)+":"+gi(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=vi,l=n(e);return vi=s,yi(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var vi,bi=/label:\s*([^\s;{]+)\s*(;|$)/g;function wi(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";vi=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=yi(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=yi(n,t,e[i]),r&&(o+=a[i]);bi.lastIndex=0;for(var s,l="";null!==(s=bi.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:vi}}var Ci=!!e.useInsertionEffect&&e.useInsertionEffect,xi=Ci||function(e){return e()},ki=(Ci||e.useLayoutEffect,e.createContext("undefined"!=typeof HTMLElement?li({key:"css"}):null)),Ei=(ki.Provider,function(t){return(0,e.forwardRef)(function(n,r){var o=(0,e.useContext)(ki);return t(n,o,r)})}),Si=e.createContext({}),_i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ni=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ai=di(function(e){return Ni.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ti=function(e){return"theme"!==e},Ri=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ai:Ti},Mi=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Oi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return _i(t,n,r),xi(function(){return function(e,t,n){_i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}),null},Li=function t(n,r){var o,a,i=n.__emotion_real===n,s=i&&n.__emotion_base||n;void 0!==r&&(o=r.label,a=r.target);var l=Mi(n,r,i),c=l||Ri(s),d=!c("as");return function(){var u=arguments,f=i&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==u[0]||void 0===u[0].raw)f.push.apply(f,u);else{var p=u[0];f.push(p[0]);for(var m=u.length,h=1;h<m;h++)f.push(u[h],p[h])}var g=Ei(function(t,n,r){var o,i,u,p,m=d&&t.as||s,h="",g=[],y=t;if(null==t.theme){for(var v in y={},t)y[v]=t[v];y.theme=e.useContext(Si)}"string"==typeof t.className?(o=n.registered,i=g,u=t.className,p="",u.split(" ").forEach(function(e){void 0!==o[e]?i.push(o[e]+";"):e&&(p+=e+" ")}),h=p):null!=t.className&&(h=t.className+" ");var b=wi(f.concat(g),n.registered,y);h+=n.key+"-"+b.name,void 0!==a&&(h+=" "+a);var w=d&&void 0===l?Ri(m):c,C={};for(var x in t)d&&"as"===x||w(x)&&(C[x]=t[x]);return C.className=h,r&&(C.ref=r),e.createElement(e.Fragment,null,e.createElement(Oi,{cache:n,serialized:b,isStringTag:"string"==typeof m}),e.createElement(m,C))});return g.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=n.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(e,n){return t(e,sa({},r,n,{shouldForwardProp:Mi(g,n,!0)})).apply(void 0,f)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Li[e]=Li(e)});const Ii=[];function Di(e){return Ii[0]=e,wi(Ii)}var Pi=i(405);function ji(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function zi(t){if(e.isValidElement(t)||(0,Pi.Hy)(t)||!ji(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=zi(t[e])}),n}function Bi(t,n,r={clone:!0}){const o=r.clone?{...t}:t;return ji(t)&&ji(n)&&Object.keys(n).forEach(a=>{e.isValidElement(n[a])||(0,Pi.Hy)(n[a])?o[a]=n[a]:ji(n[a])&&Object.prototype.hasOwnProperty.call(t,a)&&ji(t[a])?o[a]=Bi(t[a],n[a],r):r.clone?o[a]=ji(n[a])?zi(n[a]):n[a]:o[a]=n[a]}),o}function $i(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:s,down:l,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}function Hi(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Wi={borderRadius:4},Fi={xs:0,sm:600,md:900,lg:1200,xl:1536},Vi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fi[e]}px)`},Ui={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Fi[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Vi;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||Vi;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(s=a)||s.startsWith("@")&&(i.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:Ui,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||Fi).includes(a))o[e.up(a)]=n(t[a],a);else{const e=a;o[e]=t[e]}var i,s;return o},{})}return n(t)}function Zi(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Xi(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ki(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Xi(e,n)||r,t&&(o=t(o,r,e)),o}const Yi=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Xi(e.theme,r)||{};return Gi(e,a,e=>{let r=Ki(i,o,e);return e===r&&"string"==typeof e&&(r=Ki(i,o,`${t}${"default"===e?"":aa(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a},qi=function(e,t){return t?Bi(e,t,{clone:!1}):e},Qi={m:"margin",p:"padding"},Ji={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},es={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ts=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!es[e])return[e];e=es[e]}const[t,n]=e.split(""),r=Qi[t],o=Ji[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]})(t)),e[t])}(),ns=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],os=[...ns,...rs];function as(e,t,n,r){const o=Xi(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function is(e){return as(e,"spacing",8)}function ss(e,t){return"string"==typeof t||null==t?t:e(t)}function ls(e,t){const n=is(e.theme);return Object.keys(e).map(r=>function(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=ss(t,n),e),{})}(ts(n),r);return Gi(e,e[n],o)}(e,t,r,n)).reduce(qi,{})}function cs(e){return ls(e,ns)}function ds(e){return ls(e,rs)}function us(e){return ls(e,os)}function fs(e=8,t=is({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}cs.propTypes={},cs.filterProps=ns,ds.propTypes={},ds.filterProps=rs,us.propTypes={},us.filterProps=os;const ps=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?qi(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function ms(e){return"number"!=typeof e?e:`${e}px solid`}function hs(e,t){return Yi({prop:e,themeKey:"borders",transform:t})}const gs=hs("border",ms),ys=hs("borderTop",ms),vs=hs("borderRight",ms),bs=hs("borderBottom",ms),ws=hs("borderLeft",ms),Cs=hs("borderColor"),xs=hs("borderTopColor"),ks=hs("borderRightColor"),Es=hs("borderBottomColor"),Ss=hs("borderLeftColor"),_s=hs("outline",ms),Ns=hs("outlineColor"),As=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=as(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ss(t,e)});return Gi(e,e.borderRadius,n)}return null};As.propTypes={},As.filterProps=["borderRadius"],ps(gs,ys,vs,bs,ws,Cs,xs,ks,Es,Ss,As,_s,Ns);const Ts=e=>{if(void 0!==e.gap&&null!==e.gap){const t=as(e.theme,"spacing",8),n=e=>({gap:ss(t,e)});return Gi(e,e.gap,n)}return null};Ts.propTypes={},Ts.filterProps=["gap"];const Rs=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=as(e.theme,"spacing",8),n=e=>({columnGap:ss(t,e)});return Gi(e,e.columnGap,n)}return null};Rs.propTypes={},Rs.filterProps=["columnGap"];const Ms=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=as(e.theme,"spacing",8),n=e=>({rowGap:ss(t,e)});return Gi(e,e.rowGap,n)}return null};function Os(e,t){return"grey"===t?t:e}function Ls(e){return e<=1&&0!==e?100*e+"%":e}Ms.propTypes={},Ms.filterProps=["rowGap"],ps(Ts,Rs,Ms,Yi({prop:"gridColumn"}),Yi({prop:"gridRow"}),Yi({prop:"gridAutoFlow"}),Yi({prop:"gridAutoColumns"}),Yi({prop:"gridAutoRows"}),Yi({prop:"gridTemplateColumns"}),Yi({prop:"gridTemplateRows"}),Yi({prop:"gridTemplateAreas"}),Yi({prop:"gridArea"})),ps(Yi({prop:"color",themeKey:"palette",transform:Os}),Yi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Os}),Yi({prop:"backgroundColor",themeKey:"palette",transform:Os}));const Is=Yi({prop:"width",transform:Ls}),Ds=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Fi[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ls(t)}};return Gi(e,e.maxWidth,t)}return null};Ds.filterProps=["maxWidth"];const Ps=Yi({prop:"minWidth",transform:Ls}),js=Yi({prop:"height",transform:Ls}),zs=Yi({prop:"maxHeight",transform:Ls}),Bs=Yi({prop:"minHeight",transform:Ls}),$s=(Yi({prop:"size",cssProperty:"width",transform:Ls}),Yi({prop:"size",cssProperty:"height",transform:Ls}),ps(Is,Ds,Ps,js,zs,Bs,Yi({prop:"boxSizing"})),{border:{themeKey:"borders",transform:ms},borderTop:{themeKey:"borders",transform:ms},borderRight:{themeKey:"borders",transform:ms},borderBottom:{themeKey:"borders",transform:ms},borderLeft:{themeKey:"borders",transform:ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:As},color:{themeKey:"palette",transform:Os},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Os},backgroundColor:{themeKey:"palette",transform:Os},p:{style:ds},pt:{style:ds},pr:{style:ds},pb:{style:ds},pl:{style:ds},px:{style:ds},py:{style:ds},padding:{style:ds},paddingTop:{style:ds},paddingRight:{style:ds},paddingBottom:{style:ds},paddingLeft:{style:ds},paddingX:{style:ds},paddingY:{style:ds},paddingInline:{style:ds},paddingInlineStart:{style:ds},paddingInlineEnd:{style:ds},paddingBlock:{style:ds},paddingBlockStart:{style:ds},paddingBlockEnd:{style:ds},m:{style:cs},mt:{style:cs},mr:{style:cs},mb:{style:cs},ml:{style:cs},mx:{style:cs},my:{style:cs},margin:{style:cs},marginTop:{style:cs},marginRight:{style:cs},marginBottom:{style:cs},marginLeft:{style:cs},marginX:{style:cs},marginY:{style:cs},marginInline:{style:cs},marginInlineStart:{style:cs},marginInlineEnd:{style:cs},marginBlock:{style:cs},marginBlockStart:{style:cs},marginBlockEnd:{style:cs},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ts},rowGap:{style:Ms},columnGap:{style:Rs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ls},maxWidth:{style:Ds},minWidth:{transform:Ls},height:{transform:Ls},maxHeight:{transform:Ls},minHeight:{transform:Ls},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),Hs=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:c}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=Xi(n,s)||{};return c?c(o):Gi(o,t,t=>{let n=Ki(d,l,t);return t===n&&"string"==typeof t&&(n=Ki(d,l,`${e}${"default"===t?"":aa(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??$s;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])c=qi(c,e(n,a,o,i));else{const e=Gi({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?c=qi(c,e):c[n]=t({sx:a,theme:o,nested:!0})}else c=qi(c,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Hi(o,Zi(l,c))}:Hi(o,Zi(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Hs.filterProps=["sx"];const Ws=Hs;function Fs(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const Vs=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let s=Bi({breakpoints:$i(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:fs(o),shape:{...Wi,...a}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Fs,s=t.reduce((e,t)=>Bi(e,t),s),s.unstable_sxConfig={...$s,...i?.unstable_sxConfig},s.unstable_sx=function(e){return Ws({sx:e,theme:this})},s};function Us(e){const{variants:t,...n}=e,r={variants:t,style:Di(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Di(e.style))}),r}const Gs=Vs();function Zs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Xs(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ks(e){return e?(t,n)=>n[e]:null}function Ys(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Ys(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Xs(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Xs(Di(o),n):o}return qs(e,r.variants,[t],n)}return r?.isProcessed?n?Xs(Di(r.style),n):r.style:n?Xs(Di(r),n):r}function qs(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Xs(Di(i.style(o)),r):i.style(o))):n.push(r?Xs(Di(i.style),r):i.style)}return n}function Qs(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function Js(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function el(e){if(e.type)return e;if("#"===e.charAt(0))return el(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(oa(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(oa(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const tl=(e,t)=>{try{return(e=>{const t=el(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function nl(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function rl(e){e=el(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),nl({type:s,values:l})}function ol(e){let t="hsl"===(e=el(e)).type||"hsla"===e.type?el(rl(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function al(e,t){return e=el(e),t=Js(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,nl(e)}function il(e,t,n){try{return al(e,t)}catch(t){return e}}function sl(e,t){if(e=el(e),t=Js(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nl(e)}function ll(e,t,n){try{return sl(e,t)}catch(t){return e}}function cl(e,t){if(e=el(e),t=Js(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nl(e)}function dl(e,t,n){try{return cl(e,t)}catch(t){return e}}function ul(e,t,n){try{return function(e,t=.15){return ol(e)>.5?sl(e,t):cl(e,t)}(e,t)}catch(t){return e}}const fl={black:"#000",white:"#fff"},pl={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ml="#f3e5f5",hl="#ce93d8",gl="#ba68c8",yl="#ab47bc",vl="#9c27b0",bl="#7b1fa2",wl="#e57373",Cl="#ef5350",xl="#f44336",kl="#d32f2f",El="#c62828",Sl="#ffb74d",_l="#ffa726",Nl="#ff9800",Al="#f57c00",Tl="#e65100",Rl="#e3f2fd",Ml="#90caf9",Ol="#42a5f5",Ll="#1976d2",Il="#1565c0",Dl="#4fc3f7",Pl="#29b6f6",jl="#03a9f4",zl="#0288d1",Bl="#01579b",$l="#81c784",Hl="#66bb6a",Wl="#4caf50",Fl="#388e3c",Vl="#2e7d32",Ul="#1b5e20";function Gl(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fl.white,default:fl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Zl=Gl();function Xl(){return{text:{primary:fl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Kl=Xl();function Yl(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=cl(e.main,o):"dark"===t&&(e.dark=sl(e.main,a)))}function ql(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function Ql(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Ml,light:Rl,dark:Ol}:{main:Ll,light:Ol,dark:Il}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:hl,light:ml,dark:yl}:{main:vl,light:gl,dark:bl}}(t),l=e.error||function(e="light"){return"dark"===e?{main:xl,light:wl,dark:kl}:{main:kl,light:Cl,dark:El}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Pl,light:Dl,dark:zl}:{main:zl,light:jl,dark:Bl}}(t),d=e.success||function(e="light"){return"dark"===e?{main:Hl,light:$l,dark:Fl}:{main:Vl,light:Wl,dark:Ul}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:_l,light:Sl,dark:Al}:{main:"#ed6c02",light:Nl,dark:Tl}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=ol(e),r=ol(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Kl.text.primary)>=n?Kl.text.primary:Zl.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(oa(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(oa(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ql(o,e,"light",a,r),ql(o,e,"dark",i,r)):(Yl(e,"light",a,r),Yl(e,"dark",i,r)),e.contrastText||(e.contrastText=f(e.main)),e};let m;return"light"===t?m=Gl():"dark"===t&&(m=Xl()),Bi({common:{...fl},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:d,name:"success"}),grey:pl,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Jl(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function ec(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const tc=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function nc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),tc(a,e,`var(${r})`,s),tc(i,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}const rc={textTransform:"uppercase"},oc='"Roboto", "Helvetica", "Arial", sans-serif';function ac(e,t){const{fontFamily:n=oc,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}="function"==typeof t?t(e):t,f=r/14,p=d||(e=>e/l*f+"rem"),m=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===oc?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5+"em")}:{},...a,...c};var i},h={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(i,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(i,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(i,14,1.75,.4,rc),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,rc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Bi({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...h},u,{clone:!1})}function ic(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const sc=["none",ic(0,2,1,-1,0,1,1,0,0,1,3,0),ic(0,3,1,-2,0,2,2,0,0,1,5,0),ic(0,3,3,-2,0,3,4,0,0,1,8,0),ic(0,2,4,-1,0,4,5,0,0,1,10,0),ic(0,3,5,-1,0,5,8,0,0,1,14,0),ic(0,3,5,-1,0,6,10,0,0,1,18,0),ic(0,4,5,-2,0,7,10,1,0,2,16,1),ic(0,5,5,-3,0,8,10,1,0,3,14,2),ic(0,5,6,-3,0,9,12,1,0,3,16,2),ic(0,6,6,-3,0,10,14,1,0,4,18,3),ic(0,6,7,-4,0,11,15,1,0,4,20,3),ic(0,7,8,-4,0,12,17,2,0,5,22,4),ic(0,7,8,-4,0,13,19,2,0,5,24,4),ic(0,7,9,-4,0,14,21,2,0,5,26,4),ic(0,8,9,-5,0,15,22,2,0,6,28,5),ic(0,8,10,-5,0,16,24,2,0,6,30,5),ic(0,8,11,-5,0,17,26,2,0,6,32,5),ic(0,9,11,-5,0,18,28,2,0,7,34,6),ic(0,9,12,-6,0,19,29,2,0,7,36,6),ic(0,10,13,-6,0,20,31,3,0,8,38,7),ic(0,10,13,-6,0,21,33,3,0,8,40,7),ic(0,10,14,-6,0,22,35,3,0,8,42,7),ic(0,11,14,-7,0,23,36,3,0,9,44,8),ic(0,11,15,-7,0,24,38,3,0,9,46,8)],lc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},cc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dc(e){return`${Math.round(e)}ms`}function uc(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function fc(e){const t={...lc,...e.easing},n={...cc,...e.duration};return{getAutoHeightDuration:uc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:dc(o)} ${a} ${"string"==typeof i?i:dc(i)}`).join(",")},...e,easing:t,duration:n}}const pc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function mc(e){return ji(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function hc(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!mc(a)||o.startsWith("unstable_")?delete t[o]:ji(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function gc(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}const yc=function(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,colorSpace:c,...d}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(oa(20));const u=Ql({...a,colorSpace:c}),f=Vs(e);let p=Bi(f,{mixins:(m=f.breakpoints,h=r,{toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}},...h}),palette:u,shadows:sc.slice(),typography:ac(u,s),transitions:fc(i),zIndex:{...pc}});var m,h,g;return p=Bi(p,d),p=t.reduce((e,t)=>Bi(e,t),p),p.unstable_sxConfig={...$s,...d?.unstable_sxConfig},p.unstable_sx=function(e){return Ws({sx:e,theme:this})},p.toRuntimeSource=hc,g=p,Object.assign(g,{alpha(e,t){const n=this||g;return n.colorSpace?`oklch(from ${e} l c h / ${"string"==typeof t?`calc(${t})`:t})`:n.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof t?`calc(${t})`:t})`:al(e,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(t))},lighten(e,t){const n=this||g;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #fff ${gc(t)})`:cl(e,t)},darken(e,t){const n=this||g;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #000 ${gc(t)})`:sl(e,t)}}),p},vc=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function bc(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function wc(e){return"dark"===e?vc:[]}function Cc(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const xc=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function kc(e,t,n){!e[t]&&n&&(e[t]=n)}function Ec(e){return"string"==typeof e&&e.startsWith("hsl")?rl(e):e}function Sc(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tl(Ec(e[t])))}const _c=e=>{try{return e()}catch(e){}};function Nc(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=Ql({...t,colorSpace:o});return{palette:i,opacity:{...bc(i.mode),...n},overlays:r||wc(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...s}=yc({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...bc(a),...n?.opacity},overlays:n?.overlays||wc(a)},s}function Ac(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=Cc,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...d}=e,u=Object.keys(n)[0],f=r||(n.light&&"light"!==u?"light":u),p=((e="mui")=>Jl(e))(a),{[f]:m,light:h,dark:g,...y}=n,v={...y};let b,w=m;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(oa(21,f));i&&(b="oklch");const C=Nc(b,v,w,d,f);h&&!v.light&&Nc(b,v,h,void 0,"light"),g&&!v.dark&&Nc(b,v,g,void 0,"dark");let x={defaultColorScheme:f,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:v,font:{...ec(C.typography),...C.font},spacing:(k=d.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(x.colorSchemes).forEach(e=>{const t=x.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(b){let r;return e===il&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===ll&&(r=`#000 ${(100*n).toFixed(0)}%`),e===dl&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(kc(t.common,"background","#fff"),kc(t.common,"onBackground","#000")),"dark"===t.mode&&(kc(t.common,"background","#000"),kc(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){kc(t.Alert,"errorColor",r(ll,t.error.light,.6)),kc(t.Alert,"infoColor",r(ll,t.info.light,.6)),kc(t.Alert,"successColor",r(ll,t.success.light,.6)),kc(t.Alert,"warningColor",r(ll,t.warning.light,.6)),kc(t.Alert,"errorFilledBg",n("palette-error-main")),kc(t.Alert,"infoFilledBg",n("palette-info-main")),kc(t.Alert,"successFilledBg",n("palette-success-main")),kc(t.Alert,"warningFilledBg",n("palette-warning-main")),kc(t.Alert,"errorFilledColor",_c(()=>t.getContrastText(t.error.main))),kc(t.Alert,"infoFilledColor",_c(()=>t.getContrastText(t.info.main))),kc(t.Alert,"successFilledColor",_c(()=>t.getContrastText(t.success.main))),kc(t.Alert,"warningFilledColor",_c(()=>t.getContrastText(t.warning.main))),kc(t.Alert,"errorStandardBg",r(dl,t.error.light,.9)),kc(t.Alert,"infoStandardBg",r(dl,t.info.light,.9)),kc(t.Alert,"successStandardBg",r(dl,t.success.light,.9)),kc(t.Alert,"warningStandardBg",r(dl,t.warning.light,.9)),kc(t.Alert,"errorIconColor",n("palette-error-main")),kc(t.Alert,"infoIconColor",n("palette-info-main")),kc(t.Alert,"successIconColor",n("palette-success-main")),kc(t.Alert,"warningIconColor",n("palette-warning-main")),kc(t.AppBar,"defaultBg",n("palette-grey-100")),kc(t.Avatar,"defaultBg",n("palette-grey-400")),kc(t.Button,"inheritContainedBg",n("palette-grey-300")),kc(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),kc(t.Chip,"defaultBorder",n("palette-grey-400")),kc(t.Chip,"defaultAvatarColor",n("palette-grey-700")),kc(t.Chip,"defaultIconColor",n("palette-grey-700")),kc(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),kc(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),kc(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),kc(t.LinearProgress,"primaryBg",r(dl,t.primary.main,.62)),kc(t.LinearProgress,"secondaryBg",r(dl,t.secondary.main,.62)),kc(t.LinearProgress,"errorBg",r(dl,t.error.main,.62)),kc(t.LinearProgress,"infoBg",r(dl,t.info.main,.62)),kc(t.LinearProgress,"successBg",r(dl,t.success.main,.62)),kc(t.LinearProgress,"warningBg",r(dl,t.warning.main,.62)),kc(t.Skeleton,"bg",b?r(il,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),kc(t.Slider,"primaryTrack",r(dl,t.primary.main,.62)),kc(t.Slider,"secondaryTrack",r(dl,t.secondary.main,.62)),kc(t.Slider,"errorTrack",r(dl,t.error.main,.62)),kc(t.Slider,"infoTrack",r(dl,t.info.main,.62)),kc(t.Slider,"successTrack",r(dl,t.success.main,.62)),kc(t.Slider,"warningTrack",r(dl,t.warning.main,.62));const e=b?r(ll,t.background.default,.6825):ul(t.background.default,.8);kc(t.SnackbarContent,"bg",e),kc(t.SnackbarContent,"color",_c(()=>b?Kl.text.primary:t.getContrastText(e))),kc(t.SpeedDialAction,"fabHoverBg",ul(t.background.paper,.15)),kc(t.StepConnector,"border",n("palette-grey-400")),kc(t.StepContent,"border",n("palette-grey-400")),kc(t.Switch,"defaultColor",n("palette-common-white")),kc(t.Switch,"defaultDisabledColor",n("palette-grey-100")),kc(t.Switch,"primaryDisabledColor",r(dl,t.primary.main,.62)),kc(t.Switch,"secondaryDisabledColor",r(dl,t.secondary.main,.62)),kc(t.Switch,"errorDisabledColor",r(dl,t.error.main,.62)),kc(t.Switch,"infoDisabledColor",r(dl,t.info.main,.62)),kc(t.Switch,"successDisabledColor",r(dl,t.success.main,.62)),kc(t.Switch,"warningDisabledColor",r(dl,t.warning.main,.62)),kc(t.TableCell,"border",r(dl,r(il,t.divider,1),.88)),kc(t.Tooltip,"bg",r(il,t.grey[700],.92))}if("dark"===t.mode){kc(t.Alert,"errorColor",r(dl,t.error.light,.6)),kc(t.Alert,"infoColor",r(dl,t.info.light,.6)),kc(t.Alert,"successColor",r(dl,t.success.light,.6)),kc(t.Alert,"warningColor",r(dl,t.warning.light,.6)),kc(t.Alert,"errorFilledBg",n("palette-error-dark")),kc(t.Alert,"infoFilledBg",n("palette-info-dark")),kc(t.Alert,"successFilledBg",n("palette-success-dark")),kc(t.Alert,"warningFilledBg",n("palette-warning-dark")),kc(t.Alert,"errorFilledColor",_c(()=>t.getContrastText(t.error.dark))),kc(t.Alert,"infoFilledColor",_c(()=>t.getContrastText(t.info.dark))),kc(t.Alert,"successFilledColor",_c(()=>t.getContrastText(t.success.dark))),kc(t.Alert,"warningFilledColor",_c(()=>t.getContrastText(t.warning.dark))),kc(t.Alert,"errorStandardBg",r(ll,t.error.light,.9)),kc(t.Alert,"infoStandardBg",r(ll,t.info.light,.9)),kc(t.Alert,"successStandardBg",r(ll,t.success.light,.9)),kc(t.Alert,"warningStandardBg",r(ll,t.warning.light,.9)),kc(t.Alert,"errorIconColor",n("palette-error-main")),kc(t.Alert,"infoIconColor",n("palette-info-main")),kc(t.Alert,"successIconColor",n("palette-success-main")),kc(t.Alert,"warningIconColor",n("palette-warning-main")),kc(t.AppBar,"defaultBg",n("palette-grey-900")),kc(t.AppBar,"darkBg",n("palette-background-paper")),kc(t.AppBar,"darkColor",n("palette-text-primary")),kc(t.Avatar,"defaultBg",n("palette-grey-600")),kc(t.Button,"inheritContainedBg",n("palette-grey-800")),kc(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),kc(t.Chip,"defaultBorder",n("palette-grey-700")),kc(t.Chip,"defaultAvatarColor",n("palette-grey-300")),kc(t.Chip,"defaultIconColor",n("palette-grey-300")),kc(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),kc(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),kc(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),kc(t.LinearProgress,"primaryBg",r(ll,t.primary.main,.5)),kc(t.LinearProgress,"secondaryBg",r(ll,t.secondary.main,.5)),kc(t.LinearProgress,"errorBg",r(ll,t.error.main,.5)),kc(t.LinearProgress,"infoBg",r(ll,t.info.main,.5)),kc(t.LinearProgress,"successBg",r(ll,t.success.main,.5)),kc(t.LinearProgress,"warningBg",r(ll,t.warning.main,.5)),kc(t.Skeleton,"bg",b?r(il,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),kc(t.Slider,"primaryTrack",r(ll,t.primary.main,.5)),kc(t.Slider,"secondaryTrack",r(ll,t.secondary.main,.5)),kc(t.Slider,"errorTrack",r(ll,t.error.main,.5)),kc(t.Slider,"infoTrack",r(ll,t.info.main,.5)),kc(t.Slider,"successTrack",r(ll,t.success.main,.5)),kc(t.Slider,"warningTrack",r(ll,t.warning.main,.5));const e=b?r(dl,t.background.default,.985):ul(t.background.default,.98);kc(t.SnackbarContent,"bg",e),kc(t.SnackbarContent,"color",_c(()=>b?Zl.text.primary:t.getContrastText(e))),kc(t.SpeedDialAction,"fabHoverBg",ul(t.background.paper,.15)),kc(t.StepConnector,"border",n("palette-grey-600")),kc(t.StepContent,"border",n("palette-grey-600")),kc(t.Switch,"defaultColor",n("palette-grey-300")),kc(t.Switch,"defaultDisabledColor",n("palette-grey-600")),kc(t.Switch,"primaryDisabledColor",r(ll,t.primary.main,.55)),kc(t.Switch,"secondaryDisabledColor",r(ll,t.secondary.main,.55)),kc(t.Switch,"errorDisabledColor",r(ll,t.error.main,.55)),kc(t.Switch,"infoDisabledColor",r(ll,t.info.main,.55)),kc(t.Switch,"successDisabledColor",r(ll,t.success.main,.55)),kc(t.Switch,"warningDisabledColor",r(ll,t.warning.main,.55)),kc(t.TableCell,"border",r(ll,r(il,t.divider,1),.68)),kc(t.Tooltip,"bg",r(il,t.grey[700],.92))}Sc(t.background,"default"),Sc(t.background,"paper"),Sc(t.common,"background"),Sc(t.common,"onBackground"),Sc(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&kc(t[e],"mainChannel",tl(Ec(n.main))),n.light&&kc(t[e],"lightChannel",tl(Ec(n.light))),n.dark&&kc(t[e],"darkChannel",tl(Ec(n.dark))),n.contrastText&&kc(t[e],"contrastTextChannel",tl(Ec(n.contrastText))),"text"===e&&(Sc(t[e],"primary"),Sc(t[e],"secondary")),"action"===e&&(n.active&&Sc(t[e],"active"),n.selected&&Sc(t[e],"selected")))})}),x=t.reduce((e,t)=>Bi(e,t),x);const E={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:xc(x),enableContrastVars:i},{vars:S,generateThemeVars:_,generateStyleSheets:N}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...c}=e,{vars:d,css:u,varsWithDefaults:f}=nc(c,t);let p=f;const m={},{[l]:h,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=nc(n,t);p=Bi(p,a),m[e]={css:o,vars:r}}),h){const{css:e,vars:n,varsWithDefaults:r}=nc(h,t);p=Bi(p,r),m[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...d};return Object.entries(m).forEach(([,{vars:t}])=>{e=Bi(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...u}),u);const{[o]:l,...c}=m;if(l){const{css:e}=l,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...a}),a)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(x,E);return x.vars=S,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([e,t])=>{x[e]=t}),x.generateThemeVars=_,x.generateStyleSheets=N,x.generateSpacing=function(){return fs(d.spacing,is(this))},x.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=s,x.unstable_sxConfig={...$s,...d?.unstable_sxConfig},x.unstable_sx=function(e){return Ws({sx:e,theme:this})},x.toRuntimeSource=hc,x}function Tc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Ql({...!0===n?{}:n.palette,mode:t})})}const Rc=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return yc(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=yc({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Tc(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Tc(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Ac({...i,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}(),Mc=function(e={}){const{themeId:t,defaultTheme:n=Gs,rootShouldForwardProp:r=Zs,slotShouldForwardProp:o=Zs}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=e.__emotion_styles.filter(e=>e!==Ws))}(e);const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:c=Ks(Qs(i)),...d}=t,u=n&&n.startsWith("Mui")||i?"components":"custom",f=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let m=Zs;"Root"===i||"root"===i?m=r:i?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const h=function(e,t){return Li(e,t)}(e,{shouldForwardProp:m,label:void 0,...d}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Ys(t,e,t.theme.modularCssLayers?u:void 0)};if(ji(e)){const t=Us(e);return function(e){return t.variants?Ys(e,t,e.theme.modularCssLayers?u:void 0):e.theme.modularCssLayers?Xs(t.style,u):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),i=[];if(r.push(a),n&&c&&i.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=Ys(e,r[t],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&i.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?qs(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||i.push(Ws),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(i.length).fill("");let a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}const s=[...r,...o,...i],l=h(...s);return e.muiName&&(l.muiName=e.muiName),l};return h.withConfig&&(y.withConfig=h.withConfig),y}}({themeId:"$$material",defaultTheme:Rc,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),Oc=Mc,Lc={theme:void 0};function Ic(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=Ic(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=Kt(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}const Dc=e.createContext(void 0);const Pc=e=>e,jc=(()=>{let e=Pc;return{configure(t){e=t},generate:t=>e(t),reset(){e=Pc}}})(),zc={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bc(e,t,n="Mui"){const r=zc[t];return r?`${n}-${r}`:`${jc.generate(e)}-${t}`}function $c(e){return Bc("MuiSvgIcon",e)}!function(e,t,n="Mui"){const r={};["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"].forEach(t=>{r[t]=Bc(e,t,n)})}("MuiSvgIcon");const Hc=Oc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ia(n.color)}`],t[`fontSize${ia(n.fontSize)}`]]}})(function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Lc.theme=r.theme,o=Us(e(Lc)),t=o,n=r.theme),o}}(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Wc=e.forwardRef(function(t,n){const r=function({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ic(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Ic(o,r,t.components.mergeClassNameAndStyle)}({props:t,name:n,theme:{components:e.useContext(Dc)}})}({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24",...m}=r,h=e.isValidElement(o)&&"svg"===o.type,g={...r,color:i,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:h},y={};u||(y.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}({root:["root","inherit"!==t&&`color${ia(t)}`,`fontSize${ia(n)}`]},$c,r)})(g);return(0,l.jsxs)(Hc,{as:s,className:Kt(v.root,a),focusable:"false",color:d,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:n,...y,...m,...h&&o.props,ownerState:g,children:[h?o.props.children:o,f?(0,l.jsx)("title",{children:f}):null]})});Wc.muiName="SvgIcon";const Fc=Wc;function Vc(t,n){function r(e,n){return(0,l.jsx)(Fc,{"data-testid":void 0,ref:n,...e,children:t})}return r.muiName=Fc.muiName,e.memo(e.forwardRef(r))}const Uc=Vc((0,l.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),Gc=Vc((0,l.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Zc=Vc((0,l.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),Xc=Vc((0,l.jsx)("path",{d:"M9.7 18.3c.39-.39.39-1.02 0-1.41L5.83 13H21c.55 0 1-.45 1-1s-.45-1-1-1H5.83l3.88-3.88c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0L2.7 11.3c-.39.39-.39 1.02 0 1.41l5.59 5.59c.39.38 1.03.38 1.41 0"})),Kc=Vc((0,l.jsx)("path",{d:"M14.29 5.71c-.39.39-.39 1.02 0 1.41L18.17 11H3c-.55 0-1 .45-1 1s.45 1 1 1h15.18l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l5.59-5.59c.39-.39.39-1.02 0-1.41l-5.6-5.58c-.38-.39-1.02-.39-1.41 0"})),Yc=Vc((0,l.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),qc=Vc((0,l.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),Qc=Vc((0,l.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Jc=Vc((0,l.jsx)("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"})),ed=Vc((0,l.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8.29 13.29c-.39.39-1.02.39-1.41 0L5.71 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41z"})),td=Vc((0,l.jsx)("path",{d:"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),nd=Vc((0,l.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),rd=Vc((0,l.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),od=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),ad=Vc((0,l.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),id=Vc((0,l.jsx)("path",{d:"M19 13H5v-2h14z"})),sd=Vc((0,l.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),ld=Vc((0,l.jsx)("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"})),cd=Vc((0,l.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),dd=Vc((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),ud=Vc((0,l.jsx)("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20M7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12"})),fd=Vc((0,l.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3"})),pd=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),md=Vc((0,l.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),hd=Vc((0,l.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),gd=Vc((0,l.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),yd=Vc([(0,l.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),(0,l.jsx)("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")]),vd=Vc((0,l.jsx)("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"})),bd=Vc((0,l.jsx)("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),wd=Vc((0,l.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),Cd=Vc((0,l.jsx)("path",{d:"M20 6h-8l-2-2H6.83l14.93 14.93c.15-.28.24-.59.24-.93V8c0-1.1-.9-2-2-2M2.1 2.1.69 3.51l1.56 1.56c-.15.28-.24.59-.24.93L2 18c0 1.1.9 2 2 2h13.17l3.31 3.31 1.41-1.41z"})),xd=Vc((0,l.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"})),kd=Vc((0,l.jsx)("path",{d:"m9.31 17 2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"})),Ed=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),Sd=Vc((0,l.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),_d=Vc((0,l.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),Nd=Vc((0,l.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),Ad=Vc([(0,l.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,l.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),Td=Vc((0,l.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),Rd=Vc((0,l.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),Md=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"})),Od=Vc((0,l.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),Ld=Vc((0,l.jsx)("path",{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"})),Id=Vc((0,l.jsx)("path",{d:"M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2C8.2 7.18 6.84 6.62 5.4 6.62 2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12c1.02 1.01 2.37 1.57 3.82 1.57 2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37"})),Dd=Vc((0,l.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),Pd=Vc((0,l.jsx)("path",{d:"M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10m2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99m0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99z"})),jd=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m6 13h-5l-1-2H9.5v5H8V7h6l1 2h3z"})),zd=Vc((0,l.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),Bd=Vc((0,l.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),$d=Vc((0,l.jsx)("path",{d:"m18 22-.01-6L14 12l3.99-4.01L18 2H6v6l4 4-4 3.99V22zM8 7.5V4h8v3.5l-4 4z"})),Hd=Vc((0,l.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H4V5h16z"})),Wd=Vc((0,l.jsx)("path",{d:"M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0m-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m7.5-4H4V3h15z"})),Fd=Vc((0,l.jsx)("path",{d:"M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z"})),Vd=Vc((0,l.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),Ud=Vc((0,l.jsx)("path",{d:"M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93M4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4zm7-13.93C7.05 1.56 4 4.92 4 9h7z"})),Gd=Vc((0,l.jsx)("path",{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4zm-6 4h-4v-4h4z"})),Zd=Vc((0,l.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),Xd=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"})),Kd=Vc((0,l.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),Yd=Vc((0,l.jsx)("path",{d:"M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"})),qd=Vc((0,l.jsx)("path",{d:"M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.996.996 0 0 0-1.41 0L1.29 18.96c-.39.39-.39 1.02 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05c.39-.39.39-1.02 0-1.41zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12z"})),Qd=Vc((0,l.jsx)("path",{d:"M16 9v4.66l-3.5 3.51V19h-1v-1.83L8 13.65V9zm0-6h-2v4h-4V3H8v4h-.01C6.9 6.99 6 7.89 6 8.98v5.52L9.5 18v3h5v-3l3.5-3.51V9c0-1.1-.9-2-2-2z"})),Jd=Vc((0,l.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),eu=Vc((0,l.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),tu=Vc((0,l.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),nu=Vc((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.88-11.71L10 14.17l-1.88-1.88a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7c.39-.39.39-1.02 0-1.41s-1.03-.39-1.42 0"})),ru=Vc((0,l.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"})),ou={home:Uc,WestRoundedIcon:Xc,EastRoundedIcon:Kc,settings2:Gc,search:Zc,"arrow-left":Yc,"arrow-right":qc,check:Qc,CheckRoundedIcon:Jc,"checkbox-rounded":ed,"checkbox-rounded-outline":td,times:nd,warning:rd,error:od,plus:ad,minus:id,sync:sd,calendar:ld,link:cd,eye:Td,"eye-off":Rd,trash:dd,bullet:pd,dot:md,circle:ud,period:fd,"circle-check":hd,"circle-times":gd,"sync-error":yd,shortcode:vd,file:wd,"file-text":bd,"file-disabled":Cd,"file-download":xd,"calendar-error":kd,help:Ed,copy:Sd,visitor:_d,visitors:Nd,"visitors-crowd":Nd,time:Ad,referrer:cd,sessions:Md,bounces:Od,bounced_sessions:Od,bounce_rate:Od,winner:Ld,total:Id,graph:Dd,conversion_rate:Pd,goals:jd,conversions:jd,"goals-empty":fd,filter:zd,loading:Bd,"loading-glass":$d,desktop:Hd,tablet:Wd,mobile:Fd,other:Vd,mouse:Ud,page:wd,hashtag:Gd,sun:Zd,world:Xd,filters:zd,referrers:Kd,hook:Yd,wandsparkles:qd,plug:Qd,security:Jd,mail:Vc((0,l.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"})),info:eu,expand:tu,success:nu,lock:ru},au={black:"var(--teamupdraft-black)",green:"var(--teamupdraft-green)",yellow:"var(--teamupdraft-yellow)",red:"var(--teamupdraft-red)",blue:"var(--teamupdraft-blue)",gray:"var(--teamupdraft-grey-400)",gray500:"var(--teamupdraft-grey-500)",white:"var(--teamupdraft-white)"},iu=(0,e.memo)(({name:t="bullet",color:n="var(--teamupdraft-orange-dark)",fill:r="var(--teamupdraft-orange-dark)",size:o=18,stroke:a="none",strokeWidth:i=1.5,tooltip:s,onClick:l,className:c,type:d="material"})=>{const u=au[n]||n,f=ou[String(t)],p=ra[String(t)];let m=null;const h=p?(0,e.createElement)(p,{width:o,height:o,stroke:a,strokeWidth:i,color:u,fill:r}):null,g=f?(0,e.createElement)(f,{sx:{fontSize:o,color:u,"& path":{stroke:a,strokeWidth:i,fill:r}}}):null;m="custom"===d?null!=h?h:g:null!=g?g:h,m||(m=(0,e.createElement)("span",{style:{display:"inline-block",width:o,height:o,borderRadius:"50%",background:u}}));const y="loading-circle"===String(t)?" animate-spin":"",v=`${null!=c?c:""} icon-${String(t)} flex items-center justify-center${y}`.trim(),b=(0,e.createElement)("div",{role:l?"button":void 0,tabIndex:l?0:void 0,onClick:()=>{l&&l()},onKeyDown:e=>{l&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l()))},className:v,"aria-hidden":!l||void 0},m);return s?(0,e.createElement)(na,{tooltip:s},b):b}),su=({currentStep:t,totalSteps:n})=>{const r=(t+1)/n*100;return(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("div",{className:"w-full bg-gray-200 rounded-full h-1"},(0,e.createElement)("div",{className:"bg-[var(--teamupdraft-orange-dark)] h-1 rounded-full transition-all duration-300 ease-in-out",style:{width:`${r}%`}})))},lu=({handlePrevious:t,currentStep:n})=>{const{currentStepIndex:r,steps:o,isLastStep:a}=Ut();return(0,e.createElement)(e.Fragment,null,r>0&&(0,e.createElement)("div",{className:"w-full mb-4"},(0,e.createElement)("div",{className:"flex items-center gap-2 justify-between"},(0,e.createElement)(tn,{className:"flex items-center gap-2 justify-center text-lg pl-1",btnVariant:"transparent",size:"sm",onClick:e=>t(),key:n.id+"previous"},(0,e.createElement)(iu,{name:"WestRoundedIcon",type:"material",size:15,color:"gray500",fill:"gray500"}),(0,_t.__)("Back","wp-optimize")),(0,e.createElement)("div",{className:"text-sm text-gray-600"},(0,_t.sprintf)((0,_t.__)("Step %1$d of %2$d","wp-optimize"),r,o.length-1))),(0,e.createElement)(su,{currentStep:r-1,totalSteps:o.length-1})))},cu=({currentStep:t})=>{const{isInstalling:n,isUpdating:r,responseMessage:o,responseSuccess:a,licenseStatus:i,getConditionalText:s}=Ut(),l=s(t,"title",{isUpdating:r,isInstalling:n,responseMessage:o,responseSuccess:a,licenseStatus:i},t.title),c=s(t,"subtitle",{isUpdating:r,isInstalling:n,responseMessage:o,responseSuccess:a,licenseStatus:i},t.subtitle),d="license"===t.type&&"activated"===i?"green":"var(--teamupdraft-orange-dark)",u="license"===t.type&&"activating"===i?"loading-circle":t.icon;return(0,e.createElement)("div",{className:"flex flex-col gap-2 justify-center items-center"},t.icon&&(0,e.createElement)(iu,{name:u,size:60,type:"",strokeWidth:1,stroke:"none",color:d,fill:d,className:"bg-[#fff5eb] rounded-[80px] p-2 shadow-[0_0_10px_#fff5eb] border border-[#fff5eb]"}),(0,e.createElement)("div",{className:"text-3xl font-semibold text-[var(--teamupdraft-grey-900)] text-center mt-2"},l),(0,e.createElement)("p",{className:"text-[var(--teamupdraft-grey-700)] text-lg leading-relaxed font-normal text-center"},ta(c)))},du=(0,n.memo)(({bullets:t,stepId:n})=>t&&0!==t.length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"table mx-auto"},t.map((t,n)=>(0,e.createElement)("div",{key:`row-${n}`,className:"table-row"},t.map((t,r)=>(0,e.createElement)("div",{key:`row-${n}-col-${r}`,className:"table-cell pr-3"},(0,e.createElement)("div",{className:"flex items-start gap-2"},(0,e.createElement)(iu,{name:"check",color:"var(--teamupdraft-orange-dark)",size:"25"}),(0,e.createElement)("p",{className:"text-[var(--teamupdraft-grey-700)] text-md font-normal leading-relaxed"},t)))))))):null),uu=e=>{const t=hu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),fu(n,t)||mu(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},fu=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?fu(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},pu=/^\[(.+)\]$/,mu=e=>{if(pu.test(e)){const t=pu.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hu=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)gu(n[e],r,e,t);return r},gu=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?vu(e)?void gu(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{gu(o,yu(t,e),n,r)});(""===e?t:yu(t,e)).classGroupId=n})},yu=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},vu=e=>e.isThemeGetter,bu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},wu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;for(let i=0;i<e.length;i++){let s=e[i];if(0===r&&0===o){if(":"===s){t.push(e.slice(a,i)),a=i+1;continue}if("/"===s){n=i;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const i=0===t.length?e:e.substring(a),s=Cu(i);return{modifiers:t,hasImportantModifier:s!==i,baseClassName:s,maybePostfixModifierPosition:n&&n>a?n-a:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Cu=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,xu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},ku=/\s+/;function Eu(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Su(e))&&(r&&(r+=" "),r+=t);return r}const Su=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Su(e[r]))&&(n&&(n+=" "),n+=t);return n};function _u(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:bu(e.cacheSize),parseClassName:wu(e),sortModifiers:xu(e),...uu(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(ku);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:d,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){l=t+(l.length>0?" "+l:l);continue}if(h=r(f),!h){l=t+(l.length>0?" "+l:l);continue}m=!1}const g=a(d).join(":"),y=u?g+"!":g,v=y+h;if(i.includes(v))continue;i.push(v);const b=o(h,m);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a}return function(){return a(Eu.apply(null,arguments))}}const Nu=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Au=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ru=/^\d+\/\d+$/,Mu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ou=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Iu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Du=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pu=e=>Ru.test(e),ju=e=>!!e&&!Number.isNaN(Number(e)),zu=e=>!!e&&Number.isInteger(Number(e)),Bu=e=>e.endsWith("%")&&ju(e.slice(0,-1)),$u=e=>Mu.test(e),Hu=()=>!0,Wu=e=>Ou.test(e)&&!Lu.test(e),Fu=()=>!1,Vu=e=>Iu.test(e),Uu=e=>Du.test(e),Gu=e=>!Xu(e)&&!ef(e),Zu=e=>lf(e,ff,Fu),Xu=e=>Au.test(e),Ku=e=>lf(e,pf,Wu),Yu=e=>lf(e,mf,ju),qu=e=>lf(e,df,Fu),Qu=e=>lf(e,uf,Uu),Ju=e=>lf(e,gf,Vu),ef=e=>Tu.test(e),tf=e=>cf(e,pf),nf=e=>cf(e,hf),rf=e=>cf(e,df),of=e=>cf(e,ff),af=e=>cf(e,uf),sf=e=>cf(e,gf,!0),lf=(e,t,n)=>{const r=Au.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},cf=(e,t,n=!1)=>{const r=Tu.exec(e);return!!r&&(r[1]?t(r[1]):n)},df=e=>"position"===e||"percentage"===e,uf=e=>"image"===e||"url"===e,ff=e=>"length"===e||"size"===e||"bg-size"===e,pf=e=>"length"===e,mf=e=>"number"===e,hf=e=>"family-name"===e,gf=e=>"shadow"===e,yf=_u((Symbol.toStringTag,()=>{const e=Nu("color"),t=Nu("font"),n=Nu("text"),r=Nu("font-weight"),o=Nu("tracking"),a=Nu("leading"),i=Nu("breakpoint"),s=Nu("container"),l=Nu("spacing"),c=Nu("radius"),d=Nu("shadow"),u=Nu("inset-shadow"),f=Nu("text-shadow"),p=Nu("drop-shadow"),m=Nu("blur"),h=Nu("perspective"),g=Nu("aspect"),y=Nu("ease"),v=Nu("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ef,Xu],w=()=>[ef,Xu,l],C=()=>[Pu,"full","auto",...w()],x=()=>[zu,"none","subgrid",ef,Xu],k=()=>["auto",{span:["full",zu,ef,Xu]},zu,ef,Xu],E=()=>[zu,"auto",ef,Xu],S=()=>["auto","min","max","fr",ef,Xu],_=()=>["auto",...w()],N=()=>[Pu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],A=()=>[e,ef,Xu],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",rf,qu,{position:[ef,Xu]}],R=()=>["auto","cover","contain",of,Zu,{size:[ef,Xu]}],M=()=>[Bu,tf,Ku],O=()=>["","none","full",c,ef,Xu],L=()=>["",ju,tf,Ku],I=()=>[ju,Bu,rf,qu],D=()=>["","none",m,ef,Xu],P=()=>["none",ju,ef,Xu],j=()=>["none",ju,ef,Xu],z=()=>[ju,ef,Xu],B=()=>[Pu,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$u],breakpoint:[$u],color:[Hu],container:[$u],"drop-shadow":[$u],ease:["in","out","in-out"],font:[Gu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$u],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$u],shadow:[$u],spacing:["px",ju],text:[$u],"text-shadow":[$u],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pu,Xu,ef,g]}],container:["container"],columns:[{columns:[ju,Xu,ef,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[zu,"auto",ef,Xu]}],basis:[{basis:[Pu,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ju,Pu,"auto","initial","none",Xu]}],grow:[{grow:["",ju,ef,Xu]}],shrink:[{shrink:["",ju,ef,Xu]}],order:[{order:[zu,"first","last","none",ef,Xu]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[s,"screen",...N()]}],"min-w":[{"min-w":[s,"screen","none",...N()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",n,tf,Ku]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ef,Yu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bu,Xu]}],"font-family":[{font:[nf,Xu,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ef,Xu]}],"line-clamp":[{"line-clamp":[ju,"none",ef,Yu]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",ef,Xu]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ef,Xu]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ju,"from-font","auto",ef,Ku]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[ju,"auto",ef,Xu]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ef,Xu]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ef,Xu]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zu,ef,Xu],radial:["",ef,Xu],conic:[zu,ef,Xu]},af,Qu]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ju,ef,Xu]}],"outline-w":[{outline:["",ju,tf,Ku]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,sf,Ju]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,sf,Ju]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[ju,Ku]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",f,sf,Ju]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[ju,ef,Xu]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ju]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ef,Xu]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ju]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ef,Xu]}],filter:[{filter:["","none",ef,Xu]}],blur:[{blur:D()}],brightness:[{brightness:[ju,ef,Xu]}],contrast:[{contrast:[ju,ef,Xu]}],"drop-shadow":[{"drop-shadow":["","none",p,sf,Ju]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",ju,ef,Xu]}],"hue-rotate":[{"hue-rotate":[ju,ef,Xu]}],invert:[{invert:["",ju,ef,Xu]}],saturate:[{saturate:[ju,ef,Xu]}],sepia:[{sepia:["",ju,ef,Xu]}],"backdrop-filter":[{"backdrop-filter":["","none",ef,Xu]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[ju,ef,Xu]}],"backdrop-contrast":[{"backdrop-contrast":[ju,ef,Xu]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ju,ef,Xu]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ju,ef,Xu]}],"backdrop-invert":[{"backdrop-invert":["",ju,ef,Xu]}],"backdrop-opacity":[{"backdrop-opacity":[ju,ef,Xu]}],"backdrop-saturate":[{"backdrop-saturate":[ju,ef,Xu]}],"backdrop-sepia":[{"backdrop-sepia":["",ju,ef,Xu]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ef,Xu]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ju,"initial",ef,Xu]}],ease:[{ease:["linear","initial",y,ef,Xu]}],delay:[{delay:[ju,ef,Xu]}],animate:[{animate:["none",v,ef,Xu]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ef,Xu]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:j()}],"scale-x":[{"scale-x":j()}],"scale-y":[{"scale-y":j()}],"scale-z":[{"scale-z":j()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[ef,Xu,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ef,Xu]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ef,Xu]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[ju,tf,Ku,Yu]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})),vf=(0,e.forwardRef)(({type:t="text",className:n,value:r,defaultValue:o,onChange:a,...i},s)=>{var l;const[c,d]=(0,e.useState)(null!==(l=null!=r?r:o)&&void 0!==l?l:"");return(0,e.useEffect)(()=>{void 0!==r&&d(r)},[r]),(0,e.createElement)("input",{ref:s,type:t,value:c,onChange:e=>{const t=e.target.value;d(t),a?.(e)},className:yf("w-full rounded-md border border-gray-400 p-2 focus:border-primary-dark focus:outline-none focus:ring disabled:cursor-not-allowed disabled:border-gray-200 disabled:bg-gray-200",n),...i})});vf.displayName="TextInput";const bf=vf;var wf=e.forwardRef((e,t)=>(0,l.jsx)(x.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));wf.displayName="Label";var Cf=wf;const xf=t=>t&&"object"==typeof t&&!e.isValidElement(t),kf=(0,e.memo)(({label:t,context:n,help:r,error:o,reverseLabel:a=!1,alignWithLabel:i=!1,className:s="",inputId:l,required:c=!1,children:d,pro:u,tooltip:f})=>{const p=Xt(s,"w-full box-border ",o&&"bg-red-100"),m=i?"flex flex-row items-center justify-between":"flex flex-col",h=a?"order-2":"order-1",g=a?"order-1":"order-2",y=i?a?"ml-4":"":a?"mt-1":"",v=i?a?"":"ml-4":a?"":"mt-0",b=(0,e.createElement)("div",{className:Xt("flex items-center gap-2",y)},(0,e.createElement)(Cf,{className:"cursor-pointer text-md font-medium text-black",htmlFor:l},t),c&&(0,e.createElement)("span",{className:"text-gray ml-1 text-xs font-normal"},"(",(0,_t.__)("Required","wp-optimize"),")"),r&&(0,e.createElement)("span",{className:"text-gray ml-2 text-sm font-light"},r)),w=(0,e.createElement)("div",{className:Xt("w-full",v)},f?(0,e.createElement)(na,{tooltip:f},d):d);return(0,e.createElement)("div",{className:p},(0,e.createElement)("div",{className:m},(0,e.createElement)("div",{className:Xt(h)},b),(0,e.createElement)("div",{className:Xt(g)},w)),o&&(0,e.createElement)("p",{className:"text-red mt-2 text-sm font-semibold",role:"alert"},o),n&&(0,e.createElement)("p",{className:"text-gray mt-2 text-sm font-normal"},xf(n)?n.text:n,xf(n)&&n.url&&" ",xf(n)&&n.url&&(0,e.createElement)("a",{rel:"noopener noreferrer nofollow",className:"text-blue underline",href:n.url,target:"_blank"},(0,_t.__)("More info","wp-optimize"))))});kf.displayName="FieldWrapper";const Ef=kf,Sf=({field:t,onChange:n,value:r})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ef,{inputId:t.id,label:t.label},(0,e.createElement)(bf,{id:t.id,type:"password",placeholder:(0,_t.__)("Enter your license key here","team-updraft"),value:r,onChange:e=>n(e.target.value)})));function _f(t){const n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var Nf="Checkbox",[Af,Tf]=c(Nf),[Rf,Mf]=Af(Nf);function Of(t){const{__scopeCheckbox:n,checked:r,children:o,defaultChecked:a,disabled:i,form:s,name:c,onCheckedChange:d,required:u,value:f="on",internal_do_not_use_render:p}=t,[m,h]=g({prop:r,defaultProp:a??!1,onChange:d,caller:Nf}),[y,v]=e.useState(null),[b,w]=e.useState(null),C=e.useRef(!1),x=!y||!!s||!!y.closest("form"),k={checked:m,disabled:i,setChecked:h,control:y,setControl:v,name:c,form:s,value:f,hasConsumerStoppedPropagationRef:C,required:u,defaultChecked:!Hf(a)&&a,isFormControl:x,bubbleInput:b,setBubbleInput:w};return(0,l.jsx)(Rf,{scope:n,...k,children:$f(p)?p(k):o})}var Lf="CheckboxTrigger",If=e.forwardRef(({__scopeCheckbox:t,onKeyDown:n,onClick:o,...a},i)=>{const{control:c,value:d,disabled:u,checked:f,required:p,setControl:m,setChecked:h,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:v}=Mf(Lf,t),b=s(i,m),w=e.useRef(f);return e.useEffect(()=>{const e=c?.form;if(e){const t=()=>h(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,h]),(0,l.jsx)(x.button,{type:"button",role:"checkbox","aria-checked":Hf(f)?"mixed":f,"aria-required":p,"data-state":Wf(f),"data-disabled":u?"":void 0,disabled:u,value:d,...a,ref:b,onKeyDown:r(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:r(o,e=>{h(e=>!!Hf(e)||!e),v&&y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})});If.displayName=Lf;var Df=e.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c,onCheckedChange:d,form:u,...f}=e;return(0,l.jsx)(Of,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:d,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(If,{...f,ref:t,__scopeCheckbox:n}),e&&(0,l.jsx)(Bf,{__scopeCheckbox:n})]})})});Df.displayName=Nf;var Pf="CheckboxIndicator",jf=e.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Mf(Pf,n);return(0,l.jsx)(W,{present:r||Hf(a.checked)||!0===a.checked,children:(0,l.jsx)(x.span,{"data-state":Wf(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});jf.displayName=Pf;var zf="CheckboxBubbleInput",Bf=e.forwardRef(({__scopeCheckbox:t,...n},r)=>{const{control:o,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:c,required:d,disabled:u,name:f,value:p,form:m,bubbleInput:h,setBubbleInput:g}=Mf(zf,t),y=s(r,g),v=_f(i),b=Zr(o);e.useEffect(()=>{const e=h;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,r=!a.current;if(v!==i&&n){const t=new Event("click",{bubbles:r});e.indeterminate=Hf(i),n.call(e,!Hf(i)&&i),e.dispatchEvent(t)}},[h,v,i,a]);const w=e.useRef(!Hf(i)&&i);return(0,l.jsx)(x.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??w.current,required:d,disabled:u,name:f,value:p,form:m,...n,tabIndex:-1,ref:y,style:{...n.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function $f(e){return"function"==typeof e}function Hf(e){return"indeterminate"===e}function Wf(e){return Hf(e)?"indeterminate":e?"checked":"unchecked"}Bf.displayName=zf;const Ff=(0,n.memo)(({label:t,value:n,id:r,onChange:o,disabled:a})=>(0,e.createElement)(Df,{className:"flex-shrink-0 "+(a?"opacity-50 pointer-events-none":""),id:r,checked:!!n,"aria-label":t,disabled:a,onCheckedChange:o},!n&&(0,e.createElement)(iu,{name:"checkbox-rounded-outline",fill:"#B7BABD",size:25,strokeWidth:3}),(0,e.createElement)(jf,{className:"flex items-center justify-center"},(0,e.createElement)(iu,{name:"checkbox-rounded",size:25,strokeWidth:3}))));var Vf="Switch",[Uf,Gf]=c(Vf),[Zf,Xf]=Uf(Vf),Kf=e.forwardRef((t,n)=>{const{__scopeSwitch:o,name:a,checked:i,defaultChecked:c,required:d,disabled:u,value:f="on",onCheckedChange:p,form:m,...h}=t,[y,v]=e.useState(null),b=s(n,e=>v(e)),w=e.useRef(!1),C=!y||m||!!y.closest("form"),[k,E]=g({prop:i,defaultProp:c??!1,onChange:p,caller:Vf});return(0,l.jsxs)(Zf,{scope:o,checked:k,disabled:u,children:[(0,l.jsx)(x.button,{type:"button",role:"switch","aria-checked":k,"aria-required":d,"data-state":Jf(k),"data-disabled":u?"":void 0,disabled:u,value:f,...h,ref:b,onClick:r(t.onClick,e=>{E(e=>!e),C&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})}),C&&(0,l.jsx)(Qf,{control:y,bubbles:!w.current,name:a,value:f,checked:k,required:d,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});Kf.displayName=Vf;var Yf="SwitchThumb",qf=e.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Xf(Yf,n);return(0,l.jsx)(x.span,{"data-state":Jf(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});qf.displayName=Yf;var Qf=e.forwardRef(({__scopeSwitch:t,control:n,checked:r,bubbles:o=!0,...a},i)=>{const c=e.useRef(null),d=s(c,i),u=_f(r),f=Zr(n);return e.useEffect(()=>{const e=c.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}},[u,r,o]),(0,l.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:d,style:{...a.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Jf(e){return e?"checked":"unchecked"}Qf.displayName="SwitchBubbleInput";var ep=Kf,tp=qf;const np=(0,n.memo)(({label:t,value:n,id:r,onChange:o,disabled:a})=>(0,e.createElement)(ep,{className:"w-[35px] h-[19px] px-1 flex flex-row justify-between items-center flex-shrink-0 rounded-full relative data-[state=checked]:bg-[var(--teamupdraft-orange-dark)] bg-gray-500 "+(a?"opacity-50":""),id:r,checked:!!n,"aria-label":t,disabled:a,onCheckedChange:o},(0,e.createElement)(tp,{className:"block w-[13px] h-[13px] bg-white rounded-full shadow-lg ring-0 transition-transform duration-200 ease-in-out translate-x-[0px] data-[state=checked]:translate-x-[15px]"}),a&&(0,e.createElement)("span",{className:"inset-0 flex items-center justify-center"},(0,e.createElement)(iu,{name:"lock",fill:"black",color:"black",size:12})))),rp=(e="/",t={})=>{e=e.replace(/^\//,"");const[n,r]=e.split("?"),o=n.replace(/\/?$/,"/"),a=new URLSearchParams(r||""),i=window.teamupdraft_onboarding||{},s=i.is_pro?"pro":"free",l={utm_campaign:`${i.prefix||"teamupdraft"}-${s}-${i.version}`},c=new URLSearchParams(a),d=Object.assign({},l,t);return Object.entries(d).forEach(([e,t])=>{c.has(e)||c.set(e,t)}),o+(c.toString()?"?"+c.toString():"")},op=({field:t,onChange:n,value:r})=>{var o;const{onboardingData:a}=Ut(),i=rp(a.privacy_statement_url,{utm_source:a.prefix+"_onboarding",utm_content:"mailing-list"}),s=a.privacy_url_label,l=!0===t.is_lock;return(0,e.useEffect)(()=>{l&&!1!==r&&n(!1)},[l]),(0,e.createElement)(Ef,{label:"",inputId:t.id,tooltip:l?t.tooltip:null},(0,e.createElement)("div",{className:"flex flex-col space-y-1"},(0,e.createElement)("div",{className:`flex ${t.show_privacy_link?"items-start":"items-center"} gap-2`},"switch"===t.subtype?(0,e.createElement)(np,{label:t.label,onChange:e=>!l&&n(!!e),value:!l&&!!r,id:t.id,disabled:l}):(0,e.createElement)(Ff,{label:t.label,onChange:e=>!l&&n(!!e),value:!l&&!!r,id:t.id,disabled:l}),(0,e.createElement)("label",{htmlFor:t.id,className:"font-normal text-md flex items-center gap-1 "+(l?"text-[#9FA4A7]":"text-gray-1000")},(0,e.createElement)("span",{className:"text-gray-1000 font-normal flex"},t.label)),t.tooltip&&"string"==typeof t.tooltip.text&&""!==t.tooltip.text.trim()&&(0,e.createElement)(iu,{name:null!==(o=t.tooltip?.icon)&&void 0!==o?o:"info",color:"gray500",fill:"gray500",size:16,tooltip:l?void 0:t.tooltip,className:"ml-[-4px]"}))),t.show_privacy_link&&(0,e.createElement)("div",{className:"text-left ml-8"},(0,e.createElement)("a",{rel:"noopener noreferrer nofollow",className:"underline text-[var(--teamupdraft-grey-600)] focus:outline-none focus:ring-0",target:"_blank",href:i},s)))},ap=({className:t,text:n,target:r,url:o,rel:a})=>{let i="",s="",l="";if(-1!==n.indexOf("%s")){let e=n.split(/%s/);i=e[0],l=e[1],s=e[2]}else l=n;return t=t||"teamupdraft-link",(0,e.createElement)(e.Fragment,null,i,(0,e.createElement)("a",{className:t,target:r,rel:a,href:o},l),s)},ip=({handleManualRetry:t,isRunning:n})=>{const{onboardingData:r,getCurrentStepDocumentation:o,getCurrentStepSolutions:a}=Ut();let i=o();const s=rp(i,{utm_source:r.prefix+"_onboarding",utm_content:"documentation"}),l=rp(r.support,{utm_source:r.prefix+"_onboarding",utm_content:"support"}),c=a();return(0,e.createElement)("div",{className:"mt-4 max-w-md mx-auto bg-gray-200 border border-gray-300 rounded-lg p-4"},(0,e.createElement)("ul",{className:"text-sm text-gray-600 space-y-2 list-disc list-inside"},c.map((t,n)=>(0,e.createElement)("li",{key:n},t)),(0,e.createElement)("li",null,(0,e.createElement)(ap,{className:"text-blue-600 hover:text-blue-800 underline",url:s,target:"_blank",rel:"noopener noreferrer",text:(0,_t.__)("For more information, please see our %stroubleshooting article%s.","wp-optimize")})),(0,e.createElement)("li",null,r.is_pro?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ap,{className:"text-blue-600 hover:text-blue-800 underline",url:s,target:"_blank",rel:"noopener noreferrer",text:(0,_t.__)("If you are still having issues, please %scontact support%s.","wp-optimize")})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ap,{className:"text-blue-600 hover:text-blue-800 underline",url:l,target:"_blank",rel:"noopener noreferrer",text:(0,_t.__)("If you are still having issues, please %sopen a ticket%s on the WordPress.org support forum.","wp-optimize")})))),(0,e.createElement)("div",{className:"mt-4 max-w-md mx-auto flex justify-center"},(0,e.createElement)(tn,{className:"w-full",btnVariant:"tertiary",size:"sm",onClick:()=>t(),disabled:n},(0,_t.__)("Retry test","wp-optimize"))))},sp=({isRunning:t,isSuccess:r,testCompleted:o,isFailed:a,retryCount:i,isPro:s,handleManualRetry:l})=>{const[c,d]=(0,e.useState)(!1),[u,f]=(0,e.useState)(!1),[p,m]=(0,e.useState)(!1),[h,g]=(0,e.useState)(!1);(0,n.useEffect)(()=>{t?(d(!1),f(!1),m(!1),g(!1)):o&&r&&!c?setTimeout(()=>{d(!0),setTimeout(()=>{f(!0)},500)},500):o&&a&&!p&&setTimeout(()=>{m(!0),setTimeout(()=>{g(!0)},500)},500)},[t,o,r,a,c,p]);const y=(e,n)=>{let s=e;if(c||p?(s+="left"===n?" transform translate-x-24":" transform -translate-x-24",s+=" opacity-0 transition-all duration-500 ease-in-out"):s+=" transition-all duration-500 ease-in-out",o&&r&&!c)return`${s} bg-green-light border-green`;if(o&&a)return`${s} bg-red-light border-red`;if(t){if("left"===n)return`${s} bg-blue-light border-blue`;if("right"===n){if(0===i)return`${s} bg-blue-light border-blue`;if(1===i)return`${s} bg-yellow-light border-yellow`;if(2===i)return`${s} bg-orange-light border-orange`}}return`${s} bg-gray-100 border-gray-300`},v=e=>{if(o&&r)return"#2B8133";if(o&&a)return"#c6273b";if(t){if("left"===e)return"#1D3C8F";if("right"===e){if(0===i)return"#1D3C8F";if(1===i)return"#D97706";if(2===i)return"#EA580C"}}return"#6c757d"},b=()=>{if(o&&r)return"bg-green";if(o&&a)return"bg-red";if(t){if(0===i)return"bg-blue";if(1===i)return"bg-yellow";if(2===i)return"bg-orange"}return"bg-blue"};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("style",null,`\n                @keyframes flowDots {\n                    0% {\n                        left: -6px;\n                        opacity: 0;\n                    }\n                    10% {\n                        opacity: 1;\n                    }\n                    90% {\n                        opacity: 1;\n                    }\n                    100% {\n                        left: calc(100% + 6px);\n                        opacity: 0;\n                    }\n                }\n                \n                @keyframes checkmarkAppear {\n                    0% {\n                        opacity: 0;\n                        transform: translate(-50%, -50%) scale(0);\n                    }\n                    50% {\n                        transform: translate(-50%, -50%) scale(1.2);\n                    }\n                    100% {\n                        opacity: 1;\n                        transform: translate(-50%, -50%) scale(1);\n                    }\n                }\n                \n                @keyframes xMarkAppear {\n                    0% {\n                        opacity: 0;\n                        transform: translate(-50%, -50%) scale(0) rotate(0deg);\n                    }\n                    50% {\n                        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);\n                    }\n                    100% {\n                        opacity: 1;\n                        transform: translate(-50%, -50%) scale(1) rotate(0deg);\n                    }\n                }\n                \n                .burst-connection-dot {\n                    animation: ${!t||c||p?"none":"flowDots 2s infinite ease-in-out"};\n                }\n                \n                .burst-connection-dot:nth-child(1) { animation-delay: 0s; }\n                .burst-connection-dot:nth-child(2) { animation-delay: 0.4s; }\n                .burst-connection-dot:nth-child(3) { animation-delay: 0.8s; }\n                .burst-connection-dot:nth-child(4) { animation-delay: 1.2s; }\n                .burst-connection-dot:nth-child(5) { animation-delay: 1.6s; }\n                \n                .burst-checkmark {\n                    animation: checkmarkAppear 0.6s ease-out forwards;\n                }\n                \n                .burst-xmark {\n                    animation: xMarkAppear 0.6s ease-out forwards;\n                }\n            `),(0,e.createElement)("div",{className:"flex items-center justify-center py-5 gap-5 relative"},(0,e.createElement)("div",{className:y("flex items-center justify-center w-10 h-10 rounded-full border-2","left")},(0,e.createElement)(iu,{name:"visitors",size:"20",color:v("left")})),(0,e.createElement)("div",{className:"relative w-48 h-1 bg-gray-200 rounded-sm overflow-hidden transition-opacity duration-500 "+(c||p?"opacity-0":"opacity-100")},(0,e.createElement)("div",{className:`absolute inset-0 bg-gradient-to-r from-transparent to-transparent transition-all duration-500 ease-in-out ${!t||c||p?"opacity-30":"opacity-100"} ${t?0===i?"via-blue":1===i?"via-yellow":2===i?"via-orange":"via-blue":"via-blue"}`}),(0,e.createElement)("div",{className:"absolute inset-0"},[...Array(5)].map((t,n)=>(0,e.createElement)("div",{key:n,className:`burst-connection-dot absolute w-1.5 h-1.5 rounded-full top-1/2 transform -translate-y-1/2 opacity-0 ${b()}`})))),(0,e.createElement)("div",{className:y("flex items-center justify-center w-10 h-10 rounded-full border-2","right")},(0,e.createElement)(iu,{name:"website",size:"20",color:v("right")})),u&&(0,e.createElement)("div",{className:"absolute top-1/2 left-1/2 transform"},(0,e.createElement)("div",{className:"burst-checkmark flex items-center justify-center w-12 h-12 rounded-full bg-green border-2 border-green"},(0,e.createElement)(iu,{name:"check",size:"24",color:"white",strokeWidth:3}))),h&&(0,e.createElement)("div",{className:"absolute top-1/2 left-1/2 transform"},(0,e.createElement)("div",{className:"burst-xmark flex items-center justify-center w-12 h-12 rounded-full bg-red border-2 border-red"},(0,e.createElement)(iu,{name:"times",size:"24",color:"white",strokeWidth:3})))),(0,e.createElement)("div",{className:"grid"},(0,e.createElement)("p",{className:"row-start-1 row-end-2 col-start-1 col-end-2 mt-2 text-center text-gray font-semibold text-lg opacity-0 transition-opacity duration-500 "+(t?"opacity-100":"opacity-0")},t&&0===i&&(0,_t.__)("Running test, please wait...","wp-optimize"),t&&1===i&&(0,_t.__)("Hmm, let's try that again...","wp-optimize"),t&&2===i&&(0,_t.__)("One more attempt, hang tight...","wp-optimize")),(0,e.createElement)("p",{className:"row-start-1 row-end-2 col-start-1 col-end-2 mt-2 text-center text-gray font-semibold text-lg opacity-0 transition-opacity duration-500 "+(a?"opacity-100":"opacity-0")},(0,_t.__)("Unfortunately, Burst could not detect the test visit.","wp-optimize")),(0,e.createElement)("p",{className:"row-start-1 row-end-2 col-start-1 col-end-2 mt-2 text-center text-gray font-semibold text-lg opacity-0 transition-opacity duration-500 "+(r?"opacity-100":"opacity-0")},(0,_t.__)("Successfully detected a visit on your site!","wp-optimize"))),a&&(0,e.createElement)(ip,{handleManualRetry:l,isRunning:t}))},lp=()=>{const{onboardingData:t,setTrackingTestRunning:r,setTrackingTestCompleted:o,setTrackingTestSuccess:a}=Ut(),[i,s]=(0,e.useState)(0),[l,c]=(0,e.useState)("idle"),d=(0,e.useRef)(0),u=t.is_pro,f=async()=>{const e=Date.now();c("running"),r(!0),o(!1),a(!1);try{const n=document.createElement("iframe");n.style.display="none",document.body.appendChild(n),await new Promise(e=>{let r=0;const o=()=>{0===r?(n.src=t.site_url+"/404"+Pt(t.site_url)+"burst_test_hit&burst_nextpage",r=1):(n.removeEventListener("load",o),document.body.removeChild(n),e())};n.addEventListener("load",o),n.src=t.site_url+Pt(t.site_url)+"burst_test_hit"});const i=await(async e=>{const t="burst/v1/data/live-visitors";let n={path:t+Pt(t)+(e=>"nonce="+e+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5))(e),method:"GET",data:{isOnboarding:!0}};return(await jt(n)).data})(t.nonce),l=i>0,u=Date.now()-e,p=Math.max(0,3e3-u);if(p>0&&await new Promise(e=>setTimeout(e,p)),s(i),a(l),!l&&d.current<2)return d.current++,void setTimeout(()=>f(),3e3);c("completed"),o(!0),r(!1)}catch(t){console.error("Tracking test error:",t);const n=Date.now()-e,i=Math.max(0,3e3-n);i>0&&await new Promise(e=>setTimeout(e,i)),c("completed"),o(!0),a(!1),r(!1)}};(0,n.useEffect)(()=>{f()},[]);const p="running"===l,m="completed"===l,h=m&&i>0,g=m&&0===i;return(0,e.createElement)("div",{className:"burst-today-select-item burst-tooltip-live"},(0,e.createElement)(sp,{isRunning:p,isSuccess:h,testCompleted:m,isFailed:g,retryCount:d.current,isPro:u,handleManualRetry:()=>{d.current=0,f()}}))},cp=e=>{const t=(null!=e?e:"").trim();return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},dp=({field:t,onChange:n,value:r})=>{const[o,a]=(0,e.useState)(!1),[i,s]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{if(!r)return a(!1),void s(!1);r&&!i&&(a(cp(r)),s(!0))},[r]),(0,e.createElement)(Ef,{inputId:t.id,label:t.label},(0,e.createElement)("div",{className:"relative w-full"},(0,e.createElement)(bf,{placeholder:(0,_t.__)("Enter your e-mail address","wp-optimize"),type:"email",field:t,onChange:e=>n(e.target.value),onBlur:()=>{s(!0),a(!!r&&cp(r))},value:r,className:`w-full border rounded-md px-3 py-2 focus:outline-none focus:ring-0 \n                        ${i&&!0===o?"border-[#046C4E]":""}\n                        ${i&&!1===o?"border-red":""}`}),i&&!0===o&&r&&(0,e.createElement)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-[#046C4E]"},"✔"),i&&!1===o&&r&&(0,e.createElement)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-red"},"✖")))},up=({field:t,onChange:n,value:r})=>{const[o,a]=(0,e.useState)(!1),{onboardingData:i,responseCode:s,responseMessage:l}=Ut(),c=rp(i.forgot_password_url,{utm_source:i.prefix+"_onboarding",utm_content:"forgot-password"}),d="BADAUTHPWD"===s&&l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ef,{inputId:t.id,label:t.label},(0,e.createElement)("div",{className:"relative w-full group"},(0,e.createElement)(bf,{placeholder:(0,_t.__)("Enter your password","wp-optimize"),type:o?"text":"password",onChange:e=>{"BADAUTHPWD"===s&&Ut.setState({responseCode:null,responseMessage:null}),n(e.target.value)},value:r,className:d?"border border-[#B40000] bg-[#B40000]/10 pr-10":"pr-10"}),(0,e.createElement)("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 focus:outline-none opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity duration-200",onClick:()=>a(e=>!e)},(0,e.createElement)(iu,{name:o?"eye":"eye-off",size:18,color:"#888D91",fill:"#888D91"}))),(0,e.createElement)("div",{className:"flex flex-row-reverse items-start gap-3 mt-1"},(0,e.createElement)("a",{className:"underline text-[var(--teamupdraft-grey-600)] focus:outline-none focus:ring-0 w-auto",target:"_blank",href:c},(0,_t.__)("Forgot your password?","wp-optimize")),d&&(0,e.createElement)("div",{className:"flex items-start gap-2 text-sm flex-1"},(0,e.createElement)(iu,{name:"warning",color:"#B40000",fill:"#fff",stroke:"#B40000",size:16,className:"ml-2"}),(0,e.createElement)("p",{className:"text-[#B40000] break-words whitespace-normal"},l)))))},fp=({field:t,onChange:n,value:r})=>{const{areAllInstalled:o}=Ut();let a=r;Array.isArray(a)||(a=""===a?[]:[a]);const i=Array.isArray(a)?a:[];let s=Object.values(t.options)||[];const l=Ut(e=>{var t;const n=e.getPluginsStep(),r=n?.fields?.find(e=>"plugins"===e.id);return null!==(t=r?.options)&&void 0!==t?t:[]});if(0===Object.keys(s).length)return(0,e.createElement)(e.Fragment,null,(0,_t.__)("No options found","wp-optimize"));const c=o(null!=s?s:[]);return(0,e.createElement)(Ef,{inputId:t.id,label:t.label},!c&&(0,e.createElement)("div",{className:"flex flex-col space-y-2 gap-1"},l.map(r=>{const o=r.id||r.value,a=r.title||o,s="installed"===r.action||"upgrade-to-pro"===r.action;return(0,e.createElement)("div",{key:o},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)(Ff,{label:a,onChange:e=>((e,t)=>{const r=i.includes(""+t)||i.includes(parseInt(t))?i.filter(e=>e!==""+t&&e!==parseInt(t)):[...i,t];n(r)})(0,o),value:(l=o,i.includes(""+l)||i.includes(parseInt(l))),id:`${t.id}_${o}`,disabled:s}),(0,e.createElement)("label",{className:"ml-2 flex "+(s?"cursor-not-allowed":""),htmlFor:`${t.id}_${o}`},(0,e.createElement)("div",{className:"text-md font-medium text-black mr-2"},a)),s?(0,e.createElement)(iu,{name:"circle-check",color:"green",size:"18",strokeWidth:2.5,tooltip:{text:(0,_t.__)("Already installed","wp-optimize")}}):(0,e.createElement)(iu,{name:"link-arrow",fill:"#888D91",size:"12",onClick:()=>{window.open("https://wordpress.org/plugins/"+r.slug,"_blank","noopener,noreferrer")}})),r.description&&(0,e.createElement)("div",{className:"text-md text-[var(--teamupdraft-grey-600)] ml-8"},r.description));var l})))};var pp,mp=Object.defineProperty,hp=Object.getOwnPropertySymbols,gp=Object.prototype.hasOwnProperty,yp=Object.prototype.propertyIsEnumerable,vp=(e,t,n)=>t in e?mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bp=(e,t)=>{for(var n in t||(t={}))gp.call(t,n)&&vp(e,n,t[n]);if(hp)for(var n of hp(t))yp.call(t,n)&&vp(e,n,t[n]);return e},wp=(e,t)=>{var n={};for(var r in e)gp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&hp)for(var r of hp(e))t.indexOf(r)<0&&yp.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,a=1,s=40,l=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let d,u;for(d=a;;d++){const n=8*t.getNumDataCodewords(d,r),o=i.getTotalBits(e,d);if(o<=n){u=o;break}if(d>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=8*t.getNumDataCodewords(d,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(d),f);for(const e of t.getData())f.push(e)}o(f.length==u);const p=8*t.getNumDataCodewords(d,r);o(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let m=[];for(;8*m.length<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(d,r,m,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);o(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(o,a,n),this.setFunctionModule(a,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=a-s%a,c=Math.floor(s/a);let d=[];const u=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<a;n++){let o=e.slice(r,r+c-i+(n<l?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,u);n<l&&o.push(0),d.push(o.concat(a))}let f=[];for(let e=0;e<d[0].length;e++)d.forEach((t,n)=>{(e!=c-i||n>=l)&&f.push(t[e])});return o(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let a=0;a<2;a++){const i=t-a,s=t+1&2?o:this.size-1-o;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce((e,t)=>e+(t?1:0),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(const o of e){const e=o^r.shift();r.push(0),n.forEach((n,o)=>r[o]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(a,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=a;e.QrSegment=a})(pp||(pp={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(pp||(pp={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(pp||(pp={}));var Cp=pp,xp={L:Cp.QrCode.Ecc.LOW,M:Cp.QrCode.Ecc.MEDIUM,Q:Cp.QrCode.Ecc.QUARTILE,H:Cp.QrCode.Ecc.HIGH},kp=128,Ep="L",Sp="#FFFFFF",_p="#000000",Np=!1,Ap=1;function Tp(e,t=0){const n=[];return e.forEach(function(e,r){let o=null;e.forEach(function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}})}),n.join("")}function Rp(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}function Mp({value:t,level:n,minVersion:r,includeMargin:o,marginSize:a,imageSettings:i,size:s,boostLevel:l}){let c=e.useMemo(()=>{const e=(Array.isArray(t)?t:[t]).reduce((e,t)=>(e.push(...Cp.QrSegment.makeSegments(t)),e),[]);return Cp.QrCode.encodeSegments(e,xp[n],r,void 0,void 0,l)},[t,n,r,l]);const{cells:d,margin:u,numCells:f,calculatedImageSettings:p}=e.useMemo(()=>{let e=c.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(o,a),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,a=Math.floor(.1*t),i=o/t,s=(r.width||a)*i,l=(r.height||a)*i,c=null==r.x?e.length/2-s/2:r.x*i,d=null==r.y?e.length/2-l/2:r.y*i,u=null==r.opacity?1:r.opacity;let f=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(s+c-e),h:Math.ceil(l+d-t)}}return{x:c,y:d,h:l,w:s,excavation:f,opacity:u,crossOrigin:r.crossOrigin}}(e,s,t,i);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r}},[c,s,i,o,a]);return{qrcode:c,margin:u,cells:d,numCells:f,calculatedImageSettings:p}}var Op=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),Lp=e.forwardRef(function(t,n){const r=t,{value:o,size:a=kp,level:i=Ep,bgColor:s=Sp,fgColor:l=_p,includeMargin:c=Np,minVersion:d=Ap,boostLevel:u,marginSize:f,imageSettings:p}=r,m=wp(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:h}=m,g=wp(m,["style"]),y=null==p?void 0:p.src,v=e.useRef(null),b=e.useRef(null),w=e.useCallback(e=>{v.current=e,"function"==typeof n?n(e):n&&(n.current=e)},[n]),[C,x]=e.useState(!1),{margin:k,cells:E,numCells:S,calculatedImageSettings:_}=Mp({value:o,level:i,minVersion:d,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:a});e.useEffect(()=>{if(null!=v.current){const e=v.current,t=e.getContext("2d");if(!t)return;let n=E;const r=b.current,o=null!=_&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=_.excavation&&(n=Rp(E,_.excavation));const i=window.devicePixelRatio||1;e.height=e.width=a*i;const c=a/S*i;t.scale(c,c),t.fillStyle=s,t.fillRect(0,0,S,S),t.fillStyle=l,Op?t.fill(new Path2D(Tp(n,k))):E.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+k,n+k,1,1)})}),_&&(t.globalAlpha=_.opacity),o&&t.drawImage(r,_.x+k,_.y+k,_.w,_.h)}}),e.useEffect(()=>{x(!1)},[y]);const N=bp({height:a,width:a},h);let A=null;return null!=y&&(A=e.createElement("img",{src:y,key:y,style:{display:"none"},onLoad:()=>{x(!0)},ref:b,crossOrigin:null==_?void 0:_.crossOrigin})),e.createElement(e.Fragment,null,e.createElement("canvas",bp({style:N,height:a,width:a,ref:w,role:"img"},g)),A)});Lp.displayName="QRCodeCanvas";var Ip=e.forwardRef(function(t,n){const r=t,{value:o,size:a=kp,level:i=Ep,bgColor:s=Sp,fgColor:l=_p,includeMargin:c=Np,minVersion:d=Ap,boostLevel:u,title:f,marginSize:p,imageSettings:m}=r,h=wp(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:y,numCells:v,calculatedImageSettings:b}=Mp({value:o,level:i,minVersion:d,boostLevel:u,includeMargin:c,marginSize:p,imageSettings:m,size:a});let w=y,C=null;null!=m&&null!=b&&(null!=b.excavation&&(w=Rp(y,b.excavation)),C=e.createElement("image",{href:m.src,height:b.h,width:b.w,x:b.x+g,y:b.y+g,preserveAspectRatio:"none",opacity:b.opacity,crossOrigin:b.crossOrigin}));const x=Tp(w,g);return e.createElement("svg",bp({height:a,width:a,viewBox:`0 0 ${v} ${v}`,ref:n,role:"img"},h),!!f&&e.createElement("title",null,f),e.createElement("path",{fill:s,d:`M0,0 h${v}v${v}H0z`,shapeRendering:"crispEdges"}),e.createElement("path",{fill:l,d:x,shapeRendering:"crispEdges"}),C)});Ip.displayName="QRCodeSVG";const Dp=e=>{if(navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(()=>console.log("Key copied to clipboard")).catch(e=>console.error("Clipboard write failed",e));else{const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{const e=document.execCommand("copy");console.log(e?"Copied!":"Copy failed")}catch(e){console.error("Fallback copy error:",e)}document.body.removeChild(t)}},Pp=({field:t,onChange:r,value:o})=>{const[a,i]=(0,n.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ef,{inputId:t.id,label:t.label},(0,e.createElement)("div",{className:"flex items-center space-x-4"},(0,e.createElement)(Ip,{value:t.value,size:140,bgColor:"#f3f4f6",fgColor:"#000000"}),(0,e.createElement)("div",{className:"flex flex-col items-center flex-1"},(0,e.createElement)("div",{className:"text-md font-semibold mb-2"},t.private_key),(0,e.createElement)("button",{onClick:()=>(Dp(t.private_key),void i(!0)),className:"w-full justify-center text-md border rounded-xl py-1.5 flex items-center space-x-2 shadow-sm hover:bg-orange-light"},(0,e.createElement)("span",{className:a?"text-green":""},a?(0,_t.__)("Copied!","wp-optimize"):(0,_t.__)("Copy key","wp-optimize")),(0,e.createElement)(iu,{name:"copy",size:18,color:"gray-800",fill:"gray-800"}))))))},jp=({field:t,onChange:r,fieldStatus:o,value:a})=>{const{onboardingData:i}=Ut(),[s,l]=(0,n.useState)(a||""),[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!s)return d(!1),void o(!1);const e=setTimeout(async()=>{const e=await(async e=>{if(6!=e.length)return!1;const t={path:i.prefix+"/v1/onboarding/tfa_key_is_valid",method:"GET",data:{key:e,nonce:i.nonce}};return(await jt(t)).success})(s);d(e),o(e)},300);return()=>clearTimeout(e)},[s]),(0,e.createElement)("div",{className:" w-full"},(0,e.createElement)(Ef,{inputId:t.id,label:t.label},(0,e.createElement)("div",{className:"relative w-full"},(0,e.createElement)(bf,{placeholder:t.placeholder,type:"text",onChange:e=>{return t=e.target.value,l(t),void r(t);var t},value:a}),(0,e.createElement)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2"},c?(0,e.createElement)(iu,{name:"check",color:"green"}):(0,e.createElement)(iu,{name:"times",color:"red"})))))},zp=({field:t,onChange:r,value:o})=>{const[a,i]=(0,n.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ef,{inputId:t.id,label:t.label},(0,e.createElement)("div",{className:"w-full text-md text-[#AD2E00] font-mono mb-2"},t.value),(0,e.createElement)("button",{onClick:()=>(Dp(t.value),void i(!0)),className:"w-full justify-center text-md border rounded-xl py-1.5 flex items-center space-x-2 shadow-sm hover:bg-orange-light"},(0,e.createElement)("span",{className:a?"text-green":""},a?(0,_t.__)("Copied!","wp-optimize"):(0,_t.__)("Copy codes","wp-optimize")),(0,e.createElement)(iu,{name:"copy",size:18,color:"gray-800",fill:"gray-800"}))))};function Bp(e,[t,n]){return Math.min(n,Math.max(t,e))}function $p(t){const n=t+"CollectionProvider",[r,o]=c(n),[a,i]=r(n,{collectionRef:{current:null},itemMap:new Map}),d=t=>{const{scope:n,children:r}=t,o=e.useRef(null),i=e.useRef(new Map).current;return(0,l.jsx)(a,{scope:n,itemMap:i,collectionRef:o,children:r})};d.displayName=n;const u=t+"CollectionSlot",f=v(u),p=e.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=s(t,i(u,n).collectionRef);return(0,l.jsx)(f,{ref:o,children:r})});p.displayName=u;const m=t+"CollectionItemSlot",h="data-radix-collection-item",g=v(m),y=e.forwardRef((t,n)=>{const{scope:r,children:o,...a}=t,c=e.useRef(null),d=s(n,c),u=i(m,r);return e.useEffect(()=>(u.itemMap.set(c,{ref:c,...a}),()=>{u.itemMap.delete(c)})),(0,l.jsx)(g,{[h]:"",ref:d,children:o})});return y.displayName=m,[{Provider:d,Slot:p,ItemSlot:y},function(n){const r=i(t+"CollectionConsumer",n);return e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},o]}Map;var Hp=e.createContext(void 0);function Wp(t){const n=e.useContext(Hp);return t||n||"ltr"}var Fp=[" ","Enter","ArrowUp","ArrowDown"],Vp=[" ","Enter"],Up="Select",[Gp,Zp,Xp]=$p(Up),[Kp,Yp]=c(Up,[Xp,Yr]),qp=Yr(),[Qp,Jp]=Kp(Up),[em,tm]=Kp(Up),nm=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:a,onOpenChange:i,value:s,defaultValue:c,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:h,required:y,form:v}=t,b=qp(n),[w,C]=e.useState(null),[x,k]=e.useState(null),[E,S]=e.useState(!1),_=Wp(u),[N,A]=g({prop:o,defaultProp:a??!1,onChange:i,caller:Up}),[T,R]=g({prop:s,defaultProp:c,onChange:d,caller:Up}),M=e.useRef(null),O=!w||v||!!w.closest("form"),[L,I]=e.useState(new Set),D=Array.from(L).map(e=>e.props.value).join(";");return(0,l.jsx)(po,{...b,children:(0,l.jsxs)(Qp,{required:y,scope:n,trigger:w,onTriggerChange:C,valueNode:x,onValueNodeChange:k,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:m(),value:T,onValueChange:R,open:N,onOpenChange:A,dir:_,triggerPointerDownPosRef:M,disabled:h,children:[(0,l.jsx)(Gp.Provider,{scope:n,children:(0,l.jsx)(em,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:e.useCallback(e=>{I(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:r})}),O?(0,l.jsxs)($m,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:p,value:T,onChange:e=>R(e.target.value),disabled:h,form:v,children:[void 0===T?(0,l.jsx)("option",{value:""}):null,Array.from(L)]},D):null]})})};nm.displayName=Up;var rm="SelectTrigger",om=e.forwardRef((t,n)=>{const{__scopeSelect:o,disabled:a=!1,...i}=t,c=qp(o),d=Jp(rm,o),u=d.disabled||a,f=s(n,d.onTriggerChange),p=Zp(o),m=e.useRef("touch"),[h,g,y]=Wm(e=>{const t=p().filter(e=>!e.disabled),n=t.find(e=>e.value===d.value),r=Fm(t,e,n);void 0!==r&&d.onValueChange(r.value)}),v=e=>{u||(d.onOpenChange(!0),y()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,l.jsx)(mo,{asChild:!0,...c,children:(0,l.jsx)(x.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":Hm(d.value)?"":void 0,...i,ref:f,onClick:r(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&v(e)}),onPointerDown:r(i.onPointerDown,e=>{m.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:r(i.onKeyDown,e=>{const t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),t&&" "===e.key||Fp.includes(e.key)&&(v(),e.preventDefault())})})})});om.displayName=rm;var am="SelectValue",im=e.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...c}=e,d=Jp(am,n),{onValueNodeHasChildrenChange:f}=d,p=void 0!==a,m=s(t,d.onValueNodeChange);return u(()=>{f(p)},[f,p]),(0,l.jsx)(x.span,{...c,ref:m,style:{pointerEvents:"none"},children:Hm(d.value)?(0,l.jsx)(l.Fragment,{children:i}):a})});im.displayName=am;var sm=e.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,l.jsx)(x.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});sm.displayName="SelectIcon";var lm=e=>(0,l.jsx)(H,{asChild:!0,...e});lm.displayName="SelectPortal";var cm="SelectContent",dm=e.forwardRef((t,n)=>{const r=Jp(cm,t.__scopeSelect),[o,a]=e.useState();if(u(()=>{a(new DocumentFragment)},[]),!r.open){const e=o;return e?y.createPortal((0,l.jsx)(fm,{scope:t.__scopeSelect,children:(0,l.jsx)(Gp.Slot,{scope:t.__scopeSelect,children:(0,l.jsx)("div",{children:t.children})})}),e):null}return(0,l.jsx)(hm,{...t,ref:n})});dm.displayName=cm;var um=10,[fm,pm]=Kp(cm),mm=v("SelectContent.RemoveScroll"),hm=e.forwardRef((t,n)=>{const{__scopeSelect:o,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:c,onPointerDownOutside:d,side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:g,collisionPadding:y,sticky:v,hideWhenDetached:b,avoidCollisions:w,...C}=t,x=Jp(cm,o),[k,E]=e.useState(null),[S,_]=e.useState(null),A=s(n,e=>E(e)),[T,R]=e.useState(null),[M,O]=e.useState(null),L=Zp(o),[D,P]=e.useState(!1),j=e.useRef(!1);e.useEffect(()=>{if(k)return je(k)},[k]),U();const z=e.useCallback(e=>{const[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==o)return}},[L,S]),B=e.useCallback(()=>z([T,k]),[z,T,k]);e.useEffect(()=>{D&&B()},[D,B]);const{onOpenChange:$,triggerPointerDownPosRef:H}=x;e.useEffect(()=>{if(k){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(H.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():k.contains(n.target)||$(!1),document.removeEventListener("pointermove",t),H.current=null};return null!==H.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[k,$,H]),e.useEffect(()=>{const e=()=>$(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[$]);const[W,F]=Wm(e=>{const t=L().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=Fm(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),V=e.useCallback((e,t,n)=>{const r=!j.current&&!n;(void 0!==x.value&&x.value===t||r)&&(R(e),r&&(j.current=!0))},[x.value]),G=e.useCallback(()=>k?.focus(),[k]),Z=e.useCallback((e,t,n)=>{const r=!j.current&&!n;(void 0!==x.value&&x.value===t||r)&&O(e)},[x.value]),X="popper"===a?ym:gm,K=X===ym?{side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:g,collisionPadding:y,sticky:v,hideWhenDetached:b,avoidCollisions:w}:{};return(0,l.jsx)(fm,{scope:o,content:k,viewport:S,onViewportChange:_,itemRefCallback:V,selectedItem:T,onItemLeave:G,itemTextRefCallback:Z,focusSelectedItem:B,selectedItemText:M,position:a,isPositioned:D,searchRef:W,children:(0,l.jsx)(Me,{as:mm,allowPinchZoom:!0,children:(0,l.jsx)(I,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:r(i,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,l.jsx)(N,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,l.jsx)(X,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...C,...K,onPlaced:()=>P(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:r(C.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>z(t)),e.preventDefault()}})})})})})})});hm.displayName="SelectContentImpl";var gm=e.forwardRef((t,n)=>{const{__scopeSelect:r,onPlaced:o,...a}=t,i=Jp(cm,r),c=pm(cm,r),[d,f]=e.useState(null),[p,m]=e.useState(null),h=s(n,e=>m(e)),g=Zp(r),y=e.useRef(!1),v=e.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:C,focusSelectedItem:k}=c,E=e.useCallback(()=>{if(i.trigger&&i.valueNode&&d&&p&&b&&w&&C){const e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=C.getBoundingClientRect();if("rtl"!==i.dir){const o=r.left-t.left,a=n.left-o,i=e.left-a,s=e.width+i,l=Math.max(s,t.width),c=window.innerWidth-um,u=Bp(a,[um,Math.max(um,c-l)]);d.style.minWidth=s+"px",d.style.left=u+"px"}else{const o=t.right-r.right,a=window.innerWidth-n.right-o,i=window.innerWidth-e.right-a,s=e.width+i,l=Math.max(s,t.width),c=window.innerWidth-um,u=Bp(a,[um,Math.max(um,c-l)]);d.style.minWidth=s+"px",d.style.right=u+"px"}const a=g(),s=window.innerHeight-2*um,l=b.scrollHeight,c=window.getComputedStyle(p),u=parseInt(c.borderTopWidth,10),f=parseInt(c.paddingTop,10),m=parseInt(c.borderBottomWidth,10),h=u+f+l+parseInt(c.paddingBottom,10)+m,v=Math.min(5*w.offsetHeight,h),x=window.getComputedStyle(b),k=parseInt(x.paddingTop,10),E=parseInt(x.paddingBottom,10),S=e.top+e.height/2-um,_=s-S,N=w.offsetHeight/2,A=u+f+(w.offsetTop+N),T=h-A;if(A<=S){const e=a.length>0&&w===a[a.length-1].ref.current;d.style.bottom="0px";const t=p.clientHeight-b.offsetTop-b.offsetHeight,n=A+Math.max(_,N+(e?E:0)+t+m);d.style.height=n+"px"}else{const e=a.length>0&&w===a[0].ref.current;d.style.top="0px";const t=Math.max(S,u+b.offsetTop+(e?k:0)+N)+T;d.style.height=t+"px",b.scrollTop=A-S+b.offsetTop}d.style.margin=`${um}px 0`,d.style.minHeight=v+"px",d.style.maxHeight=s+"px",o?.(),requestAnimationFrame(()=>y.current=!0)}},[g,i.trigger,i.valueNode,d,p,b,w,C,i.dir,o]);u(()=>E(),[E]);const[S,_]=e.useState();u(()=>{p&&_(window.getComputedStyle(p).zIndex)},[p]);const N=e.useCallback(e=>{e&&!0===v.current&&(E(),k?.(),v.current=!1)},[E,k]);return(0,l.jsx)(vm,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:y,onScrollButtonChange:N,children:(0,l.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:(0,l.jsx)(x.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});gm.displayName="SelectItemAlignedPosition";var ym=e.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=um,...a}=e,i=qp(n);return(0,l.jsx)(ho,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ym.displayName="SelectPopperPosition";var[vm,bm]=Kp(cm,{}),wm="SelectViewport",Cm=e.forwardRef((t,n)=>{const{__scopeSelect:o,nonce:a,...i}=t,c=pm(wm,o),d=bm(wm,o),u=s(n,c.onViewportChange),f=e.useRef(0);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,l.jsx)(Gp.Slot,{scope:o,children:(0,l.jsx)(x.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:r(i.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=d;if(r?.current&&n){const e=Math.abs(f.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*um,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});Cm.displayName=wm;var xm="SelectGroup",[km,Em]=Kp(xm);e.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=m();return(0,l.jsx)(km,{scope:n,id:o,children:(0,l.jsx)(x.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=xm;var Sm="SelectLabel",_m=e.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Em(Sm,n);return(0,l.jsx)(x.div,{id:o.id,...r,ref:t})});_m.displayName=Sm;var Nm="SelectItem",[Am,Tm]=Kp(Nm),Rm=e.forwardRef((t,n)=>{const{__scopeSelect:o,value:a,disabled:i=!1,textValue:c,...d}=t,u=Jp(Nm,o),f=pm(Nm,o),p=u.value===a,[h,g]=e.useState(c??""),[y,v]=e.useState(!1),b=s(n,e=>f.itemRefCallback?.(e,a,i)),w=m(),C=e.useRef("touch"),k=()=>{i||(u.onValueChange(a),u.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,l.jsx)(Am,{scope:o,value:a,disabled:i,textId:w,isSelected:p,onItemTextChange:e.useCallback(e=>{g(t=>t||(e?.textContent??"").trim())},[]),children:(0,l.jsx)(Gp.ItemSlot,{scope:o,value:a,disabled:i,textValue:h,children:(0,l.jsx)(x.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":p&&y,"data-state":p?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...d,ref:b,onFocus:r(d.onFocus,()=>v(!0)),onBlur:r(d.onBlur,()=>v(!1)),onClick:r(d.onClick,()=>{"mouse"!==C.current&&k()}),onPointerUp:r(d.onPointerUp,()=>{"mouse"===C.current&&k()}),onPointerDown:r(d.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:r(d.onPointerMove,e=>{C.current=e.pointerType,i?f.onItemLeave?.():"mouse"===C.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:r(d.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:r(d.onKeyDown,e=>{""!==f.searchRef?.current&&" "===e.key||(Vp.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})});Rm.displayName=Nm;var Mm="SelectItemText",Om=e.forwardRef((t,n)=>{const{__scopeSelect:r,className:o,style:a,...i}=t,c=Jp(Mm,r),d=pm(Mm,r),f=Tm(Mm,r),p=tm(Mm,r),[m,h]=e.useState(null),g=s(n,e=>h(e),f.onItemTextChange,e=>d.itemTextRefCallback?.(e,f.value,f.disabled)),v=m?.textContent,b=e.useMemo(()=>(0,l.jsx)("option",{value:f.value,disabled:f.disabled,children:v},f.value),[f.disabled,f.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:C}=p;return u(()=>(w(b),()=>C(b)),[w,C,b]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.span,{id:f.textId,...i,ref:g}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?y.createPortal(i.children,c.valueNode):null]})});Om.displayName=Mm;var Lm="SelectItemIndicator",Im=e.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Tm(Lm,n).isSelected?(0,l.jsx)(x.span,{"aria-hidden":!0,...r,ref:t}):null});Im.displayName=Lm;var Dm="SelectScrollUpButton";e.forwardRef((t,n)=>{const r=pm(Dm,t.__scopeSelect),o=bm(Dm,t.__scopeSelect),[a,i]=e.useState(!1),c=s(n,o.onScrollButtonChange);return u(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,l.jsx)(jm,{...t,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=Dm;var Pm="SelectScrollDownButton";e.forwardRef((t,n)=>{const r=pm(Pm,t.__scopeSelect),o=bm(Pm,t.__scopeSelect),[a,i]=e.useState(!1),c=s(n,o.onScrollButtonChange);return u(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,l.jsx)(jm,{...t,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=Pm;var jm=e.forwardRef((t,n)=>{const{__scopeSelect:o,onAutoScroll:a,...i}=t,s=pm("SelectScrollButton",o),c=e.useRef(null),d=Zp(o),f=e.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return e.useEffect(()=>()=>f(),[f]),u(()=>{const e=d().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[d]),(0,l.jsx)(x.div,{"aria-hidden":!0,...i,ref:n,style:{flexShrink:0,...i.style},onPointerDown:r(i.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(a,50))}),onPointerMove:r(i.onPointerMove,()=>{s.onItemLeave?.(),null===c.current&&(c.current=window.setInterval(a,50))}),onPointerLeave:r(i.onPointerLeave,()=>{f()})})}),zm=e.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,l.jsx)(x.div,{"aria-hidden":!0,...r,ref:t})});zm.displayName="SelectSeparator";var Bm="SelectArrow";e.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qp(n),a=Jp(Bm,n),i=pm(Bm,n);return a.open&&"popper"===i.position?(0,l.jsx)(go,{...o,...r,ref:t}):null}).displayName=Bm;var $m=e.forwardRef(({__scopeSelect:t,value:n,...r},o)=>{const a=e.useRef(null),i=s(o,a),c=_f(n);return e.useEffect(()=>{const e=a.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(c!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[c,n]),(0,l.jsx)(x.select,{...r,style:{...kt,...r.style},ref:i,defaultValue:n})});function Hm(e){return""===e||void 0===e}function Wm(t){const n=k(t),r=e.useRef(""),o=e.useRef(0),a=e.useCallback(e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(t)},[n]),i=e.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,i]}function Fm(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}$m.displayName="SelectBubbleInput";var Vm=om,Um=sm,Gm=lm,Zm=dm,Xm=Cm,Km=_m,Ym=Rm,qm=Om,Qm=Im,Jm=zm;function eh(...e){return yf(Xt(e))}const th=nm,nh=im,rh=e.forwardRef(({className:t,children:n,...r},o)=>(0,e.createElement)(Vm,{ref:o,className:eh("flex w-full items-center rounded-md border border-gray-400 bg-white px-3 py-2 text-md ring-offset-white placeholder:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 relative pr-8 group",t),...r},n,(0,e.createElement)(Um,{className:"absolute right-3 top-1/2 -translate-y-1/2 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180"},(0,e.createElement)(iu,{name:"expand",size:16}))));rh.displayName=Vm.displayName;const oh=e.forwardRef(({className:t,children:n,position:r="popper",...o},a)=>(0,e.createElement)(Gm,{container:document.getElementById("onboarding-modal-root")},(0,e.createElement)(Zm,{ref:a,className:eh("relative z-[100003] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-white text-gray-900 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:-translate-y-1","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...o},(0,e.createElement)(Xm,{className:eh("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},n))));oh.displayName=Zm.displayName,e.forwardRef(({className:t,...n},r)=>(0,e.createElement)(Km,{ref:r,className:eh("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...n})).displayName=Km.displayName;const ah=e.forwardRef(({className:t,children:n,...r},o)=>(0,e.createElement)(Ym,{ref:o,className:eh("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-3 pr-8 text-md outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r},(0,e.createElement)(qm,null,n),(0,e.createElement)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},(0,e.createElement)(Qm,null,(0,e.createElement)(iu,{name:"CheckRoundedIcon",size:16,color:"blue"})))));ah.displayName=Ym.displayName,e.forwardRef(({className:t,...n},r)=>(0,e.createElement)(Jm,{ref:r,className:eh("-mx-1 my-1 h-px bg-gray-100",t),...n})).displayName=Jm.displayName;const ih=(0,e.memo)(({field:t,value:n,onChange:r})=>{var o;return(0,e.createElement)(Ef,{inputId:t.id,label:(0,e.createElement)("div",{className:"flex items-center gap-2"},(0,e.createElement)("span",null,t.label),t.tooltip&&(0,e.createElement)(iu,{name:null!==(o=t.tooltip.icon)&&void 0!==o?o:"info",color:"gray500",fill:"gray500",size:16,tooltip:t.tooltip,className:"ml-[-4px]"}))},(0,e.createElement)(th,{onValueChange:r,value:n,disabled:t.is_lock},(0,e.createElement)(rh,{className:"w-full"},(0,e.createElement)(nh,{placeholder:(0,_t.__)("Select an option","wp-optimize")})),(0,e.createElement)(oh,null,t.options.map(t=>(0,e.createElement)(ah,{key:t.value,value:t.value},t.label)))))}),sh=(0,e.memo)(({field:t,value:n,onChange:r})=>{var o,a,i;const s=null!==(o=t.min)&&void 0!==o?o:0,l=null!==(a=t.max)&&void 0!==a?a:1/0,c=!0===t.is_lock,[d,u]=(0,e.useState)(n);return(0,e.useEffect)(()=>{u(n)},[n]),(0,e.createElement)(Ef,{inputId:t.id,label:(0,e.createElement)("div",{className:"flex items-center gap-2"},(0,e.createElement)("span",null,t.label),t.tooltip&&(0,e.createElement)(iu,{name:null!==(i=t.tooltip.icon)&&void 0!==i?i:"info",color:"gray500",fill:"gray500",size:16,tooltip:t.tooltip,className:"ml-[-4px]"}))},(0,e.createElement)("div",{className:"flex w-full items-center border border-gray-400 rounded-md overflow-hidden"},(0,e.createElement)(bf,{id:t.id,type:"number",value:d,onChange:e=>{const t=e.target.value.replace(/[^0-9]/g,""),n=""===t?s:parseInt(t,10),o=Math.max(s,Math.min(l,n));u(o),r(o)},onKeyDown:e=>{["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","Home","End"].includes(e.key)||(e.ctrlKey||e.metaKey)&&["a","c","v","x"].includes(e.key.toLowerCase())||/^\d$/.test(e.key)||e.preventDefault()},onPaste:e=>{var t,n;if(e.preventDefault(),c)return;const o=e.clipboardData.getData("text").replace(/[^0-9]/g,""),a=e.target,i=null!==(t=a.selectionStart)&&void 0!==t?t:0,d=null!==(n=a.selectionEnd)&&void 0!==n?n:0,f=a.value,p=(f.substring(0,i)+o+f.substring(d)).replace(/[^0-9]/g,""),m=""===p?s:parseInt(p,10),h=Math.max(s,Math.min(l,m));u(h),r(h),setTimeout(()=>{const e=i+o.length;a.value=String(h),a.setSelectionRange(e,e)},0)},min:s,max:l,disabled:c,className:"text-center flex-1 border-none focus:ring-0 focus:border-none rounded-none bg-white"}),(0,e.createElement)("div",{className:"flex h-full divide-x divide-gray-400"},(0,e.createElement)("button",{type:"button",onClick:()=>{if(!c&&d>s){const e=d-1;u(e),r(e)}},disabled:c||d<=s,className:"p-2 bg-gray-100 hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed"},(0,e.createElement)(iu,{name:"minus",size:16,color:"gray-700"})),(0,e.createElement)("button",{type:"button",onClick:()=>{if(!c&&d<l){const e=d+1;u(e),r(e)}},disabled:c||d>=l,className:"p-2 bg-gray-100 hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed"},(0,e.createElement)(iu,{name:"plus",size:16,color:"gray-700"})))))}),lh=(0,e.memo)(({field:t,value:n,onChange:r})=>{var o;const[a,i]=(0,e.useState)(!1),s=Array.isArray(n)?n:[],l=(0,e.useRef)({}),c=s.map(e=>t.options.find(t=>t.value===e)).filter(e=>void 0!==e),d=(e,t)=>{e.stopPropagation(),e.preventDefault();const n=s.filter(e=>e!==t);r(n)};return(0,e.createElement)(Ef,{inputId:t.id,label:(0,e.createElement)("div",{className:"flex items-center gap-2"},(0,e.createElement)("span",null,t.label),t.tooltip&&(0,e.createElement)(iu,{name:null!==(o=t.tooltip.icon)&&void 0!==o?o:"info",color:"gray500",fill:"gray500",size:16,tooltip:t.tooltip,className:"ml-[-4px]"}))},(0,e.createElement)(th,{onValueChange:e=>{let t;t=s.includes(e)?s.filter(t=>t!==e):[...s,e],r(t)},value:"",open:a,onOpenChange:e=>{Object.values(l.current).some(e=>e&&e.contains(event.target))||i(e)},disabled:t.is_lock},(0,e.createElement)(rh,{className:"flex w-full items-center border border-gray-400 rounded-md min-h-[40px] flex-wrap p-2 pr-8"},(0,e.createElement)("div",{className:"flex flex-wrap flex-1 items-center gap-1"},c.map(t=>(0,e.createElement)("div",{key:t.value,className:"flex items-center bg-gray-200 rounded-md px-2 py-1 text-sm"},t?.icon&&(0,e.createElement)(iu,{name:t.icon,size:16,color:"gray-700",className:"mr-1"}),t.label,(0,e.createElement)("span",{ref:e=>l.current[t.value]=e,role:"button",tabIndex:0,onClick:e=>d(e,t.value),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||d(e,t.value)},className:"ml-2 p-1 text-gray-600 hover:text-gray-900 cursor-pointer"},(0,e.createElement)(iu,{name:"times",size:18,color:"gray-600"})))),0===s.length&&(0,e.createElement)(nh,{placeholder:t.placeholder||(0,_t.__)("Select options...","wp-optimize"),className:"flex-1"}),s.length>0&&(0,e.createElement)("span",{className:"flex-1 min-w-[50px] h-full"}))),(0,e.createElement)(oh,null,t.options.map(t=>{const n=s.includes(t.value);return(0,e.createElement)(ah,{key:t.value,value:t.value},(0,e.createElement)("div",{className:"flex items-center w-full gap-2"},t.icon&&(0,e.createElement)(iu,{name:t.icon,size:16,color:"gray-700"}),(0,e.createElement)("span",null,t.label)),n&&(0,e.createElement)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-3.5 w-3.5 items-center justify-center"},(0,e.createElement)(iu,{name:"CheckRoundedIcon",size:16,color:"blue"})))}))))}),ch=({fields:t,onChange:n,fieldStatus:r=()=>{}})=>{const{getValue:o,setValue:a,isEdited:i}=Ut();if(!t)return null;const s={two_fa_validation:jp,qr_code:Pp,backup_codes:zp,license:Sf,checkbox:op,tracking_test:lp,email:dp,plugins:fp,password:up,dropdown:ih,number:sh,multi_select:lh};return(0,e.createElement)(Jt,null,t.map(t=>{let l=o(t.id);i(t.id)||null!=l||void 0===t.default||(!0===t.is_lock?(a(t.id,!1),l=!1):(a(t.id,t.default),l=t.default));const c=s[t.type]||null;return c?(0,e.createElement)(c,{key:t.id,field:t,onChange:e=>n(t.id,e),fieldStatus:e=>r(t.id,e),value:l}):null}))};var dh="Collapsible",[uh,fh]=c(dh),[ph,mh]=uh(dh),hh=e.forwardRef((t,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:i,onOpenChange:s,...c}=t,[d,u]=g({prop:o,defaultProp:a??!1,onChange:s,caller:dh});return(0,l.jsx)(ph,{scope:r,disabled:i,contentId:m(),open:d,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),children:(0,l.jsx)(x.div,{"data-state":Ch(d),"data-disabled":i?"":void 0,...c,ref:n})})});hh.displayName=dh;var gh="CollapsibleTrigger",yh=e.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,a=mh(gh,n);return(0,l.jsx)(x.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Ch(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:t,onClick:r(e.onClick,a.onOpenToggle)})});yh.displayName=gh;var vh="CollapsibleContent",bh=e.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=mh(vh,e.__scopeCollapsible);return(0,l.jsx)(W,{present:n||o.open,children:({present:e})=>(0,l.jsx)(wh,{...r,ref:t,present:e})})});bh.displayName=vh;var wh=e.forwardRef((t,n)=>{const{__scopeCollapsible:r,present:o,children:a,...i}=t,c=mh(vh,r),[d,f]=e.useState(o),p=e.useRef(null),m=s(n,p),h=e.useRef(0),g=h.current,y=e.useRef(0),v=y.current,b=c.open||d,w=e.useRef(b),C=e.useRef(void 0);return e.useEffect(()=>{const e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),u(()=>{const e=p.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();h.current=t.height,y.current=t.width,w.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),f(o)}},[c.open,o]),(0,l.jsx)(x.div,{"data-state":Ch(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!b,...i,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...t.style},children:b&&a})});function Ch(e){return e?"open":"closed"}var xh=hh,kh=yh,Eh=bh,Sh="Accordion",_h=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Nh,Ah,Th]=$p(Sh),[Rh,Mh]=c(Sh,[Th,fh]),Oh=fh(),Lh=e.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return(0,l.jsx)(Nh.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,l.jsx)(Bh,{...a,ref:t}):(0,l.jsx)(zh,{...o,ref:t})})});Lh.displayName=Sh;var[Ih,Dh]=Rh(Sh),[Ph,jh]=Rh(Sh,{collapsible:!1}),zh=e.forwardRef((t,n)=>{const{value:r,defaultValue:o,onValueChange:a=()=>{},collapsible:i=!1,...s}=t,[c,d]=g({prop:r,defaultProp:o??"",onChange:a,caller:Sh});return(0,l.jsx)(Ih,{scope:t.__scopeAccordion,value:e.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:e.useCallback(()=>i&&d(""),[i,d]),children:(0,l.jsx)(Ph,{scope:t.__scopeAccordion,collapsible:i,children:(0,l.jsx)(Wh,{...s,ref:n})})})}),Bh=e.forwardRef((t,n)=>{const{value:r,defaultValue:o,onValueChange:a=()=>{},...i}=t,[s,c]=g({prop:r,defaultProp:o??[],onChange:a,caller:Sh}),d=e.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=e.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,l.jsx)(Ih,{scope:t.__scopeAccordion,value:s,onItemOpen:d,onItemClose:u,children:(0,l.jsx)(Ph,{scope:t.__scopeAccordion,collapsible:!0,children:(0,l.jsx)(Wh,{...i,ref:n})})})}),[$h,Hh]=Rh(Sh),Wh=e.forwardRef((t,n)=>{const{__scopeAccordion:o,disabled:a,dir:i,orientation:c="vertical",...d}=t,u=s(e.useRef(null),n),f=Ah(o),p="ltr"===Wp(i),m=r(t.onKeyDown,e=>{if(!_h.includes(e.key))return;const t=e.target,n=f().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===r)return;e.preventDefault();let a=r;const i=o-1,s=()=>{a=r+1,a>i&&(a=0)},l=()=>{a=r-1,a<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===c&&(p?s():l());break;case"ArrowDown":"vertical"===c&&s();break;case"ArrowLeft":"horizontal"===c&&(p?l():s());break;case"ArrowUp":"vertical"===c&&l()}const d=a%o;n[d].ref.current?.focus()});return(0,l.jsx)($h,{scope:o,disabled:a,direction:i,orientation:c,children:(0,l.jsx)(Nh.Slot,{scope:o,children:(0,l.jsx)(x.div,{...d,"data-orientation":c,ref:u,onKeyDown:a?void 0:m})})})}),Fh="AccordionItem",[Vh,Uh]=Rh(Fh),Gh=e.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Hh(Fh,n),i=Dh(Fh,n),s=Oh(n),c=m(),d=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,l.jsx)(Vh,{scope:n,open:d,disabled:u,triggerId:c,children:(0,l.jsx)(xh,{"data-orientation":a.orientation,"data-state":Jh(d),...s,...o,ref:t,disabled:u,open:d,onOpenChange:e=>{e?i.onItemOpen(r):i.onItemClose(r)}})})});Gh.displayName=Fh;var Zh="AccordionHeader",Xh=e.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Hh(Sh,n),a=Uh(Zh,n);return(0,l.jsx)(x.h3,{"data-orientation":o.orientation,"data-state":Jh(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Xh.displayName=Zh;var Kh="AccordionTrigger",Yh=e.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Hh(Sh,n),a=Uh(Kh,n),i=jh(Kh,n),s=Oh(n);return(0,l.jsx)(Nh.ItemSlot,{scope:n,children:(0,l.jsx)(kh,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});Yh.displayName=Kh;var qh="AccordionContent",Qh=e.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Hh(Sh,n),a=Uh(qh,n),i=Oh(n);return(0,l.jsx)(Eh,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Jh(e){return e?"open":"closed"}Qh.displayName=qh;var eg=Lh,tg=Gh,ng=Xh,rg=Yh,og=Qh;const ag=(0,n.memo)(({fields:t,groups:r,onChange:o})=>{const{currentStepIndex:a,setContinueDisabled:i}=Ut(),[s,l]=(0,n.useState)(0),[c,d]=(0,n.useState)(new Set([])),[u,f]=(0,n.useState)({}),p=e=>{const t=""===e?-1:Number(e);d(e=>s<0||s>=r.length||e.has(s)||s in u?e:new Set(e).add(s)),l(t)};return(0,n.useEffect)(()=>{i(c.size<r.length)},[c,a]),(0,e.createElement)(eg,{type:"single",value:`${s}`,onValueChange:p,collapsible:!0},r.map((n,r)=>(0,e.createElement)(tg,{key:r,className:"rounded-xl border border-grey data-[state=open]:border-orange-darkish overflow-hidden my-2",value:`${r}`},(0,e.createElement)(ng,{className:"flex"},(0,e.createElement)(rg,{className:"group font-semibold text-md px-3.5 h-[45px] flex-1 flex items-center justify-between bg-white hover:data-[state=closed]:bg-blue-lightest"},n.title,c.has(r)?(0,e.createElement)(iu,{name:"success",size:24,strokeWidth:1,stroke:"none",color:"#15803D",fill:"#15803D"}):(0,e.createElement)(iu,{name:"expand",size:24,strokeWidth:1,stroke:"none",color:"gray-500",fill:"gray-500"}))),(0,e.createElement)(og,{className:"data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp"},(0,e.createElement)("div",{className:"mx-3.5 space-y-1"},(0,e.createElement)(ch,{fields:t.filter(e=>e.group_id===n.id),onChange:o,fieldStatus:(e,t)=>((e,t,n)=>{f(r=>{var o;const a=new Set(null!==(o=r[e])&&void 0!==o?o:[]);if(n?a.delete(t):a.add(t),0===a.size){const{[e]:t,...n}=r;return n}return{...r,[e]:a}})})(r,e,t)})),(0,e.createElement)("div",{className:"flex flex-row gap-4 justify-center items-center min-w-[32ch]"},(0,e.createElement)(tn,{className:"w-full burst-continue flex justify-center items-center outline-none px-2 m-3.5",btnVariant:"secondary",size:"md",onClick:e=>p(r+1),disabled:s in u,key:r+"continue"},(0,_t.__)("Confirm","wp-optimize")))))))}),ig=(0,n.memo)(({step:t,settings:n,onFieldChange:r})=>(0,e.createElement)("div",{className:"w-full max-w-[70ch] mx-auto flex flex-col my-3 space-y-2 gap-2"},t.intro_bullets?.length>0&&(0,e.createElement)("div",{className:"space-y-2 flex flex-col "},t.intro_bullets.map((n,r)=>(0,e.createElement)("div",{key:`${t.id}-bullet-${r}`,className:"flex items-center gap-2 ml-2"},(0,e.createElement)("span",{className:"flex-shrink-0"},(0,e.createElement)(iu,{name:n.icon,size:24,type:"",strokeWidth:1,stroke:"none",color:"var(--teamupdraft-orange-dark)",className:"bg-[#fff5eb] rounded-[80px] p-2 shadow-[0_0_10px_#fff5eb] border border-[#fff5eb]"})),(0,e.createElement)("div",null,(0,e.createElement)("p",{className:"font-medium text-md"},n.title),(0,e.createElement)("p",{className:"text-[var(--teamupdraft-grey-600)] text-md"},n.desc))))),t.bullets?.length>0&&(0,e.createElement)(du,{bullets:t.bullets,stepId:t.id}),t?.groups?.length>0&&(0,e.createElement)(ag,{key:t.id,groups:t.groups,fields:t.fields,onChange:r}),t?.fields?.some(e=>!e.group_id)&&(0,e.createElement)(ch,{fields:t.fields.filter(e=>!e.group_id),onChange:r}))),sg=({isContinueDisabled:t,validateAndContinue:n,currentStep:r,handleContinue:o})=>{var a;const{onboardingData:i,isUpdating:s,currentStepIndex:l,footerMessage:c,isLastStep:d,isInstalling:u,licenseStatus:f}=Ut(),p=rp(i.upgrade,{utm_source:i.prefix+"_onboarding",utm_content:"upgrade"}),m=t(),h="license"===r?.type&&"activating"===f,g="license"===r?.type&&"activated"===f,y=i.is_all_plugins_installed,v="plugins"===r?.type&&y;return(0,e.createElement)(e.Fragment,null,!0===r.enable_premium_btn&&!i.is_pro&&(0,e.createElement)("div",{className:"flex flex-row gap-4 justify-center items-center min-w-[32ch]"},(0,e.createElement)(tn,{className:"flex justify-center items-center outline-none px-2 py-[5px] relative w-full",btnVariant:"secondary",size:"lg",link:p},r.premium_btn_text?r.premium_btn_text:(0,_t.__)("Go Premium","wp-optimize"),(0,e.createElement)(iu,{name:"magic-wand",size:24,color:"white",fill:"white",type:"",className:"ml-2"}))),(0,e.createElement)("div",{className:"flex flex-col md:flex-row gap-4 justify-center items-center min-w-[32ch] pt-2"},l>0&&!d()&&!h&&!g&&!v&&(0,e.createElement)("div",{className:"flex flex-row justify-center items-center w-full order-last md:order-first"},(0,e.createElement)(tn,{className:"burst-skip !text-[#C4511C] !font-semibold hover:!text-orange-darkish hover:underline hover:decoration-2 hover:underline-offset-4",btnVariant:"transparent",size:"sm",onClick:e=>o(e)},(0,_t.__)("Skip this step","wp-optimize")),r.skip_step&&(0,e.createElement)(iu,{name:null!==(a=r.skip_step?.icon)&&void 0!==a?a:"info",color:"#C4511C",fill:"#C4511C",size:16,tooltip:r.skip_step?.tooltip?{...r.skip_step.tooltip,side:"bottom",align:"center"}:"",className:"ml-2"})),!h&&r.button&&(0,e.createElement)(tn,{className:"burst-continue flex justify-center items-center outline-none px-2 py-[5px] relative w-full",btnVariant:m?"transparent-disabled":"secondary",size:"lg",disabled:m,onClick:e=>n(e),key:r.id+"continue"},(0,e.createElement)(iu,{name:"loading-circle",size:18,fill:"white",color:d()?"black":"white",className:"absolute left-3 transition-opacity duration-300 "+(s||u?"opacity-100":"opacity-0")}),(0,e.createElement)("span",{className:"flex mx-6 font-medium whitespace-nowrap truncate"},g?(0,_t.__)("Continue","wp-optimize"):r.button.label,r.button.icon&&(0,e.createElement)(iu,{name:r.button.icon,size:0===l?26:18,color:d()?"black":"white",fill:d()?"black":"white",type:"",className:"ml-2"})))),r.note&&(0,e.createElement)("div",{className:"text-center"},(0,e.createElement)("p",{className:"whitespace-break-spaces font-medium text-sm text-[var(--teamupdraft-grey-600)]"},r.note)),c&&(0,e.createElement)("div",{className:"flex justify-center gap-2 text-sm text-[var(--teamupdraft-grey-600)] text-center rounded-md border border-[var(--teamupdraft-orange-dark)] p-2 mt-2"},(0,e.createElement)(iu,{name:"loading-circle",color:"var(--teamupdraft-orange-dark)",fill:"var(--teamupdraft-orange-dark)",size:18,className:"mr-2"}),(0,e.createElement)("div",null,c)))},lg=(0,n.memo)(()=>{const[t,r]=(0,n.useState)(null),[o,a]=(0,n.useState)(!1),{isOpen:s,currentStepIndex:l,steps:c,setOpen:d,setCurrentStepIndex:u,addSuccessStep:f,setSteps:p,onboardingData:m,setResponseMessage:h,setResponseSuccess:g,responseMessage:y,responseSuccess:v,responseCode:b,updateEmail:w,updateStepSettings:C,installPlugins:x,validateLicense:k,licenseStatus:E,settings:S,setValue:_,getSettings:N,isLastStep:A,trackingTestRunning:T,isInstalling:R,continueDisabled:M,setContinueDisabled:O,isUpdating:L}=Ut();(0,n.useEffect)(()=>{A()&&(i.e(463).then(i.bind(i,463)).then(({default:e})=>{r(()=>e)}),a(!0))},[A()]);const I=(0,n.useMemo)(()=>m.steps?.filter(e=>!1!==e.visible)||[],[m.steps]),D=I[l],P=(0,n.useRef)(null);(0,n.useEffect)(()=>{I.length>0&&0===c.length&&p(I)},[I,c.length,p]),(0,n.useEffect)(()=>{0===S.length&&N()},[S]),(0,n.useEffect)(()=>{h(""),g(!0)},[l]);const j=async e=>{h(""),g(!0),S&&D.fields&&D.fields.some(e=>{const t=S.find(t=>t.id===e.id),n=!!t&&t.value;return!0===n||"string"==typeof n&&""!==n.trim()})&&f(D.id),u(l+1),O(!1),l+1>=c.length&&m.reload_on_finish&&window.location.reload()};return(0,n.useEffect)(()=>{d(!0)},[]),D?(0,e.createElement)(Jt,null,(0,e.createElement)("div",{id:"onboarding-modal-root"}),(0,e.createElement)(Qt,{logo:m.logo,logo_class:`${m.prefix}-logo`,title:(0,_t.__)("Onboarding","wp-optimize"),currentStepIndex:l,content:(0,e.createElement)("div",{className:"flex flex-col gap-2 mb-3"},(0,e.createElement)(Qo,{container:P.current},(0,e.createElement)("div",{ref:P,className:"flex flex-col gap-2 justify-center items-stretch"},(0,e.createElement)(lu,{currentStep:D,handlePrevious:()=>{u(l-1),O(!1)}}),(0,e.createElement)(cu,{currentStep:D}),!("license"===D.type&&("activated"===E||L)||"plugins"===D.type&&m.is_all_plugins_installed)&&(0,e.createElement)(ig,{step:D,settings:S,onFieldChange:async(e,t)=>{_(e,t)}}),"BADAUTHPWD"!==b&&y&&(0,e.createElement)("div",{className:"flex items-start gap-2 rounded-md border px-4 py-3 text-sm "+(v?"border-[#046C4E] bg-[#046c4e4f]":"border-[#FECACA] bg-[#FEF2F2] ")},(0,e.createElement)(iu,{name:v?"success":"info",color:v?"#046C4E":"#B40000",fill:v?"#046C4E":"#B40000",size:16,className:"mr-2 mt-[3px]"}),(0,e.createElement)("div",null,(0,e.createElement)("p",{className:"font-semibold text-[#1C252C]"},v?"Success":"Error"),(0,e.createElement)("p",{className:"text-[#4F565B]"},y))),(0,e.createElement)(sg,{isContinueDisabled:()=>{if(M)return!0;if("tracking"===D?.id)return T;if(A()&&R)return!0;if("email"===D?.type||"license"===D?.type){const o=D.fields?.find(e=>"email"===e?.type);if(o){var e,t;const n=null!==(e=null!==(t=S&&"object"==typeof S&&!Array.isArray(S)?S[o.id]:void 0)&&void 0!==t?t:Array.isArray(S)?S.find(e=>e?.id===o.id)?.value:void 0)&&void 0!==e?e:"";if(!cp(n))return!0}const a=D.fields?.find(e=>"checkbox"===e?.type);var n,r;if(a)if(!0!==(null!==(n=null!==(r=S&&"object"==typeof S&&!Array.isArray(S)?S[a.id]:void 0)&&void 0!==r?r:Array.isArray(S)?S.find(e=>e?.id===a.id)?.value:void 0)&&void 0!==n&&n))return!0}return!1},validateAndContinue:async e=>{h(""),"license"!==D.type||"activated"===E?("settings"===D.type&&await C(S),"email"===D.type&&await w(),"plugins"===D.type&&(m.is_all_plugins_installed||setTimeout(()=>{x()},0)),await j()):await k()},currentStep:D,handleContinue:j})))),isOpen:s,onClose:()=>{d(!1),zt({},"user_skipped_wizard")},footer:null,triggerClassName:"",children:null}),o&&t&&(0,e.createElement)("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2"},(0,e.createElement)(t,{duration:4e3,width:1400,particleCount:200,force:.7,zIndex:999999}))):null});document.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("teamupdraft-onboarding");t&&(0,n.createRoot)(t).render((0,e.createElement)(lg,null))})})()})();