|
172
|
+`,window.wp.editor,window.wp.blockEditor,window.wp.data,window.wp.url;const je=Me,we=e=>{const t=Se(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ne(n,t)||Ee(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ne=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ne(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},Te=/^\[(.+)\]$/,Ee=e=>{if(Te.test(e)){const t=Te.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Se=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)ze(n[e],r,e,t);return r},ze=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return ke(e)?void ze(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{ze(o,De(t,e),n,r)}))}else(""===e?t:De(t,e)).classGroupId=n}))},De=(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},ke=e=>e.isThemeGetter,Ce=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Re=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=Pe(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Pe=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ae=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}},Le=/\s+/;function Oe(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Be(e))&&(r&&(r+=" "),r+=t);return r}const Be=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Be(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ge(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:Ce(e.cacheSize),parseClassName:Re(e),sortModifiers:Ae(e),...we(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Le);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:p}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let f=!!p,h=r(f?m.substring(0,p):m);if(!h){if(!f){l=t+(l.length>0?" "+l:l);continue}if(h=r(m),!h){l=t+(l.length>0?" "+l:l);continue}f=!1}const g=i(u).join(":"),y=d?g+"!":g,I=y+h;if(s.includes(I))continue;s.push(I);const v=o(h,f);for(let e=0;e<v.length;++e){const t=v[e];s.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(Oe.apply(null,arguments))}}const Ue=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ve=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,We=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ze=/^\d+\/\d+$/,Fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ye=/\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$/,He=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=e=>Ze.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>!!e&&Number.isInteger(Number(e)),$e=e=>e.endsWith("%")&&Je(e.slice(0,-1)),qe=e=>Fe.test(e),et=()=>!0,tt=e=>Ye.test(e)&&!He.test(e),nt=()=>!1,rt=e=>Qe.test(e),ot=e=>_e.test(e),it=e=>!at(e)&&!pt(e),st=e=>bt(e,wt,nt),at=e=>Ve.test(e),lt=e=>bt(e,Nt,tt),ct=e=>bt(e,Tt,Je),ut=e=>bt(e,Mt,nt),dt=e=>bt(e,jt,ot),mt=e=>bt(e,St,rt),pt=e=>We.test(e),ft=e=>xt(e,Nt),ht=e=>xt(e,Et),gt=e=>xt(e,Mt),yt=e=>xt(e,wt),It=e=>xt(e,jt),vt=e=>xt(e,St,!0),bt=(e,t,n)=>{const r=Ve.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},xt=(e,t,n=!1)=>{const r=We.exec(e);return!!r&&(r[1]?t(r[1]):n)},Mt=e=>"position"===e||"percentage"===e,jt=e=>"image"===e||"url"===e,wt=e=>"length"===e||"size"===e||"bg-size"===e,Nt=e=>"length"===e,Tt=e=>"number"===e,Et=e=>"family-name"===e,St=e=>"shadow"===e,zt=Ge((Symbol.toStringTag,()=>{const e=Ue("color"),t=Ue("font"),n=Ue("text"),r=Ue("font-weight"),o=Ue("tracking"),i=Ue("leading"),s=Ue("breakpoint"),a=Ue("container"),l=Ue("spacing"),c=Ue("radius"),u=Ue("shadow"),d=Ue("inset-shadow"),m=Ue("text-shadow"),p=Ue("drop-shadow"),f=Ue("blur"),h=Ue("perspective"),g=Ue("aspect"),y=Ue("ease"),I=Ue("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",pt,at],b=()=>[pt,at,l],x=()=>[Xe,"full","auto",...b()],M=()=>[Ke,"none","subgrid",pt,at],j=()=>["auto",{span:["full",Ke,pt,at]},Ke,pt,at],w=()=>[Ke,"auto",pt,at],N=()=>["auto","min","max","fr",pt,at],T=()=>["auto",...b()],E=()=>[Xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],S=()=>[e,pt,at],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",gt,ut,{position:[pt,at]}],D=()=>["auto","cover","contain",yt,st,{size:[pt,at]}],k=()=>[$e,ft,lt],C=()=>["","none","full",c,pt,at],R=()=>["",Je,ft,lt],P=()=>[Je,$e,gt,ut],A=()=>["","none",f,pt,at],L=()=>["none",Je,pt,at],O=()=>["none",Je,pt,at],B=()=>[Je,pt,at],G=()=>[Xe,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qe],breakpoint:[qe],color:[et],container:[qe],"drop-shadow":[qe],ease:["in","out","in-out"],font:[it],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qe],shadow:[qe],spacing:["px",Je],text:[qe],"text-shadow":[qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xe,at,pt,g]}],container:["container"],columns:[{columns:[Je,at,pt,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],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:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",pt,at]}],basis:[{basis:[Xe,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,Xe,"auto","initial","none",at]}],grow:[{grow:["",Je,pt,at]}],shrink:[{shrink:["",Je,pt,at]}],order:[{order:[Ke,"first","last","none",pt,at]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"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:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,ft,lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,pt,ct]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$e,at]}],"font-family":[{font:[ht,at,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,pt,at]}],"line-clamp":[{"line-clamp":[Je,"none",pt,ct]}],leading:[{leading:[i,...b()]}],"list-image":[{"list-image":["none",pt,at]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pt,at]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",pt,lt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Je,"auto",pt,at]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pt,at]}],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",pt,at]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,pt,at],radial:["",pt,at],conic:[Ke,pt,at]},It,dt]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:C()}],"rounded-s":[{"rounded-s":C()}],"rounded-e":[{"rounded-e":C()}],"rounded-t":[{"rounded-t":C()}],"rounded-r":[{"rounded-r":C()}],"rounded-b":[{"rounded-b":C()}],"rounded-l":[{"rounded-l":C()}],"rounded-ss":[{"rounded-ss":C()}],"rounded-se":[{"rounded-se":C()}],"rounded-ee":[{"rounded-ee":C()}],"rounded-es":[{"rounded-es":C()}],"rounded-tl":[{"rounded-tl":C()}],"rounded-tr":[{"rounded-tr":C()}],"rounded-br":[{"rounded-br":C()}],"rounded-bl":[{"rounded-bl":C()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"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:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Je,pt,at]}],"outline-w":[{outline:["",Je,ft,lt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",u,vt,mt]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",d,vt,mt]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Je,lt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,vt,mt]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Je,pt,at]}],"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":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[pt,at]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pt,at]}],filter:[{filter:["","none",pt,at]}],blur:[{blur:A()}],brightness:[{brightness:[Je,pt,at]}],contrast:[{contrast:[Je,pt,at]}],"drop-shadow":[{"drop-shadow":["","none",p,vt,mt]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Je,pt,at]}],"hue-rotate":[{"hue-rotate":[Je,pt,at]}],invert:[{invert:["",Je,pt,at]}],saturate:[{saturate:[Je,pt,at]}],sepia:[{sepia:["",Je,pt,at]}],"backdrop-filter":[{"backdrop-filter":["","none",pt,at]}],"backdrop-blur":[{"backdrop-blur":A()}],"backdrop-brightness":[{"backdrop-brightness":[Je,pt,at]}],"backdrop-contrast":[{"backdrop-contrast":[Je,pt,at]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,pt,at]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,pt,at]}],"backdrop-invert":[{"backdrop-invert":["",Je,pt,at]}],"backdrop-opacity":[{"backdrop-opacity":[Je,pt,at]}],"backdrop-saturate":[{"backdrop-saturate":[Je,pt,at]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,pt,at]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pt,at]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",pt,at]}],ease:[{ease:["linear","initial",y,pt,at]}],delay:[{delay:[Je,pt,at]}],animate:[{animate:["none",I,pt,at]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,pt,at]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:O()}],"scale-x":[{"scale-x":O()}],"scale-y":[{"scale-y":O()}],"scale-z":[{"scale-z":O()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[pt,at,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",pt,at]}],"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":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",pt,at]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Je,ft,lt,ct]}],stroke:[{stroke:["none",...S()]}],"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"]}})),Dt=window.wp.hooks;function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function Ct(){Ct=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof m?n:m,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=x(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new w(o||[])),!0),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(N([])));y&&y!==n&&r.call(y,i)&&(h=y);var I=f.prototype=m.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(o,i,s,a){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==kt(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function w(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function N(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(kt(t)+" is not iterable")}return p.prototype=f,l(I,"constructor",f),l(f,"constructor",p),p.displayName=l(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,a,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},v(b.prototype),l(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new b(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},v(I),l(I,a,"Generator"),l(I,i,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=N,w.prototype={constructor:w,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:N(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function Rt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Pt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Rt(i,r,o,s,a,"next",e)}function a(e){Rt(i,r,o,s,a,"throw",e)}s(void 0)}))}}window.wp.blocks;var At=function(){var e=Pt(Ct().mark((function e(t,n,r){var o,i,s,a,l,c,u,d,m=arguments;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=m.length>3&&void 0!==m[3]&&m[3],i=m.length>4&&void 0!==m[4]?m[4]:"",s=m.length>5?m[5]:void 0,a=function(e){"function"==typeof s&&s(e)},"1"===srfm_admin.capability){e.next=9;break}return l=(0,D.__)("You do not have permission to create forms.","sureforms"),console.error(l),a(l),e.abrupt("return");case 9:return e.prev=9,e.next=12,C()({path:"sureforms/v1/create-new-form",method:"POST",headers:{"Content-Type":"text/html","X-WP-Nonce":srfm_admin.template_picker_nonce},data:{form_data:t,template_name:n,template_metas:r,is_conversational:o,form_type:i}});case 12:if(null==(c=e.sent)||!c.id){e.next=19;break}return u=c.id,"learn"===new URLSearchParams(window.location.search).get("source")&&localStorage.setItem("srfmLearnFormId",String(u)),window.location.href="".concat(srfm_admin.site_url,"/wp-admin/post.php?post=").concat(u,"&action=edit"),e.abrupt("return");case 19:d=(null==c?void 0:c.message)||(0,D.__)("The form could not be saved. Please try again.","sureforms"),console.error("Error creating sureforms_form:",d),a(d),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(9),console.error("Error creating sureforms_form:",e.t0),a((null===e.t0||void 0===e.t0?void 0:e.t0.message)||(0,D.__)("The form could not be saved. Please try again.","sureforms"));case 28:case"end":return e.stop()}}),e,null,[[9,24]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Lt=function(){var e=Pt(Ct().mark((function e(){var t,n,r=arguments;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"default",e.next=3,C()({path:"/sureforms/v1/initiate-auth?source=".concat(t),method:"GET"});case 3:null!=(n=e.sent)&&n.success&&(window.location.href=n.data);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ot=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var r=new URL(e);return r.searchParams.set(n,t),"utm_medium"===n&&(r.searchParams.get("utm_source")||r.searchParams.set("utm_source","sureforms_plugin"),r.searchParams.get("utm_campaign")||r.searchParams.set("utm_campaign","core_plugin")),r.toString()}catch(t){return console.error("Invalid URL:",t),e}},Bt=function(){return zt(je.apply(void 0,arguments))};void 0===window._srfmSlugAutoLabels&&(window._srfmSlugAutoLabels=new Map),window._srfmSlugAutoLabels;const Gt=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();var Ut={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Vt=(0,t.forwardRef)((({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:i="",children:s,iconNode:a,...l},c)=>(0,t.createElement)("svg",{ref:c,...Ut,width:n,height:n,stroke:e,strokeWidth:o?24*Number(r)/Number(n):r,className:Gt("lucide",i),...l},[...a.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(s)?s:[s]]))),Wt=(e,n)=>{const r=(0,t.forwardRef)((({className:r,...o},i)=>{return(0,t.createElement)(Vt,{ref:i,iconNode:n,className:Gt(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...o});var s}));return r.displayName=`${e}`,r},Zt=Wt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ft=o(74848);const Yt=e=>{const t=Xt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ht(n,t)||_t(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ht=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ht(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},Qt=/^\[(.+)\]$/,_t=e=>{if(Qt.test(e)){const t=Qt.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Xt=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return qt(Object.entries(e.classGroups),n).forEach((([e,n])=>{Jt(n,r,e,t)})),r},Jt=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return $t(e)?void Jt(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Jt(o,Kt(t,e),n,r)}))}else(""===e?t:Kt(t,e)).classGroupId=n}))},Kt=(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},$t=e=>e.isThemeGetter,qt=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,en=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},tn=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){s=c;continue}}"["===u?a++:"]"===u&&a--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},nn=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},rn=/\s+/;function on(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=sn(e))&&(r&&(r+=" "),r+=t);return r}const sn=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=sn(e[r]))&&(n&&(n+=" "),n+=t);return n};function an(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:en(e.cacheSize),parseClassName:tn(e),...Yt(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(rn);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let m=Boolean(d),p=r(m?u.substring(0,d):u);if(!p){if(!m){a=t+(a.length>0?" "+a:a);continue}if(p=r(u),!p){a=t+(a.length>0?" "+a:a);continue}m=!1}const f=nn(l).join(":"),h=c?f+"!":f,g=h+p;if(i.includes(g))continue;i.push(g);const y=o(p,m);for(let e=0;e<y.length;++e){const t=y[e];i.push(h+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(on.apply(null,arguments))}}const ln=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},cn=/^\[(?:([a-z-]+):)?(.+)\]$/i,un=/^\d+\/\d+$/,dn=new Set(["px","full","screen"]),mn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pn=/\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$/,fn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yn=e=>vn(e)||dn.has(e)||un.test(e),In=e=>Cn(e,"length",Rn),vn=e=>Boolean(e)&&!Number.isNaN(Number(e)),bn=e=>Cn(e,"number",vn),xn=e=>Boolean(e)&&Number.isInteger(Number(e)),Mn=e=>e.endsWith("%")&&vn(e.slice(0,-1)),jn=e=>cn.test(e),wn=e=>mn.test(e),Nn=new Set(["length","size","percentage"]),Tn=e=>Cn(e,Nn,Pn),En=e=>Cn(e,"position",Pn),Sn=new Set(["image","url"]),zn=e=>Cn(e,Sn,Ln),Dn=e=>Cn(e,"",An),kn=()=>!0,Cn=(e,t,n)=>{const r=cn.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Rn=e=>pn.test(e)&&!fn.test(e),Pn=()=>!1,An=e=>hn.test(e),Ln=e=>gn.test(e),On=(Symbol.toStringTag,()=>{const e=ln("colors"),t=ln("spacing"),n=ln("blur"),r=ln("brightness"),o=ln("borderColor"),i=ln("borderRadius"),s=ln("borderSpacing"),a=ln("borderWidth"),l=ln("contrast"),c=ln("grayscale"),u=ln("hueRotate"),d=ln("invert"),m=ln("gap"),p=ln("gradientColorStops"),f=ln("gradientColorStopPositions"),h=ln("inset"),g=ln("margin"),y=ln("opacity"),I=ln("padding"),v=ln("saturate"),b=ln("scale"),x=ln("sepia"),M=ln("skew"),j=ln("space"),w=ln("translate"),N=()=>["auto",jn,t],T=()=>[jn,t],E=()=>["",yn,In],S=()=>["auto",vn,jn],z=()=>["","0",jn],D=()=>[vn,jn];return{cacheSize:500,separator:":",theme:{colors:[kn],spacing:[yn,In],blur:["none","",wn,jn],brightness:D(),borderColor:[e],borderRadius:["none","","full",wn,jn],borderSpacing:T(),borderWidth:E(),contrast:D(),grayscale:z(),hueRotate:D(),invert:z(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Mn,In],inset:N(),margin:N(),opacity:D(),padding:T(),saturate:D(),scale:D(),sepia:z(),skew:D(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",jn]}],container:["container"],columns:[{columns:[wn]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",jn]}],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:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xn,jn]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",jn]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",xn,jn]}],"grid-cols":[{"grid-cols":[kn]}],"col-start-end":[{col:["auto",{span:["full",xn,jn]},jn]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[kn]}],"row-start-end":[{row:["auto",{span:[xn,jn]},jn]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",jn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",jn]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",jn,t]}],"min-w":[{"min-w":[jn,t,"min","max","fit"]}],"max-w":[{"max-w":[jn,t,"none","full","min","max","fit","prose",{screen:[wn]},wn]}],h:[{h:[jn,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[jn,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[jn,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[jn,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wn,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bn]}],"font-family":[{font:[kn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",jn]}],"line-clamp":[{"line-clamp":["none",vn,bn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yn,jn]}],"list-image":[{"list-image":["none",jn]}],"list-style-type":[{list:["none","disc","decimal",jn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yn,In]}],"underline-offset":[{"underline-offset":["auto",yn,jn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",jn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",jn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",En]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[yn,jn]}],"outline-w":[{outline:[yn,In]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[yn,In]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,Dn]}],"shadow-color":[{shadow:[kn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wn,jn]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",jn]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",jn]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",jn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[xn,jn]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",jn]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",jn]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",jn]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yn,In,bn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Bn=an(On),Gn=(...e)=>Bn(Me(...e)),Un=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},Vn=({children:e,gap:t="lg",className:n,...r})=>(0,Ft.jsx)("div",{className:Gn("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",Un(t),n),...r,children:e});Vn.displayName="Topbar";const Wn=({gap:e="sm",children:t,className:n})=>(0,Ft.jsx)("div",{className:Gn("flex items-center",Un(e),n),children:t});Wn.displayName="Topbar.Left";const Zn=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,Ft.jsx)("div",{className:Gn("flex items-center grow",Un(e),o,r),children:t})};Zn.displayName="Topbar.Middle";const Fn=({gap:e="sm",children:t,className:n})=>(0,Ft.jsx)("div",{className:Gn("flex items-center",Un(e),n),children:t});Fn.displayName="Topbar.Right";const Yn=({children:e,className:t})=>(0,Ft.jsx)("div",{className:Gn("flex items-center [&>svg]:block h-full",t),children:e});Yn.displayName="Topbar.Item",Vn.Left=Wn,Vn.Middle=Zn,Vn.Right=Fn,Vn.Item=Yn;const Hn=(0,t.forwardRef)(((e,n)=>{const{variant:r="primary",size:o="md",type:i="button",tag:s="button",className:a,children:l,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:m="left",loading:p=!1,...f}=e,h=u&&"focus:ring-focus-error",g=p?"opacity-50 disabled:cursor-not-allowed":"",y={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[r],I=u&&!c?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[r]:"",v={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[o];let b,x=null,M="";return d&&(M="flex items-center justify-center","left"===m?b=d:x=d),(0,Ft.jsxs)(s,{ref:n,type:i,className:Gn(M,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",v,y,I,h,g,{"cursor-default":c},a),disabled:c,"aria-disabled":c,...f,children:[(0,Ft.jsx)(t.Fragment,{children:b},"left-icon"),l?(0,Ft.jsx)("span",{className:"px-1",children:l}):null,(0,Ft.jsx)(t.Fragment,{children:x},"right-icon")]})}));Hn.displayName="Button";const Qn=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var _n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Xn=(0,t.forwardRef)((({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:i="",children:s,iconNode:a,...l},c)=>(0,t.createElement)("svg",{ref:c,..._n,width:n,height:n,stroke:e,strokeWidth:o?24*Number(r)/Number(n):r,className:Qn("lucide",i),...l},[...a.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(s)?s:[s]]))),Jn=(e,n)=>{const r=(0,t.forwardRef)((({className:r,...o},i)=>{return(0,t.createElement)(Xn,{ref:i,iconNode:n,className:Qn(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...o});var s}));return r.displayName=`${e}`,r},Kn=Jn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),$n=Jn("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),qn={sm:{text:"text-sm",separator:"text-sm",separatorIconSize:16},md:{text:"text-base",separator:"text-base",separatorIconSize:18}},er=(0,t.createContext)({sizes:qn.sm}),tr=({children:e,size:t="sm"})=>{const n=qn[t]||qn.sm;return(0,Ft.jsx)(er.Provider,{value:{sizes:n},children:(0,Ft.jsx)("nav",{className:"flex m-0","aria-label":"Breadcrumb",children:(0,Ft.jsx)("ul",{className:"m-0 inline-flex items-center space-x-1 md:space-x-1",children:e})})})};tr.displayName="Breadcrumb";const nr=({children:e})=>(0,Ft.jsx)(Ft.Fragment,{children:e});nr.displayName="Breadcrumb.List";const rr=({children:e})=>(0,Ft.jsx)("li",{className:"m-0 inline-flex items-center gap-2",children:e});rr.displayName="Breadcrumb.Item";const or=({href:e,children:n,className:r,as:o="a",...i})=>{const{sizes:s}=(0,t.useContext)(er);return(0,Ft.jsx)(o,{href:e,className:Gn(s.text,"px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline","focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm","transition-all duration-200",r),...i,children:n})};or.displayName="Breadcrumb.Link";const ir=({type:e})=>{const{sizes:n}=(0,t.useContext)(er),r={slash:(0,Ft.jsx)("span",{className:Gn("mx-1",n.separator),children:"/"}),arrow:(0,Ft.jsx)(Kn,{size:n.separatorIconSize})};return(0,Ft.jsx)("li",{role:"separator",className:"flex items-center text-text-tertiary mx-2 p-0 list-none","aria-hidden":"true",children:r[e]||r.arrow})};ir.displayName="Breadcrumb.Separator";const sr=()=>{const{sizes:e}=(0,t.useContext)(er);return(0,Ft.jsx)($n,{className:"mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary",size:e.separatorIconSize+4})};sr.displayName="Breadcrumb.Ellipsis";const ar=({children:e})=>{const{sizes:n}=(0,t.useContext)(er);return(0,Ft.jsx)("span",{className:Gn(n.text,"font-medium text-text-primary"),children:e})};ar.displayName="Breadcrumb.Page",tr.List=nr,tr.Item=rr,tr.Link=or,tr.Separator=ir,tr.Ellipsis=sr,tr.Page=ar;const lr=Wt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),cr=function(){var e=new URLSearchParams(M().search).get("page");return React.createElement(tr,null,React.createElement(tr.List,null,"add-new-form"===e&&React.createElement(tr.Item,null,React.createElement(tr.Link,{href:"".concat(srfm_admin.site_url,"/wp-admin/admin.php?page=sureforms_menu")},(0,D.__)("Dashboard","sureforms"))),"add-new-form"===e&&React.createElement(tr.Item,null,React.createElement(lr,{color:"#bdc1c7",className:"size-3"}),React.createElement(tr.Link,{href:"".concat(srfm_admin.site_url,"/wp-admin/admin.php?page=add-new-form")},React.createElement(tr.Page,null,(0,D.__)("Generate with AI","sureforms"))))))},ur={logo:React.createElement("svg",{width:"144",height:"24",viewBox:"0 0 144 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_15961_16932)"},React.createElement("rect",{width:"24",height:"24",fill:"#D54407"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 16.6032L32.9925 15.1445C33.448 15.6702 34.0539 16.1125 34.8101 16.4717C35.5664 16.8309 36.3613 17.0105 37.1949 17.0105C38.1488 17.0105 38.8922 16.8046 39.4249 16.3928C39.9664 15.9811 40.2371 15.4424 40.2371 14.7766C40.2371 14.3561 40.091 14.0013 39.7988 13.7122C39.5066 13.4231 39.1285 13.1997 38.6644 13.042C38.2003 12.8844 37.689 12.7398 37.1305 12.6084C36.5718 12.477 36.009 12.3237 35.4418 12.1485C34.8832 11.9733 34.3719 11.7586 33.9078 11.5046C33.4437 11.2505 33.0656 10.8913 32.7734 10.4271C32.4812 9.95398 32.3352 9.39335 32.3352 8.74508C32.3352 7.67627 32.7562 6.78712 33.5984 6.07753C34.4406 5.35917 35.5965 5 37.066 5C39.0082 5 40.5808 5.63075 41.7839 6.89224L40.8687 8.28518C40.4734 7.79455 39.9406 7.40035 39.2703 7.10249C38.6085 6.79588 37.8738 6.64257 37.066 6.64257C36.2152 6.64257 35.532 6.83968 35.0164 7.2339C34.5008 7.61936 34.2429 8.10552 34.2429 8.69249C34.2429 9.06922 34.389 9.38896 34.6813 9.65179C34.9734 9.90585 35.3472 10.1073 35.8027 10.2562C36.2668 10.3964 36.7781 10.5322 37.3367 10.6636C37.9039 10.7862 38.4667 10.9396 39.0253 11.1235C39.5925 11.3075 40.1038 11.5352 40.5593 11.8068C41.0234 12.0696 41.4015 12.4507 41.6937 12.95C41.9859 13.4494 42.132 14.0407 42.132 14.724C42.132 15.8629 41.6937 16.8046 40.8171 17.5492C39.9492 18.2851 38.7246 18.6531 37.1433 18.6531C35.0035 18.6531 33.2891 17.9698 32 16.6032ZM44.2986 14.5006V5.32852H46.2709V13.883C46.2709 14.9693 46.5158 15.7359 47.0057 16.1826C47.4955 16.6206 48.2088 16.8397 49.1455 16.8397C49.8845 16.8397 50.5978 16.6513 51.2853 16.2746C51.9728 15.8979 52.5099 15.4336 52.8966 14.8817V5.32852H54.8818V18.3246H52.8966V16.498C52.3638 17.1113 51.6978 17.6237 50.8986 18.0355C50.0993 18.4472 49.2529 18.6531 48.3591 18.6531C45.6521 18.6531 44.2986 17.2689 44.2986 14.5006ZM57.7831 18.3246H59.7554V9.12613C60.0476 8.59176 60.5503 8.1143 61.2636 7.69382C61.9769 7.26456 62.6386 7.04993 63.2488 7.04993C63.4464 7.04993 63.7 7.06745 64.0093 7.10249V5.02628C63.1843 5.02628 62.4066 5.24529 61.6761 5.68331C60.9456 6.11257 60.3054 6.68637 59.7554 7.40473V5.32852H57.7831V18.3246ZM64.6935 11.8068C64.6935 10.5628 64.9599 9.424 65.4927 8.3903C66.0342 7.34778 66.7861 6.52431 67.7486 5.91984C68.7111 5.30661 69.7896 5 70.9841 5C72.2388 5 73.3345 5.311 74.2712 5.93298C75.2077 6.55497 75.9127 7.39158 76.3855 8.44282C76.8663 9.4853 77.1071 10.6636 77.1071 11.9776V12.4901H66.8076C66.8849 13.7691 67.3318 14.8379 68.1482 15.6964C68.9732 16.5549 70.0474 16.9842 71.3708 16.9842C72.1185 16.9842 72.8361 16.8397 73.5236 16.5506C74.2196 16.2615 74.8255 15.8498 75.3413 15.3153L76.2821 16.6294C74.9329 17.9785 73.2443 18.6531 71.2161 18.6531C69.3083 18.6531 67.7443 18.0179 66.524 16.7477C65.3036 15.4774 64.6935 13.8305 64.6935 11.8068ZM66.7818 10.979H75.148C75.1394 10.4796 75.0488 9.98463 74.8771 9.49408C74.7138 9.00353 74.4689 8.54355 74.1423 8.1143C73.8158 7.68505 73.3774 7.33902 72.8275 7.07621C72.2775 6.80464 71.6544 6.66885 70.9583 6.66885C70.3052 6.66885 69.7123 6.80026 69.1795 7.06307C68.6466 7.32588 68.2126 7.67195 67.8775 8.1012C67.5509 8.52168 67.2931 8.98158 67.104 9.48091C66.915 9.97154 66.8076 10.4709 66.7818 10.979Z",fill:"#030712"}),React.createElement("path",{d:"M81.8791 18.7626H79.1199V5.56776H88.2914V8.04056H81.8791V10.8101H88.1554V13.2829H81.8791V18.7626Z",fill:"#030712"}),React.createElement("path",{d:"M96.3803 19C92.4553 19 89.5989 16.1513 89.5989 12.1751C89.5989 8.19882 92.4553 5.35016 96.3803 5.35016C100.286 5.35016 103.142 8.19882 103.142 12.1751C103.142 16.1513 100.286 19 96.3803 19ZM96.3803 16.5074C98.7704 16.5074 100.305 14.6281 100.305 12.1751C100.305 9.70228 98.7704 7.84274 96.3803 7.84274C93.9709 7.84274 92.4358 9.70228 92.4358 12.1751C92.4358 14.6281 93.9709 16.5074 96.3803 16.5074Z",fill:"#030712"}),React.createElement("path",{d:"M115.591 18.7626H112.404L109.859 14.0742H107.838V18.7626H105.079V5.56776H111.141C113.842 5.56776 115.513 7.36796 115.513 9.82098C115.513 12.1355 114.056 13.4016 112.657 13.7379L115.591 18.7626ZM110.753 11.6014C111.841 11.6014 112.676 10.9288 112.676 9.80119C112.676 8.71316 111.841 8.04056 110.753 8.04056H107.838V11.6014H110.753Z",fill:"#030712"}),React.createElement("path",{d:"M131.613 18.7626H128.835V9.24729L125.182 18.7626H123.977L120.324 9.24729V18.7626H117.565V5.56776H121.431L124.579 13.817L127.727 5.56776H131.613V18.7626Z",fill:"#030712"}),React.createElement("path",{d:"M138.812 19C136.305 19 134.518 18.1494 133.293 16.9031L134.809 14.7072C135.722 15.6766 137.141 16.5074 138.928 16.5074C140.464 16.5074 141.183 15.815 141.183 15.0435C141.183 12.7488 133.721 14.3511 133.721 9.38576C133.721 7.18992 135.586 5.36994 138.637 5.36994C140.697 5.36994 142.407 6.00298 143.689 7.2097L142.154 9.30664C141.105 8.31752 139.706 7.86252 138.384 7.86252C137.219 7.86252 136.558 8.37686 136.558 9.16816C136.558 11.2453 144 9.84076 144 14.7666C144 17.18 142.29 19 138.812 19Z",fill:"#030712"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_15961_16932"},React.createElement("rect",{width:"144",height:"24",fill:"white"})))),close:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},React.createElement("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#475569",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),template:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},React.createElement("path",{d:"M12 13.7561V12C12 9.51472 14.0147 7.5 16.5 7.5H31.5C33.9853 7.5 36 9.51472 36 12V13.7561M12 13.7561C12.4692 13.5902 12.974 13.5 13.5 13.5H34.5C35.026 13.5 35.5308 13.5902 36 13.7561M12 13.7561C10.2522 14.3738 9 16.0407 9 18V19.7561M36 13.7561C37.7478 14.3738 39 16.0407 39 18V19.7561M39 19.7561C38.5308 19.5902 38.026 19.5 37.5 19.5H10.5C9.97405 19.5 9.46917 19.5902 9 19.7561M39 19.7561C40.7478 20.3738 42 22.0407 42 24V36C42 38.4853 39.9853 40.5 37.5 40.5H10.5C8.01472 40.5 6 38.4853 6 36V24C6 22.0407 7.25221 20.3738 9 19.7561",stroke:"url(#paint0_linear_4036_26187)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_4036_26187",x1:"24",y1:"7.5",x2:"24",y2:"40.5",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#A8CC18"}),React.createElement("stop",{offset:"1",stopColor:"#139969"})))),plus:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",className:"srfm-ts-preview-blank-form"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 6.25C20.6904 6.25 21.25 6.80964 21.25 7.5V18.75H32.5C33.1904 18.75 33.75 19.3096 33.75 20C33.75 20.6904 33.1904 21.25 32.5 21.25H21.25V32.5C21.25 33.1904 20.6904 33.75 20 33.75C19.3096 33.75 18.75 33.1904 18.75 32.5V21.25H7.5C6.80964 21.25 6.25 20.6904 6.25 20C6.25 19.3096 6.80964 18.75 7.5 18.75H18.75V7.5C18.75 6.80964 19.3096 6.25 20 6.25Z",fill:"#555D66"})),eye:React.createElement("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M4.04472 11.8528L3.97078 12.0503L4.06071 12.2412C4.81322 13.8378 6.01061 15.1834 7.50911 16.1162C9.00523 17.0476 10.738 17.528 12.5 17.5001C14.262 17.528 15.9948 17.0476 17.4909 16.1162C18.9894 15.1834 20.1868 13.8378 20.9393 12.2412L21.0292 12.0503L20.9553 11.8528C20.8333 11.5267 20.5079 11.0373 20.0674 10.5119C19.6142 9.97137 19.0026 9.34967 18.2654 8.75984C16.7988 7.58644 14.7848 6.5 12.5 6.5C10.2152 6.5 8.20118 7.58644 6.73463 8.75984C5.99743 9.34967 5.38585 9.97137 4.93262 10.5119C4.49207 11.0373 4.16673 11.5267 4.04472 11.8528ZM12.5 15.5C11.8078 15.5 11.1311 15.2947 10.5555 14.9101C9.97993 14.5256 9.53133 13.9789 9.26642 13.3394C9.00151 12.6999 8.9322 11.9961 9.06725 11.3172C9.2023 10.6383 9.53564 10.0146 10.0251 9.52513C10.5146 9.03564 11.1383 8.7023 11.8172 8.56725C12.4961 8.4322 13.1999 8.50151 13.8394 8.76642C14.4789 9.03133 15.0256 9.47993 15.4101 10.0555C15.7947 10.6311 16 11.3078 16 12C16 12.9283 15.6313 13.8185 14.9749 14.4749C14.3185 15.1313 13.4283 15.5 12.5 15.5ZM12.5 9.5C12.0055 9.5 11.5222 9.64662 11.1111 9.92133C10.7 10.196 10.3795 10.5865 10.1903 11.0433C10.0011 11.5001 9.95157 12.0028 10.048 12.4877C10.1445 12.9727 10.3826 13.4181 10.7322 13.7678C11.0819 14.1174 11.5273 14.3555 12.0123 14.452C12.4972 14.5484 12.9999 14.4989 13.4567 14.3097C13.9135 14.1205 14.304 13.8 14.5787 13.3889C14.8534 12.9778 15 12.4945 15 12C15 11.337 14.7366 10.7011 14.2678 10.2322C13.7989 9.76339 13.163 9.5 12.5 9.5ZM12.5 18.5C9.4172 18.5 7.03273 17.2462 5.41524 15.7825C4.60531 15.0496 3.99296 14.2684 3.58607 13.5755C3.16858 12.8645 3 12.3025 3 12C3 11.8937 3.04086 11.7031 3.16504 11.4258C3.28537 11.157 3.46876 10.8402 3.71375 10.4919C4.20345 9.79588 4.91842 9.00404 5.80204 8.25805C7.57719 6.75941 9.96653 5.5 12.5 5.5C15.0335 5.5 17.4228 6.75941 19.198 8.25805C20.0816 9.00404 20.7965 9.79588 21.2862 10.4919C21.5312 10.8402 21.7146 11.157 21.835 11.4258C21.9591 11.7031 22 11.8937 22 12C22 12.3025 21.8314 12.8645 21.4139 13.5755C21.007 14.2684 20.3947 15.0496 19.5848 15.7825C17.9673 17.2462 15.5828 18.5 12.5 18.5Z",fill:"#1F2A37",stroke:"#046BD2"})),message:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M5.75 6.5C5.75 6.63807 5.63807 6.75 5.5 6.75C5.36193 6.75 5.25 6.63807 5.25 6.5C5.25 6.36193 5.36193 6.25 5.5 6.25C5.63807 6.25 5.75 6.36193 5.75 6.5ZM5.75 6.5H5.5M8.25 6.5C8.25 6.63807 8.13807 6.75 8 6.75C7.86193 6.75 7.75 6.63807 7.75 6.5C7.75 6.36193 7.86193 6.25 8 6.25C8.13807 6.25 8.25 6.36193 8.25 6.5ZM8.25 6.5H8M10.75 6.5C10.75 6.63807 10.6381 6.75 10.5 6.75C10.3619 6.75 10.25 6.63807 10.25 6.5C10.25 6.36193 10.3619 6.25 10.5 6.25C10.6381 6.25 10.75 6.36193 10.75 6.5ZM10.75 6.5H10.5M1.5 8.50623C1.5 9.57362 2.24894 10.5027 3.30497 10.658C4.02905 10.7644 4.761 10.8467 5.5 10.9038V14L8.28899 11.211C8.42681 11.0732 8.61289 10.9948 8.80774 10.99C10.1248 10.9574 11.4221 10.8452 12.695 10.6581C13.751 10.5028 14.5 9.5737 14.5 8.5063V4.4937C14.5 3.42631 13.751 2.49722 12.695 2.34196C11.1627 2.11668 9.59507 2 8.00019 2C6.40517 2 4.83741 2.1167 3.30498 2.34202C2.24894 2.49729 1.5 3.42637 1.5 4.49376V8.50623Z",stroke:"#94A3B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),back:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 10C17 10.4142 16.6642 10.75 16.25 10.75L5.61208 10.75L9.76983 14.7094C10.0684 14.9965 10.0777 15.4713 9.79062 15.7698C9.50353 16.0684 9.02875 16.0777 8.73017 15.7906L3.23017 10.5406C3.08311 10.3992 3 10.204 3 10C3 9.79599 3.08311 9.60078 3.23017 9.45938L8.73017 4.20938C9.02875 3.92228 9.50353 3.93159 9.79062 4.23017C10.0777 4.52875 10.0684 5.00353 9.76983 5.29063L5.61208 9.25L16.25 9.25C16.6642 9.25 17 9.58579 17 10Z",fill:"#475569"})),breadcrumb:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},React.createElement("path",{d:"M5.4375 10.2734L8.70703 7.0039L5.4375 3.73438",stroke:"#4B5563",strokeWidth:"1.08984",strokeLinecap:"round",strokeLinejoin:"round"})),warning:React.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10.9983 7.9975V11.7475M1.69506 15.1231C0.829677 16.6231 1.91225 18.4975 3.64398 18.4975H18.3526C20.0844 18.4975 21.1669 16.6231 20.3016 15.1231L12.9472 2.37562C12.0814 0.874792 9.91525 0.874792 9.04939 2.37562L1.69506 15.1231ZM10.9983 14.7475H11.0058V14.755H10.9983V14.7475Z",stroke:"#EF4444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),filePlus:React.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M26 19V15.5C26 13.0147 23.9853 11 21.5 11H19.5C18.6716 11 18 10.3284 18 9.5V7.5C18 5.01472 15.9853 3 13.5 3H11M16 15V23M20 19H12M14 3H7.5C6.67157 3 6 3.67157 6 4.5V27.5C6 28.3284 6.67157 29 7.5 29H24.5C25.3284 29 26 28.3284 26 27.5V15C26 8.37258 20.6274 3 14 3Z",stroke:"url(#paint0_linear_13850_36637)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_13850_36637",x1:"16",y1:"3",x2:"16",y2:"29",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#18C1CC"}),React.createElement("stop",{offset:"1",stopColor:"#135A99"})))),wandSparkles:React.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M17 5L21 9M5 25L25 5L21 1L1 21L5 25ZM9 1C9 1.70724 9.28095 2.38552 9.78105 2.88562C10.2811 3.38572 10.9594 3.66667 11.6667 3.66667C10.9594 3.66667 10.2811 3.94762 9.78105 4.44772C9.28095 4.94781 9 5.62609 9 6.33333C9 5.62609 8.71905 4.94781 8.21895 4.44772C7.71885 3.94762 7.04058 3.66667 6.33333 3.66667C7.04058 3.66667 7.71885 3.38572 8.21895 2.88562C8.71905 2.38552 9 1.70724 9 1ZM22.3333 14.3333C22.3333 15.0406 22.6143 15.7189 23.1144 16.219C23.6145 16.719 24.2928 17 25 17C24.2928 17 23.6145 17.281 23.1144 17.781C22.6143 18.2811 22.3333 18.9594 22.3333 19.6667C22.3333 18.9594 22.0524 18.2811 21.5523 17.781C21.0522 17.281 20.3739 17 19.6667 17C20.3739 17 21.0522 16.719 21.5523 16.219C22.0524 15.7189 22.3333 15.0406 22.3333 14.3333Z",stroke:"url(#paint0_linear_13850_36650)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_13850_36650",x1:"13",y1:"1",x2:"13",y2:"25",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#F437ED"}),React.createElement("stop",{offset:"1",stopColor:"#5E1399"}))))},dr=function(){var t=new URLSearchParams(M().search).get("method");return(0,e.useEffect)((function(){document.body.style.overflow="template"===t?"auto":"hidden"}),[t]),React.createElement("div",null,React.createElement(Vn,{className:"fixed inset-x-0 top-0 z-[1] py-0 px-0 pt-0 pb-0 min-h-0 h-14 gap-4 shadow-sm bg-background-primary/75 backdrop-blur-[5px]"},React.createElement(Vn.Left,{className:"gap-3 pl-5"},React.createElement(Vn.Item,null,React.createElement(Hn,{variant:"ghost",onClick:function(){window.location.href="/wp-admin/admin.php?page=sureforms_menu"},className:"focus:[box-shadow:none] p-0 pt-1"},ur.logo)),React.createElement(Vn.Item,null,React.createElement(cr,null))),React.createElement(Vn.Right,null,React.createElement(Vn.Item,{className:"p-5"},React.createElement(Hn,{variant:"ghost",className:"p-1 hover:bg-background-secondary rounded-sm transition-colors [box-shadow:none] focus:[box-shadow:none]",onClick:function(){window.location.href="/wp-admin/admin.php?page=sureforms_menu"},icon:React.createElement(Zt,{className:"size-4 text-text-secondary"})})))))},mr={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},pr={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},fr={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},hr={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},gr={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},yr={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Ir={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},vr={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},br={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},xr={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},Mr={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},jr={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},wr={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Nr={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Tr={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Er={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Sr={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},zr=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,i]of Object.entries(e))t[r]&&o.push(t?.[r]?.[i]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;o.push(t?.[i]?.[e]??t?.[i]?.[n?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Dr=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:i,justify:s,gridFlow:a,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:m,...p})=>{const f=zr(t,mr,1),h=zr(n,pr,"sm"),g=zr(r,fr,""),y=zr(o,hr,""),I=zr(i,br,""),v=zr(s,vr,""),b=zr(a,Ir,"");return(0,Ft.jsx)("div",{className:Gn("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},f,h,g,y,I,v,b,e),...p,children:m})};Dr.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:i,...s})=>{const a=zr(n,gr,0),l=zr(r,yr,0),c=zr(o,xr,""),u=zr(i,Mr,"");return(0,Ft.jsx)("div",{className:Gn(a,l,c,u,e),...s,children:t})};const kr=(0,t.createContext)({}),Cr=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:i,align:s,wrap:a,cols:l,className:c,children:u,...d})=>{if("grid"===e)return(0,Ft.jsx)(kr.Provider,{value:{containerType:e},children:(0,Ft.jsx)(Dr,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})});const m=zr(a,wr,""),p=zr(t,pr,"sm"),f=zr(n,fr,""),h=zr(r,hr,""),g=zr(o,jr,""),y=zr(i,vr,""),I=zr(s,br,""),v=Gn("flex",m,p,f,h,g,y,I,c);return(0,Ft.jsx)(kr.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,Ft.jsx)("div",{className:v,children:u}):(0,Ft.jsx)(Dr,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})})},Rr=({grow:e,shrink:n,order:r,alignSelf:o,justifySelf:i,className:s,children:a,...l})=>{const{containerType:c,cols:u}=(0,t.useContext)(kr);if("grid"===c)return(0,Ft.jsx)(Dr.Item,{className:s,alignSelf:o,justifySelf:i,children:a,...l});const d=zr(o,xr,""),m=zr(i,Mr,""),p=zr(e,Er,0),f=zr(n,Sr,0),h=zr(r,Tr,0),g=zr(u,Nr,1);return(0,Ft.jsx)("div",{className:Gn("box-border",p,f,h,d,m,g,s),children:a})};Cr.Item=Rr,Cr.displayName="Container",Rr.displayName="Container.Item";const Pr=(0,t.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:i=!1,...s},a)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,Ft.jsx)(t,{ref:a,className:Gn("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...s,children:e})}));Pr.displayName="Label";const Ar=Wt("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Lr=function(t){var n,r,o=t.title,i=void 0===o?"":o,s=t.paraOne,a=void 0===s?"":s,l=t.paraTwo,c=void 0===l?"":l,u=t.buttonText,d=void 0===u?"":u,m=t.onclick,p=void 0===m?function(){}:m,f=t.deactivatedLicense,h=void 0!==f&&f,g=t.paraTitle,y=void 0===g?"":g,I=t.features,v=void 0===I?[]:I,b=t.showFeatures,x=void 0!==b&&b,M=t.setShowCreditDetailsPopup,j=(0,Dt.applyFilters)("srfm.aiFormScreen.freeCreds.expired",null)||{},w=j.paraOne,N=j.paraTwo,T=j.title,E=j.activateLicenseButton,S=j.paraTitle,z=h?T:i,k=h?w:a,C=h?N:c,R=h?S:y,P=h&&E?React.createElement(E,null):React.createElement(Hn,{size:"md",variant:"primary",onClick:p},null!=d?d:(0,D.__)("Connect Now","sureforms")),A=(null===(n=srfm_admin)||void 0===n?void 0:n.is_pro_active)&&(null===(r=srfm_admin)||void 0===r?void 0:r.is_pro_license_active);return(0,e.useEffect)((function(){x&&(localStorage.setItem("srfm_ai_banner_closed","true"),M(!1))}),[x]),React.createElement(React.Fragment,null,React.createElement(Cr,{direction:"column",justify:"center",align:"center",className:"fixed inset-0 bg-overlay-background z-[99999999]"},React.createElement(Cr,{direction:"column",className:"bg-background-primary gap-4 p-5 rounded-lg max-w-md shadow-lg"},React.createElement(Cr.Item,{className:"relative pt-2"},React.createElement(Pr,{variant:"neutral",className:"text-xs font-semibold flex gap-3 text-brand-800"},React.createElement("span",{className:"pt-1"},React.createElement(Ar,{className:"size-4 text-brand-800"})),z,React.createElement("span",{className:"absolute top-[-10px] right-[-15px] cursor-pointer",onClick:function(){return window.location.href=srfm_admin.site_url+"/wp-admin/admin.php?page=sureforms_menu"}},ur.close))),React.createElement(Cr.Item,{className:"flex flex-col gap-1"},React.createElement(Pr,{size:"md",className:"text-text-primary font-semibold text-lg"},R),React.createElement(Pr,{size:"md",className:"text-text-secondary text-sm font-normal"},k),x?React.createElement(Cr,{className:"flex flex-col gap-2"},v.map((function(e,t){return React.createElement(Cr.Item,{key:t,className:"flex flex-row gap-1.5 text-sm text-text-primary items-center"},React.createElement(lr,{className:"w-3.5 h-3.5"}),React.createElement(Pr,{size:"sm",className:"font-normal break-words"},e))})),React.createElement(Cr.Item,{className:"flex flex-row gap-1.5 text-sm text-text-primary items-center"},React.createElement(lr,{className:"w-3.5 h-3.5"}),React.createElement(Cr.Item,{className:"flex flex-row text-sm gap-1"},React.createElement("span",null,(0,D.__)("and ","sureforms")),React.createElement(Pr,{as:"a",size:"sm",className:"font-normal break-words underline cursor-pointer text-brand-800 hover:text-brand-900",onClick:function(){return window.open("https://sureforms.com","_blank","noreferrer")}},(0,D.__)("more…","sureforms"))))):React.createElement(Pr,{size:"md",className:"text-text-secondary text-sm font-normal"},C)),A||h?"":React.createElement("hr",{className:"border-b-5 border-x-0 border-t-0 w-full border-solid border-border-subtle"}),React.createElement(Cr.Item,{className:"flex flex-col w-full gap-3 pb-2"},P,React.createElement(Hn,{size:"md",variant:"ghost",onClick:function(){window.location.href="".concat(srfm_admin.site_url,"/wp-admin/post-new.php?post_type=sureforms_form")}},(0,D.__)("Or create it yourself","sureforms"))))))},Or=function(t){var n=t.errorMessage,r=void 0===n?"":n,o=t.onRetry,i=(0,e.useRef)(null),s=(0,e.useId)(),a=(0,e.useId)(),l="function"==typeof o?o:function(){return window.location.reload()},c=r||(0,D.__)("Something went wrong. Please try again.","sureforms");return(0,e.useEffect)((function(){var e=i.current;if(e){var t=e.querySelector("button");t?t.focus():e.focus()}}),[]),(0,e.useEffect)((function(){var e=function(e){"Escape"===e.key&&(e.stopPropagation(),l())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[l]),React.createElement("div",{ref:i,role:"alertdialog","aria-modal":"true","aria-labelledby":s,"aria-describedby":a,tabIndex:-1},React.createElement(Cr,{direction:"column",justify:"center",align:"center",className:"fixed inset-0 bg-overlay-background z-[99999999]"},React.createElement(Cr,{direction:"column",className:"bg-background-primary gap-5 px-5 py-4 rounded-lg max-w-sm shadow-lg"},React.createElement(Cr.Item,{className:"pt-2"},React.createElement(Pr,{id:s,variant:"neutral",className:"text-lg font-bold flex gap-3"},React.createElement("span",{className:"pt-1"},ur.warning),(0,D.__)("Unable to create form","sureforms"))),React.createElement(Cr.Item,{className:"flex flex-col gap-4"},React.createElement(Pr,{id:a,size:"sm",className:"text-text-secondary font-normal"},c)),React.createElement(Cr.Item,{className:"flex flex-col w-full gap-4 pb-2"},React.createElement(Hn,{size:"md",variant:"primary",onClick:l},(0,D.__)("Try Again","sureforms"))))))};var Br=function(e){var t=e.initiateAuth;return React.createElement(React.Fragment,null,React.createElement(dr,null),React.createElement(Cr,{direction:"column",justify:"center",align:"center",className:"fixed inset-0 bg-overlay-background z-[99999999]"},React.createElement(Cr,{direction:"column",className:"bg-background-primary gap-4 py-4 px-5 rounded-lg max-w-md shadow-lg"},React.createElement(Cr.Item,null,React.createElement(Pr,{variant:"neutral",className:"text-lg font-bold flex gap-3"},React.createElement("span",{className:"pt-1"},ur.warning),(0,D.__)("Authentication Failed","sureforms"))),React.createElement(Cr.Item,null,React.createElement(Pr,{size:"sm",className:"inline text-text-secondary font-normal"},(0,D.__)("Please check your username and password for the account, and try to reconnect again. Need help?","sureforms")," ",React.createElement(Pr,{onClick:function(){window.open("https://sureforms.com/contact/","_blank")},size:"sm",className:"cursor-pointer inline underline font-normal !text-link-primary"},(0,D.__)("Contact Support","sureforms")))),React.createElement(Cr.Item,{className:"flex flex-col gap-4 sm:flex-row"},React.createElement(Hn,{size:"md",variant:"primary",onClick:t,className:"text-sm font-semibold bg-brand-800 hover:bg-brand-800"},(0,D.__)("Click Here to Retry","sureforms")),React.createElement(Hn,{size:"md",variant:"outline",className:"text-sm font-semibold",onClick:function(){window.location.href="/wp-admin/admin.php?page=sureforms_menu"}},(0,D.__)("Exit to Dashboard","sureforms"))))))};const Gr=Jn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let Ur=1;const Vr=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const i="number"==typeof t?t:Ur++;return this.#e.find((e=>e.id===i))&&(this.#e=this.#e.map((e=>e.id===i?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:i,title:n,jsx:r,...o}),i}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},Wr=Object.seal(Object.assign(((e,t)=>Vr.default(e,t)),{success:Vr.success.bind(Vr),error:Vr.error.bind(Vr),warning:Vr.warning.bind(Vr),info:Vr.info.bind(Vr),custom:Vr.custom.bind(Vr),dismiss:Vr.dismiss.bind(Vr),update:Vr.update.bind(Vr)},{getHistory:Vr.history.bind(Vr)})),Zr=Jn("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Fr=Jn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Yr=Jn("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Hr=Jn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Qr="light",_r="neutral",Xr=({icon:e,theme:n=Qr,variant:r=_r})=>{const o="[&>svg]:h-5 [&>svg]:w-5",i=(({theme:e=Qr,variant:t=_r})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:n,variant:r});if(e&&(0,t.isValidElement)(e))return(0,t.cloneElement)(e,{className:Gn(o,i,e?.props?.className??"")});const s={neutral:(0,Ft.jsx)(Zr,{className:Gn(o,i)}),info:(0,Ft.jsx)(Zr,{className:Gn(o,i)}),success:(0,Ft.jsx)(Fr,{className:Gn(o,i)}),warning:(0,Ft.jsx)(Yr,{className:Gn(o,i)}),error:(0,Ft.jsx)(Hr,{className:Gn(o,i)})};return s[r]||s.neutral},Jr=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=Qr})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,Ft.jsx)(Hn,{variant:"outline",size:"xs",onClick:t,className:Gn("rounded",o,i,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,Ft.jsx)(Hn,{variant:"link",size:"xs",onClick:t,className:Gn(o,i),children:n});default:return null}},Kr=({theme:e=Qr,title:t="",inline:n=!1})=>t?(0,Ft.jsx)("span",{className:Gn("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,$r=({theme:e=Qr,content:t="",inline:n=!1})=>t?(0,Ft.jsx)("span",{className:Gn({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,qr=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},eo={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},to={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},no="bg-background-inverse border-background-inverse",ro={light:"text-icon-secondary",dark:"text-icon-inverse"},oo=(0,t.createContext)({});function io(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const so=(0,t.createContext)(null),ao=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class lo extends t.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function co({children:e,isPresent:n}){const r=(0,t.useId)(),o=(0,t.useRef)(null),i=(0,t.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,t.useContext)(ao);return(0,t.useInsertionEffect)((()=>{const{width:e,height:t,top:a,left:l}=i.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=r;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[n]),(0,Ft.jsx)(lo,{isPresent:n,childRef:o,sizeRef:i,children:t.cloneElement(e,{ref:o})})}const uo=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:s,mode:a})=>{const l=io(mo),c=(0,t.useId)(),u=(0,t.useCallback)((e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()}),[l,o]),d=(0,t.useMemo)((()=>({id:c,initial:n,isPresent:r,custom:i,onExitComplete:u,register:e=>(l.set(e,!1),()=>l.delete(e))})),s?[Math.random(),u]:[r,u]);return(0,t.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[r]),t.useEffect((()=>{!r&&!l.size&&o&&o()}),[r]),"popLayout"===a&&(e=(0,Ft.jsx)(co,{isPresent:r,children:e})),(0,Ft.jsx)(so.Provider,{value:d,children:e})};function mo(){return new Map}function po(e=!0){const n=(0,t.useContext)(so);if(null===n)return[!0,null];const{isPresent:r,onExitComplete:o,register:i}=n,s=(0,t.useId)();(0,t.useEffect)((()=>{e&&i(s)}),[e]);const a=(0,t.useCallback)((()=>e&&o&&o(s)),[s,o,e]);return!r&&o?[!1,a]:[!0]}const fo=e=>e.key||"";function ho(e){const n=[];return t.Children.forEach(e,(e=>{(0,t.isValidElement)(e)&&n.push(e)})),n}const go="undefined"!=typeof window,yo=go?t.useLayoutEffect:t.useEffect,Io=({children:e,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1})=>{const[l,c]=po(a),u=(0,t.useMemo)((()=>ho(e)),[e]),d=a&&!l?[]:u.map(fo),m=(0,t.useRef)(!0),p=(0,t.useRef)(u),f=io((()=>new Map)),[h,g]=(0,t.useState)(u),[y,I]=(0,t.useState)(u);yo((()=>{m.current=!1,p.current=u;for(let e=0;e<y.length;e++){const t=fo(y[e]);d.includes(t)?f.delete(t):!0!==f.get(t)&&f.set(t,!1)}}),[y,d.length,d.join("-")]);const v=[];if(u!==h){let e=[...u];for(let t=0;t<y.length;t++){const n=y[t],r=fo(n);d.includes(r)||(e.splice(t,0,n),v.push(n))}return"wait"===s&&v.length&&(e=v),I(ho(e)),void g(u)}const{forceRender:b}=(0,t.useContext)(oo);return(0,Ft.jsx)(Ft.Fragment,{children:y.map((e=>{const t=fo(e),h=!(a&&!l)&&(u===y||d.includes(t));return(0,Ft.jsx)(uo,{isPresent:h,initial:!(m.current&&!r)&&void 0,custom:h?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:h?void 0:()=>{if(!f.has(t))return;f.set(t,!0);let e=!0;f.forEach((t=>{t||(e=!1)})),e&&(null==b||b(),I(p.current),a&&(null==c||c()),o&&o())},children:e},t)}))})};function vo(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function bo(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const xo=e=>Array.isArray(e);function Mo(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function jo(e){return"string"==typeof e||Array.isArray(e)}function wo(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function No(e,t,n,r){if("function"==typeof t){const[o,i]=wo(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=wo(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function To(e,t,n){const r=e.getProps();return No(r,t,void 0!==n?n:r.custom,e)}const Eo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],So=["initial",...Eo];function zo(e){let t;return()=>(void 0===t&&(t=e()),t)}const Do=zo((()=>void 0!==window.ScrollTimeline));class ko{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>Do()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Co extends ko{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Ro(e,t){return e?e[t]||e.default||e:void 0}const Po=2e4;function Ao(e){let t=0,n=e.next(t);for(;!n.done&&t<Po;)t+=50,n=e.next(t);return t>=Po?1/0:t}function Lo(e){return"function"==typeof e}function Oo(e,t){e.timeline=t,e.onfinish=null}const Bo=e=>Array.isArray(e)&&"number"==typeof e[0],Go={linearEasing:void 0};function Uo(e,t){const n=zo(e);return()=>{var e;return null!==(e=Go[t])&&void 0!==e?e:n()}}const Vo=Uo((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Wo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Zo=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(Wo(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Fo(e){return Boolean("function"==typeof e&&Vo()||!e||"string"==typeof e&&(e in Ho||Vo())||Bo(e)||Array.isArray(e)&&e.every(Fo))}const Yo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ho={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yo([0,.65,.55,1]),circOut:Yo([.55,0,1,.45]),backIn:Yo([.31,.01,.66,-.59]),backOut:Yo([.33,1.53,.69,.99])};function Qo(e,t){return e?"function"==typeof e&&Vo()?Zo(e,t):Bo(e)?Yo(e):Array.isArray(e)?e.map((e=>Qo(e,t)||Ho.easeOut)):Ho[e]:void 0}const _o={x:!1,y:!1};function Xo(){return _o.x||_o.y}function Jo(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ko(e){return t=>{"touch"===t.pointerType||Xo()||e(t)}}const $o=(e,t)=>!!t&&(e===t||$o(e,t.parentElement)),qo=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,ei=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ti=new WeakSet;function ni(e){return t=>{"Enter"===t.key&&e(t)}}function ri(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oi(e){return qo(e)&&!Xo()}const ii=e=>1e3*e,si=e=>e/1e3,ai=e=>e,li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ci=new Set(li),ui=new Set(["width","height","top","left","right","bottom",...li]),di=["read","resolveKeyframes","update","preRender","render","postRender"];function mi(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=di.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:m}=s,p=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:di.reduce(((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),a.schedule(t,i,s)),t}),{}),cancel:e=>{for(let t=0;t<di.length;t++)s[di[t]].cancel(e)},state:o,steps:s}}const{schedule:pi,cancel:fi,state:hi,steps:gi}=mi("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ai,!0);let yi;function Ii(){yi=void 0}const vi={now:()=>(void 0===yi&&vi.set(hi.isProcessing?hi.timestamp:performance.now()),yi),set:e=>{yi=e,queueMicrotask(Ii)}};function bi(e,t){-1===e.indexOf(t)&&e.push(t)}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Mi{constructor(){this.subscriptions=[]}add(e){return bi(this.subscriptions,e),()=>xi(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ji(e,t){return t?e*(1e3/t):0}const wi={current:void 0};class Ni{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=vi.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=vi.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Mi);const n=this.events[e].add(t);return"change"===e?()=>{n(),pi.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return wi.current&&wi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=vi.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ji(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ti(e,t){return new Ni(e,t)}function Ei(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ti(n))}const Si=e=>Boolean(e&&e.getVelocity);function zi(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Si(r)&&r.add))return n.add(t);var r}const Di=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ki="data-"+Di("framerAppearId");function Ci(e){return e.props[ki]}const Ri=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Pi(e,t,n,r){if(e===t&&n===r)return ai;return o=>0===o||1===o?o:Ri(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Ri(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const Ai=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Li=e=>t=>1-e(1-t),Oi=Pi(.33,1.53,.69,.99),Bi=Li(Oi),Gi=Ai(Bi),Ui=e=>(e*=2)<1?.5*Bi(e):.5*(2-Math.pow(2,-10*(e-1))),Vi=e=>1-Math.sin(Math.acos(e)),Wi=Li(Vi),Zi=Ai(Vi),Fi=e=>/^0[^.\s]+$/u.test(e),Yi=(e,t,n)=>n>t?t:n<e?e:n,Hi={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Qi={...Hi,transform:e=>Yi(0,1,e)},_i={...Hi,default:1},Xi=e=>Math.round(1e5*e)/1e5,Ji=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Ki=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$i=(e,t)=>n=>Boolean("string"==typeof n&&Ki.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),qi=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,s,a]=r.match(Ji);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},es={...Hi,transform:e=>Math.round((e=>Yi(0,255,e))(e))},ts={test:$i("rgb","red"),parse:qi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+es.transform(e)+", "+es.transform(t)+", "+es.transform(n)+", "+Xi(Qi.transform(r))+")"},ns={test:$i("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:ts.transform},rs=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),os=rs("deg"),is=rs("%"),ss=rs("px"),as=rs("vh"),ls=rs("vw"),cs={...is,parse:e=>is.parse(e)/100,transform:e=>is.transform(100*e)},us={test:$i("hsl","hue"),parse:qi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+is.transform(Xi(t))+", "+is.transform(Xi(n))+", "+Xi(Qi.transform(r))+")"},ds={test:e=>ts.test(e)||ns.test(e)||us.test(e),parse:e=>ts.test(e)?ts.parse(e):us.test(e)?us.parse(e):ns.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ts.transform(e):us.transform(e)},ms=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ps="number",fs="color",hs=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(hs,(e=>(ds.test(e)?(r.color.push(i),o.push(fs),n.push(ds.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(ps),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:o}}function ys(e){return gs(e).values}function Is(e){const{split:t,types:n}=gs(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===ps?Xi(e[i]):t===fs?ds.transform(e[i]):e[i]}return o}}const vs=e=>"number"==typeof e?0:e,bs={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Ji))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(ms))||void 0===n?void 0:n.length)||0)>0},parse:ys,createTransformer:Is,getAnimatableNone:function(e){const t=ys(e);return Is(e)(t.map(vs))}},xs=new Set(["brightness","contrast","saturate","opacity"]);function Ms(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ji)||[];if(!r)return e;const o=n.replace(r,"");let i=xs.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const js=/\b([a-z-]*)\(.*?\)/gu,ws={...bs,getAnimatableNone:e=>{const t=e.match(js);return t?t.map(Ms).join(" "):e}},Ns={borderWidth:ss,borderTopWidth:ss,borderRightWidth:ss,borderBottomWidth:ss,borderLeftWidth:ss,borderRadius:ss,radius:ss,borderTopLeftRadius:ss,borderTopRightRadius:ss,borderBottomRightRadius:ss,borderBottomLeftRadius:ss,width:ss,maxWidth:ss,height:ss,maxHeight:ss,top:ss,right:ss,bottom:ss,left:ss,padding:ss,paddingTop:ss,paddingRight:ss,paddingBottom:ss,paddingLeft:ss,margin:ss,marginTop:ss,marginRight:ss,marginBottom:ss,marginLeft:ss,backgroundPositionX:ss,backgroundPositionY:ss},Ts={rotate:os,rotateX:os,rotateY:os,rotateZ:os,scale:_i,scaleX:_i,scaleY:_i,scaleZ:_i,skew:os,skewX:os,skewY:os,distance:ss,translateX:ss,translateY:ss,translateZ:ss,x:ss,y:ss,z:ss,perspective:ss,transformPerspective:ss,opacity:Qi,originX:cs,originY:cs,originZ:ss},Es={...Hi,transform:Math.round},Ss={...Ns,...Ts,zIndex:Es,size:ss,fillOpacity:Qi,strokeOpacity:Qi,numOctaves:Es},zs={...Ss,color:ds,backgroundColor:ds,outlineColor:ds,fill:ds,stroke:ds,borderColor:ds,borderTopColor:ds,borderRightColor:ds,borderBottomColor:ds,borderLeftColor:ds,filter:ws,WebkitFilter:ws},Ds=e=>zs[e];function ks(e,t){let n=Ds(e);return n!==ws&&(n=bs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Cs=new Set(["auto","none","0"]),Rs=e=>e===Hi||e===ss,Ps=(e,t)=>parseFloat(e.split(", ")[t]),As=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Ps(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Ps(t[1],e):0}},Ls=new Set(["x","y","z"]),Os=li.filter((e=>!Ls.has(e))),Bs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:As(4,13),y:As(5,14)};Bs.translateX=Bs.x,Bs.translateY=Bs.y;const Gs=new Set;let Us=!1,Vs=!1;function Ws(){if(Vs){const e=Array.from(Gs).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Os.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Vs=!1,Us=!1,Gs.forEach((e=>e.complete())),Gs.clear()}function Zs(){Gs.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Vs=!0)}))}class Fs{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gs.add(this),Us||(Us=!0,pi.read(Zs),pi.resolveKeyframes(Ws))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Gs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Ys=ai,Hs=ai;const Qs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_s=e=>t=>"string"==typeof t&&t.startsWith(e),Xs=_s("--"),Js=_s("var(--"),Ks=e=>!!Js(e)&&$s.test(e.split("/*")[0].trim()),$s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qs=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ea(e,t,n=1){Hs(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=qs.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Qs(e)?parseFloat(e):e}return Ks(o)?ea(o,t,n+1):o}const ta=e=>t=>t.test(e),na=[Hi,ss,is,os,ls,as,{test:e=>"auto"===e,parse:e=>e}],ra=e=>na.find(ta(e));class oa extends Fs{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Ks(r))){const o=ea(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ui.has(n)||2!==e.length)return;const[r,o]=e,i=ra(r),s=ra(o);if(i!==s)if(Rs(i)&&Rs(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||Fi(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Cs.has(t)&&gs(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=ks(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Bs[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Bs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const ia=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!bs.test(e)&&"0"!==e||e.startsWith("url(")));function sa(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=ia(o,t),a=ia(i,t);return Ys(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Lo(n))&&r)}const aa=e=>null!==e;function la(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(aa),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class ca{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=vi.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Zs(),Ws()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=vi.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!sa(e,n,r,o)){if(!i)return a&&a(la(e,this.options,t)),s&&s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const ua=(e,t,n)=>e+(t-e)*n;function da(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ma(e,t){return n=>n>0?t:e}const pa=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},fa=[ns,ts,us];function ha(e){const t=(n=e,fa.find((e=>e.test(n))));var n;if(Ys(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===us&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=da(a,r,e+1/3),i=da(a,r,e),s=da(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const ga=(e,t)=>{const n=ha(e),r=ha(t);if(!n||!r)return ma(e,t);const o={...n};return e=>(o.red=pa(n.red,r.red,e),o.green=pa(n.green,r.green,e),o.blue=pa(n.blue,r.blue,e),o.alpha=ua(n.alpha,r.alpha,e),ts.transform(o))},ya=(e,t)=>n=>t(e(n)),Ia=(...e)=>e.reduce(ya),va=new Set(["none","hidden"]);function ba(e,t){return n=>ua(e,t,n)}function xa(e){return"number"==typeof e?ba:"string"==typeof e?Ks(e)?ma:ds.test(e)?ga:wa:Array.isArray(e)?Ma:"object"==typeof e?ds.test(e)?ga:ja:ma}function Ma(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>xa(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function ja(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=xa(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const wa=(e,t)=>{const n=bs.createTransformer(t),r=gs(e),o=gs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?va.has(e)&&!o.values.length||va.has(t)&&!r.values.length?function(e,t){return va.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Ia(Ma(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,o),o.values),n):(Ys(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ma(e,t))};function Na(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?ua(e,t,n):xa(e)(e,t)}function Ta(e,t,n){const r=Math.max(t-5,0);return ji(n-e(r),t-r)}const Ea=.01,Sa=2,za=.005,Da=.5;const ka=12;function Ca(e,t){return e*Math.sqrt(1-t*t)}const Ra=["duration","bounce"],Pa=["stiffness","damping","mass"];function Aa(e,t){return t.some((t=>void 0!==e[t]))}function La(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Aa(e,Pa)&&Aa(e,Ra))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Yi(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;Ys(e<=ii(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Yi(.05,1,s),e=Yi(.01,10,si(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/Ca(t,s)*Math.exp(-o)},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Ca(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<ka;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=ii(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-si(n.velocity||0)}),f=m||0,h=c/(2*Math.sqrt(l*u)),g=s-i,y=si(Math.sqrt(l/u)),I=Math.abs(g)<5;let v;if(r||(r=I?Ea:Sa),o||(o=I?za:Da),h<1){const e=Ca(y,h);v=t=>{const n=Math.exp(-h*y*t);return s-n*((f+h*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)v=e=>s-Math.exp(-y*e)*(g+(f+y*g)*e);else{const e=y*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*y*t),r=Math.min(e*t,300);return s-n*((f+h*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const b={calculatedDuration:p&&d||null,next:e=>{const t=v(e);if(p)a.done=e>=d;else{let n=0;h<1&&(n=0===e?ii(f):Ta(v,e,t));const i=Math.abs(n)<=r,l=Math.abs(s-t)<=o;a.done=i&&l}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(Ao(b),Po),t=Zo((t=>b.next(e*t).value),e,30);return e+"ms "+t}};return b}function Oa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},p=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let f=n*t;const h=d+f,g=void 0===s?h:s(h);g!==h&&(f=g-d);const y=e=>-f*Math.exp(-e/r),I=e=>g+y(e),v=e=>{const t=y(e),n=I(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let b,x;const M=e=>{var t;t=m.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(b=e,x=La({keyframes:[m.value,p(m.value)],velocity:Ta(I,e,m.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return M(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==b||(t=!0,v(e),M(e)),void 0!==b&&e>=b?x.next(e-b):(!t&&v(e),m)}}}const Ba=Pi(.42,0,1,1),Ga=Pi(0,0,.58,1),Ua=Pi(.42,0,.58,1),Va={linear:ai,easeIn:Ba,easeInOut:Ua,easeOut:Ga,circIn:Vi,circInOut:Zi,circOut:Wi,backIn:Bi,backInOut:Gi,backOut:Oi,anticipate:Ui},Wa=e=>{if(Bo(e)){Hs(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Pi(t,n,r,o)}return"string"==typeof e?(Hs(void 0!==Va[e],`Invalid easing type '${e}'`),Va[e]):e};function Za({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Wa):Wa(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Wo(0,t,r);e.push(ua(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Hs(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||Na,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||ai:t;i=Ia(e,i)}r.push(i)}return r}(t,r,o),l=a.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=Wo(e[r],e[r+1],n);return a[r](o)};return n?t=>c(Yi(e[0],e[i-1],t)):c}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Ua)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const Fa=e=>{const t=({timestamp:t})=>e(t);return{start:()=>pi.update(t,!0),stop:()=>fi(t),now:()=>hi.isProcessing?hi.timestamp:vi.now()}},Ya={decay:Oa,inertia:Oa,tween:Za,keyframes:Za,spring:La},Ha=e=>e/100;class Qa extends ca{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||Fs;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=Lo(t)?t:Ya[t]||Za;let a,l;s!==Za&&"number"!=typeof e[0]&&(a=Ia(Ha,Na(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=Ao(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:m,repeatType:p,repeatDelay:f,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let I=this.currentTime,v=o;if(m){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,m+1),Boolean(t%2)&&("reverse"===p?(n=1-n,f&&(n-=f/u)):"mirror"===p&&(v=i)),I=Yi(0,1,n)*u}const b=y?{done:!1,value:a[0]}:v.next(I);s&&(b.value=s(b.value));let{done:x}=b;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return M&&void 0!==r&&(b.value=la(a,this.options,r)),h&&h(b.value),M&&this.finish(),b}get duration(){const{resolved:e}=this;return e?si(e.calculatedDuration):0}get time(){return si(this.currentTime)}set time(e){e=ii(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=si(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Fa,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const _a=new Set(["opacity","clipPath","filter","transform"]),Xa=zo((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Ja={anticipate:Ui,backInOut:Gi,circInOut:Zi};class Ka extends ca{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new oa(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:s,name:a,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;var c;if("string"==typeof o&&Vo()&&o in Ja&&(o=Ja[o]),Lo((c=this.options).type)||"spring"===c.type||!Fo(c.ease)){const{onComplete:t,onUpdate:s,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new Qa({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Qo(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,a,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Oo(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(la(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return si(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return si(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=ii(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return ai;const{animation:n}=t;Oo(n,e)}else this.pendingTimeline=e;return ai}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new Qa({...c,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=ii(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return Xa()&&n&&_a.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const $a={type:"spring",stiffness:500,damping:25,restSpeed:10},qa={type:"keyframes",duration:.8},el={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tl=(e,{keyframes:t})=>t.length>2?qa:ci.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:$a:el,nl=(e,t,n,r={},o,i)=>s=>{const a=Ro(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=ii(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...tl(e,u)}),u.duration&&(u.duration=ii(u.duration)),u.repeatDelay&&(u.repeatDelay=ii(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=la(u.keyframes,a);if(void 0!==e)return pi.update((()=>{u.onUpdate(e),u.onComplete()})),new Co([])}return!i&&Ka.supports(u)?new Ka(u):new Qa(u)};function rl({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ol(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&rl(u,t))continue;const a={delay:n,...Ro(s||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Ci(e);if(n){const e=window.MotionHandoffAnimation(n,t,pi);null!==e&&(a.startTime=e,d=!0)}}zi(e,t),r.start(nl(t,r,o,e.shouldReduceMotion&&ui.has(t)?{type:!1}:a,e,d));const m=r.animation;m&&c.push(m)}return a&&Promise.all(c).then((()=>{pi.update((()=>{a&&function(e,t){const n=To(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)Ei(e,t,(s=i[t],xo(s)?s[s.length-1]||0:s));var s}(e,a)}))})),c}function il(e,t,n={}){var r;const o=To(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(ol(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(sl).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(il(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function sl(e,t){return e.sortNodePosition(t)}const al=So.length;function ll(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ll(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<al;n++){const r=So[n],o=e.props[r];(jo(o)||!1===o)&&(t[r]=o)}return t}const cl=[...Eo].reverse(),ul=Eo.length;function dl(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>il(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=il(e,t,n);else{const o="function"==typeof t?To(e,t,n.custom):t;r=Promise.all(ol(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=pl(),r=!0;const o=t=>(n,r)=>{var o;const i=To(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:s}=e,a=ll(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<ul;t++){const f=cl[t],h=n[f],g=void 0!==s[f]?s[f]:a[f],y=jo(g),I=f===i?h.isActive:null;!1===I&&(d=t);let v=g===a[f]&&g!==s[f]&&y;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...u},!h.isActive&&null===I||!g&&!h.prevProp||bo(g)||"boolean"==typeof g)continue;const b=(m=h.prevProp,"string"==typeof(p=g)?p!==m:!!Array.isArray(p)&&!Mo(p,m));let x=b||f===i&&h.isActive&&!v&&y||t>d&&y,M=!1;const j=Array.isArray(g)?g:[g];let w=j.reduce(o(f),{});!1===I&&(w={});const{prevResolvedValues:N={}}=h,T={...N,...w},E=t=>{x=!0,c.has(t)&&(M=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in T){const t=w[e],n=N[e];if(u.hasOwnProperty(e))continue;let r=!1;r=xo(t)&&xo(n)?!Mo(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):h.protectedKeys[e]=!0}h.prevProp=g,h.prevResolvedValues=w,h.isActive&&(u={...u,...w}),r&&e.blockInitialAnimation&&(x=!1),x&&(!v||!b||M)&&l.push(...j.map((e=>({animation:e,options:{type:f}}))))}var m,p;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=pl(),r=!0}}}function ml(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pl(){return{animate:ml(!0),whileInView:ml(),whileHover:ml(),whileTap:ml(),whileDrag:ml(),whileFocus:ml(),exit:ml()}}class fl{constructor(e){this.isMounted=!1,this.node=e}update(){}}let hl=0;const gl={animation:{Feature:class extends fl{constructor(e){super(e),e.animationState||(e.animationState=dl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();bo(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends fl{constructor(){super(...arguments),this.id=hl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function yl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Il(e){return{point:{x:e.pageX,y:e.pageY}}}function vl(e,t,n,r){return yl(e,t,(e=>t=>qo(t)&&e(t,Il(t)))(n),r)}const bl=(e,t)=>Math.abs(e-t);class xl{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=wl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=bl(e.x,t.x),r=bl(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=hi;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ml(t,this.transformPagePoint),pi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=wl("pointercancel"===e.type?this.lastMoveEventInfo:Ml(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!qo(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Ml(Il(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=hi;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,wl(i,this.history)),this.removeListeners=Ia(vl(this.contextWindow,"pointermove",this.handlePointerMove),vl(this.contextWindow,"pointerup",this.handlePointerUp),vl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),fi(this.updatePoint)}}function Ml(e,t){return t?{point:t(e.point)}:e}function jl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wl({point:e},t){return{point:e,delta:jl(e,Tl(t)),offset:jl(e,Nl(t)),velocity:El(t,.1)}}function Nl(e){return e[0]}function Tl(e){return e[e.length-1]}function El(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Tl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ii(t)));)n--;if(!r)return{x:0,y:0};const i=si(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Sl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function zl(e){return e.max-e.min}function Dl(e,t,n,r=.5){e.origin=r,e.originPoint=ua(t.min,t.max,e.origin),e.scale=zl(n)/zl(t),e.translate=ua(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function kl(e,t,n,r){Dl(e.x,t.x,n.x,r?r.originX:void 0),Dl(e.y,t.y,n.y,r?r.originY:void 0)}function Cl(e,t,n){e.min=n.min+t.min,e.max=e.min+zl(t)}function Rl(e,t,n){e.min=t.min-n.min,e.max=e.min+zl(t)}function Pl(e,t,n){Rl(e.x,t.x,n.x),Rl(e.y,t.y,n.y)}function Al(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Ll(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ol=.35;function Bl(e,t,n){return{min:Gl(e,t),max:Gl(e,n)}}function Gl(e,t){return"number"==typeof e?e:e[t]||0}const Ul=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Vl(e){return[e("x"),e("y")]}function Wl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Zl(e){return void 0===e||1===e}function Fl({scale:e,scaleX:t,scaleY:n}){return!Zl(e)||!Zl(t)||!Zl(n)}function Yl(e){return Fl(e)||Hl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Hl(e){return Ql(e.x)||Ql(e.y)}function Ql(e){return e&&"0%"!==e}function _l(e,t,n){return n+t*(e-n)}function Xl(e,t,n,r,o){return void 0!==o&&(e=_l(e,o,r)),_l(e,n,r)+t}function Jl(e,t=0,n=1,r,o){e.min=Xl(e.min,t,n,r,o),e.max=Xl(e.max,t,n,r,o)}function Kl(e,{x:t,y:n}){Jl(e.x,t.translate,t.scale,t.originPoint),Jl(e.y,n.translate,n.scale,n.originPoint)}const $l=.999999999999,ql=1.0000000000001;function ec(e,t){e.min=e.min+t,e.max=e.max+t}function tc(e,t,n,r,o=.5){Jl(e,t,n,ua(e.min,e.max,o),r)}function nc(e,t){tc(e.x,t.x,t.scaleX,t.scale,t.originX),tc(e.y,t.y,t.scaleY,t.scale,t.originY)}function rc(e,t){return Wl(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const oc=({current:e})=>e?e.ownerDocument.defaultView:null,ic=new WeakMap;class sc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new xl(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Il(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?_o[i]?null:(_o[i]=!0,()=>{_o[i]=!1}):_o.x||_o.y?null:(_o.x=_o.y=!0,()=>{_o.x=_o.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vl((e=>{let t=this.getAxisMotionValue(e).get()||0;if(is.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=zl(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&pi.postRender((()=>o(e,t))),zi(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Vl((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:oc(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&pi.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!ac(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?ua(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ua(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&Sl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Al(e.x,n,o),y:Al(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Ol){return!1===e?e=0:!0===e&&(e=Ol),{x:Bl(e,"left","right"),y:Bl(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Vl((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sl(e))return!1;const n=e.current;Hs(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=rc(e,n),{scroll:o}=t;return o&&(ec(r.x,o.offset.x),ec(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Ll(e.x,t.x),y:Ll(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Wl(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Vl((s=>{if(!ac(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return zi(this.visualElement,e),n.start(nl(e,n,0,t,this.visualElement,!1))}stopAnimation(){Vl((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Vl((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Vl((t=>{const{drag:n}=this.getProps();if(!ac(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-ua(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Vl((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=zl(e),o=zl(t);return o>r?n=Wo(t.min,t.max-r,e.min):r>o&&(n=Wo(e.min,e.max-o,t.min)),Yi(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Vl((t=>{if(!ac(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(ua(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;ic.set(this.visualElement,this);const e=vl(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Sl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),pi.read(t);const o=yl(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Vl((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ol,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function ac(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const lc=e=>(t,n)=>{e&&pi.postRender((()=>e(t,n)))},cc=(0,t.createContext)({}),uc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ss.test(e))return e;e=parseFloat(e)}return`${dc(e,t.target.x)}% ${dc(e,t.target.y)}%`}},pc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=bs.parse(e);if(o.length>5)return r;const i=bs.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=ua(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}},fc={},{schedule:hc,cancel:gc}=mi(queueMicrotask,!1);class yc extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=vc,Object.assign(fc,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),uc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||pi.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),hc.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ic(e){const[n,r]=po(),o=(0,t.useContext)(oo);return(0,Ft.jsx)(yc,{...e,layoutGroup:o,switchLayoutGroup:(0,t.useContext)(cc),isPresent:n,safeToRemove:r})}const vc={borderRadius:{...mc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mc,borderTopRightRadius:mc,borderBottomLeftRadius:mc,borderBottomRightRadius:mc,boxShadow:pc},bc=(e,t)=>e.depth-t.depth;class xc{constructor(){this.children=[],this.isDirty=!1}add(e){bi(this.children,e),this.isDirty=!0}remove(e){xi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(bc),this.isDirty=!1,this.children.forEach(e)}}function Mc(e){const t=Si(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const jc=["TopLeft","TopRight","BottomLeft","BottomRight"],wc=jc.length,Nc=e=>"string"==typeof e?parseFloat(e):e,Tc=e=>"number"==typeof e||ss.test(e);function Ec(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Sc=Dc(0,.5,Wi),zc=Dc(.5,.95,ai);function Dc(e,t,n){return r=>r<e?0:r>t?1:n(Wo(e,t,r))}function kc(e,t){e.min=t.min,e.max=t.max}function Cc(e,t){kc(e.x,t.x),kc(e.y,t.y)}function Rc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Pc(e,t,n,r,o){return e=_l(e-=t,1/n,r),void 0!==o&&(e=_l(e,1/o,r)),e}function Ac(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(is.test(t)&&(t=parseFloat(t),t=ua(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=ua(i.min,i.max,r);e===i&&(a-=t),e.min=Pc(e.min,t,n,a,o),e.max=Pc(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Lc=["x","scaleX","originX"],Oc=["y","scaleY","originY"];function Bc(e,t,n,r){Ac(e.x,t,Lc,n?n.x:void 0,r?r.x:void 0),Ac(e.y,t,Oc,n?n.y:void 0,r?r.y:void 0)}function Gc(e){return 0===e.translate&&1===e.scale}function Uc(e){return Gc(e.x)&&Gc(e.y)}function Vc(e,t){return e.min===t.min&&e.max===t.max}function Wc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zc(e,t){return Wc(e.x,t.x)&&Wc(e.y,t.y)}function Fc(e){return zl(e.x)/zl(e.y)}function Yc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Hc{constructor(){this.members=[]}add(e){bi(this.members,e),e.scheduleRender()}remove(e){if(xi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Qc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_c="undefined"!=typeof window&&void 0!==window.MotionDebug,Xc=["","X","Y","Z"],Jc={visibility:"hidden"};let Kc=0;function $c(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function qc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ci(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",pi,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&qc(r)}function eu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Kc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,_c&&(Qc.totalNodes=Qc.resolvedTargetDeltas=Qc.recalculatedProjection=0),this.nodes.forEach(ru),this.nodes.forEach(uu),this.nodes.forEach(du),this.nodes.forEach(ou),_c&&window.MotionDebug.record(Qc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new xc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Mi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=vi.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(fi(r),e(i-t))};return pi.read(r,!0),()=>fi(r)}(r,250),uc.hasAnimatedSinceResize&&(uc.hasAnimatedSinceResize=!1,this.nodes.forEach(cu))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||yu,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Zc(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Ro(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||cu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,fi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&qc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(su);this.isUpdating||this.nodes.forEach(au),this.isUpdating=!1,this.nodes.forEach(lu),this.nodes.forEach(tu),this.nodes.forEach(nu),this.clearAllSnapshots();const e=vi.now();hi.delta=Yi(0,1e3/60,e-hi.timestamp),hi.timestamp=e,hi.isProcessing=!0,gi.update.process(hi),gi.preRender.process(hi),gi.render.process(hi),hi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iu),this.sharedNodes.forEach(pu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pi.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Uc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Yl(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),bu((r=n).x),bu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(Mu)){const{scroll:e}=this.root;e&&(ec(n.x,e.offset.x),ec(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Cc(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Cc(n,e),ec(n.x,o.offset.x),ec(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Cc(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nc(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Yl(r.latestValues)&&nc(n,r.latestValues)}return Yl(this.latestValues)&&nc(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Cc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Yl(n.latestValues))continue;Fl(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};Cc(r,n.measurePageBox()),Bc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Yl(this.latestValues)&&Bc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=hi.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Pl(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Cc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Cl(s.x,a.x,l.x),Cl(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Cc(this.target,this.layout.layoutBox),Kl(this.target,this.targetDelta)):Cc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Pl(this.relativeTargetOrigin,this.target,e.target),Cc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_c&&Qc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Fl(this.parent.latestValues)&&!Hl(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===hi.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Cc(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nc(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Kl(e,s)),r&&Yl(i.latestValues)&&nc(e,i.latestValues))}t.x<ql&&t.x>$l&&(t.x=1),t.y<ql&&t.y>$l&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Rc(this.prevProjectionDelta.x,this.projectionDelta.x),Rc(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),kl(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&Yc(this.projectionDelta.x,this.prevProjectionDelta.x)&&Yc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),_c&&Qc.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(gu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,m,p,f;fu(i.x,e.x,n),fu(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,m=this.relativeTargetOrigin,p=s,f=n,hu(l.x,m.x,p.x,f),hu(l.y,m.y,p.y,f),d&&function(e,t){return Vc(e.x,t.x)&&Vc(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Cc(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=ua(0,void 0!==n.opacity?n.opacity:1,Sc(r)),e.opacityExit=ua(void 0!==t.opacity?t.opacity:1,0,zc(r))):i&&(e.opacity=ua(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<wc;o++){const i=`border${jc[o]}Radius`;let s=Ec(t,i),a=Ec(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Tc(s)===Tc(a)?(e[i]=Math.max(ua(Nc(s),Nc(a),r),0),(is.test(a)||is.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=ua(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(fi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pi.update((()=>{uc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Si(0)?0:Ti(0);return r.start(nl("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&xu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=zl(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=zl(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Cc(t,n),nc(t,o),kl(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Hc),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&$c("z",e,r,this.animationValues);for(let t=0;t<Xc.length;t++)$c(`rotate${Xc[t]}`,e,r,this.animationValues),$c(`skew${Xc[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jc;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Mc(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Mc(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Yl(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in fc){if(void 0===s[e])continue;const{correct:t,applyTo:n}=fc[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Mc(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function tu(e){e.updateLayout()}function nu(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Vl((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=zl(r);r.min=t[e].min,r.max=r.min+o})):xu(o,n.layoutBox,t)&&Vl((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=zl(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};kl(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?kl(a,e.applyTransform(r,!0),n.measuredBox):kl(a,t,n.layoutBox);const l=!Uc(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};Pl(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Pl(a,t,i.layoutBox),Zc(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ru(e){_c&&Qc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ou(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iu(e){e.clearSnapshot()}function su(e){e.clearMeasurements()}function au(e){e.isLayoutDirty=!1}function lu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uu(e){e.resolveTargetDelta()}function du(e){e.calcProjection()}function mu(e){e.resetSkewAndRotation()}function pu(e){e.removeLeadSnapshot()}function fu(e,t,n){e.translate=ua(t.translate,0,n),e.scale=ua(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hu(e,t,n,r){e.min=ua(t.min,n.min,r),e.max=ua(t.max,n.max,r)}function gu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const yu={duration:.45,ease:[.4,0,.1,1]},Iu=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vu=Iu("applewebkit/")&&!Iu("chrome/")?Math.round:ai;function bu(e){e.min=vu(e.min),e.max=vu(e.max)}function xu(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Fc(t),o=Fc(n),!(Math.abs(r-o)<=.2));var r,o}function Mu(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const ju=eu({attachResizeListener:(e,t)=>yl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wu={current:void 0},Nu=eu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wu.current){const e=new ju({});e.mount(window),e.setOptions({layoutScroll:!0}),wu.current=e}return wu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Tu={pan:{Feature:class extends fl{constructor(){super(...arguments),this.removePointerDownListener=ai}onPointerDown(e){this.session=new xl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:lc(e),onStart:lc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&pi.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=vl(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends fl{constructor(e){super(e),this.removeGroupControls=ai,this.removeListeners=ai,this.controls=new sc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ai}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Nu,MeasureLayout:Ic}};function Eu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&pi.postRender((()=>o(t,Il(t))))}function Su(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&pi.postRender((()=>o(t,Il(t))))}const zu=new WeakMap,Du=new WeakMap,ku=e=>{const t=zu.get(e.target);t&&t(e)},Cu=e=>{e.forEach(ku)};const Ru={some:0,all:1},Pu={inView:{Feature:class extends fl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Ru[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Du.has(n)||Du.set(n,{});const r=Du.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Cu,{root:e,...t})),r[o]}(t);return zu.set(e,n),r.observe(e),()=>{zu.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends fl{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Jo(e,n),s=e=>{const r=e.currentTarget;if(!oi(e)||ti.has(r))return;ti.add(r);const i=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),oi(e)&&ti.has(r)&&(ti.delete(r),"function"==typeof i&&i(e,{success:t}))},a=e=>{s(e,n.useGlobalTarget||$o(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return ei.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=ni((()=>{if(ti.has(n))return;ri(n,"down");const e=ni((()=>{ri(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>ri(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}(e,(e=>(Su(this.node,e,"Start"),(e,{success:t})=>Su(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends fl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ia(yl(this.node.current,"focus",(()=>this.onFocus())),yl(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends fl{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Jo(e,n),s=Ko((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=Ko((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",s,o)})),i}(e,(e=>(Eu(this.node,e,"Start"),e=>Eu(this.node,e,"End")))))}unmount(){}}}},Au={layout:{ProjectionNode:Nu,MeasureLayout:Ic}},Lu=(0,t.createContext)({strict:!1}),Ou=(0,t.createContext)({});function Bu(e){return bo(e.animate)||So.some((t=>jo(e[t])))}function Gu(e){return Boolean(Bu(e)||e.variants)}function Uu(e){return Array.isArray(e)?e.join(" "):e}const Vu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Wu={};for(const e in Vu)Wu[e]={isEnabled:t=>Vu[e].some((e=>!!t[e]))};const Zu=Symbol.for("motionComponentSymbol");function Fu(e,n,r){return(0,t.useCallback)((t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):Sl(r)&&(r.current=t))}),[n])}function Yu(e,n,r,o,i){var s,a;const{visualElement:l}=(0,t.useContext)(Ou),c=(0,t.useContext)(Lu),u=(0,t.useContext)(so),d=(0,t.useContext)(ao).reducedMotion,m=(0,t.useRef)(null);o=o||c.renderer,!m.current&&o&&(m.current=o(e,{visualState:n,parent:l,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const p=m.current,f=(0,t.useContext)(cc);!p||p.projection||!i||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Hu(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&Sl(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(m.current,r,i,f);const h=(0,t.useRef)(!1);(0,t.useInsertionEffect)((()=>{p&&h.current&&p.update(r,u)}));const g=r[ki],y=(0,t.useRef)(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return yo((()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),hc.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())})),(0,t.useEffect)((()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),y.current=!1))})),p}function Hu(e){if(e)return!1!==e.options.allowProjection?e.projection:Hu(e.parent)}function Qu({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){var s,a;function l(e,s){let a;const l={...(0,t.useContext)(ao),...e,layoutId:_u(e)},{isStatic:c}=l,u=function(e){const{initial:n,animate:r}=function(e,t){if(Bu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||jo(t)?t:void 0,animate:jo(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(Ou));return(0,t.useMemo)((()=>({initial:n,animate:r})),[Uu(n),Uu(r)])}(e),d=o(e,c);if(!c&&go){(0,t.useContext)(Lu).strict;const e=function(e){const{drag:t,layout:n}=Wu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=e.MeasureLayout,u.visualElement=Yu(i,d,l,n,e.ProjectionNode)}return(0,Ft.jsxs)(Ou.Provider,{value:u,children:[a&&u.visualElement?(0,Ft.jsx)(a,{visualElement:u.visualElement,...l}):null,r(i,e,Fu(d,u.visualElement,s),d,c,u.visualElement)]})}e&&function(e){for(const t in e)Wu[t]={...Wu[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof i?i:`create(${null!==(a=null!==(s=i.displayName)&&void 0!==s?s:i.name)&&void 0!==a?a:""})`}`;const c=(0,t.forwardRef)(l);return c[Zu]=i,c}function _u({layoutId:e}){const n=(0,t.useContext)(oo).id;return n&&void 0!==e?n+"-"+e:e}const Xu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ju(e){return"string"==typeof e&&!e.includes("-")&&!!(Xu.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ku=e=>(n,r)=>{const o=(0,t.useContext)(Ou),i=(0,t.useContext)(so),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const s={latestValues:$u(r,o,i,e),renderState:t()};return n&&(s.onMount=e=>n({props:r,current:e,...s}),s.onUpdate=e=>n(e)),s}(e,n,o,i);return r?s():io(s)};function $u(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Mc(i[e]);let{initial:s,animate:a}=e;const l=Bu(e),c=Gu(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!bo(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=No(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const qu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ed={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},td=li.length;function nd(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(ci.has(e))s=!0;else if(Xs(e))o[e]=n;else{const t=qu(n,Ss[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<td;i++){const s=li[i],a=e[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=qu(a,Ss[s]);l||(o=!1,r+=`${ed[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const rd={offset:"stroke-dashoffset",array:"stroke-dasharray"},od={offset:"strokeDashoffset",array:"strokeDasharray"};function id(e,t,n){return"string"==typeof e?e:ss.transform(t+n*e)}function sd(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(nd(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:f}=e;m.transform&&(f&&(p.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${id(t,e.x,e.width)} ${id(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?rd:od;e[i.offset]=ss.transform(-r);const s=ss.transform(t),a=ss.transform(n);e[i.array]=`${s} ${a}`}(m,s,a,l,!1)}const ad=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ld(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const cd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ud(e,t,n,r){ld(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(cd.has(n)?n:Di(n),t.attrs[n])}function dd(e,{layout:t,layoutId:n}){return ci.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!fc[e]||"opacity"===e)}function md(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Si(o[s])||t.style&&Si(t.style[s])||dd(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function pd(e,t,n){const r=md(e,t,n);for(const n in e)(Si(e[n])||Si(t[n]))&&(r[-1!==li.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const fd=["x","y","width","height","cx","cy","r"],hd={useVisualState:Ku({scrapeMotionValuesFromProps:pd,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(ci.has(e)){i=!0;break}if(!i)return;let s=!t;if(t)for(let n=0;n<fd.length;n++){const r=fd[n];e[r]!==t[r]&&(s=!0)}s&&pi.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),pi.render((()=>{sd(r,o,ad(n.tagName),e.transformTemplate),ud(n,r)}))}))}})},gd={useVisualState:Ku({scrapeMotionValuesFromProps:md,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function yd(e,t,n){for(const r in t)Si(t[r])||dd(r,n)||(e[r]=t[r])}function Id(e,n){const r={},o=function(e,n){const r={};return yd(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n){return(0,t.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return nd(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),r}(e,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const vd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bd(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vd.has(e)}let xd=e=>!bd(e);try{(Md=require("@emotion/is-prop-valid").default)&&(xd=e=>e.startsWith("on")?!bd(e):Md(e))}catch(e){}var Md;function jd(e,n,r,o){const i=(0,t.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return sd(t,n,ad(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};yd(t,e.style,e),i.style={...t,...i.style}}return i}function wd(e=!1){return(n,r,o,{latestValues:i},s)=>{const a=(Ju(n)?jd:Id)(r,i,s,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(xd(o)||!0===n&&bd(o)||!t&&!bd(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),c=n!==t.Fragment?{...l,...a,ref:o}:{},{children:u}=r,d=(0,t.useMemo)((()=>Si(u)?u.get():u),[u]);return(0,t.createElement)(n,{...c,children:d})}}function Nd(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Qu({...Ju(n)?hd:gd,preloadedFeatures:e,useRender:wd(r),createVisualElement:t,Component:n})}}const Td={current:null},Ed={current:!1},Sd=[...na,ds,bs],zd=new WeakMap,Dd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Fs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=vi.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,pi.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Bu(t),this.isVariantNode=Gu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==a[e]&&Si(t)&&t.set(a[e],!1)}}mount(e){this.current=e,zd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ed.current||function(){if(Ed.current=!0,go)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Td.current=e.matches;e.addListener(t),t()}else Td.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Td.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zd.delete(this.current),this.projection&&this.projection.unmount(),fi(this.notifyUpdate),fi(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ci.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&pi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Wu){const t=Wu[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Dd.length;t++){const n=Dd[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Si(o))e.addValue(r,o);else if(Si(i))e.addValue(r,Ti(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,Ti(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Ti(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(Qs(r)||Fi(r))?r=parseFloat(r):(o=r,!Sd.find(ta(o))&&bs.test(t)&&(r=ks(e,t))),this.setBaseTarget(e,Si(r)?r.get():r)),Si(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=No(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Si(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Mi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Cd extends kd{constructor(){super(...arguments),this.KeyframeResolver=oa}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Si(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Rd extends Cd{constructor(){super(...arguments),this.type="html",this.renderInstance=ld}readValueFromInstance(e,t){if(ci.has(t)){const e=Ds(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Xs(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return rc(e,t)}build(e,t,n){nd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return md(e,t,n)}}class Pd extends Cd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ul}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ci.has(t)){const e=Ds(t);return e&&e.default||0}return t=cd.has(t)?t:Di(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return pd(e,t,n)}build(e,t,n){sd(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){ud(e,t,0,r)}mount(e){this.isSVGTag=ad(e.tagName),super.mount(e)}}const Ad=vo(Nd({...gl,...Pu,...Tu,...Au},((e,n)=>Ju(e)?new Pd(n):new Rd(n,{allowProjection:e!==t.Fragment}))));let Ld=!1;const Od=({toastItem:e,title:n="",content:r="",autoDismiss:o=!0,dismissAfter:i=5e3,theme:s="light",design:a="stack",icon:l,variant:c="neutral",removeToast:u})=>{const d=(0,t.useRef)(0),m=(0,t.useRef)(0),p=(0,t.useRef)(),f=(e,t=i)=>{if(o&&!(i<0))return d.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof u&&u(e.id)}),t)};(0,t.useEffect)((()=>{const t=i;return p.current=f(e,t),()=>{clearTimeout(p.current)}}),[]),(0,t.useEffect)((()=>{!e?.dismiss||"function"!=typeof u||u(e.id)}),[e]);const h=()=>{"function"==typeof u&&e?.action?.onClick?.((()=>u(e.id)))};let g=null;return"stack"===a&&(g=(0,Ft.jsx)("div",{className:Gn("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===s?no:to?.[c],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(p.current),m.current=(new Date).getTime()},onMouseLeave:()=>{p.current=f(e,i-(m.current-d.current))},children:"custom"!==e.type?(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Xr({variant:c,icon:l,theme:s})}),(0,Ft.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Kr({title:n,theme:s}),$r({content:r,theme:s}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,Ft.jsx)("div",{className:"mt-2.5",children:Jr({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:h,theme:s})})]}),(0,Ft.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Ft.jsx)("button",{className:Gn("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",ro[s]??ro.light),onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof u&&u(e.id)},children:(0,Ft.jsx)(Gr,{})})})]}):e?.jsx?.({close:()=>u(e.id),action:e?.action?{...e?.action,onClick:h}:null})})),"inline"===a&&(g=(0,Ft.jsxs)("div",{className:Gn("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===s?no:to?.[c],"lg:w-[47.5rem] w-full"),children:[(0,Ft.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Xr({variant:c,icon:l,theme:s})}),(0,Ft.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Kr({title:n,theme:s}),$r({content:r,theme:s})]}),(0,Ft.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,Ft.jsx)("button",{className:Gn("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",ro[s]??ro.light),onClick:()=>u(e.id),children:(0,Ft.jsx)(Gr,{})})})]})),g},Bd=(e=>(0,t.memo)((t=>{const n=t.singleTon;return Ld&&n?null:(Ld=!0,(0,Ft.jsx)(e,{...t}))})))((({position:e="top-right",design:n="stack",theme:r="light",className:o="",autoDismiss:s=!0,dismissAfter:a=5e3})=>{const[l,c]=(0,t.useState)([]);(0,t.useEffect)((()=>{Vr.subscribe((e=>{e?.dismiss?c((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,i.flushSync)((()=>c((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const u=e=>{c((t=>t.filter((t=>t.id!==e))))};return(0,Ft.jsx)("ul",{className:Gn("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",eo[e]??eo["top-right"],o),children:(0,Ft.jsx)(Io,{initial:!1,children:l.map((e=>(0,Ft.jsx)(Ad.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,Ft.jsx)(Od,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??n,autoDismiss:e?.autoDismiss??s,dismissAfter:e?.dismissAfter??a,removeToast:u,variant:e.type,theme:e?.theme??r})},e.id)))})})}));function Gd(){return"undefined"!=typeof window}function Ud(e){return Zd(e)?(e.nodeName||"").toLowerCase():"#document"}function Vd(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wd(e){var t;return null==(t=(Zd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zd(e){return!!Gd()&&(e instanceof Node||e instanceof Vd(e).Node)}function Fd(e){return!!Gd()&&(e instanceof Element||e instanceof Vd(e).Element)}function Yd(e){return!!Gd()&&(e instanceof HTMLElement||e instanceof Vd(e).HTMLElement)}function Hd(e){return!(!Gd()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vd(e).ShadowRoot)}function Qd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function _d(e){return["table","td","th"].includes(Ud(e))}function Xd(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Jd(e){const t=Kd(),n=Fd(e)?qd(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Kd(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function $d(e){return["html","body","#document"].includes(Ud(e))}function qd(e){return Vd(e).getComputedStyle(e)}function em(e){return Fd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tm(e){if("html"===Ud(e))return e;const t=e.assignedSlot||e.parentNode||Hd(e)&&e.host||Wd(e);return Hd(t)?t.host:t}function nm(e){const t=tm(e);return $d(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yd(t)&&Qd(t)?t:nm(t)}function rm(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=nm(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Vd(o);if(i){const e=om(s);return t.concat(s,s.visualViewport||[],Qd(o)?o:[],e&&n?rm(e):[])}return t.concat(o,rm(o,[],n))}function om(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function im(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function sm(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Hd(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function am(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function lm(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function cm(){return/apple/i.test(navigator.vendor)}function um(){const e=/android/i;return e.test(am())||e.test(lm())}function dm(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function mm(e){return(null==e?void 0:e.ownerDocument)||document}function pm(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function fm(e){return"composedPath"in e?e.composedPath()[0]:e.target}function hm(e){return Yd(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}var gm=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),ym="undefined"==typeof Element,Im=ym?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,vm=!ym&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},bm=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},xm=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!bm(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{Im.call(s,gm)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!bm(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},Mm=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},jm=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Mm(e)?0:e.tabIndex},wm=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Nm=function(e){return"INPUT"===e.tagName},Tm=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Em=function(e,t){return!(t.disabled||bm(t)||function(e){return Nm(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Im.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Im.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Tm(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=vm(e);if(s&&!s.shadowRoot&&!0===r(s))return Tm(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(function(e){var t,n,r,o,i=e&&vm(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=vm(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Im.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Sm=function(e,t){return!(function(e){return function(e){return Nm(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||vm(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||jm(t)<0||!Em(e,t))},zm=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Dm=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,s=i?t.scopeParent:t,a=function(e,t){var n=jm(e);return n<0&&t&&!Mm(e)?0:n}(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(wm).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},km=function(e,t){var n;return n=(t=t||{}).getShadowRoot?xm([e],t.includeContainer,{filter:Sm.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:zm}):function(e,t,n){if(bm(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(gm));return t&&Im.call(e,gm)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Sm.bind(null,t)),Dm(n)};const Cm=Math.min,Rm=Math.max,Pm=Math.round,Am=Math.floor,Lm=e=>({x:e,y:e}),Om={left:"right",right:"left",bottom:"top",top:"bottom"},Bm={start:"end",end:"start"};function Gm(e,t,n){return Rm(e,Cm(t,n))}function Um(e,t){return"function"==typeof e?e(t):e}function Vm(e){return e.split("-")[0]}function Wm(e){return e.split("-")[1]}function Zm(e){return"x"===e?"y":"x"}function Fm(e){return"y"===e?"height":"width"}function Ym(e){return["top","bottom"].includes(Vm(e))?"y":"x"}function Hm(e){return Zm(Ym(e))}function Qm(e){return e.replace(/start|end/g,(e=>Bm[e]))}function _m(e){return e.replace(/left|right|bottom|top/g,(e=>Om[e]))}function Xm(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 Jm(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 Km(e,t,n){let{reference:r,floating:o}=e;const i=Ym(t),s=Hm(t),a=Fm(s),l=Vm(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Wm(t)){case"start":p[s]-=m*(n&&c?-1:1);break;case"end":p[s]+=m*(n&&c?-1:1)}return p}async function $m(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Um(t,e),f=Xm(p),h=a[m?"floating"===d?"reference":"floating":d],g=Jm(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,I=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(I))&&await(null==i.getScale?void 0:i.getScale(I))||{x:1,y:1},b=Jm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:I,strategy:l}):y);return{top:(g.top-b.top+f.top)/v.y,bottom:(b.bottom-g.bottom+f.bottom)/v.y,left:(g.left-b.left+f.left)/v.x,right:(b.right-g.right+f.right)/v.x}}function qm(e){const t=qd(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yd(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Pm(n)!==i||Pm(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ep(e){return Fd(e)?e:e.contextElement}function tp(e){const t=ep(e);if(!Yd(t))return Lm(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=qm(t);let s=(i?Pm(n.width):n.width)/r,a=(i?Pm(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const np=Lm(0);function rp(e){const t=Vd(e);return Kd()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:np}function op(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ep(e);let s=Lm(1);t&&(r?Fd(r)&&(s=tp(r)):s=tp(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Vd(e))&&t}(i,n,r)?rp(i):Lm(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=Vd(i),t=r&&Fd(r)?Vd(r):r;let n=e,o=om(n);for(;o&&r&&t!==n;){const e=tp(o),t=o.getBoundingClientRect(),r=qd(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=Vd(o),o=om(n)}}return Jm({width:u,height:d,x:l,y:c})}function ip(e,t){const n=em(e).scrollLeft;return t?t.left+n:op(Wd(e)).left+n}function sp(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ip(e,r)),y:r.top+t.scrollTop}}function ap(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Vd(e),r=Wd(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Kd();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Wd(e),n=em(e),r=e.ownerDocument.body,o=Rm(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Rm(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ip(e);const a=-n.scrollTop;return"rtl"===qd(r).direction&&(s+=Rm(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Wd(e));else if(Fd(t))r=function(e,t){const n=op(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Yd(e)?tp(e):Lm(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=rp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Jm(r)}function lp(e,t){const n=tm(e);return!(n===t||!Fd(n)||$d(n))&&("fixed"===qd(n).position||lp(n,t))}function cp(e,t,n){const r=Yd(t),o=Wd(t),i="fixed"===n,s=op(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Lm(0);function c(){l.x=ip(o)}if(r||!r&&!i)if(("body"!==Ud(t)||Qd(o))&&(a=em(t)),r){const e=op(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Lm(0):sp(o,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function up(e){return"static"===qd(e).position}function dp(e,t){if(!Yd(e)||"fixed"===qd(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Wd(e)===n&&(n=n.ownerDocument.body),n}function mp(e,t){const n=Vd(e);if(Xd(e))return n;if(!Yd(e)){let t=tm(e);for(;t&&!$d(t);){if(Fd(t)&&!up(t))return t;t=tm(t)}return n}let r=dp(e,t);for(;r&&_d(r)&&up(r);)r=dp(r,t);return r&&$d(r)&&up(r)&&!Jd(r)?n:r||function(e){let t=tm(e);for(;Yd(t)&&!$d(t);){if(Jd(t))return t;if(Xd(t))return null;t=tm(t)}return null}(e)||n}const pp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Wd(r),a=!!t&&Xd(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Lm(1);const u=Lm(0),d=Yd(r);if((d||!d&&!i)&&(("body"!==Ud(r)||Qd(s))&&(l=em(r)),Yd(r))){const e=op(r);c=tp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const m=!s||d||i?Lm(0):sp(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}},getDocumentElement:Wd,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Xd(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=rm(e,[],!1).filter((e=>Fd(e)&&"body"!==Ud(e))),o=null;const i="fixed"===qd(e).position;let s=i?tm(e):e;for(;Fd(s)&&!$d(s);){const t=qd(s),n=Jd(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Qd(s)&&!n&&lp(e,s))?r=r.filter((e=>e!==s)):o=t,s=tm(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=ap(t,n,o);return e.top=Rm(r.top,e.top),e.right=Cm(r.right,e.right),e.bottom=Cm(r.bottom,e.bottom),e.left=Rm(r.left,e.left),e}),ap(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:mp,getElementRects:async function(e){const t=this.getOffsetParent||mp,n=this.getDimensions,r=await n(e.floating);return{reference:cp(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}=qm(e);return{width:t,height:n}},getScale:tp,isElement:Fd,isRTL:function(e){return"rtl"===qd(e).direction}};function fp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hp(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=ep(e),u=o||i?[...c?rm(c):[],...rm(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=Wd(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=c;if(a||t(),!m||!p)return;const f={rootMargin:-Am(d)+"px "+-Am(o.clientWidth-(u+m))+"px "+-Am(o.clientHeight-(d+p))+"px "+-Am(u)+"px",threshold:Rm(0,Cm(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||fp(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let m,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let h=l?op(e):null;return l&&function t(){const r=op(e);h&&!fp(h,r)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const gp=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Vm(n),a=Wm(n),l="y"===Ym(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=Um(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*u,y:m*c}:{x:m*c,y:p*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},yp=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Um(e,t),c={x:n,y:r},u=await $m(t,l),d=Ym(Vm(o)),m=Zm(d);let p=c[m],f=c[d];if(i){const e="y"===m?"bottom":"right";p=Gm(p+u["y"===m?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=Gm(f+u["y"===d?"top":"left"],f,f-u[e])}const h=a.fn({...t,[m]:p,[d]:f});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:i,[d]:s}}}}}},Ip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=Um(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Vm(o),I=Ym(a),v=Vm(a)===a,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=m||(v||!h?[_m(a)]:function(e){const t=_m(e);return[Qm(e),t,Qm(t)]}(a)),M="none"!==f;!m&&M&&x.push(...function(e,t,n,r){const o=Wm(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Vm(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Qm)))),i}(a,h,f,b));const j=[a,...x],w=await $m(t,g),N=[];let T=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(w[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Wm(e),o=Hm(e),i=Fm(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=_m(s)),[s,_m(s)]}(o,s,b);N.push(w[e[0]],w[e[1]])}if(T=[...T,{placement:o,overflows:N}],!N.every((e=>e<=0))){var E,S;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=j[e];if(t){var z;const n="alignment"===d&&I!==Ym(t),r=(null==(z=T[0])?void 0:z.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(S=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=T.filter((e=>{if(M){const t=Ym(e.placement);return t===I||"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:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},vp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Um(e,t)||{};if(null==c)return{};const d=Xm(u),m={x:n,y:r},p=Hm(o),f=Fm(p),h=await s.getDimensions(c),g="y"===p,y=g?"top":"left",I=g?"bottom":"right",v=g?"clientHeight":"clientWidth",b=i.reference[f]+i.reference[p]-m[p]-i.floating[f],x=m[p]-i.reference[p],M=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let j=M?M[v]:0;j&&await(null==s.isElement?void 0:s.isElement(M))||(j=a.floating[v]||i.floating[f]);const w=b/2-x/2,N=j/2-h[f]/2-1,T=Cm(d[y],N),E=Cm(d[I],N),S=T,z=j-h[f]-E,D=j/2-h[f]/2+w,k=Gm(S,D,z),C=!l.arrow&&null!=Wm(o)&&D!==k&&i.reference[f]/2-(D<S?T:E)-h[f]/2<0,R=C?D<S?D-S:D-z:0;return{[p]:m[p]+R,data:{[p]:k,centerOffset:D-k-R,...C&&{alignmentOffset:R}},reset:C}}}),bp=(e,t,n)=>{const r=new Map,o={platform:pp,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Km(c,r,l),m=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:h}=a[n],{x:g,y,data:I,reset:v}=await h({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...I}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(m=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Km(c,m,l))),n=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var xp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Mp(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(!Mp(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||Mp(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function jp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wp(e,t){const n=jp(e);return Math.round(t*n)/n}function Np(e){const n=t.useRef(e);return xp((()=>{n.current=e})),n}const Tp=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?vp({element:n.current,padding:r}).fn(t):{}:n?vp({element:n,padding:r}).fn(t):{};var o}}),Ep=(e,t)=>({...yp(e),options:[e,t]}),Sp=(e,t)=>({...Ip(e),options:[e,t]}),zp=(e,t)=>({...Tp(e),options:[e,t]}),Dp={...n},kp=Dp.useInsertionEffect||(e=>e());function Cp(e){const n=t.useRef((()=>{}));return kp((()=>{n.current=e})),t.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}var Rp="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pp.apply(this,arguments)}let Ap=!1,Lp=0;const Op=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Lp++,Bp=Dp.useId||function(){const[e,n]=t.useState((()=>Ap?Op():void 0));return Rp((()=>{null==e&&n(Op())}),[]),t.useEffect((()=>{Ap=!0}),[]),e},Gp=t.forwardRef((function(e,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:s}},width:a=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:m,d:p,style:{transform:f,...h}={},...g}=e,y=Bp(),[I,v]=t.useState(!1);if(Rp((()=>{o&&"rtl"===qd(o).direction&&v(!0)}),[o]),!o)return null;const[b,x]=r.split("-"),M="top"===b||"bottom"===b;let j=d;(M&&null!=s&&s.x||!M&&null!=s&&s.y)&&(j=null);const w=2*u,N=w/2,T=a/2*(c/-8+1),E=l/2*c/4,S=!!p,z=j&&"end"===x?"bottom":"top";let D=j&&"end"===x?"right":"left";j&&I&&(D="end"===x?"left":"right");const k=null!=(null==i?void 0:i.x)?j||i.x:"",C=null!=(null==i?void 0:i.y)?j||i.y:"",R=p||"M0,0 H"+a+" L"+(a-T)+","+(l-E)+" Q"+a/2+","+l+" "+T+","+(l-E)+" Z",P={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[b];return t.createElement("svg",Pp({},g,{"aria-hidden":!0,ref:n,width:S?a:a+w,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[D]:k,[z]:C,[b]:M||S?"100%":"calc(100% - "+w/2+"px)",transform:[P,f].filter((e=>!!e)).join(" "),...h}}),w>0&&t.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:m,strokeWidth:w+(p?0:1),d:R}),t.createElement("path",{stroke:w&&!p?g.fill:"none",d:R}),t.createElement("clipPath",{id:y},t.createElement("rect",{x:-N,y:N*(S?-1:1),width:a+w,height:a})))}));const Up=t.createContext(null),Vp=t.createContext(null),Wp=()=>{var e;return(null==(e=t.useContext(Up))?void 0:e.id)||null},Zp=()=>t.useContext(Vp);function Fp(e){return"data-floating-ui-"+e}function Yp(e){const n=(0,t.useRef)(e);return Rp((()=>{n.current=e})),n}const Hp=Fp("safe-polygon");function Qp(e,t,n){return n&&!dm(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function _p(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const Xp=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Jp(e,t){const n=km(e,Xp());"prev"===t&&n.reverse();const r=n.indexOf(im(mm(e)));return n.slice(r+1)[0]}function Kp(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!sm(n,r)}function $p(e){km(e,Xp()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function qp(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const ef={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function tf(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const nf=t.forwardRef((function(e,n){const[r,o]=t.useState();Rp((()=>(cm()&&o("button"),document.addEventListener("keydown",tf),()=>{document.removeEventListener("keydown",tf)})),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Fp("focus-guard")]:"",style:ef};return t.createElement("span",Pp({},e,i))})),rf=t.createContext(null),of=Fp("portal");function sf(e){const{children:n,id:r,root:o,preserveTabOrder:s=!0}=e,a=function(e){void 0===e&&(e={});const{id:n,root:r}=e,o=Bp(),i=af(),[s,a]=t.useState(null),l=t.useRef(null);return Rp((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{l.current=null}))}),[s]),Rp((()=>{if(!o)return;if(l.current)return;const e=n?document.getElementById(n):null;if(!e)return;const t=document.createElement("div");t.id=o,t.setAttribute(of,""),e.appendChild(t),l.current=t,a(t)}),[n,o]),Rp((()=>{if(null===r)return;if(!o)return;if(l.current)return;let e=r||(null==i?void 0:i.portalNode);e&&!Fd(e)&&(e=e.current),e=e||document.body;let t=null;n&&(t=document.createElement("div"),t.id=n,e.appendChild(t));const s=document.createElement("div");s.id=o,s.setAttribute(of,""),e=t||e,e.appendChild(s),l.current=s,a(s)}),[n,r,o,i]),s}({id:r,root:o}),[l,c]=t.useState(null),u=t.useRef(null),d=t.useRef(null),m=t.useRef(null),p=t.useRef(null),f=null==l?void 0:l.modal,h=null==l?void 0:l.open,g=!!l&&!l.modal&&l.open&&s&&!(!o&&!a);return t.useEffect((()=>{if(a&&s&&!f)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&Kp(e)&&("focusin"===e.type?qp:$p)(a)}}),[a,s,f]),t.useEffect((()=>{a&&(h||qp(a))}),[h,a]),t.createElement(rf.Provider,{value:t.useMemo((()=>({preserveTabOrder:s,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:m,afterInsideRef:p,portalNode:a,setFocusManagerState:c})),[s,a])},g&&a&&t.createElement(nf,{"data-type":"outside",ref:u,onFocus:e=>{if(Kp(e,a)){var t;null==(t=m.current)||t.focus()}else{const e=Jp(document.body,"prev")||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),g&&a&&t.createElement("span",{"aria-owns":a.id,style:ef}),a&&i.createPortal(n,a),g&&a&&t.createElement(nf,{"data-type":"outside",ref:d,onFocus:e=>{if(Kp(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=Jp(document.body,"next")||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const af=()=>t.useContext(rf),lf="data-floating-ui-focusable";function cf(e){return Yd(e.target)&&"BUTTON"===e.target.tagName}function uf(e){return hm(e)}const df={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},mf={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},pf=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ff(e){void 0===e&&(e={});const{nodeId:n}=e,r=function(e){const{open:n=!1,onOpenChange:r,elements:o}=e,i=Bp(),s=t.useRef({}),[a]=t.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=Wp(),[c,u]=t.useState(o.reference),d=Cp(((e,t,n)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),m=t.useMemo((()=>({setPositionReference:u})),[]),p=t.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);return t.useMemo((()=>({dataRef:s,open:n,onOpenChange:d,elements:p,events:a,floatingId:i,refs:m})),[n,d,p,a,i,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,s=o.elements,[a,l]=t.useState(null),[c,u]=t.useState(null),d=(null==s?void 0:s.domReference)||a,m=t.useRef(null),p=Zp();Rp((()=>{d&&(m.current=d)}),[d]);const f=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[m,p]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,h]=t.useState(o);Mp(f,o)||h(o);const[g,y]=t.useState(null),[I,v]=t.useState(null),b=t.useCallback((e=>{e!==w.current&&(w.current=e,y(e))}),[]),x=t.useCallback((e=>{e!==N.current&&(N.current=e,v(e))}),[]),M=a||g,j=l||I,w=t.useRef(null),N=t.useRef(null),T=t.useRef(m),E=null!=u,S=Np(u),z=Np(s),D=Np(d),k=t.useCallback((()=>{if(!w.current||!N.current)return;const e={placement:n,strategy:r,middleware:f};z.current&&(e.platform=z.current),bp(w.current,N.current,e).then((e=>{const t={...e,isPositioned:!1!==D.current};C.current&&!Mp(T.current,t)&&(T.current=t,i.flushSync((()=>{p(t)})))}))}),[f,n,r,z,D]);xp((()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const C=t.useRef(!1);xp((()=>(C.current=!0,()=>{C.current=!1})),[]),xp((()=>{if(M&&(w.current=M),j&&(N.current=j),M&&j){if(S.current)return S.current(M,j,k);k()}}),[M,j,k,S,E]);const R=t.useMemo((()=>({reference:w,floating:N,setReference:b,setFloating:x})),[b,x]),P=t.useMemo((()=>({reference:M,floating:j})),[M,j]),A=t.useMemo((()=>{const e={position:r,left:0,top:0};if(!P.floating)return e;const t=wp(P.floating,m.x),n=wp(P.floating,m.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...jp(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,c,P.floating,m.x,m.y]);return t.useMemo((()=>({...m,update:k,refs:R,elements:P,floatingStyles:A})),[m,k,R,P,A])}({...e,elements:{...s,...c&&{reference:c}}}),h=t.useCallback((e=>{const t=Fd(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),f.refs.setReference(t)}),[f.refs]),g=t.useCallback((e=>{(Fd(e)||null===e)&&(m.current=e,l(e)),(Fd(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Fd(e))&&f.refs.setReference(e)}),[f.refs]),y=t.useMemo((()=>({...f.refs,setReference:g,setPositionReference:h,domReference:m})),[f.refs,g,h]),I=t.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),v=t.useMemo((()=>({...f,...o,refs:y,elements:I,nodeId:n})),[f,y,I,n,o]);return Rp((()=>{o.dataRef.current.floatingContext=v;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===n));e&&(e.context=v)})),t.useMemo((()=>({...f,context:v,refs:y,elements:I})),[f,y,I,v])}function hf(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,events:i,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=n,u=t.useRef(!1),d=t.useRef(),m=t.useRef(!0);t.useEffect((()=>{if(!l)return;const e=Vd(a.domReference);function t(){!r&&Yd(a.domReference)&&a.domReference===im(mm(a.domReference))&&(u.current=!0)}function n(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[a.domReference,r,l]),t.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[i,l]),t.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const p=t.useMemo((()=>({onPointerDown(e){(function(e){return!lm().includes("jsdom/")&&(!um()&&0===e.width&&0===e.height||um()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(m.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=fm(e.nativeEvent);if(c&&Fd(t))try{if(cm()&&am().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!hm(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=Fd(t)&&t.hasAttribute(Fp("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const i=im(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(sm(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||sm(a.domReference,i)||r||o(!1,n,"focus"))}))}})),[s,a.domReference,o,c]);return t.useMemo((()=>l?{reference:p}:{}),[l,p])}const gf="active",yf="selected";function If(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[gf]:t,[yf]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[lf]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[gf,yf].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const vf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),bf=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function xf(e,t){return"function"==typeof e?e(t):e}function Mf(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function jf(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:m,nodeId:p,tree:f}=e;return function(e){function h(){clearTimeout(o),m()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:y}=e,I=[g,y],v=fm(e),b="mouseleave"===e.type,x=sm(d.floating,v),M=sm(d.domReference,v),j=d.domReference.getBoundingClientRect(),w=d.floating.getBoundingClientRect(),N=u.split("-")[0],T=n>w.right-w.width/2,E=c>w.bottom-w.height/2,S=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(I,j),z=w.width>j.width,D=w.height>j.height,k=(z?j:w).left,C=(z?j:w).right,R=(D?j:w).top,P=(D?j:w).bottom;if(x&&(i=!0,!b))return;if(M&&(i=!1),M&&!b)return void(i=!0);if(b&&Fd(e.relatedTarget)&&sm(d.floating,e.relatedTarget))return;if(f&&_p(f.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===N&&c>=j.bottom-1||"bottom"===N&&c<=j.top+1||"left"===N&&n>=j.right-1||"right"===N&&n<=j.left+1)return h();let A=[];switch(N){case"top":A=[[k,j.top+1],[k,w.bottom-1],[C,w.bottom-1],[C,j.top+1]];break;case"bottom":A=[[k,w.top+1],[k,j.bottom-1],[C,j.bottom-1],[C,w.top+1]];break;case"left":A=[[w.right-1,P],[w.right-1,R],[j.left+1,R],[j.left+1,P]];break;case"right":A=[[j.right-1,P],[j.right-1,R],[w.left+1,R],[w.left+1,P]]}if(!Mf([g,y],A)){if(i&&!S)return h();if(!b&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Mf([g,y],function(e){let[n,r]=e;switch(N){case"top":return[[z?n+t/2:T?n+4*t:n-4*t,r+t+1],[z?n-t/2:T?n+4*t:n-4*t,r+t+1],[w.left,T||z?w.bottom-t:w.top],[w.right,T?z?w.bottom-t:w.top:w.bottom-t]];case"bottom":return[[z?n+t/2:T?n+4*t:n-4*t,r-t],[z?n-t/2:T?n+4*t:n-4*t,r-t],[w.left,T||z?w.top+t:w.bottom],[w.right,T?z?w.top+t:w.bottom:w.top+t]];case"left":{const e=[n+t+1,D?r+t/2:E?r+4*t:r-4*t],o=[n+t+1,D?r-t/2:E?r+4*t:r-4*t];return[[E||D?w.right-t:w.left,w.top],[E?D?w.right-t:w.left:w.right-t,w.bottom],e,o]}case"right":return[[n-t,D?r+t/2:E?r+4*t:r-4*t],[n-t,D?r-t/2:E?r+4*t:r-4*t],[E||D?w.left+t:w.right,w.top],[E?D?w.left+t:w.right:w.left+t,w.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const wf=({variant:e="dark",placement:n="bottom",title:r="",content:o,arrow:i=!1,open:s,setOpen:a,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:d,boundary:m="clippingAncestors",strategy:p="fixed",offset:f=8,triggers:h=["hover","focus"],interactive:g=!1})=>{const y=(0,t.useMemo)((()=>"boolean"==typeof s&&"function"==typeof a),[s,a]),[I,v]=(0,t.useState)(!1),b=(0,t.useRef)(null),{refs:x,floatingStyles:M,context:j}=ff({open:y?s:I,onOpenChange:y?a:v,placement:n,strategy:p,middleware:[(A=f,{...gp(A),options:[A,undefined]}),Sp({boundary:m}),Ep({boundary:m}),zp({element:b})],whileElementsMounted:hp}),w=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=n,p=t.useRef(),f=t.useRef(!1),h=t.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(dm(t,!0)&&u||(!r||!c||i.current.openEvent&&m&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:dm(t,!0)&&u||(!r||!c||i.current.openEvent&&m&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||cf(e)||(" "!==e.key||uf(s)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&o(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||cf(e)||uf(s)||" "===e.key&&f.current&&(f.current=!1,o(!r||!c,e.nativeEvent,"click"))}})),[i,s,l,u,d,o,r,m,c]);return t.useMemo((()=>a?{reference:h}:{}),[a,h])}(j,{enabled:!y&&h.includes("click")}),N=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,events:s,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}=n,f=Zp(),h=Wp(),g=Yp(u),y=Yp(c),I=Yp(r),v=t.useRef(),b=t.useRef(-1),x=t.useRef(),M=t.useRef(-1),j=t.useRef(!0),w=t.useRef(!1),N=t.useRef((()=>{})),T=t.useRef(!1),E=t.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);t.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(M.current),j.current=!0,T.current=!1)}}),[l,s]),t.useEffect((()=>{if(!l)return;if(!g.current)return;if(!r)return;function e(e){E()&&o(!1,e,"hover")}const t=mm(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,r,o,l,g,E]);const S=t.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Qp(y.current,"close",v.current);r&&!x.current?(clearTimeout(b.current),b.current=window.setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(b.current),o(!1,e,n))}),[y,o]),z=Cp((()=>{N.current(),x.current=void 0})),D=Cp((()=>{if(w.current){const e=mm(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Hp),w.current=!1}})),k=Cp((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));t.useEffect((()=>{if(l&&Fd(a.domReference)){var e;const o=a.domReference;return r&&o.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),p&&o.addEventListener("mousemove",t,{once:!0}),o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",n),()=>{var e;r&&o.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),p&&o.removeEventListener("mousemove",t),o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",n)}}function t(e){if(clearTimeout(b.current),j.current=!1,d&&!dm(v.current)||m>0&&!Qp(y.current,"open"))return;const t=Qp(y.current,"open",v.current);t?b.current=window.setTimeout((()=>{I.current||o(!0,e,"hover")}),t):r||o(!0,e,"hover")}function n(e){if(k())return;N.current();const t=mm(a.floating);if(clearTimeout(M.current),T.current=!1,g.current&&i.current.floatingContext){r||clearTimeout(b.current),x.current=g.current({...i.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){D(),z(),k()||S(e,!0,"safe-polygon")}});const n=x.current;return t.addEventListener("mousemove",n),void(N.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==v.current||!sm(a.floating,e.relatedTarget))&&S(e)}function s(e){k()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){D(),z(),k()||S(e)}})(e))}}),[a,l,e,d,m,p,S,z,D,o,r,I,f,y,g,i,k]),Rp((()=>{var e;if(l&&r&&null!=(e=g.current)&&e.__options.blockPointerEvents&&E()){w.current=!0;const e=a.floating;if(Fd(a.domReference)&&e){var t;const n=mm(a.floating).body;n.setAttribute(Hp,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,r,h,a,f,g,E]),Rp((()=>{r||(v.current=void 0,T.current=!1,z(),D())}),[r,z,D]),t.useEffect((()=>()=>{z(),clearTimeout(b.current),clearTimeout(M.current),D()}),[l,a.domReference,z,D]);const C=t.useMemo((()=>{function e(e){v.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){j.current||I.current||o(!0,t,"hover")}d&&!dm(v.current)||r||0===m||T.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(M.current),"touch"===v.current?n():(T.current=!0,M.current=window.setTimeout(n,m)))}}}),[d,o,r,I,m]),R=t.useMemo((()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){k()||S(e.nativeEvent,!1)}})),[S,k]);return t.useMemo((()=>l?{reference:C,floating:R}:{}),[l,C,R])}(j,{move:!1,enabled:!y&&h.includes("hover"),...g&&{handleClose:jf()}}),T=hf(j,{enabled:!y&&h.includes("focus")}),E=function(e,n){void 0===n&&(n={});const{open:r,onOpenChange:o,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=n,g=Zp(),y=Cp("function"==typeof c?c:()=>!1),I="function"==typeof c?y:c,v=t.useRef(!1),b=t.useRef(!1),{escapeKey:x,outsidePress:M}=pf(f),{escapeKey:j,outsidePress:w}=pf(h),N=t.useRef(!1),T=Cp((e=>{var t;if(!r||!a||!l||"Escape"!==e.key)return;if(N.current)return;const n=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=g?_p(g.nodesRef.current,n):[];if(!x&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),E=Cp((e=>{var t;const n=()=>{var t;T(e),null==(t=fm(e))||t.removeEventListener("keydown",n)};null==(t=fm(e))||t.addEventListener("keydown",n)})),S=Cp((e=>{var t;const n=v.current;v.current=!1;const r=b.current;if(b.current=!1,"click"===u&&r)return;if(n)return;if("function"==typeof I&&!I(e))return;const a=fm(e),l="["+Fp("inert")+"]",c=mm(i.floating).querySelectorAll(l);let d=Fd(a)?a:null;for(;d&&!$d(d);){const e=tm(d);if($d(e)||!Fd(e))break;d=e}if(c.length&&Fd(a)&&!a.matches("html,body")&&!sm(a,i.floating)&&Array.from(c).every((e=>!sm(d,e))))return;if(Yd(a)&&k){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===qd(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const m=null==(t=s.current.floatingContext)?void 0:t.nodeId,p=g&&_p(g.nodesRef.current,m).some((t=>{var n;return pm(e,null==(n=t.context)?void 0:n.elements.floating)}));if(pm(e,i.floating)||pm(e,i.domReference)||p)return;const f=g?_p(g.nodesRef.current,m):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),z=Cp((e=>{var t;const n=()=>{var t;S(e),null==(t=fm(e))||t.removeEventListener(u,n)};null==(t=fm(e))||t.addEventListener(u,n)}));t.useEffect((()=>{if(!r||!a)return;s.current.__escapeKeyBubbles=x,s.current.__outsidePressBubbles=M;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),N.current=!0}function c(){e=window.setTimeout((()=>{N.current=!1}),Kd()?5:0)}const d=mm(i.floating);l&&(d.addEventListener("keydown",j?E:T,j),d.addEventListener("compositionstart",n),d.addEventListener("compositionend",c)),I&&d.addEventListener(u,w?z:S,w);let m=[];return p&&(Fd(i.domReference)&&(m=rm(i.domReference)),Fd(i.floating)&&(m=m.concat(rm(i.floating))),!Fd(i.reference)&&i.reference&&i.reference.contextElement&&(m=m.concat(rm(i.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",j?E:T,j),d.removeEventListener("compositionstart",n),d.removeEventListener("compositionend",c)),I&&d.removeEventListener(u,w?z:S,w),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,i,l,I,u,r,o,p,a,x,M,T,j,E,S,w,z]),t.useEffect((()=>{v.current=!1}),[I,u]);const D=t.useMemo((()=>({onKeyDown:T,[df[m]]:e=>{d&&o(!1,e.nativeEvent,"reference-press")}})),[T,o,d,m]),k=t.useMemo((()=>({onKeyDown:T,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[mf[u]]:()=>{v.current=!0}})),[T,u]);return t.useMemo((()=>a?{reference:D,floating:k}:{}),[a,D,k])}(j),S=function(e,n){var r;void 0===n&&(n={});const{open:o,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=n,l=null!=(r=vf.get(a))?r:a,c=Bp(),u=null!=Wp(),d=t.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:o?i:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,i,u,o,c,a]),m=t.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,a]),p=t.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,a]);return t.useMemo((()=>s?{reference:d,floating:m,item:p}:{}),[s,d,m,p])}(j,{role:"tooltip"}),{getReferenceProps:z,getFloatingProps:D}=function(e){void 0===e&&(e=[]);const n=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),i=t.useCallback((t=>If(t,e,"reference")),n),s=t.useCallback((t=>If(t,e,"floating")),r),a=t.useCallback((t=>If(t,e,"item")),o);return t.useMemo((()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a})),[i,s,a])}([w,N,T,E,S]),{isMounted:k,styles:C}=function(e,n){void 0===n&&(n={});const{initial:r={opacity:0},open:o,close:i,common:s,duration:a=250}=n,l=e.placement,c=l.split("-")[0],u=t.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof a,m=(d?a:a.open)||0,p=(d?a:a.close)||0,[f,h]=t.useState((()=>({...xf(s,u),...xf(r,u)}))),{isMounted:g,status:y}=function(e,n){void 0===n&&(n={});const{open:r,elements:{floating:o}}=e,{duration:i=250}=n,s=("number"==typeof i?i:i.close)||0,[a,l]=t.useState("unmounted"),c=function(e,n){const[r,o]=t.useState(e);return e&&!r&&o(!0),t.useEffect((()=>{if(!e&&r){const e=setTimeout((()=>o(!1)),n);return()=>clearTimeout(e)}}),[e,r,n]),r}(r,s);return c||"close"!==a||l("unmounted"),Rp((()=>{if(o){if(r){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[r,o]),{isMounted:c,status:a}}(e,{duration:a}),I=Yp(r),v=Yp(o),b=Yp(i),x=Yp(s);return Rp((()=>{const e=xf(I.current,u),t=xf(b.current,u),n=xf(x.current,u),r=xf(v.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===y&&h((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===y&&h({transitionProperty:Object.keys(r).map(bf).join(","),transitionDuration:m+"ms",...n,...r}),"close"===y){const r=t||e;h({transitionProperty:Object.keys(r).map(bf).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,b,I,v,x,m,y,u]),{isMounted:g,styles:f}}(j,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),R={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],P="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var A;return(0,Ft.jsxs)(t.Fragment,{children:[(0,t.isValidElement)(l)&&(0,Ft.jsx)(t.Fragment,{children:(0,t.cloneElement)(l,{ref:qr(l.ref,x.setReference),className:Gn(l.props.className),...z()})},"tooltip-reference"),(0,Ft.jsx)(sf,{id:d,root:u,children:k&&(0,Ft.jsxs)("div",{className:Gn("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",R,"max-w-80 w-fit",c),ref:x.setFloating,style:{...M,...C},...D(),children:[(0,Ft.jsxs)("div",{children:[!!r&&(0,Ft.jsx)("span",{className:"font-semibold",children:r},"tooltip-title"),!!o&&(0,Ft.jsx)("div",{className:"font-normal",children:o},"tooltip-content")]}),i&&(0,Ft.jsx)(Gp,{ref:b,context:j,className:Gn("fill-current",P)})]})})]})};wf.displayName="Tooltip";const Nf=(0,t.forwardRef)((({id:e,defaultValue:n="",value:r,size:o="sm",className:i="",disabled:s=!1,onChange:a=()=>{},error:l=!1,onError:c=()=>{},...u},d)=>{const m=(0,t.useMemo)((()=>e||`input-textarea-${((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})()}`),[e]),p=(0,t.useMemo)((()=>typeof r<"u"),[r]),[f,h]=(0,t.useState)(n),g=(0,t.useCallback)((()=>p?r:f),[p,r,f]),y=s?"hover:border-border-disabled":"hover:border-border-strong",I=l?"focus:border-focus-error-border focus:ring-field-color-error border-focus-error-border":"";return(0,Ft.jsx)("textarea",{ref:d,id:m,className:Gn("py-2 rounded border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary focus:outline-none transition ease-in-out duration-200",s?"border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",{sm:"px-3 rounded text-xs",md:"px-3 rounded-md text-sm",lg:"px-4 rounded-lg text-base"}[o],"focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",y,I,i),disabled:s,onChange:e=>{if(s)return;const t=e.target.value;p||h(t),"function"==typeof a&&a(t)},onInvalid:c,value:g(),...u})}));Nf.displayName="TextArea";const Tf=Wt("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),Ef=Wt("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),Sf=Wt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),zf=Wt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Df=Wt("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]),kf=Wt("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]),Cf=Wt("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]),Rf=Wt("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),Pf=Wt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Af=Wt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Lf=function(e){var t=e.title,n=void 0===t?"":t,r=e.paraOne,o=e.paraTwo,i=e.buttonText,s=e.onclick,a=e.onClose,l=e.features,c=void 0===l?[]:l,u=React.createElement(Hn,{size:"md",variant:"primary",onClick:s},null!=i?i:(0,D.__)("Connect Now","sureforms"));return React.createElement(React.Fragment,null,React.createElement(Cr,{direction:"column",justify:"center",align:"center",className:"fixed inset-0 bg-overlay-background z-[99999999]"},React.createElement(Cr,{direction:"column",className:"bg-background-primary gap-4 p-5 rounded-lg max-w-md shadow-lg"},React.createElement(Cr.Item,{className:"relative pt-2"},React.createElement(Pr,{variant:"neutral",className:"text-xs font-semibold flex gap-3 text-brand-800"},React.createElement("span",{className:"pt-1"},React.createElement(Ar,{className:"size-4 text-brand-800"})),n,React.createElement("span",{className:"absolute top-[-10px] right-[-15px] cursor-pointer",onClick:a},ur.close))),React.createElement(Cr,{className:"gap-1 w-full",direction:"column"},React.createElement(Pr,{size:"md",className:"text-text-primary font-semibold text-lg"},r),React.createElement(Pr,{size:"sm",className:"text-text-secondary text-sm font-normal leading-relaxed w-full"},o)),React.createElement(Cr,{className:"flex-col w-full gap-2"},c.map((function(e,t){return React.createElement(Cr.Item,{key:t,className:"flex items-start gap-2 text-base text-text-primary"},React.createElement(Af,{className:"w-4 h-4 text-brand-800 mt-0.5"}),React.createElement(Pr,{size:"sm",className:"font-normal"},e))}))),React.createElement("hr",{className:"border-b-5 border-x-0 border-t-0 w-full border-solid border-border-subtle"}),React.createElement(Cr.Item,{className:"flex flex-col w-full gap-3 pb-2"},u))))};function Of(e){return Of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Of(e)}function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){Uf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uf(e,t,n){return(t=function(e){var t=function(e){if("object"!=Of(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Of(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zf={calculator:(0,D.__)("Select this if you need calculations in your form. For example: Loan interest calculator.","sureforms"),conversational:(0,D.__)("Select this if you want your form to display one question at a time, like a chat.","sureforms"),quiz:(0,D.__)("Select this to create a quiz with scored questions and graded results.","sureforms"),survey:(0,D.__)("Select this to create a survey to collect responses and opinions.","sureforms"),payment:(0,D.__)("Select this if you want to collect payments through your form.","sureforms")},Ff={calculator:Df,conversational:kf,quiz:Cf,survey:Rf};const Yf=function(t){var n=t.formTypeObj,r=t.setFormTypeObj,o=t.formType,i=t.setFormType,s=t.setformLayout,a=Vf((0,e.useState)(!1),2),l=a[0],c=a[1],u=Vf((0,e.useState)(null),2),d=u[0],m=u[1];(0,e.useEffect)((function(){var e=new URLSearchParams(window.location.search).get("form_type");e&&(i(e),r(Gf(Gf({},n),{},{isConversationalForm:"conversational"===e})))}),[]);var p=(0,Dt.applyFilters)("srfm.ai_form_builder.form_type_options",[{label:(0,D.__)("Payment","sureforms"),slug:"payment",isAvailable:!0},{label:(0,D.__)("Simple","sureforms"),slug:"simple",isAvailable:!0},{label:(0,D.__)("Calculations","sureforms"),slug:"calculator",isAvailable:!1,tooltipPosition:"bottom",upgradeTooltipContent:{tooltipHeading:(0,D.__)("Unlock Calculator Forms","sureforms"),tooltipContentTitle:(0,D.__)("Build Smart Forms That Calculate Instantly","sureforms"),tooltipContent:(0,D.__)("Empower your forms with advanced calculations. From loan calculators to BMI checkers - create interactive forms that give real-time results.","sureforms"),utmMedium:"ai_builder_calculator",tooltipPosition:"bottom",features:[(0,D.__)("Add complex formulas with ease","sureforms"),(0,D.__)("Provide instant answers to users","sureforms"),(0,D.__)("Perfect for finance, health, and pricing forms","sureforms")]}},{label:(0,D.__)("Conversational","sureforms"),slug:"conversational",isAvailable:!1,upgradeTooltipContent:{tooltipHeading:(0,D.__)("Unlock Conversational Forms","sureforms"),tooltipContentTitle:(0,D.__)("Turn Simple Forms Into Conversations","sureforms"),tooltipContent:(0,D.__)("Transform boring forms into friendly, chat-like experiences. Ask one question at a time, just like a real conversation, and see higher engagement.","sureforms"),utmMedium:"ai_builder_conversational",tooltipPosition:"bottom",features:[(0,D.__)("One question at a time, in chat flow","sureforms"),(0,D.__)("More engaging than traditional forms","sureforms"),(0,D.__)("Boosts completion rates with a friendly interface","sureforms")]}},{label:(0,D.__)("Quiz","sureforms"),slug:"quiz",isAvailable:!1,upgradeTooltipContent:{tooltipHeading:(0,D.__)("Unlock Quiz Forms","sureforms"),tooltipContentTitle:(0,D.__)("Create Engaging Quizzes That Score Automatically","sureforms"),tooltipContent:(0,D.__)("Build interactive quizzes with scored questions and graded results. Perfect for assessments, trivia, and educational content.","sureforms"),utmMedium:"ai_builder_quiz",tooltipPosition:"bottom",features:[(0,D.__)("Auto-score responses instantly","sureforms"),(0,D.__)("Display graded results to users","sureforms"),(0,D.__)("Perfect for education, training, and fun trivia","sureforms")]}},{label:(0,D.__)("Survey","sureforms"),slug:"survey",isAvailable:!1,upgradeTooltipContent:{tooltipHeading:(0,D.__)("Unlock Survey Forms","sureforms"),tooltipContentTitle:(0,D.__)("Collect Insights with Powerful Surveys","sureforms"),tooltipContent:(0,D.__)("Create surveys to collect responses and opinions. Visualize results with charts and share aggregated insights with your audience.","sureforms"),utmMedium:"ai_builder_survey",tooltipPosition:"bottom",features:[(0,D.__)("Aggregate and visualize responses","sureforms"),(0,D.__)("Show live results to respondents","sureforms"),(0,D.__)("Perfect for feedback, polls, and research","sureforms")]}}]);o||i("simple");var f=p.filter((function(e){return"simple"!==e.slug}));return React.createElement(Cr.Item,{className:"flex gap-2"},f.map((function(e,t){var a=Ff[e.slug]||Pf;return React.createElement("div",{key:t,className:"flex items-center justify-between gap-2"},React.createElement(wf,{arrow:!0,content:e.tooltipContent||Zf[e.slug]||Zf.payment,placement:"bottom",triggers:["hover"],variant:"dark",tooltipPortalId:"srfm-add-new-form-container",className:"text-xs"},React.createElement(Hn,{className:Bt("px-1.5 py-1 font-medium text-icon-secondary border border-solid border-border-strong flex-1 transition-colors duration-150 focus:[box-shadow:none] bg-background-secondary hover:bg-background-secondary",o===e.slug&&"hover:bg-brand-background-hover-100 bg-brand-background-hover-100 border-0.5 border-solid border-border-ai-button text-icon-interactive"),iconPosition:"left",icon:React.createElement(a,{className:"size-4"}),size:"md",variant:"outline",onClick:function(){return function(e){return e.isAvailable?o===e.slug?(i("simple"),void r(Gf(Gf({},n),{},{isConversationalForm:!1}))):(i(e.slug),"calculator"!==e.slug&&"conversational"!==e.slug&&"payment"!==e.slug&&"quiz"!==e.slug&&"survey"!==e.slug||s({}),void r(Gf(Gf({},n),{},{isConversationalForm:"conversational"===e.slug}))):(m(e),void c(!0))}(e)}},e.label)))})),l&&d&&React.createElement(Lf,{title:d.upgradeTooltipContent.tooltipHeading,paraOne:d.upgradeTooltipContent.tooltipContentTitle,paraTwo:d.upgradeTooltipContent.tooltipContent,features:d.upgradeTooltipContent.features,buttonText:(0,D.__)("Upgrade Now","sureforms"),onclick:function(){var e,t;return window.open(Ot((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),d.upgradeTooltipContent.utmMedium),"_blank","noreferrer")},onClose:function(){return c(!1)}}))},Hf=function(t){var n=t.finalFormCreationCountRemaining,r=void 0===n?0:n,o=t.setShowCreditDetailsPopup,i=t.showCreditDetailsPopup,s=t.type,a=t.features;(0,e.useEffect)((function(){"true"===localStorage.getItem("srfm_ai_banner_closed")&&o(!1)}),[o]);var l=null;if("non-registered"===s&&r<=2)l={text:(0,D.__)("Connect Now","sureforms"),link:Lt};else{if(!("registered"===s&&r<=9))return null;l={text:(0,D.__)("Upgrade Now","sureforms"),link:function(){var e,t;return window.open(Ot((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"ai-form-builder-banner-cta"),"_blank","noreferrer")}}}var c="registered"===s?React.createElement(Cr.Item,null,React.createElement(Cr,{className:"flex flex-col w-[450px] min-h-[268px] bg-brand-background-hover-100 p-5 gap-2 shadow-sm-blur-1 rounded-xl border border-border-subtle overflow-hidden"},React.createElement(Cr.Item,{className:"relative"},React.createElement(Pr,{variant:"neutral",className:"text-sm font-semibold flex gap-3"},(0,D.sprintf)((0,D.__)("%d AI Generations Left. SureForms Premium allows:","sureforms"),r),React.createElement("span",{className:"absolute -top-1 -right-1 cursor-pointer",onClick:function(){o(!1),localStorage.setItem("srfm_ai_banner_closed","true")}},React.createElement(Zt,{className:"w-3 h-3"})))),React.createElement(Cr,{className:"flex flex-col gap-2"},a.map((function(e,t){return React.createElement(Cr.Item,{key:t,className:"flex flex-row gap-1.5 text-sm text-text-primary items-center"},React.createElement(lr,{className:"w-3.5 h-3.5"}),React.createElement(Pr,{size:"sm",className:"font-normal break-words"},e))})),React.createElement(Cr.Item,{className:"flex flex-row gap-1.5 text-sm text-text-primary items-center"},React.createElement(lr,{className:"w-3.5 h-3.5"}),React.createElement(Cr.Item,{className:"flex flex-row text-sm gap-1"},React.createElement("span",null,(0,D.__)("and ","sureforms")),React.createElement(Pr,{as:"a",size:"sm",className:"font-normal break-words underline cursor-pointer text-brand-800 hover:text-brand-900",onClick:function(){return window.open("https://sureforms.com","_blank","noreferrer")}},(0,D.__)("more…","sureforms"))))),React.createElement(Cr.Item,{className:"flex flex-col w-full gap-3 mt-auto"},React.createElement(Hn,{size:"sm",variant:"secondary",className:"w-full",onClick:l.link},l.text)))):null,u="non-registered"===s?(0,D.sprintf)((0,D.__)("%d AI Generations Left, Connect to SureForms AI to Get 10 More","sureforms"),r):(0,D.sprintf)((0,D.__)("%d AI Generations Left. Upgrade to SureForms Premium","sureforms"),r),d=React.createElement(Cr.Item,{className:"fixed bottom-4 right-4 flex items-center justify-between gap-2 p-4 shadow-lg rounded-xl z-[9999] max-w-[360px] bg-brand-background-hover-100 border border-solid border-border-ai-banner"},React.createElement(Pr,{variant:"neutral",className:"text-sm font-semibold"},u),React.createElement(Hn,{size:"xs",variant:"secondary",className:"w-[92px] flex-shrink-0",onClick:l.link},l.text));return"registered"===s&&r<=9?i?c:d:"non-registered"===s&&r<=2?d:null};function Qf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Xf=(0,e.memo)((function(e){var t,n=e.isListening,r=e.toggleListening,o=n?{icon:React.createElement(Tf,{className:"w-3 h-3"}),required_className:["bg-badge-background-green","border-badge-border-green","text-badge-color-green","hover:bg-badge-background-green"]}:{icon:React.createElement(Ef,{className:"w-3 h-3"}),required_className:["border-badge-border-gray","bg-badge-background-gray"]};return React.createElement(wf,{tooltipPortalId:"srfm-add-new-form-container",arrow:!0,className:"z-999999",title:(0,D.__)("Voice Input","sureforms"),placement:"bottom",triggers:["hover","focus"]},React.createElement(Hn,{icon:o.icon,iconPosition:"left",variant:"outline",size:"xs",className:"p-3 rounded-full border-0.5 border-solid font-medium hover:cursor-pointer ".concat((t=o.required_className,t.filter(Boolean).join(" "))),onClick:r}))}));const Jf=function(t){var n,r,o,i,s,a,l=t.handleCreateAiForm,c=t.formTypeObj,u=t.setFormTypeObj,d=t.setFormType,m=t.formType,p=t.type,f=t.showCreditDetailsPopup,h=t.setShowCreditDetailsPopup,g=t.features,y=t.prefilledPrompt,I=Qf((0,e.useState)(!1),2),v=I[0],b=I[1],x=Qf((0,e.useState)(0),2),j=x[0],w=x[1],N=Qf((0,e.useState)(""),2),T=N[0],E=N[1],S=(0,e.useRef)(null),z=Qf((0,e.useState)({}),2),k=z[0],C=z[1],R=Qf((0,e.useState)(0),2),P=R[0],A=R[1],L=Qf((0,e.useState)(""),2),O=L[0],B=L[1],G=Qf((0,e.useState)(!1),2),U=G[0],V=G[1],W=new URLSearchParams(M().search),Z=W.get("page"),F=W.get("source"),Y=Qf((0,e.useState)(!1),2),H=Y[0],Q=Y[1],_=Qf((0,e.useState)(!1),2),X=_[0],J=_[1],K=(0,Dt.applyFilters)("srfm.aiFormScreen.examplePrompts",[{title:(0,D.__)("Contact form to collect name, email, and message from visitors","sureforms")},{title:(0,D.__)('Job application form for "Marketing Manager" with resume upload',"sureforms")},{title:(0,D.__)('Feedback form to ask customers: "How would you rate our product and what should we improve?"',"sureforms")},{title:(0,D.__)('Event registration form for "Photography Workshop" with date and seat selection',"sureforms")},{title:(0,D.__)("Newsletter signup form with name and email to join mailing list","sureforms")},{title:(0,D.__)('Order form for "Custom T-Shirt" with size, color, and quantity options',"sureforms")},{title:(0,D.__)('Survey form: "How satisfied are you with our service? (1–5 stars)"',"sureforms")},{title:(0,D.__)('Appointment booking form for "Consultation Call" with preferred time',"sureforms")}],c,m).map((function(e){return"string"==typeof e?e:e.title})).filter(Boolean);(0,e.useEffect)((function(){if(K.length>1){var e=setInterval((function(){A((function(e){return(e+1)%K.length}))}),2e3);return function(){return clearInterval(e)}}}),[m,K,k]);var $=K[P];(0,e.useEffect)((function(){if($){var e=0,t=setInterval((function(){e<$.length?(B((function(t){return t+$.charAt(e)})),e++):clearInterval(t)}),50);return B(""),function(){return clearInterval(t)}}}),[$]),(0,e.useEffect)((function(){if("learn"===F){Q(!0);var e=setTimeout((function(){Q(!1),J(!0)}),5e3);return function(){return clearTimeout(e)}}}),[F]),(0,e.useEffect)((function(){if(X){var e=setTimeout((function(){return J(!1)}),5e3);return function(){return clearTimeout(e)}}}),[X]),(0,e.useEffect)((function(){y&&(E(y),w(y.length))}),[y]);var q=null!==(n=null===(r=srfm_admin)||void 0===r||null===(r=r.srfm_ai_usage_details)||void 0===r?void 0:r.remaining)&&void 0!==n?n:0,ee="registered"===(null===(o=srfm_admin)||void 0===o||null===(o=o.srfm_ai_usage_details)||void 0===o?void 0:o.type)&&q>20?20:q,te=(null===(i=srfm_admin)||void 0===i?void 0:i.is_pro_active)&&(null===(s=srfm_admin)||void 0===s?void 0:s.is_pro_license_active);return React.createElement(Cr,{className:Bt("gap-0",f&&!te&&"h-screen overflow-y-auto"),direction:"column"},React.createElement(Cr.Item,{className:"w-full"},React.createElement(Cr,{className:Bt("p-8 gap-6 mx-auto w-full bg-background-secondary",te?"h-screen":"min-h-screen pb-16"),direction:"column",justify:"center",align:"center"},React.createElement(Cr.Item,null,React.createElement(Cr,{direction:"column",align:"center",justify:"center",className:"gap-6"},React.createElement(Cr.Item,null,React.createElement("span",{className:"text-3xl font-semibold text-text-primary"},(0,D.__)("Describe the form that you want","sureforms"))),React.createElement(Cr.Item,null,React.createElement("div",{className:"w-full min-w-[750px] lg:min-w-[900px] mx-auto p-2 relative"},H&&React.createElement("div",{className:"absolute top-1/2 -translate-y-1/2 -right-2 translate-x-full z-[999999] pointer-events-none"},React.createElement("div",{className:"absolute top-1/2 -translate-y-1/2 -left-1 w-2 h-2 bg-tooltip-background-dark rotate-45"}),React.createElement("div",{className:"bg-tooltip-background-dark text-text-on-color text-sm px-3 py-2 rounded-md shadow-lg whitespace-nowrap"},(0,D.__)("Describe what kind of form you want","sureforms"))),React.createElement("div",{className:"relative rounded-lg shadow-lg p-[2px]",style:{background:"linear-gradient(180deg, #FF5811 0%, #8B2E16 5%, #000000 10%, #000000 100%)"}},React.createElement("div",{className:"relative bg-white rounded-[calc(0.5rem-1px)]"},React.createElement(Nf,{"aria-label":(0,D.__)("Describe the form you want to create","sureforms"),placeholder:O,id:"textarea",value:T,size:"lg",className:Bt("border-none focus:[box-shadow:none] focus:outline-none resize-none w-full min-h-[140px] max-h-[300px] text-field-placeholder pt-3 px-4 pb-14 rounded-[calc(0.5rem-1px)]",j>0&&"text-text-primary"),onChange:function(e){var t;E(t=e),w(t.length)},onInput:function(){v&&S.current&&(S.current.stop(),b(!1))},onFocus:function(){V(!0),H&&(Q(!1),J(!0))},onBlur:function(){return V(!1)},maxLength:2e3}),React.createElement(Cr,{className:"flex-wrap py-2 px-4",align:"center",justify:"between"},React.createElement(Cr.Item,{className:"flex flex-row gap-4 items-center"},React.createElement(Yf,{formTypeObj:c,setFormTypeObj:u,formType:m,setFormType:d,setformLayout:C})),React.createElement(Cr.Item,{className:"gap-4 flex flex-row"},React.createElement(Xf,{isListening:v,toggleListening:function(){var e=document.getElementById("textarea");if(U||(V(!0),e.focus()),S.current||(S.current=function(){var e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e)return null;var t=new e;return t.lang="en-US",t.interimResults=!1,t.maxAlternatives=1,t.continuous=!0,t}()),S.current){var t=S.current;v?(t.stop(),b(!1)):(t.start(),b(!0),t.onresult=function(e){var t=e.results[e.results.length-1][0].transcript;E((function(e){var n=e+t;return w(n.length),n}))},t.onerror=function(e){t.stop(),b(!1),Wr.dismiss(),"not-allowed"!==e.error?Wr.error((0,D.__)("Speech recognition is not supported in your current browser. Please use Google Chrome / Safari.","sureforms"),{duration:5e3}):Wr.error((0,D.__)("Please allow microphone access to use voice input.","sureforms"),{duration:5e3})})}}}),React.createElement("div",{className:"relative"},X&&React.createElement("div",{className:"absolute top-1/2 -translate-y-1/2 -right-2 translate-x-full z-[999999] pointer-events-none"},React.createElement("div",{className:"absolute top-1/2 -translate-y-1/2 -left-1 w-2 h-2 bg-tooltip-background-dark rotate-45"}),React.createElement("div",{className:"bg-tooltip-background-dark text-text-on-color text-sm px-3 py-2 rounded-md shadow-lg whitespace-nowrap"},(0,D.__)("Click to generate the form","sureforms"))),React.createElement(Hn,{className:"gap-1",icon:React.createElement(Sf,{className:"w-4 h-4"}),iconPosition:"left",size:"md",variant:"primary",onClick:function(){T&&T.trim()?l(T,[],!0):document.getElementById("textarea").focus()}},(0,D.__)("Generate","sureforms"))))))))))),"add-new-form"===Z&&!(null!==(a=srfm_admin)&&void 0!==a&&a.is_pro_active)&&React.createElement(Hf,{finalFormCreationCountRemaining:ee,setShowCreditDetailsPopup:h,showCreditDetailsPopup:f,type:p,features:g}),React.createElement(Cr.Item,{className:"flex p-2 gap-6 justify-center"},React.createElement(Hn,{className:"text-text-tertiary hover:cursor-pointer hover:text-text-secondary",icon:React.createElement(zf,{size:16}),iconPosition:"right",size:"md",variant:"ghost",onClick:function(){"learn"===F&&localStorage.setItem("srfmLearnFlow","build-scratch"),window.location.href="".concat(srfm_admin.site_url,"/wp-admin/post-new.php?post_type=sureforms_form")}},(0,D.__)("Or create it yourself","sureforms"))))))};var Kf=o(5556),$f=o.n(Kf);function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach((function(t){th(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function th(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oh=(0,t.createContext)(),ih=function(){var e=(0,t.useContext)(oh),n=e.id,o=e.unit,i=e.number,s=e.counter,a=e.textPosition,l=e.fontSize,c=e.fontWeight,u=e.fontColor;return i?r().createElement("text",{x:"50%",y:"50%",fontSize:l,fontWeight:c,fill:u,textAnchor:"middle",dy:a},r().createElement("tspan",{className:"circular-percent-".concat(n)},s),r().createElement("tspan",{className:"circular-unit-".concat(n)},o)):null},sh=function(){var e=(0,t.useContext)(oh),n=e.stroke,o=e.fill,i=e.round,s=e.inverse,a=e.strokeBottom,l=e.cut,c=e.rotation,u=e.colorCircle,d=e.strokeDasharray,m=264-2.64*(100-l);return r().createElement("circle",{cx:"50",cy:"50",r:"42",shapeRendering:"geometricPrecision",fill:o,style:{transform:"rotate(".concat(c,"deg)"),transformOrigin:"50% 50%"},stroke:u,strokeWidth:a||n,strokeLinecap:i&&!d?"round":"butt",strokeDashoffset:s?-m:m,strokeDasharray:l?264:d})},ah=function(e){var n=e.children,o=(0,t.useContext)(oh),i=o.id,s=o.size,a=o.counter;return r().createElement("svg",{role:"progressbar",width:s,height:s,"data-index":i,viewBox:"0 0 100 100","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a,"aria-labelledby":"circular progress bar"},n)},lh=function(e){var n=e.index,o=(0,t.useContext)(oh).linearGradient,i=-100,s="linear-gradient-".concat(n);return r().createElement("defs",null,r().createElement("linearGradient",{id:s},o.map((function(e,t){return i+=100,r().createElement("stop",{key:t,offset:i/(o.length-1)+"%",stopColor:e})}))))},ch=function(){var e=(0,t.useContext)(oh),n=e.id,o=e.rotation,i=e.linearGradient,s=e.animationSmooth,a=e.inverse,l=e.counter,c=e.stroke,u=e.round,d=e.cut,m=e.colorSlice,p=void 0!==i?"url(#linear-gradient-".concat(n||0,")"):m,f=void 0!==s?{transition:"stroke-dashoffset ".concat(s)}:"";return r().createElement(r().Fragment,null,i&&r().createElement(lh,{index:n,linearGradient:i}),r().createElement("circle",{cx:"50%",cy:"50%",r:"42",shapeRendering:"geometricPrecision",fill:"none",style:eh({transform:"rotate(".concat(o,"deg)"),transformOrigin:"50% 50%"},f),stroke:p,strokeWidth:c,strokeLinecap:u?"round":"butt",strokeDashoffset:function(e,t,n){var r=264-e/100*(t?2.64*(100-t):264);return n?-r:r}(l,d,a),strokeDasharray:264}))},uh=$f().bool,dh=$f().number,mh=$f().string,ph=$f().array,fh={percent:dh.isRequired,colorSlice:mh,colorCircle:mh,round:uh,opacity:dh,number:uh,size:dh,speed:dh,cut:dh,rotation:dh,unit:mh,textPosition:mh,fontSize:mh,fill:mh,fontWeight:dh,stroke:dh,strokeBottom:dh,strokeDasharray:mh,fontColor:mh,linearGradient:ph},hh=function(e){var n=e.children,o=e.percent,i=e.speed,s=e.animationOff,a=nh((0,t.useState)(s?o:0),2),l=a[0],c=a[1],u=(0,t.useRef)(),d=function(e){var n=nh((0,t.useState)(!1),2),r=n[0],o=n[1];return(0,t.useEffect)((function(){var t=new IntersectionObserver((function(e){var t=nh(e,1)[0];t.intersectionRatio>=.5&&o(t.isIntersecting)}),{root:null,rootMargin:"0px",threshold:.5});return e&&e.current&&t.observe(e.current),function(){t.disconnect()}}),[e]),r}(u);(0,t.useEffect)((function(){var e,t;if(d)if(s)c(o);else{var n=Number(null===(e=u.current)||void 0===e||null===(t=e.dataset)||void 0===t?void 0:t.angel);if(!(o>100||o<0||n===o)){var r,a=1e3/i,l=performance.now();return r=requestAnimationFrame((function e(t){r=requestAnimationFrame(e);var i=t-l;i>=a-.1&&(l=t-i%a,n>o&&c((function(e){return e-1})),n<o&&c((function(e){return e+1})))})),function(){return cancelAnimationFrame(r)}}}}),[l,s,i,d,o]);var m,p,f,h=eh(eh({},e),{},{counter:l});return r().createElement("div",{ref:u,style:(m=e,p=m.styles,f=m.size,eh(eh({},p),{},{width:f,height:f})),"data-angel":l},r().createElement(oh.Provider,{value:h},n,r().createElement(ah,null,e.colorCircle&&r().createElement(sh,null),r().createElement(ch,null),r().createElement(ih,null))))};hh.propTypes=fh,hh.defaultProps={id:0,colorSlice:"#00a1ff",round:!1,number:!0,stroke:10,opacity:10,size:200,speed:1e3,cut:0,rotation:-90,unit:"%",textPosition:".35em",fontSize:"1.6rem",fontColor:"#000",fill:"none",fontWeight:400};const gh=function(e){var t=e.message,n=e.percentBuild;return React.createElement(Cr,{direction:"column",className:"bg-background-secondary mx-auto gap-6",align:"center",justify:"center"},React.createElement(Cr.Item,null,React.createElement(Cr,{className:"gap-6",align:"center"},React.createElement(Cr.Item,null,React.createElement(hh,{colorCircle:"#eee3e1",colorSlice:"#D54407",percent:n,round:!0,speed:85,fontColor:"#0F172A",fontSize:"18px",fontWeight:700,size:72})),React.createElement(Cr.Item,{className:"flex flex-col gap-0.5"},React.createElement(Pr,{variant:"neutral",size:"md",className:"font-bold text-xl"},(0,D.__)("We are building your form…","sureforms")),React.createElement(Pr,{variant:"help",size:"sm"},t)))),React.createElement(Cr.Item,null,React.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgwIiBoZWlnaHQ9IjM0NCIgdmlld0JveD0iMCAwIDQ4MCAzNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF84MTI3XzI2NDI3KSI+CjxtYXNrIGlkPSJtYXNrMF84MTI3XzI2NDI3IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDgwIiBoZWlnaHQ9IjM0NSI+CjxyZWN0IHdpZHRoPSI0ODAiIGhlaWdodD0iMzQ0LjU3MSIgZmlsbD0idXJsKCNwYWludDBfcmFkaWFsXzgxMjdfMjY0MjcpIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF84MTI3XzI2NDI3KSI+CjxsaW5lIHgxPSIxMS4xNDYyIiB5MT0iMS43MTA5NCIgeDI9IjExLjE0NjIiIHkyPSIzNDQuNTY4IiBzdHJva2U9IiNFNEVBRjEiIHN0cm9rZS13aWR0aD0iMS43MTQyOSIvPgo8bGluZSB4MT0iMjguMjg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jeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDIzOS45OTQgMTcxLjQzMikgcm90YXRlKDk4LjI5NzEpIHNjYWxlKDQxLjU3ODEpIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0I4MDlBNyIgc3RvcC1vcGFjaXR5PSIwIi8+CjxzdG9wIG9mZnNldD0iMC40Njg3NSIgc3RvcC1jb2xvcj0iI0ZGN0E0MiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNENTQ0MDciLz4KPC9yYWRpYWxHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDM3X2FuZ3VsYXJfODEyN18yNjQyNyIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgyMzkuOTk0IDE3MS40MzIpIHJvdGF0ZSg5OC4yOTcxKSBzY2FsZSg0MS41NzgxKSI+CjxzdG9wIHN0b3AtY29sb3I9IiNCODA5QTciIHN0b3Atb3BhY2l0eT0iMCIvPgo8c3RvcCBvZmZzZXQ9IjAuNDY4NzUiIHN0b3AtY29sb3I9IiNGRjdBNDIiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDU0NDA3Ii8+CjwvcmFkaWFsR3JhZGllbnQ+CjxjbGlwUGF0aCBpZD0iY2xpcDBfODEyN18yNjQyNyI+CjxyZWN0IHdpZHRoPSI0ODAiIGhlaWdodD0iMzQ0IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPg==",alt:(0,D.__)("AI Form Builder","sureforms")})))};function yh(){yh=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof m?n:m,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=x(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new w(o||[])),!0),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(N([])));y&&y!==n&&r.call(y,i)&&(h=y);var I=f.prototype=m.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(o,i,s,a){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Ih(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function w(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function N(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(Ih(t)+" is not iterable")}return p.prototype=f,l(I,"constructor",f),l(f,"constructor",p),p.displayName=l(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,a,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},v(b.prototype),l(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new b(c(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},v(I),l(I,a,"Generator"),l(I,i,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=N,w.prototype={constructor:w,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:N(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function Ih(e){return Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ih(e)}function vh(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function bh(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){vh(i,r,o,s,a,"next",e)}function a(e){vh(i,r,o,s,a,"throw",e)}s(void 0)}))}}function xh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const jh=function(){var t,n,r,o,i,s,a,l,c,u=xh((0,e.useState)((0,D.__)("Connecting to AI service","sureforms")),2),d=u[0],m=u[1],p=xh((0,e.useState)(0),2),f=p[0],h=p[1],g=xh((0,e.useState)(""),2),y=g[0],I=g[1],v=xh((0,e.useState)(!1),2),b=v[0],x=v[1],M=function(e){I(e||(0,D.__)("Something went wrong. Please try again.","sureforms")),Z(!1),h(0)},j=xh((0,e.useState)({}),2),w=j[0],N=j[1],T=xh((0,e.useState)("simple"),2),E=T[0],S=T[1],z=xh((0,e.useState)("true"!==localStorage.getItem("srfm_ai_banner_closed")),2),k=z[0],R=z[1],P=new URLSearchParams(window.location.search),A=P.get("access_key"),L=(P.get("srfm_ai_dashboard_prompt")||"").trim(),O=xh((0,e.useState)(L),1)[0],B=xh((0,e.useState)(!1),2),G=B[0],U=B[1],V=xh((0,e.useState)(Boolean(L)),2),W=V[0],Z=V[1],F=null===(t=srfm_admin)||void 0===t?void 0:t.is_rtl,Y=F?"bottom-left":"bottom-right",H=function(){var e=bh(yh().mark((function e(t,n,r){var o,i,s,a,l,c,u,d,p,f,g,y;return yh().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"===srfm_admin.capability){e.next=3;break}return M((0,D.__)("You do not have permission to create forms.","sureforms")),e.abrupt("return");case 3:return(a=(null==n?void 0:n.map((function(e){return{role:e.role,content:e.message}})))||[]).push({role:"user",content:t}),l={message_array:a,use_system_message:r,is_conversional:null==w?void 0:w.isConversationalForm,form_type:E},Z(!0),h(50),m((0,D.__)("Generating fields","sureforms")),e.prev=9,e.next=12,C()({path:"sureforms/v1/generate-form",method:"POST",data:l});case 12:c=e.sent,e.next=20;break;case 15:return e.prev=15,e.t0=e.catch(9),console.error("Error generating AI form:",e.t0),M((null===e.t0||void 0===e.t0?void 0:e.t0.message)||(0,D.__)("Unable to reach the SureForms AI service. Please check your connection and try again.","sureforms")),e.abrupt("return");case 20:if(c){e.next=23;break}return M((0,D.__)("The AI service did not return a response. Please try again.","sureforms")),e.abrupt("return");case 23:if(m((0,D.__)("Finalizing your form","sureforms")),h(75),!1!==(null===(o=c)||void 0===o?void 0:o.success)){e.next=28;break}return M((null===(u=c)||void 0===u||null===(u=u.data)||void 0===u?void 0:u.message)||(null===(d=c)||void 0===d?void 0:d.message)||(0,D.__)("Form generation failed. Please try again.","sureforms")),e.abrupt("return");case 28:if(p=null===(i=c)||void 0===i?void 0:i.data){e.next=32;break}return M((0,D.__)("The AI response was empty. Please refine your prompt and try again.","sureforms")),e.abrupt("return");case 32:return e.prev=32,e.next=35,C()({path:"sureforms/v1/map-fields",method:"POST",data:{form_data:p,is_conversional:null==w?void 0:w.isConversationalForm}});case 35:f=e.sent,e.next=43;break;case 38:return e.prev=38,e.t1=e.catch(32),console.error("Error mapping AI form fields:",e.t1),M((null===e.t1||void 0===e.t1?void 0:e.t1.message)||(0,D.__)("Unable to build form fields from the AI response.","sureforms")),e.abrupt("return");case 43:if(!f||"object"!==Ih(f)||!f.code){e.next=46;break}return M(f.message||(0,D.__)("Unable to build form fields from the AI response.","sureforms")),e.abrupt("return");case 46:if(f){e.next=49;break}return M((0,D.__)("Unable to build form fields from the AI response.","sureforms")),e.abrupt("return");case 49:m((0,D.__)("Opening form editor","sureforms")),h(100),g=null==p||null===(s=p.form)||void 0===s?void 0:s.formTitle,y=(0,Dt.applyFilters)("srfm.aiFormScreen.metasToUpdate",{},w,p),At(f,g,y,null==w?void 0:w.isConversationalForm,E,M);case 54:case"end":return e.stop()}}),e,null,[[9,15],[32,38]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Q=function(){var e=bh(yh().mark((function e(){var t;return yh().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C()({path:"/sureforms/v1/handle-access-key",headers:{"Content-Type":"application/json","X-WP-Nonce":srfm_admin.template_picker_nonce},method:"POST",body:JSON.stringify({accessKey:A})});case 2:null!=(t=e.sent)&&t.success?window.location.href=srfm_admin.site_url+"/wp-admin/admin.php?page=add-new-form":(x(!0),console.error("Error handling access key: ",t.message));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,e.useEffect)((function(){A&&Q()}),[A]);var _=null===(n=srfm_admin)||void 0===n||null===(n=n.srfm_ai_usage_details)||void 0===n?void 0:n.type,X=null!==(r=null===(o=srfm_admin)||void 0===o||null===(o=o.srfm_ai_usage_details)||void 0===o?void 0:o.remaining)&&void 0!==r?r:0,J=null===(i=srfm_admin)||void 0===i||null===(i=i.srfm_ai_usage_details)||void 0===i?void 0:i.code,K=null===(s=srfm_admin)||void 0===s||null===(s=s.srfm_ai_usage_details)||void 0===s?void 0:s.resetAt;(0,e.useEffect)((function(){if(O&&!G){U(!0);var e=new URL(window.location.href);if(e.searchParams.delete("srfm_ai_dashboard_prompt"),window.history.replaceState({},"",e.toString()),X>0&&!J&&!A)return H(O,[],!0),void Z(!0);Z(!1)}}),[A,J,X,G,O]);var $="registered"===(null===(a=srfm_admin)||void 0===a||null===(a=a.srfm_ai_usage_details)||void 0===a?void 0:a.type)&&X>20?20:X,q=[(0,D.__)("Create Unlimited Forms with AI","sureforms"),(0,D.__)("Add Advanced Field Types","sureforms"),(0,D.__)("Create Calculators, Surveys, etc.","sureforms"),(0,D.__)("Design Multistep Forms","sureforms"),(0,D.__)("Send Form Entries to Your CRM or Any App","sureforms")];return W?React.createElement(Cr,{className:"h-screen bg-background-secondary p-8 gap-8"},React.createElement(gh,{message:d,percentBuild:f})):b?React.createElement(Br,{initiateAuth:Lt}):React.createElement("div",{className:"max-h-screen"},React.createElement(Bd,{className:Bt("z-[999999]",F?"[&>li>div>div.absolute]:right-auto [&>li>div>div.absolute]:left-[0.75rem!important]":""),position:Y,design:"stack",theme:"light",dismissAfter:5e3}),React.createElement(dr,null),React.createElement("div",{className:"mt-14"},React.createElement(Jf,{handleCreateAiForm:H,prefilledPrompt:O,formTypeObj:w,setFormTypeObj:N,setFormType:S,formType:E,type:_,showCreditDetailsPopup:k,setShowCreditDetailsPopup:R,features:q})),0===(null===(l=srfm_admin)||void 0===l||null===(l=l.srfm_ai_usage_details)||void 0===l?void 0:l.remaining)||null!==(c=srfm_admin)&&void 0!==c&&null!==(c=c.srfm_ai_usage_details)&&void 0!==c&&c.code?function(){var e,t,n,r,o,i,s,a;if(J)return React.createElement(Lr,{title:null===(s=srfm_admin)||void 0===s||null===(s=s.srfm_ai_usage_details)||void 0===s?void 0:s.title,paraOne:null===(a=srfm_admin)||void 0===a||null===(a=a.srfm_ai_usage_details)||void 0===a?void 0:a.message,buttonText:(0,D.__)("Try Again","sureforms"),onclick:function(){window.location.href=srfm_admin.site_url+"/wp-admin/admin.php?page=add-new-form"}});var l=(null===(e=srfm_admin)||void 0===e?void 0:e.is_pro_active)&&!(null!==(t=srfm_admin)&&void 0!==t&&t.is_pro_license_active);return null===(n=srfm_admin)||void 0===n||!n.is_pro_active||null!==(r=srfm_admin)&&void 0!==r&&r.is_pro_license_active||0!==X?"subscribed"===_&&null!==(o=srfm_admin)&&void 0!==o&&o.is_pro_active&&null!==(i=srfm_admin)&&void 0!==i&&i.is_pro_license_active&&0===X&&K&&K>Date.now()/1e3?React.createElement(Lr,{title:(0,D.__)("Form Generation Limit Reached","sureforms"),paraTitle:(0,D.__)("You've reached your daily generation limit.","sureforms"),paraOne:(0,D.__)("You've reached your daily limit for AI form generations.","sureforms"),paraTwo:(0,D.sprintf)((0,D.__)("Please try again after %s.","sureforms"),new Date(1e3*K).toLocaleString()),buttonText:(0,D.__)("Try Again","sureforms"),onclick:function(){window.location.href=srfm_admin.site_url+"/wp-admin/admin.php?page=add-new-form"}}):"registered"===_&&0===X?React.createElement(Lr,{paraOne:(0,D.__)("You have reached the maximum number of form generations in your Free Plan. SureForms Premium allows:","sureforms"),paraTitle:(0,D.sprintf)((0,D.__)("%s AI Generations Left.","sureforms"),$),buttonText:(0,D.__)("Upgrade Now","sureforms"),onclick:function(){var e;window.open(Ot(null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url,"limit-reached-popup-cta"),"_blank","noreferrer")},title:(0,D.__)("Unlock Unlimited Generations","sureforms"),features:q,showFeatures:!0,setShowCreditDetailsPopup:R}):"non-registered"===_&&0===X?React.createElement(Lr,{title:(0,D.__)("Connect to SureForms AI","sureforms"),paraTitle:(0,D.__)("You Have Hit Your Free Limit.","sureforms"),paraOne:(0,D.__)("You have reached the maximum number of form generations in your Free Plan.","sureforms"),paraTwo:(0,D.__)("Connect to SureForms AI to Get 10 More.","sureforms"),onclick:Lt,buttonText:(0,D.__)("Connect Now","sureforms")}):void 0:React.createElement(Lr,{deactivatedLicense:l})}():null,y&&React.createElement(Or,{errorMessage:y,onRetry:function(){I(""),h(0)}}))};var wh,Nh=function(){function t(){return React.createElement(jh,null)}return(0,e.useEffect)((function(){var e=document.querySelector("html.wp-toolbar");if(e){var t=e.style.paddingTop;return e.style.paddingTop=0,function(){e.style.paddingTop=t}}}),[]),React.createElement(React.Fragment,null,React.createElement(N,null,React.createElement(t,null)))};wh=document.getElementById("srfm-add-new-form-container"),document.addEventListener("DOMContentLoaded",(function(){null!==wh&&(0,e.createRoot)(wh).render(React.createElement(Nh,null))}))})()})(); |