(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,461316,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:a,dataNtpc:o=""}){return(0,n.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})},[o]),(0,i.jsxs)(i.Fragment,{children:[a,e?(0,i.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})};let i=e.r(843476),n=e.r(271645)},808341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return a}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},519083,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return d},htmlEscapeJsonString:function(){return u}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,l={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function u(e){return e.replace(o,e=>a[e])}function d(e){return e.replace(s,e=>l[e])}},479520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={default:function(){return y},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return _}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(555682),o=e.r(190809),l=e.r(843476),s=a._(e.r(174080)),u=o._(e.r(271645)),d=e.r(742732),c=e.r(922737),f=e.r(808341),p=e.r(519083),h=new Map,v=new Set,m=e=>{let{src:t,id:r,onLoad:i=()=>{},onReady:n=null,dangerouslySetInnerHTML:a,children:o="",strategy:l="afterInteractive",onError:u,stylesheets:d}=e,f=r||t;if(f&&v.has(f))return;if(h.has(t)){v.add(f),h.get(t).then(i,u);return}let p=()=>{n&&n(),v.add(f)},m=document.createElement("script"),b=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),i&&i.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(m.innerHTML=a.__html||"",p()):o?(m.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",p()):t&&(m.src=t,h.set(t,b)),(0,c.setAttributesFromProps)(m,e),"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),d&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(m)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>m(e))}):m(e)}function _(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");v.add(t)})}function g(e){let{id:t,src:r="",onLoad:i=()=>{},onReady:n=null,strategy:a="afterInteractive",onError:o,stylesheets:c,...h}=e,{updateScripts:b,scripts:_,getIsSsr:g,appDir:y,nonce:w}=(0,u.useContext)(d.HeadManagerContext);w=h.nonce||w;let C=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;C.current||(n&&e&&v.has(e)&&n(),C.current=!0)},[n,t,r]);let x=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!x.current){if("afterInteractive"===a)m(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>m(e))}));x.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(b?(_[a]=(_[a]||[]).concat([{id:t,src:r,onLoad:i,onReady:n,onError:o,...h,nonce:w}]),b(_)):g&&g()?v.add(t||r):g&&!g()&&m({...e,nonce:w})),y){if(c&&c.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return s.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin}),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===a&&r&&s.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(479520)},19598,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:i="dataLayer",auth:s,preview:u,dataLayer:d,nonce:c}=e;l=i;let f=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==i&&f.searchParams.set("l",i),s&&f.searchParams.set("gtm_auth",s),u&&(f.searchParams.set("gtm_preview",u),f.searchParams.set("gtm_cookies_win","x")),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` (function(w,l){ w[l]=w[l]||[]; w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); ${d?`w[l].push(${JSON.stringify(d)})`:""} })(window,'${i}');`},nonce:c}),(0,n.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:c})]})};let n=e.r(843476),a=e.r(271645),o=i(e.r(3303)),l="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||l;window[r]=window[r]||[],window[r].push(e)}},654576,(e,t,r)=>{"use strict";let i;var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:n="dataLayer",nonce:s}=e;return void 0===i&&(i=n),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` window['${n}'] = window['${n}'] || []; function gtag(){window['${n}'].push(arguments);} gtag('js', new Date()); gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:s}),(0,a.jsx)(l.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:s})]})},r.sendGAEvent=function(){void 0===i?console.warn("@next/third-parties: GA has not been initialized"):window[i]?window[i].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${i} does not exist`)};let a=e.r(843476),o=e.r(271645),l=n(e.r(3303))},991918,e=>{"use strict";var t=e.i(271645),r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;tl(e,"name",{value:t,configurable:!0});function u(e){let r=t.forwardRef((r,i)=>{let{children:n,...a}=r,l=null,s=!1,u=[];b(n)&&"function"==typeof w&&(n=w(n._payload)),t.Children.forEach(n,e=>{if(v(e)){s=!0;let t="child"in e.props?e.props.child:e.props.children;b(t)&&"function"==typeof w&&(t=w(t._payload)),l=f(e,t),u.push(l?.props?.children)}else u.push(e)}),l?l=t.cloneElement(l,void 0,u):!s&&1===t.Children.count(n)&&t.isValidElement(n)&&(l=n);let d=l?h(l):void 0,c=o(i,d);if(!l){if(n||0===n)throw Error(s?y(e):g(e));return n}let m=p(a,l.props??{});return l.type!==t.Fragment&&(m.ref=i?c:d),t.cloneElement(l,m)});return r.displayName=`${e}.Slot`,r}s(u,"createSlot");var d=u("Slot"),c=Symbol.for("radix.slottable");s(function(e){let t=s(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=c,t},"createSlottable");var f=s((e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function p(e,t){let r={...t};for(let i in t){let n=e[i],a=t[i];/^on[A-Z]/.test(i)?n&&a?r[i]=(...e)=>{let t=a(...e);return n(...e),t}:n&&(r[i]=n):"style"===i?r[i]={...n,...a}:"className"===i&&(r[i]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function v(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}s(p,"mergeProps"),s(h,"getElementRef"),s(v,"isSlottable");var m=Symbol.for("react.lazy");function b(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===m&&"_payload"in e&&_(e._payload)}function _(e){return"object"==typeof e&&null!==e&&"then"in e}s(b,"isLazyComponent"),s(_,"isPromiseLike");var g=s(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),y=s(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),w=t[" use ".trim().toString()];e.s(["Slot",0,d,"createSlot",0,u],991918)},207670,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,r=0,i="",n=arguments.length;r{"use strict";let t=(e,r)=>{if(0===e.length)return r.classGroupId;let i=e[0],n=r.nextPart.get(i),a=n?t(e.slice(1),n):void 0;if(a)return a;if(0===r.validators.length)return;let o=e.join("-");return r.validators.find(({validator:e})=>e(o))?.classGroupId},r=/^\[(.+)\]$/,i=(e,t,r,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:n(t,e)).classGroupId=r;return}"function"==typeof e?a(e)?i(e(o),t,r,o):t.validators.push({validator:e,classGroupId:r}):Object.entries(e).forEach(([e,a])=>{i(a,n(t,e),r,o)})})},n=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},a=e=>e.isThemeGetter,o=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,l=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},s=/\s+/;function u(){let e,t,r=0,i="";for(;r{let t;if("string"==typeof e)return e;let r="";for(let i=0;i{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,i=new Map,n=(n,a)=>{r.set(n,a),++t>e&&(t=0,i=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(n(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):n(e,t)}}})((s=n.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,i=1===t.length,n=t[0],a=t.length,o=e=>{let r,o=[],l=0,s=0;for(let u=0;us?r-s:void 0}};return r?e=>r({className:e,parseClassName:o}):o})(s),...(e=>{let n=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return o(Object.entries(e.classGroups),r).forEach(([e,r])=>{i(r,n,e,t)}),n})(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:e=>{let i=e.split("-");return""===i[0]&&1!==i.length&&i.shift(),t(i,n)||(e=>{if(r.test(e)){let t=r.exec(e)[1],i=t?.substring(0,t.indexOf(":"));if(i)return"arbitrary.."+i}})(e)},getConflictingClassGroupIds:(e,t)=>{let r=a[e]||[];return t&&l[e]?[...r,...l[e]]:r}}})(s)}).cache.get,f=a.cache.set,p=h,h(l)};function h(e){let t=d(e);if(t)return t;let r=((e,t)=>{let{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:n}=t,a=[],o=e.trim().split(s),u="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{modifiers:s,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:f}=r(t),p=!!f,h=i(p?c.substring(0,f):c);if(!h){if(!p||!(h=i(c))){u=t+(u.length>0?" "+u:u);continue}p=!1}let v=l(s).join(":"),m=d?v+"!":v,b=m+h;if(a.includes(b))continue;a.push(b);let _=n(h,p);for(let e=0;e<_.length;++e){let t=_[e];a.push(m+t)}u=t+(u.length>0?" "+u:u)}return u})(e,a);return f(e,r),r}return function(){return p(u.apply(null,arguments))}}let f=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},p=/^\[(?:([a-z-]+):)?(.+)\]$/i,h=/^\d+\/\d+$/,v=new Set(["px","full","screen"]),m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b=/\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$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,g=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w=e=>x(e)||v.has(e)||h.test(e),C=e=>D(e,"length",j),x=e=>!!e&&!Number.isNaN(Number(e)),E=e=>D(e,"number",x),S=e=>!!e&&Number.isInteger(Number(e)),k=e=>e.endsWith("%")&&x(e.slice(0,-1)),O=e=>p.test(e),T=e=>m.test(e),L=new Set(["length","size","percentage"]),M=e=>D(e,L,H),A=e=>D(e,"position",H),N=new Set(["image","url"]),R=e=>D(e,N,$),P=e=>D(e,"",V),I=()=>!0,D=(e,t,r)=>{let i=p.exec(e);return!!i&&(i[1]?"string"==typeof t?i[1]===t:t.has(i[1]):r(i[2]))},j=e=>b.test(e)&&!_.test(e),H=()=>!1,V=e=>g.test(e),$=e=>y.test(e),B=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),i=f("brightness"),n=f("borderColor"),a=f("borderRadius"),o=f("borderSpacing"),l=f("borderWidth"),s=f("contrast"),u=f("grayscale"),d=f("hueRotate"),c=f("invert"),p=f("gap"),h=f("gradientColorStops"),v=f("gradientColorStopPositions"),m=f("inset"),b=f("margin"),_=f("opacity"),g=f("padding"),y=f("saturate"),L=f("scale"),N=f("sepia"),D=f("skew"),j=f("space"),H=f("translate"),V=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",O,t],U=()=>[O,t],F=()=>["",w,C],Z=()=>["auto",x,O],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",O],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[x,O];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[w,C],blur:["none","",T,O],brightness:X(),borderColor:[e],borderRadius:["none","","full",T,O],borderSpacing:U(),borderWidth:F(),contrast:X(),grayscale:Y(),hueRotate:X(),invert:Y(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[k,C],inset:B(),margin:B(),opacity:X(),padding:U(),saturate:X(),scale:X(),sepia:Y(),skew:X(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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:[...z(),O]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",S,O]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",S,O]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",S,O]},O]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[S,O]},O]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"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",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",T,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[I]}],"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",O]}],"line-clamp":[{"line-clamp":["none",x,E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,C]}],"underline-offset":[{"underline-offset":["auto",w,O]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],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",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),A]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",M]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:W()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[w,O]}],"outline-w":[{outline:[w,C]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[w,C]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,P]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",T,O]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[y]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[S,O]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],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",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,C,E]}],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"]}}},U=(e,t,r)=>{void 0!==r&&(e[t]=r)},F=(e,t)=>{if(t)for(let r in t)U(e,r,t[r])},Z=(e,t)=>{if(t)for(let r in t){let i=t[r];void 0!==i&&(e[r]=(e[r]||[]).concat(i))}};e.s(["extendTailwindMerge",0,(e,...t)=>"function"==typeof e?c(B,e,...t):c(()=>((e,{cacheSize:t,prefix:r,separator:i,experimentalParseClassName:n,extend:a={},override:o={}})=>{for(let a in U(e,"cacheSize",t),U(e,"prefix",r),U(e,"separator",i),U(e,"experimentalParseClassName",n),o)F(e[a],o[a]);for(let t in a)Z(e[t],a[t]);return e})(B(),e),...t)])},155263,e=>{"use strict";let t={FIVE_SEVEN:{value:[5,7],baseClassName:"aspect-5/7",lgClassName:"lg:aspect-5/7"},FIVE_FOUR:{value:[5,4],baseClassName:"aspect-5/4",lgClassName:"lg:aspect-5/4"},FOUR_FIVE:{value:[4,5],baseClassName:"aspect-4/5",lgClassName:"lg:aspect-4/5"},THREE_FOUR:{value:[3,4],baseClassName:"aspect-3/4",lgClassName:"lg:aspect-3/4"},THREE_TWO:{value:[3,2],baseClassName:"aspect-3/2",lgClassName:"lg:aspect-3/2"},FOUR_THREE:{value:[4,3],baseClassName:"aspect-4/3",lgClassName:"lg:aspect-4/3"},NINE_SIXTEEN:{value:[9,16],baseClassName:"aspect-9/16",lgClassName:"lg:aspect-9/16"},SIXTEEN_NINE:{value:[16,9],baseClassName:"aspect-16/9",lgClassName:"lg:aspect-16/9"},SQUARE:{value:[1,1],baseClassName:"aspect-1/1",lgClassName:"lg:aspect-1/1"}},r=Object.fromEntries(Object.values(t).map(({value:e})=>[`${e[0]}/${e[1]}`,`${e[0]} / ${e[1]}`]));e.s(["ASPECT_RATIOS",0,t,"SCANNED_PAGE_IMAGE_HEIGHT",0,701,"SCANNED_PAGE_IMAGE_WIDTH",0,532,"aspectRatio",0,r,"computeAspectRatioValue",0,e=>e.value[0]/e.value[1],"getAspectRatioClassNames",0,(e,t)=>{let r=[],i=t??e;return i&&(r.push(i.baseClassName),t&&r.push(e?.lgClassName??"lg:aspect-auto")),r.join(" ")}])},815316,e=>{"use strict";var t=e.i(919056),r=e.i(207670),i=e.i(155263);let n=(0,t.extendTailwindMerge)({extend:{classGroups:{"font-size":["h1","mobile-h1","h2","mobile-h2","h3","mobile-h3","h4","mobile-h4","h5","mobile-h5","h6","mobile-h6","title-large","mobile-title-large","t1","mobile-t1","t2","t3","t4","t5","body-large","body-small","cta-large","cta-small","caption-large","caption-small","metadata","tag"].map(e=>`text-${e}`),aspect:Object.keys(i.aspectRatio).map(e=>`aspect-${e}`)}}});e.s(["cn",0,function(...e){return n((0,r.clsx)(e))}],815316)},84297,(e,t,r)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},892135,(e,t,r)=>{"use strict";function i(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,i){let n=i&&Object.keys(i).length>0?new URL(Object.values(i)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&n.searchParams.set(e,r[e])}),n.toString()}function a(e,t,r,i,a){var o;if(!t)return`<${e}>`;let l=(null==(o=t.src)?void 0:o.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,a)}):t,s=Object.keys(Object.assign(Object.assign({},l),r)).reduce((e,t)=>{let i=null==r?void 0:r[t],n=l[t],a=null!=i?i:n,o=!0===a?t:`${t}="${a}"`;return a?e+` ${o}`:e},"");return`<${e}${s}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=n,r.createHtml=a,r.formatData=function(e,t){var r,o,l,s,u;let d=i(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),c=i(t,null==(l=null==(o=e.html)?void 0:o.attributes.src)?void 0:l.params),f=i(t,[null==(u=null==(s=e.html)?void 0:s.attributes.src)?void 0:u.slugParam]),p=i(t,[...Object.keys(d),...Object.keys(c),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?a(e.html.element,e.html.attributes,p,c,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,d)})):null})}},344602,(e,t,r)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let a=n(e.r(84297)),o=e.r(892135);r.GoogleAnalytics=e=>{var t=i(e,[]);return(0,o.formatData)(a.default,t)}},560262,(e,t,r)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},277813,(e,t,r)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let a=n(e.r(560262)),o=e.r(892135);r.GoogleMapsEmbed=e=>{var t=i(e,[]);return(0,o.formatData)(a.default,t)}},640674,(e,t,r)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},515465,(e,t,r)=>{"use strict";var i=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let a=n(e.r(640674)),o=e.r(892135);r.YouTubeEmbed=e=>{var t=i(e,[]);return(0,o.formatData)(a.default,t)}},981498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var i=e.r(344602);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return i.GoogleAnalytics}});var n=e.r(277813);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n.GoogleMapsEmbed}});var a=e.r(515465);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return a.YouTubeEmbed}})},667345,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,i={...r,key:t},{html:l}=(0,a.GoogleMapsEmbed)(i);return(0,n.jsx)(o.default,{height:i.height||null,width:i.width||null,html:l,dataNtpc:"GoogleMapsEmbed"})};let n=e.r(843476),a=e.r(981498),o=i(e.r(461316))},621783,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:i}=(0,o.YouTubeEmbed)(e);return(0,n.jsx)(l.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,n.jsx)(a.default,{src:e.url,strategy:s[e.strategy],stylesheets:i},e.url))})};let n=e.r(843476),a=i(e.r(3303)),o=e.r(981498),l=i(e.r(461316)),s={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},387644,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var n=e.r(667345);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i(n).default}});var a=e.r(621783);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return i(a).default}});var o=e.r(19598);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return o.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return o.sendGTMEvent}});var l=e.r(654576);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return l.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return l.sendGAEvent}})},700064,e=>{"use strict";let t=["outline-black-coffee","outline","outline-2","outline-offset-2","shadow-focus-color"].map(e=>`[&:has(:focus-visible):not(:has(.no-focus-on-parent:focus-visible)):not(:has(button:focus-visible))]:${e}`).join(" ");e.s(["brandRedHoverClass",0,"support:hover:text-brand-red duration-300 transition-colors","buttonReset",0,"m-0 h-auto appearance-none rounded-none bg-transparent p-0 shadow-none focus:outline-none focus:ring-0 support:hover:bg-transparent","focusAfterClass",0,"after:absolute after:inset-0 after:content-[''] focus-visible:outline-none","focusClass",0,"focus-visible:outline focus-visible:outline-black-coffee focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:shadow-focus-color","focusWithinClass",0,t])},495277,225913,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(991918),n=e.i(207670);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=n.clsx,l=(e,t)=>r=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:n,defaultVariants:l}=t,s=Object.keys(n).map(e=>{let t=null==r?void 0:r[e],i=null==l?void 0:l[e];if(null===t)return null;let o=a(t)||a(i);return n[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,i]=t;return void 0===i||(e[r]=i),e},{});return o(e,s,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:i,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...u}[t]):({...l,...u})[t]===r})?[...e,r,i]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,l],225913);var s=e.i(815316),u=e.i(387644),d=e.i(700064);let c=l(`inline-flex items-center justify-center gap-2 whitespace-nowrap font-graphik transition-colors focus-visible:border-transparent disabled:pointer-events-none support:hover:cursor-pointer ${d.focusClass}`,{variants:{variant:{primary:"gap-2.5 rounded-sm px-4 py-3 uppercase",outlined:"h-8 rounded-[2.5rem] border bg-transparent px-3 py-2 text-cta-small uppercase","outlined-filled":"h-8 rounded-[2.5rem] border px-3 py-2 text-cta-small uppercase text-black-coffee support:hover:bg-warm-grey-2",withIcon:"gap-2 p-0 text-cta-small uppercase support:hover:underline",tag:"rounded-sm border border-warm-grey-2 bg-transparent px-2.5 py-1.5 font-graphik-compact text-cta-small uppercase",icon:"gap-0 rounded-full bg-transparent p-0 support:hover:[&_svg]:text-grey-1",textLink:"underline"},size:{md:"",lg:""},theme:{light:"",dark:"",grey:""}},compoundVariants:[{variant:"primary",size:"lg",className:"h-[3.125rem] text-cta-large"},{variant:"primary",size:"md",className:"h-10 text-cta-small"},{variant:"primary",theme:"dark",className:"bg-black-coffee text-ivory-white disabled:bg-grey-1 support:hover:bg-brand-red"},{variant:"primary",theme:"light",className:"bg-ivory-white text-black-coffee disabled:bg-warm-grey-2"},{variant:"outlined",theme:"dark",className:"border-black-coffee text-black-coffee support:hover:bg-black-coffee support:hover:text-ivory-white"},{variant:"outlined",theme:"light",className:"border-ivory-white text-ivory-white support:hover:bg-ivory-white support:hover:text-black-coffee"},{variant:"outlined-filled",theme:"dark",className:"border-ivory-white bg-black-coffee text-ivory-white support:hover:bg-grey-1"},{variant:"outlined-filled",theme:"light",className:"border-black-coffee bg-ivory-white support:hover:bg-warm-grey-2"},{variant:"withIcon",theme:"dark",className:"bg-transparent text-black-coffee support:hover:bg-transparent"},{variant:"withIcon",theme:"light",className:"bg-transparent text-ivory-white support:hover:bg-transparent"},{variant:"tag",theme:"dark",className:"rounded-2 border-warm-grey-2 bg-transparent text-black-coffee support:hover:bg-warm-grey-2"},{variant:"tag",theme:"grey",className:"rounded-2 bg-red border-warm-grey-1 text-black-coffee support:hover:bg-warm-grey-1"},{variant:"tag",theme:"light",className:"rounded-2 border-ivory-white bg-transparent text-ivory-white support:hover:border-black-coffee support:hover:bg-ivory-white support:hover:text-black-coffee"},{variant:"textLink",size:"lg",className:"text-body-large [&_svg]:size-5"},{variant:"textLink",size:"md",className:"text-caption-small [&_svg]:size-4"},{variant:"textLink",theme:"light",className:"text-warm-grey-3 support:hover:text-ivory-white"},{variant:"textLink",theme:"dark",className:"text-grey-1 support:hover:text-black-coffee "}]}),f=r.forwardRef(({className:e,variant:r="primary",size:n="lg",theme:a="dark",asChild:o=!1,gtmData:l,onClick:d,...f},p)=>{let h=o?i.Slot:"button";return(0,t.jsx)(h,{className:(0,s.cn)(c({variant:r,size:n,theme:a,className:e})),ref:p,onClick:e=>{l&&(0,u.sendGTMEvent)(l),d&&d(e)},...f})});f.displayName="Button",e.s(["buttonVariants",0,c,"default",0,f],495277)},195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(190809)._(e.r(998183)),o=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,i=e.protocol||"",n=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(a.urlQueryToSearchParams(s)));let d=e.search||s&&`?${s}`||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),n=n.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${i}${u}${n}${d}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let i=e.r(271645);function n(e,t){let r=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=a(e,i)),t&&(n.current=a(t,i))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let i=e.r(718967),n=e.r(652817);function a(e){if(!(0,i.isAbsoluteUrl)(e))return!0;try{let t=(0,i.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return i}});let i=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={default:function(){return b},useLinkStatus:function(){return g}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(190809),o=e.r(843476),l=a._(e.r(271645)),s=e.r(195057),u=e.r(8372),d=e.r(818581),c=e.r(718967),f=e.r(405550);e.r(233525);let p=e.r(388540),h=e.r(91949),v=e.r(573668),m=e.r(509396);function b(t){var r,i;let n,a,b,[g,y]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),w=(0,l.useRef)(null),{href:C,as:x,children:E,prefetch:S=null,passHref:k,replace:O,shallow:T,scroll:L,onClick:M,onMouseEnter:A,onTouchStart:N,legacyBehavior:R=!1,onNavigate:P,transitionTypes:I,ref:D,unstable_dynamicOnHover:j,...H}=t;n=E,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let V=l.default.useContext(u.AppRouterContext),$=!1!==S,B=!1!==S?null===(i=S)||"auto"===i?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,U="string"==typeof(r=x||C)?r:(0,s.formatUrl)(r);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(n)}let F=R?a&&"object"==typeof a&&a.ref:D,Z=l.default.useCallback(e=>(null!==V&&(w.current=(0,h.mountLinkInstance)(e,U,V,B,$,y)),()=>{w.current&&((0,h.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,h.unmountPrefetchableInstance)(e)}),[$,U,V,B,y]),z={ref:(0,d.useMergedRef)(Z,F),onClick(t){R||"function"!=typeof M||M(t),R&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!V||t.defaultPrevented||function(t,r,i,n,a,o,s){if("u">typeof window){let u,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,v.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(699781);l.default.startTransition(()=>{c(r,n?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,i.current,s)})}}(t,U,w,O,L,P,I)},onMouseEnter(e){R||"function"!=typeof A||A(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),V&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===j)},onTouchStart:function(e){R||"function"!=typeof N||N(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),V&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===j)}};return(0,c.isAbsoluteUrl)(U)?z.href=U:R&&!k&&("a"!==a.type||"href"in a.props)||(z.href=(0,f.addBasePath)(U)),b=R?l.default.cloneElement(a,z):(0,o.jsx)("a",{...H,...z,children:n}),(0,o.jsx)(_.Provider,{value:g,children:b})}e.r(284508);let _=(0,l.createContext)(h.IDLE_LINK_STATUS),g=()=>(0,l.useContext)(_);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},618566,(e,t,r)=>{t.exports=e.r(976562)},547209,e=>{"use strict";var t=e.i(843476),r=e.i(522016),i=e.i(387644),n=e.i(815316),a=e.i(700064),o=e.i(618566);e.s(["default",0,({className:e,isFocusStyleRequired:l,forceFullPageReload:s,href:u,onClick:d,gtmData:c,...f})=>{let p=(0,o.useSearchParams)(),h=p?.has("live_preview"),v=(e=>{if("string"==typeof e)return e;let t=e.pathname||"",r=new URLSearchParams(e.query||{}).toString();return r?`${t}?${r}`:t})(u),m=(0,n.cn)(l?a.focusClass:"",e),b=e=>{c&&!h&&(0,i.sendGTMEvent)(c),d&&d(e)},_={...f};return delete _.prefetch,s||h?(0,t.jsx)("a",{href:v,className:m,onClick:b,..._}):(0,t.jsx)(r.default,{href:v,className:m,onClick:b,...f})}])},343794,(e,t,r)=>{!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t{e.e,t.exports=function(){"use strict";var e="millisecond",t="second",r="minute",i="hour",n="week",a="month",o="quarter",l="year",s="date",u="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},p="en",h={};h[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var v="$isDayjsObject",m=function(e){return e instanceof y||!(!e||!e[v])},b=function e(t,r,i){var n;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();h[a]&&(n=a),r&&(h[a]=r,n=a);var o=t.split("-");if(!n&&o.length>1)return e(o[0])}else{var l=t.name;h[l]=t,n=l}return!i&&n&&(p=n),n||!i&&p},_=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new y(r)},g={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date(){e.e,t.exports=function(){function e(){return(e=Object.assign.bind()).apply(null,arguments)}var t={ignoreId:!1},r="u">typeof Node,i=r?Node.ELEMENT_NODE:1,n=r?Node.TEXT_NODE:3,a=r?Node.DOCUMENT_TYPE_NODE:10;return function(r,o){var l=e({},t,o),s=r;if(s&&s.id&&!l.ignoreId)return'//*[@id="'+s.id+'"]';for(var u=[];s&&(i===s.nodeType||n===s.nodeType);){for(var d=0,c=!1,f=s.previousSibling;f;)f.nodeType!==a&&f.nodeName===s.nodeName&&d++,f=f.previousSibling;for(f=s.nextSibling;f;){if(f.nodeName===s.nodeName){c=!0;break}f=f.nextSibling}var p=d||c?"["+(d+1)+"]":"";u.push(s.nodeType!=n?(s.prefix?s.prefix+":":"")+s.localName+p:"text()"+(p||"[1]")),s=s.parentNode}return u.length?"/"+u.reverse().join("/"):""}}()},55918,e=>{"use strict";let t,r,i,n;e.s(["VB_EmptyBlockParentClass",()=>fg,"default",()=>fy],55918);var a,o,l=e.i(247167);let s=function(e,t){return e===t||e!=e&&t!=t},u=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return -1};var d=Array.prototype.splice;function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},c.prototype.set=function(e,t){var r=this.__data__,i=u(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};var f=e.g&&e.g.Object===Object&&e.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),v=h.Symbol,m=Object.prototype,b=m.hasOwnProperty,_=m.toString,g=v?v.toStringTag:void 0;let y=function(e){var t=b.call(e,g),r=e[g];try{e[g]=void 0;var i=!0}catch(e){}var n=_.call(e);return i&&(t?e[g]=r:delete e[g]),n};var w=Object.prototype.toString,C=v?v.toStringTag:void 0;let x=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":C&&C in Object(e)?y(e):w.call(e)},E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},S=function(e){if(!E(e))return!1;var t=x(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var k=h["__core-js_shared__"],O=(re=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",T=Function.prototype.toString;let L=function(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var M=/^\[object .+?Constructor\]$/,A=Object.prototype,N=Function.prototype.toString,R=A.hasOwnProperty,P=RegExp("^"+N.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let I=function(e){return!!E(e)&&(!O||!(O in e))&&(S(e)?P:M).test(L(e))},D=function(e,t){var r=null==e?void 0:e[t];return I(r)?r:void 0};var j=D(h,"Map"),H=D(Object,"create"),V=Object.prototype.hasOwnProperty,$=Object.prototype.hasOwnProperty;function B(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=0x1fffffffffffff};var ed={};ed["[object Float32Array]"]=ed["[object Float64Array]"]=ed["[object Int8Array]"]=ed["[object Int16Array]"]=ed["[object Int32Array]"]=ed["[object Uint8Array]"]=ed["[object Uint8ClampedArray]"]=ed["[object Uint16Array]"]=ed["[object Uint32Array]"]=!0,ed["[object Arguments]"]=ed["[object Array]"]=ed["[object ArrayBuffer]"]=ed["[object Boolean]"]=ed["[object DataView]"]=ed["[object Date]"]=ed["[object Error]"]=ed["[object Function]"]=ed["[object Map]"]=ed["[object Number]"]=ed["[object Object]"]=ed["[object RegExp]"]=ed["[object Set]"]=ed["[object String]"]=ed["[object WeakMap]"]=!1;let ec=function(e){return function(t){return e(t)}};var ef=function(){try{return!1}catch(e){}}(),ep=ef&&ef.isTypedArray,eh=ep?ec(ep):function(e){return Q(e)&&eu(e.length)&&!!ed[x(e)]},ev=Object.prototype.hasOwnProperty;let em=function(e,t){var r=ea(e),i=!r&&en(e),n=!r&&!i&&eo(e),a=!r&&!i&&!n&&eh(e),o=r||i||n||a,l=o?J(e.length,String):[],s=l.length;for(var u in e)(t||ev.call(e,u))&&!(o&&("length"==u||n&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||es(u,s)))&&l.push(u);return l};var eb=Object.prototype;let e_=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eb)},eg=function(e,t){return function(r){return e(t(r))}};var ey=eg(Object.keys,Object),ew=Object.prototype.hasOwnProperty;let eC=function(e){if(!e_(e))return ey(e);var t=[];for(var r in Object(e))ew.call(e,r)&&"constructor"!=r&&t.push(r);return t},ex=function(e){return null!=e&&eu(e.length)&&!S(e)},eE=function(e){return ex(e)?em(e):eC(e)},eS=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var ek=Object.prototype.hasOwnProperty;let eO=function(e){if(!E(e))return eS(e);var t=e_(e),r=[];for(var i in e)"constructor"==i&&(t||!ek.call(e,i))||r.push(i);return r},eT=function(e){return ex(e)?em(e,!0):eO(e)},eL=function(e,t){if(t)return e.slice();var r=e.length,i=new e.constructor(r);return e.copy(i),i},eM=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r0&&i(s)?r>1?e(s,r-1,i,n,a):eD(a,s):n||(a[a.length]=s)}return a},tz=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var tW=Math.max;let tG=function(e){return e};var tq=Date.now,tY=(ri=G?function(e,t){return G(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:tG,rn=0,ra=0,function(){var e=tq(),t=16-(e-ra);if(ra=e,t>0){if(++rn>=800)return arguments[0]}else rn=0;return ri.apply(void 0,arguments)})((rl=ro=function(e,t){return null==e?{}:tH(e,t,function(t,r){return tB(e,r)})},rs=void 0,ru=function(e){return(null==e?0:e.length)?tZ(e,1):[]},rs=tW(void 0===rs?rl.length-1:rs,0),function(){for(var e=arguments,t=-1,r=tW(e.length-rs,0),i=Array(r);++t= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=i[e];return t}return function(e,t=0){return(tX[e[t+0]]+tX[e[t+1]]+tX[e[t+2]]+tX[e[t+3]]+"-"+tX[e[t+4]]+tX[e[t+5]]+"-"+tX[e[t+6]]+tX[e[t+7]]+"-"+tX[e[t+8]]+tX[e[t+9]]+"-"+tX[e[t+10]]+tX[e[t+11]]+tX[e[t+12]]+tX[e[t+13]]+tX[e[t+14]]+tX[e[t+15]]).toLowerCase()}(i)}(e,t,r):crypto.randomUUID()};var tQ=class{static logEvent(e,t){void 0!==l.default&&l.default?.env?.NODE_ENV!=="test"&&e("Live_Preview_SDK:",...t)}static error(...e){this.logEvent(console.error,e)}static warn(...e){this.logEvent(console.warn,e)}static debug(...e){this.logEvent(console.debug,e)}};function t1(){return"u">typeof window}function t0(){return!!t1()&&!!new URLSearchParams(window.location.search).get("preview_timestamp")}function t2(){return!!t1()&&!!new URLSearchParams(window.location.search).get("builder")}function t5(){return!!t1()&&!!new URLSearchParams(window.location.search).get("preview_share")}function t3(){try{return window.self!==window.top}catch(e){return!0}}function t6(){try{if(t1())return!!window.opener;return!1}catch(e){return!1}}var t7=((rd=t7||{})[rd.PREVIEW=1]="PREVIEW",rd[rd.BUILDER=2]="BUILDER",rd),t8=((rc=t8||{}).PREVIEW="preview",rc.PREVIEW_SHARE="preview-share",rc.BUILDER="builder",rc.INDEPENDENT="independent",rc);function t4(){return{ssr:!0,enable:!0,debug:!1,cleanCslpOnProduction:!0,editButton:{enable:!0,exclude:[],position:"top",includeByQueryParameter:!0},editInVisualBuilderButton:{enable:!0,position:"bottom-right"},overlayPropagation:{enable:!1},mode:"preview",stackDetails:{apiKey:"",environment:"",branch:""},clientUrlParams:{protocol:"https",host:"app.contentstack.com",port:443},stackSdk:{live_preview:{},environment:""},runScriptsOnUpdate:!1,enableLivePreviewOutsideIframe:void 0}}function t9(){return{ssr:!0,enable:!0,debug:!1,cleanCslpOnProduction:!0,editButton:{enable:!0,exclude:[],position:"top",includeByQueryParameter:!0},editInVisualBuilderButton:{enable:!0,position:"bottom-right"},overlayPropagation:{enable:!1},hash:"",mode:1,windowType:t8.INDEPENDENT,stackDetails:{apiKey:"",environment:"",contentTypeUid:"",entryUid:"",locale:"en-us",branch:"main",masterLocale:"en-us"},clientUrlParams:{protocol:"https",host:"app.contentstack.com",port:443,url:"https://app.contentstack.com:443"},stackSdk:{live_preview:{},headers:{api_key:""},environment:""},runScriptsOnUpdate:!1,onChange(){},elements:{highlightedElement:null},collab:{enable:!1,fromShare:!1,pauseFeedback:!1,isFeedbackMode:!1,inviteMetadata:{currentUser:{email:"",uid:""},users:[],inviteUid:""},payload:[]},enableLivePreviewOutsideIframe:void 0,pageContext:null}}var re,rt,rr,ri,rn,ra,ro,rl,rs,ru,rd,rc,rf,rp,rh,rv,rm,rb,r_,rg,ry,rw,rC,rx,rE,rS,rk,rO={},rT=[],rL=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rM=Array.isArray;function rA(e,t){for(var r in t)e[r]=t[r];return e}function rN(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function rR(e,t,r){var i,n,a,o={};for(a in t)"key"==a?i=t[a]:"ref"==a?n=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?rf.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return rP(e,o,i,n,null)}function rP(e,t,r,i,n){var a={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==n?++rh:n,__i:-1,__u:0};return null==n&&null!=rp.vnode&&rp.vnode(a),a}function rI(e){return e.children}function rD(e,t){this.props=e,this.context=t}function rj(e,t){if(null==t)return e.__?rj(e.__,e.__i+1):null;for(var r;tt&&rv.sort(r_),e=rv.shift(),t=rv.length,function(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,i=[],n=[],a=rA({},t);a.__v=t.__v+1,rp.vnode&&rp.vnode(a),rz(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,i,null==r?rj(t):r,!!(32&t.__u),n),a.__v=t.__v,a.__.__k[a.__i]=a,rG(i,a,n),t.__e=t.__=null,a.__e!=r&&function e(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e}),e(t)}(a)}}(e)}finally{rv.length=rV.__r=0}}function r$(e,t,r,i,n,a,o,l,s,u,d){var c,f,p,h,v,m,b,_=i&&i.__k||rT,g=t.length;for(s=function(e,t,r,i,n){var a,o,l,s,u,d=r.length,c=d,f=0;for(e.__k=Array(n),a=0;a0?o=e.__k[a]=rP(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,s=a+f,o.__=e,o.__b=e.__b+1,l=null,-1!=(u=o.__i=function(e,t,r,i){var n,a,o,l=e.key,s=e.type,u=t[r],d=null!=u&&0==(2&u.__u);if(null===u&&null==l||d&&l==u.key&&s==u.type)return r;if(i>+!!d){for(n=r-1,a=r+1;n>=0||a=0?n--:a++])&&0==(2&u.__u)&&l==u.key&&s==u.type)return o}return -1}(o,r,s,c))&&(c--,(l=r[u])&&(l.__u|=2)),null==l||null==l.__v?(-1==u&&(n>d?f--:ns?f--:f++,o.__u|=4))):e.__k[a]=null;if(c)for(a=0;a0?t:rM(t)?t.map(e):rA({},t)}(d.props.children):d,l=r$(e,rM(x)?x:[x],t,r,i,n,a,o,l,s,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),m&&(c.__E=c.__=null)}catch(e){if(t.__v=null,s||null!=a)if(e.then){for(t.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,t.__e=l}else{for(E=a.length;E--;)rN(a[E]);rW(t)}else t.__e=r.__e,t.__k=r.__k,e.then||rW(t);rp.__e(e,t,r)}else null==a&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=function(e,t,r,i,n,a,o,l,s){var u,d,c,f,p,h,v,m=r.props||rO,b=t.props,_=t.type;if("svg"==_?n="http://www.w3.org/2000/svg":"math"==_?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),null!=a){for(u=0;u2&&(l.children=arguments.length>3?rf.call(arguments,2):r),rP(e.type,l,i||e.key,n||e.ref,null)}rf=rT.slice,rp={__e:function(e,t,r,i){for(var n,a,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((a=n.constructor)&&null!=a.getDerivedStateFromError&&(n.setState(a.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,i||{}),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},rh=0,rD.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=rA({},this.state),"function"==typeof e&&(e=e(rA({},r),this.props)),e&&rA(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),rH(this))},rD.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),rH(this))},rD.prototype.render=rI,rv=[],rb="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,r_=function(e,t){return e.__v.__b-t.__v.__b},rV.__r=0,ry="__d"+(rg=Math.random().toString(8)),rw="__a"+rg,rC=/(PointerCapture)$|Capture$/i,rx=0,rE=rZ(!1),rS=rZ(!0),rk=0;var rQ,r1,r0,r2,r5=0,r3=[],r6=rp,r7=r6.__b,r8=r6.__r,r4=r6.diffed,r9=r6.__c,ie=r6.unmount,it=r6.__;function ir(e,t){r6.__h&&r6.__h(r1,e,r5||t),r5=0;var r=r1.__H||(r1.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ii(e){return r5=1,ia(ib,e)}function ia(e,t,r){var i=ir(rQ++,2);if(i.t=e,!i.__c&&(i.__=[r?r(t):ib(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],r=i.t(t,e);t!==r&&(i.__N=[r,i.__[1]],i.__c.setState({}))}],i.__c=r1,!r1.__f)){var n=function(e,t,r){if(!i.__c.__H)return!0;var n=i.__c.__H.__.filter(function(e){return e.__c});if(n.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var o=i.__c.props!==e;return n.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a&&a.call(this,e,t,r)||o};r1.__f=!0;var a=r1.shouldComponentUpdate,o=r1.componentWillUpdate;r1.componentWillUpdate=function(e,t,r){if(this.__e){var i=a;a=void 0,n(e,t,r),a=i}o&&o.call(this,e,t,r)},r1.shouldComponentUpdate=n}return i.__N||i.__}function io(e,t){var r=ir(rQ++,3);!r6.__s&&im(r.__H,t)&&(r.__=e,r.u=t,r1.__H.__h.push(r))}function il(e){return r5=5,is(function(){return{current:e}},[])}function is(e,t){var r=ir(rQ++,7);return im(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function iu(e,t){return r5=8,is(function(){return e},t)}function id(e){var t=r1.context[e.__c],r=ir(rQ++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(r1)),t.props.value):e.__}function ic(){for(var e;e=r3.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ih),t.__h.some(iv),t.__h=[]}catch(r){t.__h=[],r6.__e(r,e.__v)}}}r6.__b=function(e){r1=null,r7&&r7(e)},r6.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),it&&it(e,t)},r6.__r=function(e){r8&&r8(e),rQ=0;var t=(r1=e.__c).__H;t&&(r0===r1?(t.__h=[],r1.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(ih),t.__h.some(iv),t.__h=[],rQ=0)),r0=r1},r6.diffed=function(e){r4&&r4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==r3.push(t)&&r2===r6.requestAnimationFrame||((r2=r6.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(i),ip&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(r,35);ip&&(t=requestAnimationFrame(r))})(ic)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),r0=r1=null},r6.__c=function(e,t){t.some(function(e){try{e.__h.some(ih),e.__h=e.__h.filter(function(e){return!e.__||iv(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],r6.__e(r,e.__v)}}),r9&&r9(e,t)},r6.unmount=function(e){ie&&ie(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{ih(e)}catch(e){t=e}}),r.__H=void 0,t&&r6.__e(t,r.__v))};var ip="function"==typeof requestAnimationFrame;function ih(e){var t=r1,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),r1=t}function iv(e){var t=r1;e.__c=e.__(),r1=t}function im(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function ib(e,t){return"function"==typeof t?t(e):t}var i_=Symbol.for("preact-signals");function ig(){if(iE>1)iE--;else{var e,t=!1,r=iT;for(iT=void 0;void 0!==r;)r.S.v===r.v&&(r.S.i=r.i),r=r.o;for(;void 0!==ix;){var i=ix;for(ix=void 0,iS++;void 0!==i;){var n=i.u;if(i.u=void 0,i.f&=-3,!(8&i.f)&&iR(i))try{i.c()}catch(r){t||(e=r,t=!0)}i=n}}if(iS=0,iE--,t)throw e}}var iy=void 0;function iw(e){var t=iy;iy=void 0;try{return e()}finally{iy=t}}var iC,ix=void 0,iE=0,iS=0,ik=0,iO=0,iT=void 0,iL=0;function iM(e){if(void 0!==iy){var t=e.n;if(void 0===t||t.t!==iy)return t={i:0,S:e,p:iy.s,n:void 0,t:iy,e:void 0,x:void 0,r:t},void 0!==iy.s&&(iy.s.n=t),iy.s=t,e.n=t,32&iy.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=iy.s,t.n=void 0,iy.s.n=t,iy.s=t),t}}function iA(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function iN(e,t){return new iA(e,t)}function iR(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function iP(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function iI(e){for(var t=e.s,r=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=r}function iD(e,t){iA.call(this,void 0),this.x=e,this.s=void 0,this.g=iL-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ij(e){var t=e.m;if(e.m=void 0,"function"==typeof t){iE++;var r=iy;iy=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,iH(e),t}finally{iy=r,ig()}}}function iH(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ij(e)}function iV(e){if(iy!==this)throw Error("Out-of-order effect");iI(this),iy=e,this.f&=-2,8&this.f&&iH(this),ig()}function i$(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,iC&&iC.push(this)}function iB(e,t){var r=new i$(e,t);try{r.c()}catch(e){throw r.d(),e}var i=r.d.bind(r);return i[Symbol.dispose]=i,i}iA.prototype.brand=i_,iA.prototype.h=function(){return!0},iA.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:iw(function(){var e;null==(e=t.W)||e.call(t)}))},iA.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,i=e.x;void 0!==r&&(r.x=i,e.e=void 0),void 0!==i&&(i.e=r,e.x=void 0),e===this.t&&(this.t=i,void 0===i&&iw(function(){var e;null==(e=t.Z)||e.call(t)}))}},iA.prototype.subscribe=function(e){var t=this;return iB(function(){var r=t.value,i=iy;iy=void 0;try{e(r)}finally{iy=i}},{name:"sub"})},iA.prototype.valueOf=function(){return this.value},iA.prototype.toString=function(){return this.value+""},iA.prototype.toJSON=function(){return this.value},iA.prototype.peek=function(){var e=iy;iy=void 0;try{return this.value}finally{iy=e}},Object.defineProperty(iA.prototype,"value",{get:function(){var e=iM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(iS>100)throw Error("Cycle detected");0!==iE&&0===iS&&this.l!==iO&&(this.l=iO,iT={S:this,v:this.v,i:this.i,o:iT}),this.v=e,this.i++,iL++,iE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{ig()}}}}),iD.prototype=new iA,iD.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===iL))return!0;if(this.g=iL,this.f|=1,this.i>0&&!iR(this))return this.f&=-2,!0;var e=iy;try{iP(this),iy=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return iy=e,iI(this),this.f&=-2,!0},iD.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}iA.prototype.S.call(this,e)},iD.prototype.U=function(e){if(void 0!==this.t&&(iA.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},iD.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(iD.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=iM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),i$.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},i$.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,ij(this),iP(this),iE++;var e=iy;return iy=this,iV.bind(this,e)},i$.prototype.N=function(){2&this.f||(this.f|=2,this.u=ix,ix=this)},i$.prototype.d=function(){this.f|=8,1&this.f||iH(this)},i$.prototype.dispose=function(){this.d()};var iU,iF,iZ="u">typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,iz=[];function iW(e,t){rp[e]=t.bind(null,rp[e]||function(){})}function iG(e){if(iF){var t=iF;iF=void 0,t()}iF=e&&e.S()}function iq(e){var t,r=this,i=e.data,n=(t=i,is(function(){return iN(t,void 0)},[]));n.value=i;var a=is(function(){for(var e=r.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}var t=new iD(function(){var e=n.value.value;return 0===e?0:!0===e?"":e||""},void 0),i=new iD(function(){var e;return!Array.isArray(t.value)&&(null==(e=t.value)||void 0!==e.constructor)},void 0),a=iB(function(){if(this.N=iX,i.value){var e=t.value;r.__v&&r.__v.__e&&3===r.__v.__e.nodeType&&(r.__v.__e.data=e)}}),o=r.__$u.d;return r.__$u.d=function(){a(),o.call(this)},[i,t]},[]),o=a[0],l=a[1];return o.value?l.peek():l.value}iB(function(){iU=this.N})(),iq.displayName="ReactiveTextNode",Object.defineProperties(iA.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:iq},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}}),iW("__b",function(e,t){if("string"==typeof t.type){var r,i=t.props;for(var n in i)if("children"!==n){var a=i[n];a instanceof iA&&(r||(t.__np=r={}),r[n]=a,i[n]=a.peek())}}e(t)}),iW("__r",function(e,t){if(e(t),t.type!==rI){iG();var r,i,n=t.__c;n&&(n.__$f&=-2,void 0===(i=n.__$u)&&(iB(function(){r=this},{name:"function"==typeof t.type?t.type.displayName||t.type.name:""}),r.c=function(){var e;iZ&&(null==(e=i.y)||e.call(i)),n.__$f|=1,n.setState({})},n.__$u=i=r)),iG(i)}}),iW("__e",function(e,t,r,i){iG(),e(t,r,i)}),iW("diffed",function(e,t){if(iG(),"string"==typeof t.type&&(r=t.__e)){var r,i=t.__np,n=t.props;if(i){var a=r.U;if(a)for(var o in a){var l=a[o];void 0===l||o in i||(l.d(),a[o]=void 0)}else a={},r.U=a;for(var s in i){var u=a[s],d=i[s];void 0===u?(u=function(e,t,r){var i=t in e&&void 0===e.ownerSVGElement,n=iN(r),a=r.peek();return{o:function(e,t){n.value=e,a=e.peek()},d:iB(function(){this.N=iX;var r=n.value.value;a!==r?(a=void 0,i?e[t]=r:null!=r&&(!1!==r||"-"===t[4])?e.setAttribute(t,r):e.removeAttribute(t)):a=void 0})}}(r,s,d),a[s]=u):u.o(d,n)}for(var c in i)n[c]=i[c]}}e(t)}),iW("unmount",function(e,t){if("string"==typeof t.type){var r=t.__e;if(r){var i=r.U;if(i)for(var n in r.U=void 0,i){var a=i[n];a&&a.d()}}t.__np=void 0}else{var o=t.__c;if(o){var l=o.__$u;l&&(o.__$u=void 0,l.d())}}e(t)}),iW("__h",function(e,t,r,i){(i<3||9===i)&&(t.__$f|=2),e(t,r,i)}),rD.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var r=this.__$u,i=r&&void 0!==r.s;for(var n in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var a=2&this.__$f;if(!(i||a||4&this.__$f)||1&this.__$f)return!0}else if(!(i||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if("__source"!==o&&e[o]!==this.props[o])return!0;for(var l in this.props)if(!(l in e))return!0;return!1};var iY=function(e){queueMicrotask(function(){queueMicrotask(e)})};function iK(){!function(e){if(iE>0)return e();iO=++ik,iE++;try{return e()}finally{ig()}}(function(){for(var e;e=iz.shift();)iU.call(e)})}function iX(){1===iz.push(this)&&(rp.requestAnimationFrame||iY)(iK)}var iJ=new WeakMap,iQ=new WeakMap,i1=new WeakMap,i0=new WeakSet,i2=new WeakMap,i5=/^\$/,i3=Object.getOwnPropertyDescriptor,i6=function(e,t){var r=new Proxy(e,t);return i0.add(r),r},i7=function(){throw Error("Don't mutate the signals directly.")},i8=function(e){return function(t,r,i){var n,a=e||"$"===r[0];if(!e&&a&&Array.isArray(t)){if("$"===r)return i1.has(t)||i1.set(t,i6(t,i9)),i1.get(t);a="$length"===r}iJ.has(i)||iJ.set(i,new Map);var o=iJ.get(i),l=a?r.replace(i5,""):r;if(o.has(l)||"function"!=typeof(null==(n=i3(t,l))?void 0:n.get)){var s=Reflect.get(t,l,i);if(a&&"function"==typeof s)return;if("symbol"==typeof l&&ne.has(l))return s;o.has(l)||(nr(s)&&(iQ.has(s)||iQ.set(s,i6(s,i4)),s=iQ.get(s)),o.set(l,iN(s)))}else o.set(l,new iD(function(){return Reflect.get(t,l,i)},void 0));return a?o.get(l):o.get(l).value}},i4={get:i8(!1),set:function(e,t,r,i){if("function"==typeof(null==(n=i3(e,t))?void 0:n.set))return Reflect.set(e,t,r,i);iJ.has(i)||iJ.set(i,new Map);var n,a=iJ.get(i);if("$"===t[0]){r instanceof iA||i7();var o=t.replace(i5,"");return a.set(o,r),Reflect.set(e,o,r.peek(),i)}var l=r;nr(r)&&(iQ.has(r)||iQ.set(r,i6(r,i4)),l=iQ.get(r));var s=!(t in e),u=Reflect.set(e,t,r,i);return a.has(t)?a.get(t).value=l:a.set(t,iN(l)),s&&i2.has(e)&&i2.get(e).value++,Array.isArray(e)&&a.has("length")&&(a.get("length").value=e.length),u},deleteProperty:function(e,t){"$"===t[0]&&i7();var r=iJ.get(iQ.get(e)),i=Reflect.deleteProperty(e,t);return r&&r.has(t)&&(r.get(t).value=void 0),i2.has(e)&&i2.get(e).value++,i},ownKeys:function(e){return i2.has(e)||i2.set(e,iN(0)),i2._=i2.get(e).value,Reflect.ownKeys(e)}},i9={get:i8(!0),set:i7,deleteProperty:i7},ne=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return"symbol"==typeof e})),nt=new Set([Object,Array]),nr=function(e){return"object"==typeof e&&null!==e&&nt.has(e.constructor)&&!i0.has(e)},ni=Object.prototype.hasOwnProperty;let nn=function(e,t){return null!=e&&ni.call(e,t)},na=function(e,t){return null!=e&&t$(e,t,nn)},no=function(e,t,r){return null==e?e:tj(e,t,r)};var nl=class{static replace(e=t4()){let t=ns.get(),r=e.stackSdk||t.stackSdk;if(ns.set("enable",e.enable??r.live_preview?.enable??t.enable),ns.set("ssr",r.live_preview?.ssr??e.ssr??"object"!=typeof e.stackSdk??!0),ns.set("runScriptsOnUpdate",e.runScriptsOnUpdate??r.live_preview?.runScriptsOnUpdate??t.runScriptsOnUpdate),ns.set("stackSdk",e.stackSdk??t.stackSdk),ns.set("cleanCslpOnProduction",e.cleanCslpOnProduction??r.live_preview?.cleanCslpOnProduction??t.cleanCslpOnProduction),ns.set("editButton",{enable:e.editButton?.enable??r.live_preview?.editButton?.enable??t.editButton.enable,exclude:Array.isArray(e.editButton?.exclude)&&e.editButton?.exclude?e.editButton?.exclude:Array.isArray(r.live_preview?.exclude)&&r.live_preview?.exclude?r.live_preview?.exclude:t.editButton.exclude??[],position:e.editButton?.position??r.live_preview?.position??t.editButton.position??"top",includeByQueryParameter:e.editButton?.includeByQueryParameter??r.live_preview?.includeByQueryParameter??t.editButton.includeByQueryParameter??!0}),ns.set("editInVisualBuilderButton",{enable:e.editInVisualBuilderButton?.enable??r.live_preview?.editInVisualBuilderButton?.enable??t.editInVisualBuilderButton.enable,position:e.editInVisualBuilderButton?.position??r.live_preview?.position??t.editInVisualBuilderButton.position??"bottom-right"}),ns.set("overlayPropagation",{enable:e.overlayPropagation?.enable??r.live_preview?.overlayPropagation?.enable??t.overlayPropagation.enable}),ns.set("enableLivePreviewOutsideIframe",e.enableLivePreviewOutsideIframe??t.enableLivePreviewOutsideIframe),(e=>{let t=ns.get(),r=t.clientUrlParams;if(ns.set("clientUrlParams.host",e.host??t.clientUrlParams.host),ns.set("clientUrlParams.protocol",e.protocol??r.protocol),ns.set("clientUrlParams.port",e.port??r.port),void 0!==e.protocol&&void 0===e.port)switch(e.protocol){case"http":ns.set("clientUrlParams.port",80);break;case"https":ns.set("clientUrlParams.port",443)}let i=t.clientUrlParams.host;"string"==typeof i&&i.endsWith("/")&&(i=i.slice(0,-1),ns.set("clientUrlParams.host",i));let n=`${r.protocol}://${t.clientUrlParams.host}:${r.port}`;ns.set("clientUrlParams.url",n)})(e.clientUrlParams??r.live_preview?.clientUrlParams??t.clientUrlParams),e.mode)switch(e.mode){case"preview":ns.set("mode",t7.PREVIEW);break;case"builder":ns.set("mode",t7.BUILDER);break;default:throw TypeError("Live Preview SDK: The mode must be either 'builder' or 'preview'")}ns.set("debug",e.debug??r.live_preview?.debug??t.debug),function(e,t){let r=ns.get();if(ns.set("stackDetails.apiKey",e.stackDetails?.apiKey??r.stackDetails.apiKey),ns.set("stackDetails.environment",e.stackDetails?.environment??t.environment??r.stackDetails.environment),ns.set("stackDetails.branch",e.stackDetails?.branch??t.branch??t.headers?.branch??r.stackDetails.branch),ns.set("stackDetails.locale",e.stackDetails?.locale??r.stackDetails.locale),r.mode>=t7.BUILDER){if(!r.stackDetails.environment)throw Error("Live preview SDK: environment is required");if(!r.stackDetails.apiKey)throw Error("Live preview SDK: api key is required")}}(e,r)}static set(e,t){if(!na(this.config.state,e))throw Error(`Invalid key: ${e}`);no(this.config.state,e,t)}static get(){return this.config.state}static reset(){no(this.config,"state",t9())}};nl.config={state:function(e){if(!nr(e))throw Error("This object can't be observed.");return iQ.has(e)||iQ.set(e,i6(e,i4)),iQ.get(e)}(t9())};var ns=nl;function nu(){!function(e={}){let t=new URLSearchParams(e),r=t.get("live_preview"),i=t.get("content_type_uid"),n=t.get("entry_uid");r&&nl.set("hash",r),i&&nl.set("stackDetails.contentTypeUid",i),n&&nl.set("stackDetails.entryUid",n),nd({hash:r,contentTypeUid:i,entryUid:n})}(new URLSearchParams(window.location.search).toString())}function nd({hash:e,contentTypeUid:t,entryUid:r}){let i=nl.get().stackSdk.live_preview;e&&(i.hash=e,i.live_preview=e),t&&(i.content_type_uid=t),r&&(i.entry_uid=r),nl.set("stackSdk.live_preview",i)}let nc=function(){return h.Date.now()};var nf=/\s/;let np=function(e){for(var t=e.length;t--&&nf.test(e.charAt(t)););return t};var nh=/^\s+/,nv=0/0,nm=/^[-+]0x[0-9a-f]+$/i,nb=/^0b[01]+$/i,n_=/^0o[0-7]+$/i,ng=parseInt;let ny=function(e){if("number"==typeof e)return e;if(tg(e))return nv;if(E(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=E(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,np(t)+1).replace(nh,""):t;var i=nb.test(e);return i||n_.test(e)?ng(e.slice(2),i?2:8):nm.test(e)?nv:+e};var nw=Math.max,nC=Math.min;let nx=function(e,t,r){var i,n,a,o,l,s,u=0,d=!1,c=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var r=i,a=n;return i=n=void 0,u=t,o=e.apply(a,r)}function h(e){var r=e-s,i=e-u;return void 0===s||r>=t||r<0||c&&i>=a}function v(){var e,r,i,n=nc();if(h(n))return m(n);l=setTimeout(v,(e=n-s,r=n-u,i=t-e,c?nC(i,a-r):i))}function m(e){return(l=void 0,f&&i)?p(e):(i=n=void 0,o)}function b(){var e,r=nc(),a=h(r);if(i=arguments,n=this,s=r,a){if(void 0===l)return u=e=s,l=setTimeout(v,t),d?p(e):o;if(c)return clearTimeout(l),l=setTimeout(v,t),p(s)}return void 0===l&&(l=setTimeout(v,t)),o}return t=ny(t)||0,E(r)&&(d=!!r.leading,a=(c="maxWait"in r)?nw(ny(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),b.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=s=n=l=void 0},b.flush=function(){return void 0===l?o:m(nc())},b},nE=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw TypeError("Expected a function");return E(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),nx(e,t,{leading:i,maxWait:t,trailing:n})},nS=function(e){return null==e};var nk=h.isFinite;let nO=function(e){return"number"==typeof e&&nk(e)},nT=function(e,t,r,i){for(var n=e.length,a=r+(i?1:-1);i?a--:++al))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var c=-1,f=!0,p=2&r?new nL:void 0;for(a.set(e,t),a.set(t,e);++c-1?i[n?e[a]:a]:void 0};let n7={data:""},n8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,n4=/\/\*[^]*?\*\/| +/g,n9=/\n+/g,ae=(e,t)=>{let r="",i="",n="";for(let a in e){let o=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+o+";":i+="f"==a[1]?ae(o,a):a+"{"+ae(o,"k"==a[1]?"":t)+"}":"object"==typeof o?i+=ae(o,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ae.p?ae.p(a,o):a+":"+o+";")}return r+(t&&n?t+"{"+n+"}":n)+i},at={},ar=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+ar(e[r]);return t}return e};function ai(e){let t,r,i=this||{},n=e.call?e(i.p):e;return((e,t,r,i,n)=>{var a;let o=ar(e),l=at[o]||(at[o]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(o));if(!at[l]){let t=o!==e?e:(e=>{let t,r,i=[{}];for(;t=n8.exec(e.replace(n4,""));)t[4]?i.shift():t[3]?(r=t[3].replace(n9," ").trim(),i.unshift(i[0][r]=i[0][r]||{})):i[0][t[1]]=t[2].replace(n9," ").trim();return i[0]})(e);at[l]=ae(n?{["@keyframes "+l]:t}:t,r?"":"."+l)}let s=r&&at.g?at.g:null;return r&&(at.g=at[l]),a=at[l],s?t.data=t.data.replace(s,a):-1===t.data.indexOf(a)&&(t.data=i?a+t.data:t.data+a),l})(n.unshift?n.raw?(t=[].slice.call(arguments,1),r=i.p,n.reduce((e,i,n)=>{let a=t[n];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":ae(e,""):!1===e?"":e}return e+i+(null==a?"":a)},"")):n.reduce((e,t)=>Object.assign(e,t&&t.call?t(i.p):t),{}):n,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||n7})(i.target),i.g,i.o,i.k)}let an=ai.bind({g:1}),aa=ai.bind({k:1});function ao(){return{"cslp-edit-mode":ai` outline: 1px dashed #6c5ce7 !important; `,"cslp-tooltip":ai` padding: 0; display: flex; outline: none; border: none; z-index: 200 !important; position: fixed; margin: 0; height: 35px; width: 72px; background: white; font-weight: 400 !important; color: #718096 !important; transition: background 0.2s; text-align: center !important; border-radius: 8px !important; font-size: 14px !important; justify-content: space-around; align-items: center; box-shadow: 0px 8px 20px 0px #2222221a; box-sizing: border-box; top: -100%; & div { display: flex; justify-content: space-around; border-radius: 6px !important; cursor: pointer; } & div.cslp-tooltip-child:hover { background: #edf2f7; } & div.cslp-tooltip-child:active:hover { background: #c7d0e1; } & > div { display: flex; justify-content: space-evenly; white-space: nowrap; width: 70px; } & .cslp-tooltip-child.singular { padding: 9px 1px; } `,multiple:ai` & div.cslp-tooltip-child { padding: 9px; } & div.cslp-tooltip-child:before { opacity: 0; font-size: 12px; font-weight: 400; pointer-events: none; content: attr(data-title); color: white; padding: 5px 10px; border-radius: 4px; position: absolute; background: #4a5568; top: -30px; transition: 0.2s all ease-in-out; } & div.cslp-tooltip-child:hover:before { opacity: 1; } `}}function al(e){return!(e.length<3)&&e[0].length>0&&e[1].length>0&&e[2].length>0}function as(e){if(!e)return!1;if(e.startsWith("v2:")){let t=e.substring(3).split(".");if(!al(t))return!1;let r=t[1].split("_");return r.length>=2&&r.every(e=>e.length>0)}return al(e.split("."))}function au(e){var t;let r,i,n,a,[o,l]=e.split(":");o.length>2&&(l=o,o="v1");let[s,u,d,...c]=l.split(".");if("v2"===o){let[e,t]=u.split("_");n=e,a=t}else n=u;let f=c.join("."),p=c.filter(e=>{let t=nS(e),r=nO(+e);return!t&&!r}),h=(r=function(e,t,r,i){let n=n3(i,e=>nO(+e));if(-1===n)return null;let a=i.slice(0,n);return{parentPath:a.join("."),parentCslpValue:[e,t,r,...a].join(".")}}(s,n,d,t=c),{parentDetails:r,index:nS(i=n6(t,e=>nO(+e)))?-1:+i});return nO(+c[c.length-1])&&c.pop(),{entry_uid:n,content_type_uid:s,variant:a,locale:d,cslpValue:e,fieldPath:p.join("."),fieldPathWithIndex:c.join("."),multipleFieldMetadata:h,instance:{fieldPathWithIndex:f}}}function ad(e,t,r,i){r.highlightedElement&&r.highlightedElement.classList.remove(ao()["cslp-edit-mode"]),e.classList.add(ao()["cslp-edit-mode"]),r.highlightedElement=e,ns.set("elements",r),i?.({cslpTag:t,highlightedElement:e})}var ac=Object.create,af=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,ah=Object.getOwnPropertyNames,av=Object.getPrototypeOf,am=Object.prototype.hasOwnProperty,ab=(e,t,r)=>(r=null!=e?ac(av(e)):{},((e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of ah(t))am.call(e,n)||n===r||af(e,n,{get:()=>t[n],enumerable:!(i=ap(t,n))||i.enumerable});return e})(!t&&e&&e.__esModule?r:af(r,"default",{value:e,enumerable:!0}),e)),a_=(r={"node_modules/@contentstack/advanced-post-message/dist/index.js"(t,r){var i;let n;i=()=>{var e,t;return e={706(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;var i=r(450),n=r(666),a=r(628),o=r(399);t.Config=function(){function e(){this.config=(0,n.getDefaultConfig)()}return e.prototype.replace=function(e){!function(e,t){if(t.debug=null!=(r=e.debug)?r:t.debug,""===e.channelId)throw Error((0,a.getErrorMessage)(i.ERROR_MESSAGES.common.channelIdRequired));t.channelId=null!=(n=e.channelId)?n:t.channelId,t.suppressErrors=null!=(l=e.suppressErrors)?l:t.suppressErrors,t.targetOrigin=null!=(s=e.targetOrigin)?s:t.targetOrigin;var r,n,l,s,u=(0,o.getWindow)();e.target?t.targetWindow=e.target:t.targetWindow=u||{postMessage:function(){}}}(e,this.config)},e.prototype.set=function(e,t){this.config[e]=t},e.prototype.get=function(e){return this.config[e]},e.prototype.getAll=function(){return this.config},e.prototype.reset=function(){this.config=(0,n.getDefaultConfig)()},e}()},851(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES=t.ERROR_MESSAGES=void 0,t.ERROR_MESSAGES={common:{windowClosed:"The window closed before the response was received",windowNotFound:"The window was not found.",channelIdRequired:"The channelId is required"},sendEvent:{receiverReturnedError:"The receiver returned an error",eventCancelled:"The event was cancelled",noAckReceived:"The ACK was not received"},receiveEvent:{noRequestListenerFound:function(e){return'No request listener found for event "'.concat(e,'"')},codeReturnedError:"The code returned an error",noResponseListenerFound:function(e){return'No response listener found for hash "'.concat(e,'"')},noAckListenerFound:function(e){return'No ack listener found for hash "'.concat(e,'"')},unknownNature:function(e){return'The nature "'.concat(e,'" is unknown')}},registerEvent:{eventAlreadyRegistered:function(e){return'The event "'.concat(e,'" is already registered')}},unregisterEvent:{eventDoesNotExist:function(e){return'The event "'.concat(e,'" does not exist')}}},t.ERROR_CODES={common:{windowClosed:"WINDOW_CLOSED",windowNotFound:"WINDOW_NOT_FOUND"},sendEvent:{receiverReturnedError:"RECEIVER_RETURNED_ERROR",eventCancelled:"EVENT_CANCELLED",noAckReceived:"NO_ACK_RECEIVED"},receiveEvent:{noRequestListenerFound:"NO_REQUEST_LISTENER_FOUND",codeReturnedError:"CODE_RETURNED_ERROR",noResponseListenerFound:"NO_RESPONSE_LISTENER_FOUND",noAckListenerFound:"NO_ACK_LISTENER_FOUND",unknownNature:"UNKNOWN_NATURE"},registerEvent:{eventAlreadyRegistered:"EVENT_ALREADY_REGISTERED"},unregisterEvent:{eventDoesNotExist:"EVENT_DOES_NOT_EXIST"}}},450(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_MANAGER_NAME=t.ANY_ORIGIN=t.RESPONSE_CYCLE=void 0,t.RESPONSE_CYCLE=500,t.ANY_ORIGIN="*",t.EVENT_MANAGER_NAME="contentstack-adv-post-message",n(r(851),t)},666(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultConfig=void 0;var i=r(450);t.getDefaultConfig=function(){return{targetOrigin:i.ANY_ORIGIN,targetWindow:{postMessage:function(){}},debug:!1,channelId:"",suppressErrors:!1}}},156(e,t,r){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!n||u[1]>n[0]&&u[1]typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).split("-")[0];return e?"".concat(e,"-").concat(t):t}},399(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=void 0,t.getWindow=function(){return"u">typeof window?window:null}},994(e){"u">typeof self&&self,e.exports=function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,(function(t){return e[t]}).bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return({}).hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function i(e){try{if(!e)return!1;if("u">typeof Promise&&e instanceof Promise)return!0;if("u">typeof window&&"function"==typeof window.Window&&e instanceof window.Window||"u">typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(e){}return!1}r.r(t),r.d(t,"ZalgoPromise",function(){return d});var n,a=[],o=[],l=0;function s(){if(!l&&n){var e=n;n=null,e.resolve()}}function u(){l-=1,s()}var d=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,i,n=!1,a=!1,o=!1;l+=1;try{e(function(e){o?t.resolve(e):(n=!0,r=e)},function(e){o?t.reject(e):(a=!0,i=e)})}catch(e){return u(),void this.reject(e)}u(),o=!0,n?this.resolve(r):a&&this.reject(i)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(i(e))throw Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(i(e))throw Error("Can not reject promise with another promise");return e||(e=Error("Expected reject to be called with Error, got "+(e&&"function"==typeof e.toString?e.toString():({}).toString.call(e)))),this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===a.indexOf(e)){a.push(e),setTimeout(function(){throw e},1);for(var r=0;rtypeof window){let e={target:window.parent,debug:!1,suppressErrors:!0};t6()&&(e.target=window.opener),o5=new ag.EventManager("live-preview",e)}var ay=o5,aw="cslp-tooltip";function aC(e,t){let r={upperBoundOfTooltip:0,leftBoundOfTooltip:0},i=e.getBoundingClientRect();try{switch(t){case"top-center":r.upperBoundOfTooltip=i.top-40,r.leftBoundOfTooltip=i.width/2-36+i.left;break;case"top-right":r.upperBoundOfTooltip=i.top-40,r.leftBoundOfTooltip=i.right-72;break;case"right":r.upperBoundOfTooltip=i.top-5,r.leftBoundOfTooltip=i.right+5;break;case"bottom":case"bottom-left":r.upperBoundOfTooltip=i.bottom+5,r.leftBoundOfTooltip=i.left-5;break;case"bottom-center":r.upperBoundOfTooltip=i.bottom+5,r.leftBoundOfTooltip=i.width/2-36+i.left;break;case"bottom-right":r.upperBoundOfTooltip=i.bottom+5,r.leftBoundOfTooltip=i.right-72;break;case"left":r.upperBoundOfTooltip=i.top-5,r.leftBoundOfTooltip=i.left-77;break;default:r.upperBoundOfTooltip=i.top-40,r.leftBoundOfTooltip=i.left-5}return r}catch(e){return tQ.error(e),r}}function ax(){let e=ns.get();if(!e.editButton.enable)return void 0===e.editButton.enable&&tQ.error("enable key is required inside editButton object"),!1;try{let t=new URL(window.location.href).searchParams.get("cslp-buttons");if(null!==t&&!1!==e.editButton.includeByQueryParameter)return"false"!==t}catch(e){tQ.error(e)}let t=t3();return!(!t&&e.editButton.exclude?.find(e=>"outsideLivePreviewPortal"===e)||t&&e.editButton.exclude?.find(e=>"insideLivePreviewPortal"===e))&&(!t||"builder"!==e.windowType)&&!0}var aE=class{constructor(){this.tooltip=null,this.typeOfCurrentChild="singular",this.tooltipChild={singular:null,multiple:null},this.overlayMouseMoveHandler=null,this.createCslpTooltip=this.createCslpTooltip.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.addEditStyleOnHover=this.addEditStyleOnHover.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.generateRedirectUrl=this.generateRedirectUrl.bind(this),this.linkClickHandler=this.linkClickHandler.bind(this),this.destroy=this.destroy.bind(this),this.createCslpTooltip()&&(this.updateTooltipPosition(),window.addEventListener("scroll",this.updateTooltipPosition),window.addEventListener("mouseover",this.addEditStyleOnHover),ns.get().overlayPropagation?.enable&&(this.overlayMouseMoveHandler=nE(this.addEditStyleOnHover,200),window.addEventListener("mousemove",this.overlayMouseMoveHandler)))}createCslpTooltip(){let e=ns.get().editButton;if(!document.getElementById(aw)&&e.enable&&ax()){var t,r,i;let e,n,a,o,l,s=document.createElement("button");return this.tooltip=s,this.tooltip.classList.add(ao()["cslp-tooltip"]),this.tooltip.setAttribute("data-test-id","cs-cslp-tooltip"),this.tooltip.id=aw,window.document.body.insertAdjacentElement("beforeend",this.tooltip),this.tooltipChild.singular=(t=this.scrollHandler,(e=document.createElement("div")).classList.add("cslp-tooltip-child","singular"),e.setAttribute("data-test-id","cslp-singular-edit-button"),e.innerHTML=` Edit`,e.addEventListener("click",t),e),this.tooltipChild.multiple=(r=this.scrollHandler,i=this.linkClickHandler,(n=document.createElement("div")).classList.add("cslp-tooltip-child"),n.setAttribute("data-title","Edit"),n.setAttribute("data-test-id","cslp-multiple-edit-button"),n.innerHTML=` `,n.addEventListener("click",r),(a=document.createElement("div")).classList.add("cslp-tooltip-child"),a.setAttribute("data-title","Go to link"),a.setAttribute("data-test-id","cslp-multiple-external-link-button"),a.innerHTML=` `,a.addEventListener("click",i),(o=document.createDocumentFragment()).appendChild(n),o.appendChild(a),(l=document.createElement("div")).appendChild(o),l.classList.add(ao().multiple),l),this.tooltip.appendChild(this.tooltipChild.singular),!0}return!1}updateTooltipPosition(){document.getElementById("cslp-tooltip")||this.createCslpTooltip();let e=ns.get().editButton,t=ns.get().elements;if(!t.highlightedElement||!this.tooltip)return!1;let r=t.highlightedElement.getBoundingClientRect(),i=this.tooltip.parentElement?.getBoundingClientRect();if(r&&i){let i=function(e,t){if(!e)return{upperBoundOfTooltip:0,leftBoundOfTooltip:0};let r=e.getAttribute("data-cslp-button-position");return r?aC(e,r):aC(e,t||"top")}(t.highlightedElement,e.position),n=i.upperBoundOfTooltip,a=i.leftBoundOfTooltip;return n<0&&(n=r.top<0?r.top:0),this.tooltip.style.top=n+"px",this.tooltip.style.zIndex=t.highlightedElement.style.zIndex||"200",this.tooltip.style.left=a+"px",this.tooltipChild.singular&&this.tooltipChild.multiple&&(t.highlightedElement.hasAttribute("href")&&"multiple"!==this.typeOfCurrentChild?(this.tooltip.innerHTML="",this.tooltip.appendChild(this.tooltipChild.multiple),this.typeOfCurrentChild="multiple"):"singular"!==this.typeOfCurrentChild&&(this.tooltip.innerHTML="",this.tooltip.appendChild(this.tooltipChild.singular),this.typeOfCurrentChild="singular")),!0}return!1}addEditStyleOnHover(e){let t=this.shouldUpdateStyle(e);if(!(void 0===t||t))return;let r=({cslpTag:e,highlightedElement:t})=>{this.updateTooltipPosition()&&(this.tooltip?.setAttribute("current-data-cslp",e),this.tooltip?.setAttribute("current-href",t.getAttribute("href")??""))},i=ns.get().editButton,n=ns.get().windowType;(n===t8.PREVIEW||n===t8.INDEPENDENT)&&i.enable&&function(e,t){let r=ns.get().elements,i=!0;for(let n of e.composedPath()){if("BODY"===n.nodeName)break;if("function"!=typeof n?.getAttribute)continue;let e=n.getAttribute("data-cslp");i&&as(e)?(ad(n,e,r,t),i=!1):i||n.classList.remove(ao()["cslp-edit-mode"])}if(i&&ns.get().overlayPropagation?.enable)for(let i of document.elementsFromPoint(e.clientX,e.clientY)){if("BODY"===i.nodeName)break;if("function"!=typeof i?.getAttribute)continue;let e=i.getAttribute("data-cslp");if(as(e)){ad(i,e,r,t);break}}}(e,r)}shouldUpdateStyle(e){return function({event:e,editButtonDomRect:t,editButtonPos:r}){if(!t||!r||!(t.x>0)||!(t.y>0))return;let i=r.includes("top"),n=r.includes("left"),a=r.includes("bottom"),o=e.composedPath().find(e=>"BODY"!==e.nodeName&&"function"==typeof e?.hasAttribute&&e.hasAttribute("data-cslp"));if(!o)return;let l=o.getBoundingClientRect(),s=i||a?.1*l.width:.1*l.height;s=s>30?30:s;let u=t.x+t.width,d=t.y+t.height,c=t.x-s,f=u+s,p=t.y-s,h=d+s;if(i||a){let r=i?Math.abs(d-e.clientY):Math.abs(t.y-e.clientY);if(e.clientX>c&&e.clientXp&&e.clientY{switch(e.data.type){case"forward":window.history.forward();break;case"backward":window.history.back();break;case"reload":window.history.go();break;default:{let t=e.data.type;throw Error(`Unhandled event: ${t}`)}}})}function ak(){ay?.on("client-data-send",e=>{try{let{ssr:t,onChange:r,stackDetails:i}=ns.get(),n=e.data._metadata?.event_type;if(e.data.hash&&(ns.set("hash",e.data.hash),nd({hash:e.data.hash})),t||n||r(),t6()){if(!window)return void tQ.error("window is not defined");if(t&&!n){let t=new URL(window.location.href),r=t.searchParams.get("live_preview"),n=t.searchParams.get("content_type_uid"),a=t.searchParams.get("entry_uid");r&&n&&a?window.location.reload():(r=e.data.hash,n=e.data.content_type_uid||i.contentTypeUid?.toString()||"",a=e.data.entry_uid||i.entryUid?.toString()||"",t.searchParams.set("live_preview",r),n&&t.searchParams.set("content_type_uid",n),a&&t.searchParams.set("entry_uid",a),window.location.href=t.toString())}if("hash_change"===n){let t=new URL(window.location.href);t.searchParams.set("live_preview",e.data.hash),window.history.pushState({},"",t.toString())}"url_change"===n&&e.data.url&&(window.location.href=e.data.url)}}catch(e){tQ.error("Error handling live preview update:",e);return}})}function aO(e,t){"string"==typeof t?(e[t]||tQ.warn("No subscriber found with the given id."),delete e[t]):"function"==typeof t&&(Object.entries(e).some(([r,i])=>i===t&&(delete e[r],!0))||tQ.warn("No subscriber found with the given callback."))}var aT=class{constructor(){this.subscribers={},this.requestDataSync=this.requestDataSync.bind(this),this.subscribeToOnEntryChange=this.subscribeToOnEntryChange.bind(this),this.publish=this.publish.bind(this),this.unsubscribeOnEntryChange=this.unsubscribeOnEntryChange.bind(this);const e=ns.get();e.debug&&tQ.debug("Contentstack Live Preview Debugging mode: config --",ns.config),e.enable?("interactive"===document.readyState||"complete"===document.readyState?this.requestDataSync():document.addEventListener("DOMContentLoaded",this.requestDataSync),!t0()&&(e.editButton.enable||e.mode>=t7.BUILDER)&&(aE.livePreviewEditButton?.destroy(),aE.livePreviewEditButton=new aE)):e.cleanCslpOnProduction&&document.querySelectorAll("[data-cslp]").forEach(e=>{e.removeAttribute("data-cslp"),e.removeAttribute("data-cslp-button-position")})}requestDataSync(){let e,t,r=ns.get();ns.set("onChange",this.publish),r.onChange(),t={shouldReload:(e=ns.get()).ssr,href:window.location.href,sdkVersion:"4.4.5",mode:e.mode},void 0!==e.enableLivePreviewOutsideIframe&&(t.enableLivePreviewOutsideIframe=e.enableLivePreviewOutsideIframe),ay?.send("init",{config:t}).then(e=>{let{contentTypeUid:t,entryUid:r,windowType:i=t8.PREVIEW}=e||{};(function(){try{return t3()&&window?.name=="visual-editor"}catch(e){return!1}})()||ns?.get()?.windowType&&ns.get().windowType===t8.BUILDER||(t&&r&&(ns.set("stackDetails.contentTypeUid",t),ns.set("stackDetails.entryUid",r),nd({contentTypeUid:t,entryUid:r})),(ns.get().ssr||t0()||t6())&&window.addEventListener("click",e=>{let t=e.target,r=t.closest("a");if(!r||!r.contains(t))return;let i=r.href,n=document.location.origin;i&&i.includes(n)&&!i.includes("live_preview")&&(r.href=function(e){try{let t=new URL(document.location.href),r=new URL(e),i=t.searchParams.get("live_preview"),n=t.searchParams.get("content_type_uid"),a=t.searchParams.get("entry_uid"),o=t.searchParams.get("preview_timestamp");return i&&r.searchParams.set("live_preview",i),n&&a&&(r.searchParams.set("content_type_uid",n),r.searchParams.set("entry_uid",a)),o&&r.searchParams.set("preview_timestamp",o),r.href}catch(t){return tQ.error("Error while adding live preview to URL"),e}}(i)||i)}),ns.set("windowType",i),ns.get().ssr||setInterval(()=>{ay?.send("check-entry-page",{href:window.location.href}).catch(()=>{})},1500),aS(),ak())}).catch(e=>{})}subscribeToOnEntryChange(e,t){return this.subscribers[t]=e,t}publish(){Object.values(this.subscribers).forEach(e=>{e()})}unsubscribeOnEntryChange(e){aO(this.subscribers,e)}},aL=ab(a_(),1);"u">typeof window&&(o3=new aL.EventManager("timeline",{target:window.parent,debug:!1}));var aM=o3,aA=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","video"]),aN="[data-cslp]:not(:has([data-cslp]))",aR="cs-compare",aP=e.i(343794);function aI(){let e=ns.get().pageContext;return{entryUid:e?.entryUid??window.__CS_PAGE_CONTEXT__?.entryUid??document.querySelector('meta[name="contentstack:entry-uid"]')?.getAttribute("content")??void 0,contentTypeUid:e?.contentTypeUid??window.__CS_PAGE_CONTEXT__?.contentTypeUid??document.querySelector('meta[name="contentstack:content-type-uid"]')?.getAttribute("content")??void 0}}function aD(){let{stackDetails:e,clientUrlParams:t}=ns.get(),{branch:r,apiKey:i,environment:n,locale:a}=e,{url:o}=t,l=new URLSearchParams;r&&l.set("branch",r),n&&l.set("environment",n),l.set("target-url",window.location.href);let s=document.querySelector("[data-cslp]"),u=a;if(s){let e=s.getAttribute("data-cslp");if(as(e)){let{locale:t}=au(e);u=t}}u&&l.set("locale",u);let{entryUid:d,contentTypeUid:c}=aI();return d&&l.set("entry_uid",d),c&&l.set("content_type_uid",c),new URL(`/#!/stack/${i}/visual-editor?${l.toString()}`,o)}var aj=` pointer-events: all; svg { pointer-events: none; } &:before { content: attr(data-tooltip); position: absolute; bottom: 20px; margin-bottom: 24px; padding: 12px; border-radius: 4px; width: max-content; max-width: 200px; color: #fff; font-family: Inter, sans-serif; font-size: 0.75rem; font-style: normal; font-weight: 400; line-height: 132%; /* 0.99rem */ letter-spacing: 0.015rem; background: #767676; } &:after { content: ""; position: absolute; bottom: 28px; /* the arrow */ border: 10px solid #000; border-color: #767676 transparent transparent transparent; } `;function aH(){return{"visual-builder__container":ai` --outline-transition: all 0.15s ease-in; font-family: "Inter", sans-serif; `,"visual-builder__cursor":ai` visibility: hidden; height: 0; &.visible { visibility: visible; position: fixed; top: 0; left: 0; z-index: 2147483647 !important; color: #fff; height: auto; padding: 0 10px; display: flex; align-items: center; justify-content: center; pointer-events: none !important; position: fixed !important; cursor: none; } `,"tooltip-container":ai` position: absolute; background-color: #767676; color: white; padding: 12px; border-radius: 4px; font-size: 12px; line-height: 1.4; z-index: 1000; pointer-events: none; max-width: 250px; text-align: center; `,"tooltip-arrow":ai` position: absolute; background: #767676; width: 8px; height: 8px; transform: rotate(45deg); `,"toolbar-tooltip-content":ai` display: flex; flex-direction: column; gap: 4px; `,"toolbar-tooltip-content-item":ai` display: flex; align-items: center; justify-content: start; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; p { margin: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } `,"visual-builder__overlay__wrapper":ai` position: absolute; top: 0; left: 0; width: 100%; height: 100vh; visibility: hidden; z-index: 99999; pointer-events: none; &.visible { visibility: visible; } `,"visual-builder__empty-block-plus-icon":ai` font-size: 22px; font-weight: 300; display: flex; align-items: center; justify-content: center; `,"visual-builder__overlay--outline":ai` position: absolute; outline: 4px solid #715cdd; transition: var(--outline-transition); `,"visual-builder__overlay":ai` background: rgba(0, 0, 0, 0.3); box-sizing: content-box; pointer-events: all; position: absolute; transition: var(--outline-transition); `,"visual-builder__add-button":ai` position: absolute; pointer-events: all; background: #ffffff; color: #475161; border-radius: 4px; border: 1px solid #6c5ce7; height: 32px; min-width: 32px; max-width: 180px; padding: 8px 6px; transform: translate(-50%, -50%); font-weight: 600; color: #6c5ce7; overflow: hidden; z-index: 2147483646 !important; display: grid; grid-template-columns: min-content 0fr; align-content: center; gap: 0; transition: grid-template-columns 0.25s, left 0.15s ease-in, top 0.15s ease-in, gap 0.15s ease-in; &:has(.visual-builder__add-button-label):hover { grid-template-columns: min-content 1fr; gap: 8px; padding: 8px 16px; } svg { fill: #6c5ce7; } &:disabled { border-color: #bbbec3; cursor: not-allowed; } &:disabled svg { fill: #bbbec3; } `,"visual-builder__add-button-label":ai` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; `,"visual-builder__add-button--loading":ai` cursor: wait; /* we have not-allowed on disabled, so we need this */ &:disabled { cursor: wait; } `,"visual-builder__start-editing-btn":ai` z-index: 1000; text-decoration: none; position: fixed; box-shadow: 0px 4px 15px 0px rgba(108, 92, 231, 0.2), 0px 3px 14px 3px rgba(0, 0, 0, 0.12), 0px 8px 10px 1px rgba(0, 0, 0, 0.14); display: inline-flex; padding: 0.5rem 1rem; justify-content: center; align-items: center; gap: 0.5rem; border-radius: 4px; border: 1px solid transparent; background: #6c5ce7; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; &:hover { background-color: #5d50be; } &:focus { outline: none; box-shadow: 0 0 0 2px #ada4f4; } & > span { color: #fff; /* Body/P1 Bold */ font-size: 1rem; font-family: Inter, sans-serif; font-weight: 600; line-height: 150%; letter-spacing: 0.01rem; text-transform: capitalize; } & > svg { color: #fff; font-size: 1rem; font-family: Inter, sans-serif; font-weight: 600; line-height: 150%; letter-spacing: 0.01rem; text-transform: capitalize; } `,"visual-builder__start-editing-btn__bottom-right":ai` bottom: 30px; right: 30px; `,"visual-builder__start-editing-btn__bottom-left":ai` bottom: 30px; left: 30px; `,"visual-builder__start-editing-btn__top-right":ai` top: 30px; right: 30px; `,"visual-builder__start-editing-btn__top-left":ai` top: 30px; left: 30px; `,"visual-builder__cursor-icon":ai` height: 40px; width: 40px; display: flex; align-items: center; justify-content: center; background: #5d50be; border-radius: 50%; position: absolute; top: 0; left: 0; `,"visual-builder__cursor-pointer":ai` position: absolute; top: -8px; left: -8px; `,"visual-builder__cursor-icon--loader":ai` animation: visual-builder__spinner 1s linear infinite; `,"visual-builder__variant-indicator":ai` height: calc(100% - 1px); aspect-ratio: 1; background: white; border-radius: 2px; border-width: 2px; border-style: solid; align-content: center; text-align: center; border-color: #BD59FA; svg { color: #BD59FA; } `,"visual-builder__focused-toolbar":ai` position: absolute; transform: translateY(-100%); z-index: 100000; gap: 8px; width: 0; display: flex; align-items: end; transition: var(--outline-transition); `,"visual-builder__focused-toolbar__field-label-wrapper__current-field":ai` padding: 4px 8px !important; background: #6c5ce7; color: #fff; z-index: 1; border-radius: 2px !important; display: flex; align-items: center; justify-content: space-between; width: fit-content; &:disabled { filter: contrast(0.7); } .visual-builder__focused-toolbar__text { padding-right: 3px; height: 16px; } `,"visual-builder__focused-toolbar__field-label-wrapper__parent-field":ai` pointer-events: none; color: #5d50be; padding: 4px !important; margin-bottom: 3px; display: none; width: fit-content; position: absolute; z-index: 100000; `,"field-label-dropdown-open":ai` .visual-builder__focused-toolbar__field-label-wrapper__parent-field { pointer-events: all; visibility: visible; display: initial; } .visual-builder__button--secondary:hover { background-color: #6c5ce7; color: #f9f8ff; } `,"visual-builder__focused-toolbar__field-label-wrapper":ai` display: flex; flex-direction: column-reverse; position: relative; margin-right: 0.5rem; `,"visual-builder__focused-toolbar__field-label-container":ai` display: flex; height: 1.75rem; align-items: center; `,"visual-builder__button":ai` background-color: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 16px; font-weight: 600; line-height: 100%; padding: 8px 16px; text-align: center; z-index: 2147483647 !important; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; // vertical-align: middle; &:disabled { cursor: not-allowed; svg { fill: #999; path { fill: #999; } } } `,"visual-builder__button--primary":ai` background-color: #6c5ce7; color: #fff; &:hover { background-color: #5d50be; } `,"visual-builder__button--secondary":ai` background-color: #f9f8ff; border: 1px solid #6c5ce7; color: #6c5ce7; `,"visual-builder__button--edit":ai` svg { height: 16px; width: 16px; path { fill: #475161; } } `,"visual-builder__button-loader":ai` svg.loader { height: 16px; width: 16px; path { fill: #ffffff; } } `,"visual-builder__button--comment-loader":ai` cursor: wait !important; svg.loader { height: 16px; width: 16px; path { fill: #475161; } } `,"visual-builder__field-icon":ai` svg { height: 16px; width: 16px; margin-right: 3px; } `,"visual-builder__content-type-icon":ai` svg { height: 16px; width: 16px; margin-right: 3px; } `,"visual-builder__caret-right-icon":ai` svg { height: 16px; width: 16px; } `,"visual-builder__reference-icon-container":ai` display: flex; align-items: center; .visual-builder__field-icon { svg { margin-right: 0px; } } `,"visual-builder__focused-toolbar__button-group":ai` display: flex; background: #fff; border-radius: 2px; height: 100%; padding: 4px !important; z-index: 2147483647 !important; &:has(.visual-builder__button) { padding: 2px; gap: 8px; } .visual-builder__button:enabled:hover { background-color: #f5f5f5; svg { color: #5d50be; } } .visual-builder__button { background-color: #fff; border-color: transparent; color: #475161; padding: 4px; min-width: 32px; min-height: 32px; } `,"visual-builder__focused-toolbar__text":ai` font-family: Inter, "sans-serif"; font-size: 0.75rem; font-style: normal; font-weight: 400; line-height: 150%; letter-spacing: 0.015rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; `,"visual-builder__focused-toolbar__multiple-field-toolbar":ai` height: 40px; z-index: 2147483647 !important; svg { height: 100%; width: 100%; } `,"visual-builder__rotate--90":ai` transform: rotate(90deg); `,"visual-builder__focused-toolbar--field-disabled":ai` pointer-events: none; cursor: not-allowed; .visual-builder__focused-toolbar__field-label-wrapper__current-field { background: #909090; } `,"visual-builder__focused-toolbar--variant":ai` .visual-builder__focused-toolbar__field-label-wrapper__current-field { background: #BD59FA; } `,"visual-builder__cursor-disabled":ai` .visual-builder__cursor-icon { background: #909090; } .visual-builder__cursor-pointer path { fill: #909090; } `,"visual-builder__tooltip":ai` ${aj} &:before { display: none; } &:hover:before, &:hover:after { display: block; z-index: 2147483647 !important; } &:after { display: none; } `,"visual-builder__tooltip--bottom":ai` &:before { bottom: -66px; } &:after { bottom: -6px; transform: rotate(180deg); } `,"visual-builder__tooltip--persistent":ai` ${aj} &:before { display: block; } &:after { display: block; } &:has(.visual-builder__custom-tooltip):before, &:has(.visual-builder__custom-tooltip):after { display: none; } `,"visual-builder__tooltip--persistent--below":ai` &:before { bottom: -66px; margin-bottom: 0; margin-top: 0; top: auto; } &:after { bottom: -13px; margin-top: 0; top: auto; transform: rotate(180deg); } `,"visual-builder__custom-tooltip":ai` position: absolute; bottom: 20px; margin-bottom: 24px; padding: 12px; border-radius: 4px; width: max-content; max-width: 200px; color: #fff; font-family: Inter; font-size: 0.75rem; font-style: normal; font-weight: 400; line-height: 132%; /* 0.99rem */ letter-spacing: 0.015rem; background: #767676; &:after { content: ""; position: absolute; bottom: -10px; left: 10px; border: 10px solid #000; border-color: #767676 transparent transparent transparent; } `,"visual-builder__custom-tooltip--below":ai` bottom: auto; top: 100%; margin-bottom: 0; margin-top: 8px; &:after { content: none; } `,"visual-builder__custom-tooltip--workflow-access":ai` max-width: 325px; `,"visual-builder__empty-block":ai` width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; min-height: 100px; `,"visual-builder__empty-block-title":ai` font-size: 0.95rem; font-family: Inter, sans-serif; font-weight: 400; line-height: 100%; color: #647696; `,"visual-builder__empty-block-field-name":ai` font-weight: 700; `,"visual-builder__empty-block-add-button":ai` height: 32px; border-radius: 4px; background: #f9f8ff; border-color: #6c5ce7; border-width: 1px; padding: 0 16px; font-size: 0.9rem; font-family: Inter, sans-serif; font-weight: 600; color: #6c5ce7; letter-spacing: 0.01rem; display: inline-flex; align-items: center; justify-content: center; `,"visual-builder__hover-outline":ai` position: absolute; outline: 2px dashed #6c5ce7; transition: var(--outline-transition); z-index: 2147483646 !important; `,"visual-builder__hover-outline--hidden":ai` visibility: hidden; `,"visual-builder__hover-outline--unclickable":ai` pointer-events: none; `,"visual-builder__hover-outline--disabled":ai` outline: 2px dashed #909090; `,"visual-builder__hover-outline--variant":ai` outline: 2px dashed #BD59FA; `,"visual-builder__default-cursor--disabled":ai` cursor: none; /* links/buttons carry their own cursor:pointer — suppress it too while the custom cursor is active. Scoped to this body class so it auto-reverts when the class is removed */ & a, & button { cursor: none !important; } `,"visual-builder__draft-field":ai` outline: 2px dashed #eb5646; `,"visual-builder__variant-field":ai``,"visual-builder__variant-field-outline":ai` outline: 2px solid #bd59fa; outline-offset: -2px; `,"visual-builder__pseudo-editable-element":ai` z-index: 99999 !important; `,"visual-builder__button-error":ai` background-color: #ffeeeb; padding: 0px !important; &:hover { background-color: #ffeeeb; } `,"visual-builder__focused-toolbar__error":ai` display: flex; justify-content: center; align-items: center; column-gap: 3px; padding: 4px 8px; `,"visual-builder__focused-toolbar__error-text":ai` font-weight: 400; font-size: 12px; line-height: 18px; color: #a31b00; `,"visual-builder__focused-toolbar__error-toolip":ai` position: absolute; width: 400px; background-color: red; left: 0; top: -7px; transform: translateY(-100%); background-color: #767676; border-radius: 4px; box-shadow: 0px 1px 10px 0px #6c5ce733, 0px 5px 5px 0px #0000001f, 0px 2px 4px 0px #00000024; padding: 12px; text-align: left; &:before { content: ""; position: absolute; bottom: -3px; left: 4%; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background-color: #767676; } > p { margin: 0; color: #ffffff; font-size: 14px; font-weight: 600; line-height: 21px; margin-bottom: 4px; } > span { color: #ffffff; font-size: 12px; font-weight: 400; line-height: 18px; } `,"variant-field-revert-component":ai` position: relative; display: inline-block; z-index: 2147483647 !important; `,"variant-field-revert-component__dropdown-content":ai` position: absolute; top: -12px; left: -4px; background-color: #ffffff; min-width: max-content; box-shadow: 0 4px 15px 0 rgba(108, 92, 231, 0.2), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 8px 10px 1px rgba(0, 0, 0, 0.14); z-index: 2147483647 !important; margin-top: 4px; padding: 4px 0px; border-radius: 2px; `,"variant-field-revert-component__dropdown-content__list-item":ai` color: black; font-weight: 400; padding: 9.6px 16px; text-decoration: none; display: block; font-size: 0.75rem; height: 32px; line-height: 2rem; display: flex; align-items: center; z-index: 2147483647 !important; cursor: pointer; &:hover { background-color: #f1f1f1; } &:hover > span { color: #5d50be; } & > span { margin-top: 4px; margin-bottom: 4px; } `,"visual-builder__field-toolbar-container":ai` display: flex; flex-direction: column-reverse; z-index: 2147483647 !important; position: relative; `,"visual-builder__custom-field-instance-message":ai` display: flex; align-items: center; height: 40px; padding: 0 12px; background: #fff; border-radius: 4px; box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15); font-size: 12px; color: #475161; white-space: nowrap; `,"visual-builder__variant-button":ai` display: flex; min-width: 3rem !important; gap: 0.25rem; align-items: center; justify-content: center; display: flex; & svg path { fill: #475161; } `,"visual-builder__field-location-icons-container":ai` display: flex; gap: 0.25rem; align-items: center; justify-content: center; margin-left: 0.25rem; `,"visual-builder__field-location-icons-container__divider":ai` height: 32px !important; width: 1px; border-radius: 2px; background-color: #8a8f99; `,"visual-builder__field-location-icons-container__app-icon":ai` width: 24px; height: 24px; object-fit: cover; `,"visual-builder__field-location-app-list":ai` position: absolute; top: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); z-index: 1000; min-width: 230px; max-height: 250px; min-height: 250px; overflow-y: auto; display: flex; flex-direction: column; `,"visual-builder__field-location-app-list--left":ai` right: 100%; margin-right: 8px; `,"visual-builder__field-location-app-list--right":ai` left: 100%; margin-left: 8px; `,"visual-builder__field-location-app-list__search-container":ai` display: flex; align-items: center; padding: 10px 16px 0px 16px; border: none; border-bottom: 1px solid #f0f0f0; `,"visual-builder__field-location-app-list__search-input":ai` width: 100%; padding: 10px 12px; font-size: 14px; outline: none; box-sizing: border-box; border: none; `,"visual-builder__field-location-app-list__search-icon":ai` width: 14px; height: 14px; `,"visual-builder__field-location-app-list__content":ai` flex: 1; overflow-y: auto; `,"visual-builder__field-location-app-list__no-results":ai` display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; text-align: center; `,"visual-builder__field-location-app-list__no-results-text":ai` color: #373b40; font-weight: 400; `,"visual-builder__field-location-app-list__item":ai` display: flex; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; `,"visual-builder__field-location-app-list__item-icon-container":ai` width: 24px; height: 24px; margin-right: 12px; display: flex; align-items: center; justify-content: center; `,"visual-builder__field-location-app-list__item-icon":ai` width: 24px; height: 24px; border-radius: 50%; object-fit: cover; `,"visual-builder__field-location-app-list__item-title":ai` color: #373b40; font-weight: 400; `}}var aV=` @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); [data-cslp] [contenteditable="true"] { outline: none; } @keyframes visual-builder__spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } `,a$=0;function aB(e,t,r,i,n,a){t||(t={});var o,l,s=t;if("ref"in s)for(l in s={},t)"ref"==l?o=t[l]:s[l]=t[l];var u={type:e,props:s,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--a$,__i:-1,__u:0,__source:n,__self:a};if("function"==typeof e&&(o=e.defaultProps))for(l in o)void 0===s[l]&&(s[l]=o[l]);return rp.vnode&&rp.vnode(u),u}var aU=({disabled:e=!1})=>({opacity:e?.5:1,cursor:e?"not-allowed":"pointer"});function aF({open:e=!1}){return aB("svg",{"data-testid":"visual-builder__caret-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:e?"rotate(180deg)":"rotate(0deg)"},children:aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.73483 5.73483C2.88128 5.58839 3.11872 5.58839 3.26517 5.73483L8 10.4697L12.7348 5.73483C12.8813 5.58839 13.1187 5.58839 13.2652 5.73483C13.4116 5.88128 13.4116 6.11872 13.2652 6.26517L8.26516 11.2652C8.11872 11.4116 7.88128 11.4116 7.73484 11.2652L2.73483 6.26517C2.58839 6.11872 2.58839 5.88128 2.73483 5.73483Z",fill:"white"})})}function aZ(){return aB("svg",{"data-testid":"visual-builder__delete-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{d:"M6.5 6.125C6.70711 6.125 6.875 6.29289 6.875 6.5V10.5C6.875 10.7071 6.70711 10.875 6.5 10.875C6.29289 10.875 6.125 10.7071 6.125 10.5V6.5C6.125 6.29289 6.29289 6.125 6.5 6.125Z",fill:"currentColor"}),aB("path",{d:"M9.875 6.5C9.875 6.29289 9.70711 6.125 9.5 6.125C9.29289 6.125 9.125 6.29289 9.125 6.5V10.5C9.125 10.7071 9.29289 10.875 9.5 10.875C9.70711 10.875 9.875 10.7071 9.875 10.5V6.5Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.5 1.125C6.13533 1.125 5.78559 1.26987 5.52773 1.52773C5.26987 1.78559 5.125 2.13533 5.125 2.5V3.125H2.5C2.29289 3.125 2.125 3.29289 2.125 3.5C2.125 3.70711 2.29289 3.875 2.5 3.875H3.125V13C3.125 13.2321 3.21719 13.4546 3.38128 13.6187C3.54538 13.7828 3.76794 13.875 4 13.875H12C12.2321 13.875 12.4546 13.7828 12.6187 13.6187C12.7828 13.4546 12.875 13.2321 12.875 13V3.875H13.5C13.7071 3.875 13.875 3.70711 13.875 3.5C13.875 3.29289 13.7071 3.125 13.5 3.125H10.875V2.5C10.875 2.13533 10.7301 1.78559 10.4723 1.52773C10.2144 1.26987 9.86467 1.125 9.5 1.125H6.5ZM10.125 3.125V2.5C10.125 2.33424 10.0592 2.17527 9.94194 2.05806C9.82473 1.94085 9.66576 1.875 9.5 1.875H6.5C6.33424 1.875 6.17527 1.94085 6.05806 2.05806C5.94085 2.17527 5.875 2.33424 5.875 2.5V3.125H10.125ZM3.875 3.875V13C3.875 13.0332 3.88817 13.0649 3.91161 13.0884C3.93505 13.1118 3.96685 13.125 4 13.125H12C12.0332 13.125 12.0649 13.1118 12.0884 13.0884C12.1118 13.0649 12.125 13.0332 12.125 13V3.875H3.875Z",fill:"currentColor"})]})}function az(){return aB("svg",{width:"17",height:"21",viewBox:"0 0 17 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.75223 0.900517C5.05206 0.712906 4.33237 1.12842 4.14475 1.82859L3.44577 4.43724H1.75C1.02513 4.43724 0.4375 5.02486 0.4375 5.74974V19.2497C0.4375 19.9746 1.02513 20.5622 1.75 20.5622H12.25C12.9749 20.5622 13.5625 19.9746 13.5625 19.2497V17.3922L16.8225 5.22559C17.0101 4.52542 16.5946 3.80573 15.8945 3.61812L5.75223 0.900517ZM13.5625 13.0455L15.7359 4.93442C15.7627 4.8344 15.7033 4.73158 15.6033 4.70478L5.46106 1.98718C5.36104 1.96038 5.25822 2.01974 5.23142 2.11977L4.61046 4.43724H12.25C12.9749 4.43724 13.5625 5.02486 13.5625 5.74974V13.0455ZM1.5625 5.74974C1.5625 5.64618 1.64645 5.56224 1.75 5.56224H12.25C12.3536 5.56224 12.4375 5.64618 12.4375 5.74974V19.2497C12.4375 19.3533 12.3536 19.4372 12.25 19.4372H1.75C1.64645 19.4372 1.5625 19.3533 1.5625 19.2497V5.74974Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 8.74974C3.4375 8.43908 3.68934 8.18724 4 8.18724H10C10.3107 8.18724 10.5625 8.43908 10.5625 8.74974C10.5625 9.0604 10.3107 9.31224 10 9.31224H4C3.68934 9.31224 3.4375 9.0604 3.4375 8.74974Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 11.7497C3.4375 11.4391 3.68934 11.1872 4 11.1872H10C10.3107 11.1872 10.5625 11.4391 10.5625 11.7497C10.5625 12.0604 10.3107 12.3122 10 12.3122H4C3.68934 12.3122 3.4375 12.0604 3.4375 11.7497Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 14.7497C3.4375 14.4391 3.68934 14.1872 4 14.1872H10C10.3107 14.1872 10.5625 14.4391 10.5625 14.7497C10.5625 15.0604 10.3107 15.3122 10 15.3122H4C3.68934 15.3122 3.4375 15.0604 3.4375 14.7497Z",fill:"currentColor"})]})}function aW(e){return aB("svg",{"data-testid":"visual-builder__move-left-icon",className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:aU(e),children:[aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.125 8C2.125 7.79289 2.29289 7.625 2.5 7.625H13.5C13.7071 7.625 13.875 7.79289 13.875 8C13.875 8.20711 13.7071 8.375 13.5 8.375H2.5C2.29289 8.375 2.125 8.20711 2.125 8Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26516 3.23483C7.41161 3.38128 7.41161 3.61872 7.26516 3.76517L3.03033 8L7.26516 12.2348C7.41161 12.3813 7.41161 12.6187 7.26516 12.7652C7.11872 12.9116 6.88128 12.9116 6.73484 12.7652L2.23483 8.26516C2.08839 8.11872 2.08839 7.88128 2.23483 7.73484L6.73484 3.23483C6.88128 3.08839 7.11872 3.08839 7.26516 3.23483Z",fill:"currentColor"})]})}function aG(e){return aB("svg",{className:e.className,"data-testid":"visual-builder__move-right-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:aU(e),children:[aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.125 8C2.125 7.79289 2.29289 7.625 2.5 7.625H13.5C13.7071 7.625 13.875 7.79289 13.875 8C13.875 8.20711 13.7071 8.375 13.5 8.375H2.5C2.29289 8.375 2.125 8.20711 2.125 8Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.73484 3.23483C8.88128 3.08839 9.11872 3.08839 9.26516 3.23483L13.7652 7.73484C13.9116 7.88128 13.9116 8.11872 13.7652 8.26516L9.26516 12.7652C9.11872 12.9116 8.88128 12.9116 8.73484 12.7652C8.58839 12.6187 8.58839 12.3813 8.73484 12.2348L12.9697 8L8.73484 3.76517C8.58839 3.61872 8.58839 3.38128 8.73484 3.23483Z",fill:"currentColor"})]})}function aq(){return aB("svg",{"data-testid":"visual-builder__info-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{d:"M8 5.5C7.72386 5.5 7.5 5.72386 7.5 6C7.5 6.27614 7.72386 6.5 8 6.5C8.27614 6.5 8.5 6.27614 8.5 6C8.5 5.72386 8.27614 5.5 8 5.5Z",fill:"white"}),aB("path",{d:"M8 10.875C7.79289 10.875 7.625 10.7071 7.625 10.5V7.5C7.625 7.29289 7.79289 7.125 8 7.125C8.20711 7.125 8.375 7.29289 8.375 7.5V10.5C8.375 10.7071 8.20711 10.875 8 10.875Z",fill:"white"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM13.25 8C13.25 10.8995 10.8995 13.25 8 13.25C5.10051 13.25 2.75 10.8995 2.75 8C2.75 5.10051 5.10051 2.75 8 2.75C10.8995 2.75 13.25 5.10051 13.25 8Z",fill:"white"})]})}function aY(){return aB("svg",{"data-testid":"visual-builder__edit-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:aB("g",{id:"Edit",children:aB("path",{id:"Edit_2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.58347 15.3803C3.35617 15.6076 3.22019 15.9104 3.20131 16.2313L3.00244 19.6122C2.95629 20.3967 3.60524 21.0456 4.38975 20.9995L7.7706 20.8006C8.0915 20.7817 8.39431 20.6458 8.62161 20.4185L20.6176 8.4225C21.1301 7.90993 21.1301 7.07891 20.6176 6.56634L17.4356 3.38436C16.923 2.8718 16.092 2.8718 15.5794 3.38436L3.58347 15.3803ZM4.32437 16.2974C4.32707 16.2515 4.3465 16.2083 4.37897 16.1758L14.2003 6.35446L17.4954 9.64949C17.5492 9.70337 17.6113 9.74403 17.6776 9.77148L7.82611 19.623C7.79364 19.6554 7.75038 19.6749 7.70454 19.6776L4.32369 19.8764C4.21161 19.883 4.11891 19.7903 4.1255 19.6782L4.32437 16.2974ZM18.4128 9.03624L19.8221 7.627C19.8953 7.55378 19.8953 7.43506 19.8221 7.36184L16.6401 4.17986C16.5669 4.10663 16.4481 4.10663 16.3749 4.17986L14.9958 5.55897L18.2908 8.854C18.3447 8.90788 18.3854 8.96996 18.4128 9.03624Z",fill:"currentColor"})})})}function aK(){return aB("svg",{"data-testid":"visual-builder__plus-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:aB("path",{d:"M10.4688 4.375C10.4688 4.11612 10.259 3.90625 10.0001 3.90625C9.74121 3.90625 9.53135 4.11612 9.53135 4.375V9.27307H4.37402C4.11514 9.27307 3.90527 9.48294 3.90527 9.74182C3.90527 10.0007 4.11514 10.2106 4.37402 10.2106H9.53135V15.625C9.53135 15.8839 9.74121 16.0937 10.0001 16.0937C10.259 16.0937 10.4688 15.8839 10.4688 15.625V10.2106H15.6259C15.8847 10.2106 16.0946 10.0007 16.0946 9.74182C16.0946 9.48294 15.8847 9.27307 15.6259 9.27307H10.4688V4.375Z"})})}function aX(){return aB("svg",{width:"18",height:"18",viewBox:"-1 -1 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.88235 1.23529C9.88235 0.942908 10.1194 0.705882 10.4118 0.705882H14.1641C14.8463 0.705882 15.3994 1.25894 15.3994 1.94118V6.47441L17.1363 5.06006C17.363 4.87544 17.6965 4.90958 17.8811 5.1363C18.0657 5.36303 18.0316 5.69649 17.8049 5.88111L15.2042 7.99876C15.0096 8.15728 14.7303 8.15728 14.5357 7.99876L11.9351 5.88111C11.7083 5.69649 11.6742 5.36303 11.8588 5.1363C12.0434 4.90958 12.3769 4.87544 12.6036 5.06006L14.3405 6.47441V1.94118C14.3405 1.84371 14.2615 1.76471 14.1641 1.76471H10.4118C10.1194 1.76471 9.88235 1.52768 9.88235 1.23529Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.11765 16.7647C8.11765 17.0571 7.88062 17.2941 7.58824 17.2941H3.83592C3.15369 17.2941 2.60063 16.7411 2.60063 16.0588V11.5256L0.863711 12.9399C0.636985 13.1246 0.303523 13.0904 0.118903 12.8637C-0.0657165 12.637 -0.0315828 12.3035 0.195144 12.1189L2.79576 10.0012C2.99043 9.84272 3.26966 9.84272 3.46433 10.0012L6.06494 12.1189C6.29167 12.3035 6.3258 12.637 6.14118 12.8637C5.95656 13.0904 5.6231 13.1246 5.39637 12.9399L3.65945 11.5256V16.0588C3.65945 16.1563 3.73846 16.2353 3.83592 16.2353H7.58824C7.88062 16.2353 8.11765 16.4723 8.11765 16.7647Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.11765 1.23529C8.11765 0.55306 7.56459 0 6.88236 0H1.23531C0.553077 0 1.69415e-05 0.55306 1.69415e-05 1.23529V6.88235C1.69415e-05 7.56459 0.553076 8.11765 1.23531 8.11765H6.88236C7.56459 8.11765 8.11765 7.56459 8.11765 6.88235V1.23529ZM6.88236 1.05882C6.97982 1.05882 7.05883 1.13783 7.05883 1.23529V6.88235C7.05883 6.97982 6.97982 7.05882 6.88236 7.05882H1.23531C1.13785 7.05882 1.05884 6.97982 1.05884 6.88235V1.23529C1.05884 1.13783 1.13785 1.05882 1.23531 1.05882H6.88236Z",fill:"currentColor"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 11.1176C18 10.4354 17.4469 9.88235 16.7647 9.88235H11.1176C10.4354 9.88235 9.88235 10.4354 9.88235 11.1176V16.7647C9.88235 17.4469 10.4354 18 11.1176 18H16.7647C17.4469 18 18 17.4469 18 16.7647V11.1176ZM16.7647 10.9412C16.8622 10.9412 16.9412 11.0202 16.9412 11.1176V16.7647C16.9412 16.8622 16.8622 16.9412 16.7647 16.9412H11.1176C11.0202 16.9412 10.9412 16.8622 10.9412 16.7647V11.1176C10.9412 11.0202 11.0202 10.9412 11.1176 10.9412H16.7647Z",fill:"currentColor"})]})}function aJ(){return aB("svg",{className:"collab-icon__svg",width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("g",{className:"collab-icon__svg",filter:"url(#filter0_d_13652_461491)",children:aB("circle",{className:"collab-icon__svg",cx:"25",cy:"21",r:"21",fill:"#777777","fill-opacity":"0.84","shape-rendering":"crispEdges"})}),aB("path",{className:"collab-icon__svg",d:"M21.4375 20C21.4375 19.6893 21.6893 19.4375 22 19.4375H28C28.3107 19.4375 28.5625 19.6893 28.5625 20C28.5625 20.3107 28.3107 20.5625 28 20.5625H22C21.6893 20.5625 21.4375 20.3107 21.4375 20Z",fill:"white"}),aB("path",{className:"collab-icon__svg",d:"M21.4375 23C21.4375 22.6893 21.6893 22.4375 22 22.4375H28C28.3107 22.4375 28.5625 22.6893 28.5625 23C28.5625 23.3107 28.3107 23.5625 28 23.5625H22C21.6893 23.5625 21.4375 23.3107 21.4375 23Z",fill:"white"}),aB("path",{className:"collab-icon__svg","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 16.25C16 15.8358 16.3358 15.5 16.75 15.5H33.25C33.6642 15.5 34 15.8358 34 16.25V27.4423C34 27.8565 33.6642 28.1923 33.25 28.1923H27.9804C27.853 28.1923 27.7343 28.257 27.6652 28.3641L25.9633 31.0042C25.6651 31.4669 24.9866 31.4613 24.696 30.9938L23.1746 28.5464C23.0378 28.3262 22.7969 28.1923 22.5377 28.1923H16.75C16.3358 28.1923 16 27.8565 16 27.4423V16.25ZM17.125 27.0673V16.625H32.875V27.0673H27.9804C27.4707 27.0673 26.9958 27.3262 26.7197 27.7546L25.3387 29.8968L24.1301 27.9524C23.7879 27.402 23.1858 27.0673 22.5377 27.0673H17.125Z",fill:"white"}),aB("circle",{className:"collab-icon__svg",cx:"34",cy:"15",r:"4",fill:"#EB5646"}),aB("circle",{className:"collab-icon__svg",cx:"34",cy:"15",r:"4.5",stroke:"white","stroke-opacity":"0.6"}),aB("defs",{className:"collab-icon__svg",children:aB("filter",{className:"collab-icon__svg",id:"filter0_d_13652_461491",x:"0",y:"0",width:"50",height:"50",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[aB("feFlood",{className:"collab-icon__svg","flood-opacity":"0",result:"BackgroundImageFix"}),aB("feColorMatrix",{className:"collab-icon__svg",in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),aB("feOffset",{className:"collab-icon__svg",dy:"4"}),aB("feGaussianBlur",{className:"collab-icon__svg",stdDeviation:"2"}),aB("feComposite",{className:"collab-icon__svg",in2:"hardAlpha",operator:"out"}),aB("feColorMatrix",{className:"collab-icon__svg",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),aB("feBlend",{className:"collab-icon__svg",mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13652_461491"}),aB("feBlend",{className:"collab-icon__svg",mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13652_461491",result:"shape"})]})})]})}function aQ(){return aB("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{d:"M11.25 12C11.25 11.5858 11.5858 11.25 12 11.25H20C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75H12C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#475161"}),aB("path",{d:"M11.25 16C11.25 15.5858 11.5858 15.25 12 15.25H20C20.4142 15.25 20.75 15.5858 20.75 16C20.75 16.4142 20.4142 16.75 20 16.75H12C11.5858 16.75 11.25 16.4142 11.25 16Z",fill:"#475161"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H27C27.5523 6 28 6.44772 28 7V21.9231C28 22.4754 27.5523 22.9231 27 22.9231H19.9739C19.804 22.9231 19.6457 23.0094 19.5536 23.1522L17.2844 26.6723C16.8868 27.2892 15.9821 27.2818 15.5946 26.6584L13.5662 23.3952C13.3837 23.1016 13.0625 22.9231 12.7169 22.9231H5C4.44771 22.9231 4 22.4754 4 21.9231V7ZM5.5 21.4231V7.5H26.5V21.4231H19.9739C19.2942 21.4231 18.6611 21.7682 18.2929 22.3395L16.4516 25.1958L14.8401 22.6033C14.3839 21.8694 13.581 21.4231 12.7169 21.4231H5.5Z",fill:"#475161"})]})}function a1(){return aB("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{d:"M16 10.25C16.4142 10.25 16.75 10.5858 16.75 11V13.25H19C19.4142 13.25 19.75 13.5858 19.75 14C19.75 14.4142 19.4142 14.75 19 14.75H16.75V17C16.75 17.4142 16.4142 17.75 16 17.75C15.5858 17.75 15.25 17.4142 15.25 17V14.75H13C12.5858 14.75 12.25 14.4142 12.25 14C12.25 13.5858 12.5858 13.25 13 13.25H15.25V11C15.25 10.5858 15.5858 10.25 16 10.25Z",fill:"#475161"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H27C27.5523 6 28 6.44772 28 7V21.9231C28 22.4754 27.5523 22.9231 27 22.9231H19.9739C19.804 22.9231 19.6457 23.0094 19.5536 23.1522L17.2844 26.6723C16.8868 27.2892 15.9821 27.2818 15.5946 26.6584L13.5662 23.3952C13.3837 23.1016 13.0625 22.9231 12.7169 22.9231H5C4.44771 22.9231 4 22.4754 4 21.9231V7ZM5.5 21.4231V7.5H26.5V21.4231H19.9739C19.2942 21.4231 18.6611 21.7682 18.2929 22.3395L16.4516 25.1958L14.8401 22.6033C14.3839 21.8694 13.581 21.4231 12.7169 21.4231H5.5Z",fill:"#475161"})]})}function a0(){return aB("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49999 5.00389C8.71574 5.00389 8.89065 5.1788 8.89065 5.39456V9.04076C8.89065 9.25652 8.71574 9.43142 8.49999 9.43142C8.28423 9.43142 8.10932 9.25652 8.10932 9.04076V5.39456C8.10932 5.1788 8.28423 5.00389 8.49999 5.00389Z",fill:"#A31B00"}),aB("path",{d:"M8.49999 12.0359C8.85958 12.0359 9.15109 11.7443 9.15109 11.3847C9.15109 11.0252 8.85958 10.7336 8.49999 10.7336C8.14039 10.7336 7.84888 11.0252 7.84888 11.3847C7.84888 11.7443 8.14039 12.0359 8.49999 12.0359Z",fill:"#A31B00"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.54062 2.26699C5.71157 2.09604 5.94343 2 6.18519 2L10.8148 2C11.0566 2 11.2884 2.09604 11.4594 2.26699L14.733 5.54062C14.904 5.71157 15 5.94343 15 6.18519L15 10.8148C15 11.0566 14.904 11.2884 14.733 11.4594L11.4594 14.733C11.2884 14.904 11.0566 15 10.8148 15L6.18519 15C5.94343 15 5.71157 14.904 5.54062 14.733L2.26699 11.4594C2.09604 11.2884 2 11.0566 2 10.8148L2 6.18519C2 5.94343 2.09604 5.71157 2.26699 5.54062L5.54062 2.26699ZM6.18519 2.78133C6.15065 2.78133 6.11753 2.79505 6.09311 2.81947L2.81947 6.09311C2.79505 6.11753 2.78133 6.15065 2.78133 6.18519V10.8148C2.78133 10.8493 2.79505 10.8825 2.81947 10.9069L6.09311 14.1805C6.11753 14.205 6.15065 14.2187 6.18519 14.2187H10.8148C10.8493 14.2187 10.8825 14.205 10.9069 14.1805L14.1805 10.9069C14.205 10.8825 14.2187 10.8493 14.2187 10.8148V6.18519C14.2187 6.15065 14.205 6.11753 14.1805 6.09311L10.9069 2.81947C10.8825 2.79505 10.8493 2.78133 10.8148 2.78133L6.18519 2.78133Z",fill:"#A31B00"})]})}function a2(){return aB("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("circle",{cx:"12",cy:"6",r:"2",fill:"#475161"}),aB("circle",{cx:"12",cy:"12",r:"2",fill:"#475161"}),aB("circle",{cx:"12",cy:"18",r:"2",fill:"#475161"})]})}function a5(){return aB("div",{className:(0,aP.default)("visual-builder__content-type-icon",aH()["visual-builder__content-type-icon"]),children:aB("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{d:"M4 22L16 29L28 22",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),aB("path",{d:"M4 16L16 23L28 16",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),aB("path",{d:"M4 10L16 17L28 10L16 3L4 10Z",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})}function a3(){return aB("div",{className:(0,aP.default)("visual-builder__caret-right-icon",aH()["visual-builder__caret-right-icon"]),children:aB("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4697 5.46967C11.7626 5.17678 12.2374 5.17678 12.5303 5.46967L22.5303 15.4697C22.8232 15.7626 22.8232 16.2374 22.5303 16.5303L12.5303 26.5303C12.2374 26.8232 11.7626 26.8232 11.4697 26.5303C11.1768 26.2374 11.1768 25.7626 11.4697 25.4697L20.9393 16L11.4697 6.53033C11.1768 6.23744 11.1768 5.76256 11.4697 5.46967Z",fill:"#fff"})})})}var a6={"bottom-right":aH()["visual-builder__start-editing-btn__bottom-right"],"bottom-left":aH()["visual-builder__start-editing-btn__bottom-left"],"top-left":aH()["visual-builder__start-editing-btn__top-left"],"top-right":aH()["visual-builder__start-editing-btn__top-right"]},a7=function(){let e=ns.get(),t=e.editInVisualBuilderButton.enable,r=e.editInVisualBuilderButton.position||"bottom-right";function i(e){e.target.setAttribute("href",aD().toString())}return t?aB("a",{href:aD().toString(),className:(0,aP.default)("visual-builder__start-editing-btn",aH()["visual-builder__start-editing-btn"],a6[["bottom-left","bottom-right","top-left","top-right"].includes(r)?r:"bottom-right"]),"data-testid":"vcms-start-editing-btn",onMouseEnter:e=>i(e),onFocus:e=>i(e),onClick:e=>i(e),children:[aB(aY,{}),aB("span",{children:"Start Editing"})]}):null},a8=((o0=a8||{}).CUSTOM_FIELD="custom_field",o0.MULTILINE="multiline",o0.HTML_RTE="html_rte",o0.MARKDOWN_RTE="markdown_rte",o0.SELECT="select",o0.URL="url",o0.SINGLELINE="singleline",o0.JSON_RTE="json_rte",o0.MODULAR_BLOCK="modular_block",o0.LINK="link",o0.ISODATE="isodate",o0.BOOLEAN="boolean",o0.BLOCK="block",o0.NUMBER="number",o0.REFERENCE="reference",o0.GROUP="group",o0.EXPERIENCE_CONTAINER="experience_container",o0.FILE="file",o0.GLOBAL_FIELD="global_field",o0.TAXONOMY="taxonomy",o0),a4=/^-?\d*(\.\d*)?([eE][-+]?\d*)?$/,a9="data-cslp-field-type",oe="data-cslp",ot=Object.freeze({SUCCESS:"success",ERROR:"error"});Object.freeze({REVIEW:"Review Stage",FINAL_REVIEW:"Final Review",UNKNOWN:"Unknown"});var or=[a8.SINGLELINE,a8.MULTILINE,a8.NUMBER],oi=[a8.HTML_RTE,a8.MARKDOWN_RTE,a8.JSON_RTE,a8.CUSTOM_FIELD,a8.LINK,a8.ISODATE,a8.URL],on=[a8.REFERENCE,a8.FILE];a8.GLOBAL_FIELD,a8.GROUP,a8.BLOCK;let oa=function(e,t){return nz(e,t)};var oo=ab(a_(),1);"u">typeof window&&(o6=new oo.EventManager("visual-builder",{target:window.parent,debug:!1}));var ol=o6,os=((o2=os||{}).INIT="init",o2.ADD_INSTANCE="add-instance",o2.UPDATE_FIELD="update-field",o2.SYNC_FIELD="sync-field",o2.OPEN_ASSET_MODAL="open-asset-modal",o2.OPEN_REFERENCE_MODAL="open-reference-modal",o2.OPEN_QUICK_FORM="open-quick-form",o2.TOGGLE_FORM="toggle-quick-form",o2.GET_FIELD_SCHEMA="get-field-schema",o2.GET_FIELD_DATA="get-field-data",o2.OPEN_LINK_VARIANT_MODAL="open-link-variant-modal",o2.GET_FIELD_PATH_WITH_UID="get-field-path-with-uid",o2.GET_FIELD_DISPLAY_NAMES="get-field-display-names",o2.MOUSE_CLICK="mouse-click",o2.FOCUS_FIELD="focus-field",o2.OPEN_FIELD_EDIT_MODAL="open-field-edit-modal",o2.DELETE_INSTANCE="delete-instance",o2.MOVE_INSTANCE="move-instance",o2.GET_DISCUSSION_ID="get-discussion-id-for-comment-modal",o2.OPEN_FIELD_COMMENT_MODAL="open-field-comment-modal",o2.COLLAB_CREATE_THREAD="collab-create-thread",o2.COLLAB_CREATE_COMMENT="collab-create-comment",o2.COLLAB_FETCH_COMMENTS="collab-fetch-comments",o2.COLLAB_EDIT_COMMENT="collab-edit-comment",o2.COLLAB_DELETE_COMMENT="collab-delete-comment",o2.COLLAB_RESOLVE_THREAD="collab-resolve-thread",o2.COLLAB_DELETE_THREAD="collab-delete-thread",o2.COLLAB_MISSING_THREADS="collab-missing-threads",o2.FIELD_LOCATION_DATA="field-location-data",o2.FIELD_LOCATION_SELECTED_APP="field-location-selected-app",o2.GET_PERMISSIONS="get-permissions",o2.GET_WORKFLOW_STAGE_DETAILS="get-workflow-stage-details",o2.GET_RESOLVED_VARIANT_PERMISSIONS="get-resolved-variant-permissions",o2.OPEN_REQUEST_EDIT_ACCESS="open-request-edit-access",o2.GET_ALL_ENTRIES_IN_CURRENT_PAGE="get-entries-in-current-page",o2.HIDE_FOCUS_OVERLAY="hide-focus-overlay",o2.SHOW_DRAFT_FIELDS="show-draft-fields",o2.REMOVE_DRAFT_FIELDS="remove-draft-fields",o2.SHOW_VARIANT_FIELDS="show-variant-fields",o2.REMOVE_VARIANT_FIELDS="remove-variant-fields",o2.SET_AUDIENCE_MODE="set-audience-mode",o2.UPDATE_DISCUSSION_ID="update-discussion-id-for-focus-field",o2.SCROLL_TO_FIELD="scroll-to-view-field-by-cslp-value",o2.HIGHLIGHT_ACTIVE_COMMENTS="highlight-active-comments-by-data-cs",o2.REMOVE_HIGHLIGHTED_COMMENTS="remove-highlighted-comments",o2.GET_VARIANT_ID="get-variant-id",o2.GET_LOCALE="get-locale",o2.GET_HIGHLIGHT_VARIANT_FIELDS_STATUS="get-highlight-variant-fields-status",o2.SEND_VARIANT_AND_LOCALE="send-variant-and-locale",o2.GET_CONTENT_TYPE_NAME="get-content-type-name",o2.REFERENCE_MAP="get-reference-map",o2.COLLAB_ENABLE="collab-enable",o2.COLLAB_DATA_UPDATE="collab-data-update",o2.COLLAB_DISABLE="collab-disable",o2.COLLAB_THREADS_REMOVE="collab-threads-remove",o2.COLLAB_THREAD_REOPEN="collab-thread-reopen",o2.COLLAB_THREAD_HIGHLIGHT="collab-thread-highlight",o2.TOGGLE_SCROLL="toggle-scroll",o2.PAGE_CONTEXT="page-context",o2.REQUEST_DISCUSSION_HIGHLIGHTS="request-discussion-highlights",o2),ou=class e{static async fetchFieldSchema(t){return e.fieldSchemaPromise?.[t]||(e.fieldSchemaPromise[t]=ol?.send(os.GET_FIELD_SCHEMA,{contentTypeUid:t})),e.fieldSchemaPromise[t]}static async getFieldSchema(t,r){if(e.hasFieldSchema(t,r))return Promise.resolve(e.fieldSchema[t][r]);let i=await e.fetchFieldSchema(t);return i?.fieldSchemaMap&&(e.fieldSchema[t]=i.fieldSchemaMap),e?.fieldSchema?.[t]?.[r]||null}static hasFieldSchema(t,r){return na(e.fieldSchema,[t,r])}static areFieldSchemaEqual(e,t){return oa(e,t)}static setFieldSchema(t,r){e.fieldSchema[t]=r}static clearContentTypeSchema(t){delete e.fieldSchema[t],delete e.fieldSchemaPromise[t]}static clear(){e.fieldSchema={},e.fieldSchemaPromise={}}};function od(e){return e?.error===!0}async function oc(e,t){let r=await ol?.send(os.GET_FIELD_DATA,{fieldMetadata:e,entryPath:t??""});return od(r)?"":r?.fieldData}function of(e){if(e){if(Object.hasOwnProperty.call(e,"extension_uid"))return a8.CUSTOM_FIELD;switch(e.data_type){case"text":if(e.field_metadata?.multiline)return a8.MULTILINE;if(e.field_metadata?.allow_rich_text)return a8.HTML_RTE;if(e.field_metadata?.markdown)return a8.MARKDOWN_RTE;else if(e.enum)return a8.SELECT;else if("url"===e.uid&&e.field_metadata?._default)return a8.URL;else return a8.SINGLELINE;case"json":if(e.field_metadata?.allow_json_rte)return a8.JSON_RTE;break;case"blocks":return"modular_block";case"link":case"isodate":case"boolean":case"block":case"number":case"reference":case"group":case"experience_container":case"file":case"taxonomy":case"global_field":return a8[e.data_type.toUpperCase()]}return""}}function op(e){let t=e.target,r=t.getAttribute(a9),i=document.querySelector("[data-cs-last-edited]");i!==t&&(i?.removeAttribute("data-cs-last-edited"),t.setAttribute("data-cs-last-edited","true")),"input"===e.type&&or.includes(r)&&(fv.VisualBuilderGlobalState.value.focusFieldReceivedInput||(fv.VisualBuilderGlobalState.value.focusFieldReceivedInput=!0),oh())}ou.fieldSchema={},ou.fieldSchemaPromise={};var oh=nE(()=>{try{let e=document.querySelector(".visual-builder__container");if(!e)return;c2({visualBuilderContainer:e,eventType:os.SYNC_FIELD})}catch(e){console.error("Error in throttledFieldSync",e)}},300);function ov(e){var t,r;let i=e.target.getAttribute(a9);e.composedPath().some(e=>e instanceof Element&&"BUTTON"===e.tagName)&&"Space"===(t=e).code&&t.target&&(t.preventDefault(),function(e){let t=window.getSelection();if(t&&t.rangeCount>0){let e=t.getRangeAt(0),r=document.createTextNode(" ");e.deleteContents(),e.insertNode(r),e.setStartAfter(r),e.setEndAfter(r),t.removeAllRanges(),t.addRange(e)}}(t.target),oh()),i===a8.NUMBER?function(e){let t=e.target;if(e.ctrlKey||e.metaKey||e.altKey||["Backspace","Tab","Enter","End","Home","ArrowLeft","ArrowRight","Delete"].includes(e.code)||e.code.includes("Digit"))return;if(!["-",".","e","E"].includes(e.key))return e.preventDefault();let r={startOffset:window.getSelection()?.getRangeAt(0).startOffset||0,endOffset:window.getSelection()?.getRangeAt(0).endOffset||0},i=(t.textContent||"").split("");i.splice(r.startOffset,r.endOffset-r.startOffset,e.key);let n=i.join("");a4.test(n)||e.preventDefault()}(e):i===a8.SINGLELINE&&"Enter"===(r=e).code&&r.preventDefault()}var om="This field is not editable as it is not linked to the selected variant.",ob="Click here to link a variant",o_="here",og=(e,t,r,i,n)=>{let a,{editableElement:o,fieldMetadata:l}=t,s=ns.get().stackDetails.masterLocale||"en-us",{locale:u,variant:d}=fv.VisualBuilderGlobalState.value,c={updateRestrictDueToRole:!!e?.field_metadata?.updateRestrict,updateRestrictDueToUnlinkVariant:!!e?.field_metadata?.isUnlinkedVariant,canLinkVariant:!!e?.field_metadata?.canLinkVariant,updateRestrictDueToUnlocalizedVariant:!!(d&&l.locale!==u),updateRestrictDueToNonLocalizableFields:!!(e?.non_localizable&&s!==l.locale),updateRestrictDueToResolvedVariantPermissions:!!r&&!r.update,updateRestrictDueToAudienceMode:!1,updateRestrictDueToDisabledVariant:!1};i&&!i.update&&(c.updateRestrictDueToEntryUpdateRestriction=!0),n&&!n.permissions.entry.update&&(c.updateRestrictDueToWorkflowStagePermission=!0),fv.VisualBuilderGlobalState.value.audienceMode&&o.classList.contains("visual-builder__lower-order-variant-field")&&(c.updateRestrictDueToDisabledVariant=!!r&&!!r.error),!fv.VisualBuilderGlobalState.value.audienceMode||o.classList.contains("visual-builder__variant-field")||o.classList.contains("visual-builder__base-field")||(o.classList.contains("visual-builder__disabled-variant-field")?c.updateRestrictDueToDisabledVariant=!0:c.updateRestrictDueToAudienceMode=!0);let f=Object.values(c).some(Boolean),p={};n?.stage?.name!==void 0&&(p.stageName=n.stage.name),void 0!==n&&(p.entryWorkflowStageDetails=n),void 0!==i&&(p.entryPermissions=i);let h=((e,t)=>{if(e.updateRestrictDueToRole)return"You have only read access to this field";if(e.updateRestrictDueToNonLocalizableFields)return"Editing this field is restricted in localized entries";if(e.updateRestrictDueToUnlocalizedVariant)return"This field is not editable as it is not localized";if(e.updateRestrictDueToUnlinkVariant)return e.canLinkVariant?`${om} ${ob} `:`${om} Contact your stack admin or owner to link it.`;if(e.updateRestrictDueToAudienceMode)return"To edit an experience, open the Audience widget and click the Edit icon.";if(e.updateRestrictDueToDisabledVariant)return"This field is not editable as it doesn't match the selected variant";if(e.updateRestrictDueToEntryUpdateRestriction&&e.updateRestrictDueToWorkflowStagePermission)return(({stageName:e})=>`Editing is restricted for your role or by the rules for the '${e}' stage. Contact your admin for edit access.`)({stageName:t?.stageName?t.stageName:"Unknown"});if(e.updateRestrictDueToEntryUpdateRestriction)return"You do not have permission to edit this entry";if(e.updateRestrictDueToWorkflowStagePermission){let r=t?.stageName?t.stageName:"Unknown",i=t?.entryWorkflowStageDetails?.requestEditAccess;if((t?.entryPermissions==null||!0===t.entryPermissions.update)&&!e.updateRestrictDueToEntryUpdateRestriction&&i){if(i.hasPending)return(({stageName:e})=>`You do not have the edit access to this entry on the '${e}' workflow stage. Your request has been sent and is awaiting approval.`)({stageName:r});if(i.canRequest)return(({stageName:e})=>`You do not have the edit access to this entry on the '${e}' workflow stage.`)({stageName:r})}return(({stageName:e})=>`You do not have Edit access to this entry on the '${e}' workflow stage`)({stageName:r})}return e.updateRestrictDueToResolvedVariantPermissions?"This field does not exist in the selected variant":""})(c,p);if(c.updateRestrictDueToWorkflowStagePermission&&!c.updateRestrictDueToEntryUpdateRestriction&&(null==i||!0===i.update)&&n?.requestEditAccess){let e=n.requestEditAccess;e.hasPending?a="pending":e.canRequest&&(a="request")}return void 0!==a?{isDisabled:f,reason:h,workflowRequestUi:a}:{isDisabled:f,reason:h}},oy=function(e){let t=e.fieldSchema,r=e.fieldMetadata,i=e.index,n=e.loading,a=async t=>{n.value=!0;try{await ol?.send(os.ADD_INSTANCE,{fieldMetadata:r,index:i})}catch(e){console.error("Visual Builder: Failed to add instance",e)}n.value=!1,e.onClick(t)},o=(0,aP.default)("visual-builder__add-button",aH()["visual-builder__add-button"],{"visual-builder__add-button--with-label":e.label},{[aH()["visual-builder__add-button--loading"]]:n.value},aH()["visual-builder__tooltip"]),l=t&&"block"!==t.data_type?t.max_instance:void 0,s=!!l&&e.value.length>=l;return aB("button",{className:o,"data-tooltip":"Add section","data-testid":"visual-builder-add-instance-button",disabled:n.value||s,title:l&&s?`Max ${l} instances allowed`:void 0,onClick:e=>{a(e)},children:[aB(aK,{}),e.label?aB("span",{title:e.label,className:(0,aP.default)("visual-builder__add-button-label",aH()["visual-builder__add-button-label"]),children:e.label}):null]})};function ow({value:e,fieldSchema:t,fieldMetadata:r,index:i,loading:n,onClick:a,label:o}){let l=document.createDocumentFragment();return rK(aB(oy,{loading:n,index:i,value:e,label:o,onClick:a,fieldSchema:t,fieldMetadata:r}),l),l.children[0]}function oC(e,t=!1){let r=e.getElementsByClassName("visual-builder__add-button");return t?Array.from(r):r.length<2?null:[r[0],r[1]]}var ox=["vertical","horizontal","none"];function oE(e,t){if(!e)return"none";let r=e.closest(`[data-cslp="${t}"]`);if(!r)return"none";let i=r.getAttribute("data-add-direction"),n=ox.includes(i);if(i&&n)return i;let[a,o,l]=function(e,t){let r=Array.from(e.querySelectorAll(`[data-cslp^="${t+"."}"]`)).filter(e=>e.getAttribute("data-cslp")?.match(/\.\d+$/)!==null),i=r.at(0);if(!i)return[null,null,()=>{}];let n=r.at(1);if(n)return[i,n,()=>{}];let a=document.createElement(i.tagName);return a.setAttribute("class",i.getAttribute("class")??""),a.setAttribute("style","overflow: hidden !important; width: 0 !important; height: 0 !important; padding: 0 !important; border: 0 !important;"),e.appendChild(a),[i,a,function(){e.removeChild(a)}]}(r,t);if(!a)return"none";let s=a.getBoundingClientRect(),u=o.getBoundingClientRect(),d=Math.abs(s.left-u.left),c=Math.abs(s.top-u.top);return l(),d>c?"horizontal":"vertical"}function oS(e){let t=e.target;if(!t)return;let r=t.closest("[data-cslp]");if(r||!ns.get().overlayPropagation.enable||t.closest(".visual-builder__container")||(r=document.elementsFromPoint(e.clientX,e.clientY).find(e=>e.hasAttribute("data-cslp"))??null),!r)return;let i=r.getAttribute("data-cslp");if(!as(i))return;let n=au(i);return{editableElement:r,cslpData:i,fieldMetadata:n}}function ok(e){let t;if(e.startsWith("v2:")){let r=e.split(":")[1],i=r.split(".")[0],n=r.split(".")[1].split("_")[0],a=r.split(".")[2];t=`${i}.${n}.${a}`}else t=e;return t.split(".").slice(0,3).join(".")}function oO(e){let t=[],r=e.closest(`[${oe}]`);for(;r;){let e=r.getAttribute(oe);if(!as(e)){r=r.parentElement?.closest(`[${oe}]`);continue}let i=ok(e);ok(t.at(0)||"").startsWith(i)||t.unshift(e),r=r.parentElement?.closest(`[${oe}]`)}return t.filter(as).map(e=>au(e))}var oT='',oL='',oM={singleline:'',multiline:'',html_rte:'',json_rte:'',markdown_rte:'',select:'',modular_block:oT,block:oT,number:'',boolean:'',isodate:'',file:'',link:oL,url:oL,reference:'',group:'',global_field:'',custom_field:'',experience_container:"",empty:"",loading:``,taxonomy:'',discussion:''};function oA({fieldType:e,customCursor:t,fieldDisabled:r=!1}){let i=e?oM[e]:"";t.getAttribute("data-icon")!==e&&(t.innerHTML=`
${i}
`,t.setAttribute("data-icon",e))}function oN(e,t,r){let i=e.getBoundingClientRect(),n=document.querySelector(".visual-builder__hover-outline");n&&(n.classList.remove(aH()["visual-builder__hover-outline--hidden"]),t?n.classList.add(aH()["visual-builder__hover-outline--disabled"]):(n.classList.remove(aH()["visual-builder__hover-outline--disabled"]),r?n.classList.add(aH()["visual-builder__hover-outline--variant"]):n.classList.remove(aH()["visual-builder__hover-outline--variant"])),n.style.top=`${i.top+window.scrollY}px`,n.style.left=`${i.left}px`,n.style.width=`${i.width}px`,n.style.height=`${i.height}px`)}var oR=aa` 0%, 100% { fill: #edf1f7; } 60% { opacity: 0.4; } `,oP=aa` 0% { opacity: 0.2; transform: scale(0.8, 0.8); } 50% { opacity: 1; transform: scale(1.2, 1.2); } 100% { opacity: 0; transform: scale(1, 1); } `;function oI(){return{"collab-indicator":ai` width: 2.25rem; height: 2.25rem; background-color: gray; border-radius: 50% 50% 50% 0%; border: 2px solid white; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); `,"collab-popup":ai` position: fixed; z-index: 1000; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); border: 1px solid #e5e7eb; overflow: auto; `,"collab-avatar":ai` background-color: #edf1f7; border: 1.5px solid #ffffff; border-radius: 50%; font-family: Inter, sans-serif; font-weight: 600; justify-content: center; position: relative; `,"collab-avatar--single":ai` border: none; font-size: 0.6875rem; height: 2rem; width: 2rem; border-radius: 22.5rem; border: 0.125rem solid #dde3ee; background: #ffffff; position: relative; overflow: hidden; &:hover .collab-avatar__image { filter: grayscale(0); } `,"collab-avatar__image":ai` filter: grayscale(1); transition: filter 300ms ease; border-radius: 50%; height: 0; left: 50%; min-width: 100%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 0; `,"collab-avatar__link":ai` color: #475161; cursor: pointer; height: 100%; justify-content: center; overflow: hidden; text-decoration: none; text-transform: uppercase; transition: background-color 300ms ease, color 300ms ease; width: 100%; font-weight: 600; font-size: 0.75rem; `,"collab-tooltip--wrapper":ai` position: relative; display: inline-block; `,"collab-tooltip":ai` position: fixed; z-index: 2147483647 !important; padding: 8px 12px; font-size: 14px; color: #f7f9fc; background-color: #767676; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); opacity: 0; animation: simpleFade 0.15s ease-in forwards; @keyframes simpleFade { from { opacity: 0; } to { opacity: 1; } } `,"collab-tooltip--top":ai` &::before { content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-width: 5px 5px 0; border-style: solid; border-color: #767676 transparent transparent; } `,"collab-tooltip--bottom":ai` &::before { content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); border-width: 0 5px 5px; border-style: solid; border-color: transparent transparent #767676; } `,"collab-tooltip--left":ai` &::before { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border-width: 5px 0 5px 5px; border-style: solid; border-color: transparent transparent transparent #767676; } `,"collab-tooltip--right":ai` &::before { content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); border-width: 5px 5px 5px 0; border-style: solid; border-color: transparent #767676 transparent transparent; } `,"collab-icon":ai` height: 1.25rem; width: 1.25rem; cursor: pointer; `,"collab-icon-wrapper":ai` padding: 0 0.5rem; `,"collab-button--basestyle":ai` box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; background-color: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-family: Inter, sans-serif; font-size: 1rem; font-weight: 600; line-height: 1; min-height: 2rem; min-width: 2rem; padding: 0.5rem 1rem; position: relative; text-align: center; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; vertical-align: middle; cursor: pointer; opacity: 1; pointer-events: auto; `,"collab-button--disabled":ai` cursor: not-allowed; opacity: 0.4; pointer-events: auto; `,"collab-button--loading":ai` cursor: default; pointer-events: none; `,"collab-button--loader":ai` display: flex; justify-content: center; text-align: center; `,"collab-button--loader--wrapper":ai` left: 50%; position: absolute; top: 50%; -webkit-transform: translateX(-50%) translateY(-50%); -moz-transform: translateX(-50%) translateY(-50%); `,"collab-button--loader--animation":ai` animation: ${oP} 1.5s infinite ease-in-out; border-radius: 0.625rem; display: inline-block; height: 0.3125rem; margin-right: 0.25rem; width: 0.3125rem; &:nth-child(2) { animation-delay: 0.5s; } &:nth-child(3) { animation-delay: 1s; margin-right: 0; } `,"collab-button--visible":ai` visibility: visible; `,"collab-button--hidden":ai` visibility: hidden; `,"collab-button--loading--color":{primary:ai` background-color: #f9f8ff !important; `,secondary:ai` background-color: #6c5ce7 !important; `,tertiary:ai` background-color: #6c5ce7 !important; `,destructive:ai` background-color: #f9f8ff !important; `},"collab-button--type":{primary:ai` background-color: #6c5ce7 !important; color: #ffffff; &:hover { background-color: #5d50be !important; } &:focus { box-shadow: 0px 0px 0px 2px #ada4f4 !important; } &:active { background-color: #3e3871 !important; } `,secondary:ai` background-color: #f9f8ff !important; border: 1px solid #6c5ce7 !important; color: #6c5ce7 !important; &:hover { border-color: #5d50be !important; color: #5d50be !important; } &:focus { box-shadow: 0px 0px 0px 2px #ada4f4 !important; } &:active { border-color: #3e3871 !important; color: #3e3871 !important; } `,tertiary:ai` color: #6c5ce7 !important; &:hover { color: #5d50be !important; } &:focus { box-shadow: 0px 0px 0px 2px #ada4f4 !important; } `,destructive:ai` background-color: #a31b00 !important; color: #ffffff !important; &:hover { background-color: #701300 !important; } &:focus { box-shadow: 0px 0px 0px 2px #ada4f4 !important; } `},"collab-button--size":{large:ai` font-size: 1rem; min-height: 2.5rem; max-height: 2.5rem; `,regular:ai` margin-top: -1px; `,small:ai` font-size: 0.875rem; min-height: 2rem; max-height: 2rem; padding: 0.3125rem 1rem; `},"collab-button--icon-allignment":{left:ai` svg:first-child { float: left; margin-left: 0; margin-right: 0.5rem; } `,right:ai` svg:first-child { float: right; margin-left: 0.5rem; margin-right: 0; } `,both:ai` svg:first-child { float: left; margin-right: 0.5rem; margin-left: 0; } svg:last-child { float: right; margin-left: 0.5rem; margin-right: 0; } `},"collab-button-group":ai` display: flex; & > button { margin-right: 1rem; &:last-child { margin-right: 0; } } `,"collab-skeletonTileSvgClass":ai` & > g rect { animation: ${oR} 1.8s infinite; } `,"collab-thread-body-comment--loader":ai` padding: 0.625rem; `,"collab-thread--wrapper":ai` cursor: default; position: relative; padding: 0 !important; font-family: Inter, sans-serif; color: #475161; width: 20.75rem; `,"collab-thread--container":ai` max-height: 23.125rem; display: flex; flex-direction: column; overflow: hidden; `,"collab-thread-header--wrapper":ai` height: 2.5rem; padding: 0.2rem 0.1rem 0rem 0.625rem; `,"collab-thread-header--container":ai` justify-content: space-between; width: 100%; `,"collab-thread-header--title":ai` font-weight: 600; font-size: 0.875rem; `,"collab-thread-header--resolve":ai` border-radius: 6px !important; `,"collab-thread-header--resolve--icon":ai` width: 1.25rem; height: 1.25rem; margin-right: 0.5rem !important; `,"collab-thread-header--resolve--text":ai` font-size: 0.875rem; `,"collab-thread-footer--wrapper":ai` height: 3.5rem; width: 100%; flex-direction: row-reverse; padding: 0 0.9375rem; flex-shrink: 0; `,"collab-thread-body--wrapper":ai` border: solid #edf1f7; border-width: 0.0625rem 0; flex: 1; overflow: auto; display: flex; flex-direction: column; `,"collab-thread-input-indicator--wrapper":ai` padding: 0 0.5rem; font-weight: 400; font-size: 0.875rem; line-height: 150%; letter-spacing: 0.01em; min-height: 1.3125rem !important; `,"collab-thread-input-indicator--error":ai` width: 100%; margin-right: 0.5rem; color: #d62400; `,"collab-thread-input-indicator--count":ai` color: #475161; `,"collab-thread-comment--user-details":ai` display: flex; align-items: center; justify-content: space-between; width: 100%; `,"collab-thread-comment--user-details__text":ai` padding-left: 0.625rem; flex-grow: 1; min-width: 0; `,"collab-thread-comment--user-name":ai` font-style: normal; font-weight: 600; font-size: 0.75rem; line-height: 150%; letter-spacing: 0.015rem; color: #475161; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; `,"collab-thread-comment--list":ai` max-height: 10.9rem; display: flex; overflow: auto; flex-flow: column-reverse; `,"collab-thread-comment-seperator":ai` width: 100%; height: 1.5rem; stroke-width: 0.0625rem; stroke: #dde3ee; `,"collab-thread-comment--time-details":ai` font-weight: 400; font-size: 0.75rem; line-height: 150%; font-style: Inter; letter-spacing: 0.015rem; color: #6e6b86; `,"collab-thread-comment--message":ai` font-weight: 400; font-size: 1rem; line-height: 1.5rem; color: #475161; word-break: break-all; width: calc(100% - 10px); min-height: 2.25rem; white-space: pre-wrap; b { color: #6c5ce7; font-weight: 400; } `,"collab-thread-comment--wrapper":ai` display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; padding: 0.625rem; `,"collab-thread-comment-action--wrapper":ai` margin-left: auto; display: flex; `,"collab-thread-body--input--wrapper":ai` width: 100%; display: flex; flex-direction: column; gap: 0.25rem; grid-gap: 0.25rem; `,"collab-thread-body--input":ai` position: relative; overflow-y: visible; `,"collab-thread-body--input--textarea--wrapper":ai` width: 100%; transition: height 0.2s ease-in 0s; `,"collab-thread-body--input--textarea":ai` display: block; width: 100%; position: relative; top: 0; left: 0; box-sizing: border-box; background-color: #ffffff; font-family: inherit; font-size: 1rem; letter-spacing: inherit; height: 100%; bottom: 0; overflow: auto; resize: vertical; border-radius: 4px; border: 0.0625rem solid #dde3ee; line-height: 1.375rem; color: #222222; padding: 0.5rem 1rem; max-height: 6.25rem; min-height: 4.125rem; transition: border 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; `,"collab-thread-body--input--textarea--focus":ai` background-color: #ffffff !important; border: 0.0625rem solid #5d50be !important; box-shadow: 0 0 0 0.0625rem #5d50be !important; border-radius: 4px !important; outline: none; `,"collab-thread-body--input--textarea--hover":ai` background-color: #edf1f7; border: 0.0625rem solid #5d50be !important; box-shadow: 0 0 0 0.0625rem #5d50be !important; `,"collab-thread-body--input--textarea--suggestionsList":ai` list-style: none; padding-inline: unset; position: fixed; background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); max-height: 192px; overflow-y: auto; width: 256px; max-height: 160px; z-index: 50; animation: fadeIn 0.2s ease-in-out; @keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } `,"collab-thread-body--input--textarea--suggestionsList--item":ai` width: 100%; padding: 8px 16px; text-align: left; border: none; background: none; cursor: pointer; font-size: 14px; transition: background-color 0.2s; &:hover { background-color: #f3f4f6; color: #5d50be; } `,"collab-thread-body--input--textarea--suggestionsList--item-selected":ai` background-color: #f3f4f6; color: #5d50be; `}}var oD=ai` display: flex; align-items: center; justify-content: center; `,oj=ai` display: flex; align-items: center; `;function oH(e,t){for(var r in t)e[r]=t[r];return e}function oV(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function o$(e,t){this.props=e,this.context=t}(o$.prototype=new rD).isPureReactComponent=!0,o$.prototype.shouldComponentUpdate=function(e,t){return oV(this.props,e)||oV(this.state,t)};var oB=rp.__b;rp.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),oB&&oB(e)};var oU="u">typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,oF=rp.__e;rp.__e=function(e,t,r,i){if(e.then){for(var n,a=t;a=a.__;)if((n=a.__c)&&n.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t)}oF(e,t,r,i)};var oZ=rp.unmount;function oz(){this.__u=0,this.o=null,this.__b=null}function oW(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function oG(){this.i=null,this.l=null}rp.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),oZ&&oZ(e)},(oz.prototype=new rD).__c=function(e,t){var r=t.__c,i=this;null==i.o&&(i.o=[]),i.o.push(r);var n=oW(i.__v),a=!1,o=function(){a||i.__z||(a=!0,r.__R=null,n?n(s):s())};r.__R=o;var l=r.__P;r.__P=null;var s=function(){if(!--i.__u){if(i.state.__a){var e,t=i.state.__a;i.__v.__k[0]=function e(t,r,i){return t&&i&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,r,i)}),t.__c&&t.__c.__P===r&&(t.__e&&i.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=i)),t}(t,t.__c.__P,t.__c.__O)}for(i.setState({__a:i.__b=null});e=i.o.pop();)e.__P=l,e.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(o,o)},oz.prototype.componentWillUnmount=function(){this.o=[]},oz.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,r,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=oH({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=r),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,r,i)})),t}(this.__b,r,i.__O=i.__P)}this.__b=null}var n=t.__a&&rR(rI,null,e.fallback);return n&&(n.__u&=-33),[rR(rI,null,t.__a?null:e.children),n]};var oq=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oK=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oX=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oJ=/[A-Z0-9]/g,oQ="u">typeof document;rD.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(rD.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var o1=rp.event;rp.event=function(e){return o1&&(e=o1(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var o0,o2,o5,o3,o6,o7,o8={configurable:!0,get:function(){return this.class}},o4=rp.vnode;rp.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,i={},n=-1==r.indexOf("-");for(var a in t){var o=t[a];if(!("value"===a&&"defaultValue"in t&&null==o||oQ&&"children"===a&&"noscript"===r||"class"===a||"className"===a)){var l,s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||(l=t.type,("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(l))?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":oX.test(a)&&(a=s):s=a="oninput":n&&oK.test(a)?a=a.replace(oJ,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&i[a=s]&&(a="oninputCapture"),i[a]=o}}"select"==r&&(i.multiple&&Array.isArray(i.value)&&(i.value=rB(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),null!=i.defaultValue&&(i.value=rB(t.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",o8)):t.className&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=oY,o4&&o4(e)};var o9=rp.__r;rp.__r=function(e){o9&&o9(e),o7=e.__c};var le=rp.diffed;rp.diffed=function(e){le&&le(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),o7=null};var lt=rB,lr=function(e,t){function r(e){var r=this.props.ref;return r!=e.ref&&r&&("function"==typeof r?r(null):r.current=null),t?!t(this.props,e)||r!=e.ref:oV(this.props,e)}function i(t){return this.shouldComponentUpdate=r,rR(e,t)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.__f=i.prototype.isReactComponent=!0,i.type=e,i};let li=function(e){return e!=e},ln=function(e,t,r){for(var i=r-1,n=e.length;++i-1},lo=function(e,t,r){for(var i=-1,n=null==e?0:e.length;++i=200){var u=t?null:ll(e);if(u)return nP(u);o=!1,n=nA,s=new nL}else s=t?[]:l;t:for(;++ie.length)&&(t=e.length);for(var r=0,i=Array(t);rtypeof Reflect&&Reflect,ly=lg.apply,lw=lg.construct;lm||(lm=function(e){return e}),lb||(lb=function(e){return e}),ly||(ly=function(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),n=2;n1?t-1:0),i=1;i1?r-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:lT;if(lf&&lf(e,null),!lO(t))return e;let i=t.length;for(;i--;){let n=t[i];if("string"==typeof n){let e=r(n);e!==n&&(lp(t)||(t[i]=e),n=e)}e[n]=!0}return e}function lZ(e){let t=l_(null);for(let i of lc(e)){var r=function(e){if(Array.isArray(e))return e}(i)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n,a,o=[],l=!0,s=!1;try{n=(t=t.call(e)).next,!1;for(;!(l=(r=n.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return o}}(i)||function(e){if(e){if("string"==typeof e)return ld(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ld(e,2):void 0}}(i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let n=r[0],a=r[1];lH(e,n)&&(lO(a)?t[n]=function(e){for(let t=0;t/g),l6=lb(/\${[\w\W]*/g),l7=lb(/^data-[\-\w.\u00B7-\uFFFF]+$/),l8=lb(/^aria-[\-\w]+$/),l4=lb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),l9=lb(/^(?:\w+script|data):/i),se=lb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),st=lb(/^html$/i),sr=lb(/^[a-z][.\w]*(-[.\w]+)+$/i),si=lb(/<[/\w!]/g),sn=lb(/<[/\w]/g),sa=lb(/<\/no(script|embed|frames)/i),so=lb(/\/>/i),sl=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));let n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},ss=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},su=function(e,t,r,i){return lH(e,t)&&lO(e[t])?lF(i.base?lZ(i.base):{},e[t],i.transform):r};var sd=function e(){let t,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"e(t);if(n.version="3.4.12",n.removed=[],!i||!i.document||9!==i.document.nodeType||!i.Element)return n.isSupported=!1,n;let a=i.document,o=a,l=o.currentScript;i.DocumentFragment;let s=i.HTMLTemplateElement,u=i.Node,d=i.Element,c=i.NodeFilter;void 0===i.NamedNodeMap&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let f=i.DOMParser,p=i.trustedTypes,h=d.prototype,v=lz(h,"cloneNode"),m=lz(h,"remove"),b=lz(h,"nextSibling"),_=lz(h,"childNodes"),g=lz(h,"parentNode"),y=lz(h,"shadowRoot"),w=lz(h,"attributes"),C=u&&u.prototype?lz(u.prototype,"nodeType"):null,x=u&&u.prototype?lz(u.prototype,"nodeName"):null;if("function"==typeof s){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let E="",S=!1,k=0,O=function(){if(k>0)throw lB('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},T=function(e){O(),k++;try{return t.createHTML(e)}finally{k--}},L=function(e){O(),k++;try{return t.createScriptURL(e)}finally{k--}},M=a,A=M.implementation,N=M.createNodeIterator,R=M.createDocumentFragment,P=M.getElementsByTagName,I=o.importNode,D=ss();n.isSupported="function"==typeof lc&&"function"==typeof g&&A&&void 0!==A.createHTMLDocument;let j=l4,H=null,V=lF({},[...lW,...lG,...lq,...lK,...lJ]),$=null,B=lF({},[...lQ,...l1,...l0,...l2]),U=Object.seal(l_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),F=null,Z=null,z=Object.seal(l_(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,G=!0,q=!1,Y=!0,K=!1,X=!0,J=!1,Q=!1,ee=null,et=null,er=!1,ei=!1,en=!1,ea=!1,eo=!0,el=!1,es="user-content-",eu=!0,ed=!1,ec={},ef=null,ep=lF({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),eh=null,ev=lF({},["audio","video","img","source","image","track"]),em=null,eb=lF({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e_="http://www.w3.org/1998/Math/MathML",eg="http://www.w3.org/2000/svg",ey="http://www.w3.org/1999/xhtml",ew=ey,eC=!1,ex=null,eE=lF({},[e_,eg,ey],lL),eS=lm(["mi","mo","mn","ms","mtext"]),ek=lF({},eS),eO=lm(["annotation-xml"]),eT=lF({},eO),eL=lF({},["title","style","font","a","script"]),eM=null,eA=["application/xhtml+xml","text/html"],eN=null,eR=null,eP=a.createElement("form"),eI=function(e){return e instanceof RegExp||e instanceof Function},eD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eR&&eR===e)return;e&&"object"==typeof e||(e={}),e=lZ(e),eN="application/xhtml+xml"===(eM=-1===eA.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?lL:lT,H=su(e,"ALLOWED_TAGS",V,{transform:eN}),$=su(e,"ALLOWED_ATTR",B,{transform:eN}),ex=su(e,"ALLOWED_NAMESPACES",eE,{transform:lL}),em=su(e,"ADD_URI_SAFE_ATTR",eb,{transform:eN,base:eb}),eh=su(e,"ADD_DATA_URI_TAGS",ev,{transform:eN,base:ev}),ef=su(e,"FORBID_CONTENTS",ep,{transform:eN}),F=su(e,"FORBID_TAGS",lZ({}),{transform:eN}),Z=su(e,"FORBID_ATTR",lZ({}),{transform:eN}),ec=!!lH(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?lZ(e.USE_PROFILES):e.USE_PROFILES),W=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ei=e.RETURN_DOM||!1,en=e.RETURN_DOM_FRAGMENT||!1,ea=e.RETURN_TRUSTED_TYPE||!1,er=e.FORCE_BODY||!1,eo=!1!==e.SANITIZE_DOM,el=e.SANITIZE_NAMED_PROPS||!1,eu=!1!==e.KEEP_CONTENT,ed=e.IN_PLACE||!1,j=!function(e){try{return l$(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?l4:e.ALLOWED_URI_REGEXP,ew="string"==typeof e.NAMESPACE?e.NAMESPACE:ey,ek=lH(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?lZ(e.MATHML_TEXT_INTEGRATION_POINTS):lF({},eS),eT=lH(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?lZ(e.HTML_INTEGRATION_POINTS):lF({},eO);let i=lH(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?lZ(e.CUSTOM_ELEMENT_HANDLING):l_(null);if(U=l_(null),lH(i,"tagNameCheck")&&eI(i.tagNameCheck)&&(U.tagNameCheck=i.tagNameCheck),lH(i,"attributeNameCheck")&&eI(i.attributeNameCheck)&&(U.attributeNameCheck=i.attributeNameCheck),lH(i,"allowCustomizedBuiltInElements")&&"boolean"==typeof i.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=i.allowCustomizedBuiltInElements),lb(U),K&&(G=!1),en&&(ei=!0),ec&&(H=lF({},lJ),$=l_(null),!0===ec.html&&(lF(H,lW),lF($,lQ)),!0===ec.svg&&(lF(H,lG),lF($,l1),lF($,l2)),!0===ec.svgFilters&&(lF(H,lq),lF($,l1),lF($,l2)),!0===ec.mathMl&&(lF(H,lK),lF($,l0),lF($,l2))),z.tagCheck=null,z.attributeCheck=null,lH(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?z.tagCheck=e.ADD_TAGS:lO(e.ADD_TAGS)&&(H===V&&(H=lZ(H)),lF(H,e.ADD_TAGS,eN))),lH(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?z.attributeCheck=e.ADD_ATTR:lO(e.ADD_ATTR)&&($===B&&($=lZ($)),lF($,e.ADD_ATTR,eN))),lH(e,"ADD_URI_SAFE_ATTR")&&lO(e.ADD_URI_SAFE_ATTR)&&lF(em,e.ADD_URI_SAFE_ATTR,eN),lH(e,"FORBID_CONTENTS")&&lO(e.FORBID_CONTENTS)&&(ef===ep&&(ef=lZ(ef)),lF(ef,e.FORBID_CONTENTS,eN)),lH(e,"ADD_FORBID_CONTENTS")&&lO(e.ADD_FORBID_CONTENTS)&&(ef===ep&&(ef=lZ(ef)),lF(ef,e.ADD_FORBID_CONTENTS,eN)),eu&&(H["#text"]=!0),J&&lF(H,["html","head","body"]),H.table&&(lF(H,["tbody"]),delete F.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw lB('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw lB('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=t;t=e.TRUSTED_TYPES_POLICY;try{E=T("")}catch(e){throw t=r,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,E=""):(void 0===t&&(S||(r=sl(p,l),S=!0),t=r),t&&"string"==typeof E&&(E=T("")));lm&&lm(e),eR=e},ej=lF({},[...lG,...lq,...lY]),eH=lF({},[...lK,...lX]),eV=function(e){var t,r,i;let n=g(e);n&&n.tagName||(n={namespaceURI:ew,tagName:"template"});let a=lT(e.tagName),o=lT(n.tagName);return!!ex[e.namespaceURI]&&(e.namespaceURI===eg?(t=n).namespaceURI===ey?"svg"===a:t.namespaceURI===e_?"svg"===a&&("annotation-xml"===o||ek[o]):!!ej[a]:e.namespaceURI===e_?(r=n).namespaceURI===ey?"math"===a:r.namespaceURI===eg?"math"===a&&eT[o]:!!eH[a]:e.namespaceURI===ey?((i=n).namespaceURI!==eg||!!eT[o])&&(i.namespaceURI!==e_||!!ek[o])&&!eH[a]&&(eL[a]||!ej[a]):"application/xhtml+xml"===eM&&!!ex[e.namespaceURI])},e$=function(e){lS(n.removed,{element:e});try{g(e).removeChild(e)}catch(t){if(m(e),!g(e))throw lB("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eB=function(e){eZ(e);let t=_(e);if(t){let e=[];lC(t,t=>{lS(e,t)}),lC(e,e=>{try{m(e)}catch(e){}})}let r=w(e);if(r)for(let t=r.length-1;t>=0;--t){let i=r[t],n=i&&i.name;if("string"==typeof n)try{e.removeAttribute(n)}catch(e){}}},eU=function(e,t){try{lS(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){lS(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ei||en)try{e$(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},eF=function(e){let t=w(e);if(t)for(let r=t.length-1;r>=0;--r){let i=t[r],n=i&&i.name;if("string"==typeof n&&!$[eN(n)])try{e.removeAttribute(n)}catch(e){}}},eZ=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(C?C(e):e.nodeType)===1&&eF(e);let r=_(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},ez=function(e){if(!X)return;let t=[e];for(;t.length>0;){let e=t.pop(),r=C?C(e):e.nodeType;if(7===r||8===r&&l$(sn,e.data)){try{m(e)}catch(e){}continue}if(1===r){let t=eN(x?x(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let i=_(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}},eW=function(e){let r=null,i=null;if(er)e=""+e;else{let t=lM(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===eM&&ew===ey&&(e=''+e+"");let n=t?T(e):e;if(ew===ey)try{r=new f().parseFromString(n,eM)}catch(e){}if(!r||!r.documentElement){r=A.createDocument(ew,"template",null);try{r.documentElement.innerHTML=eC?E:n}catch(e){}}let o=r.body||r.documentElement;return(e&&i&&o.insertBefore(a.createTextNode(i),o.childNodes[0]||null),ew===ey)?P.call(r,J?"html":"body")[0]:J?r.documentElement:o},eG=function(e){return N.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},eq=function(e){return e=lA(e,l5," "),e=lA(e,l3," "),e=lA(e,l6," ")},eY=function(e){var t;e.normalize();let r=N.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),i=r.nextNode();for(;i;)i.data=eq(i.data),i=r.nextNode();let n=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");n&&lC(n,e=>{eX(e.content)&&eY(e.content)})},eK=function(e){let t=x?x(e):null;return"string"==typeof t&&"form"===eN(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==w(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==C(e)||e.childNodes!==_(e))},eX=function(e){if(!C||"object"!=typeof e||null===e)return!1;try{return 11===C(e)}catch(e){return!1}},eJ=function(e){if(!C||"object"!=typeof e||null===e)return!1;try{return"number"==typeof C(e)}catch(e){return!1}};function eQ(e,t,r){0!==e.length&&lC(e,e=>{e.call(n,t,r,eR)})}let e1=function(e,t){if(!F[t]&&e3(t)&&(U.tagNameCheck instanceof RegExp&&l$(U.tagNameCheck,t)||U.tagNameCheck instanceof Function&&U.tagNameCheck(t)))return!1;if(eu&&!ef[t]){let t=g(e),r=_(e);if(r&&t){let i=r.length;for(let n=i-1;n>=0;--n){let i=ed?r[n]:v(r[n],!0);t.insertBefore(i,b(e))}}}return e$(e),!0},e0=function(e,t){if(eQ(D.beforeSanitizeElements,e,null),e!==t&&null===g(e))return!0;if(eK(e))return e$(e),!0;let r=eN(x?x(e):e.nodeName);if(eQ(D.uponSanitizeElement,e,{tagName:r,allowedTags:H}),e!==t&&null===g(e))return!0;if(X&&e.hasChildNodes()&&!eJ(e.firstElementChild)&&l$(si,e.textContent)&&l$(si,e.innerHTML)||X&&e.namespaceURI===ey&&"style"===r&&eJ(e.firstElementChild)||7===e.nodeType||X&&8===e.nodeType&&l$(sn,e.data))return e$(e),!0;if(F[r]||!(z.tagCheck instanceof Function&&z.tagCheck(r))&&!H[r]){let t=e1(e,r);return!1===t&&eQ(D.afterSanitizeElements,e,null),t}if((C?C(e):e.nodeType)===1&&!eV(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&l$(sa,e.innerHTML))return e$(e),!0;if(K&&3===e.nodeType){let t=eq(e.textContent);e.textContent!==t&&(lS(n.removed,{element:e.cloneNode()}),e.textContent=t)}return eQ(D.afterSanitizeElements,e,null),!1},e2=function(e,t,r){if(Z[t]||X&&"patchsrc"===t||X&&"for"===t&&"label"!==e&&"output"!==e||eo&&("id"===t||"name"===t)&&(r in a||r in eP))return!1;let i=$[t]||z.attributeCheck instanceof Function&&z.attributeCheck(t,e);if(G&&l$(l7,t));else if(W&&l$(l8,t));else if(i){if(em[t]);else if(l$(j,lA(r,se,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===lN(r,"data:")&&eh[e]);else if(q&&!l$(l9,lA(r,se,"")));else if(r)return!1}else if(!(e3(e)&&(U.tagNameCheck instanceof RegExp&&l$(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&l$(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&l$(U.tagNameCheck,r)||U.tagNameCheck instanceof Function&&U.tagNameCheck(r))))return!1;return!0},e5=lF({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e3=function(e){return!e5[lT(e)]&&l$(sr,e)},e6=function(e,r,i,n){if(t&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!i)switch(p.getAttributeType(e,r)){case"TrustedHTML":return T(n);case"TrustedScriptURL":return L(n)}return n},e7=function(e,t,r,i){try{r?e.setAttributeNS(r,t,i):e.setAttribute(t,i),eK(e)?e$(e):lE(n.removed)}catch(r){eU(t,e)}},e8=function(e){eQ(D.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||eK(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0},i=t.length,n=eN(e.nodeName);for(;i--;){let a=t[i],o=a.name,l=a.namespaceURI,s=a.value,u=eN(o),d="value"===o?s:lR(s);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,eQ(D.uponSanitizeAttribute,e,r),d=r.attrValue,el&&("id"===u||"name"===u)&&0!==lN(d,es)&&(eU(o,e),d=es+d),X&&l$(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===u&&lM(d,"href")){eU(o,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!Y&&l$(so,d)||(K&&(d=eq(d)),!e2(n,u,d))){eU(o,e);continue}(d=e6(n,u,l,d))!==s&&e7(e,o,l,d)}}eQ(D.afterSanitizeAttributes,e,null)},e4=function(e){let t=null,r=eG(e);for(eQ(D.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(eQ(D.uponSanitizeShadowNode,t,null),e0(t,e),e8(t),eX(t.content)&&e4(t.content),(C?C(t):t.nodeType)===1){let e=y(t);eX(e)&&(e9(e),e4(e))}eQ(D.afterSanitizeShadowDOM,e,null)},e9=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){e4(e.shadow);continue}let r=e.node,i=(C?C(r):r.nodeType)===1,n=_(r);if(n)for(let e=n.length-1;e>=0;--e)t.push({node:n[e],shadow:null});if(i){let e=x?x(r):null;if("string"==typeof e&&"template"===eN(e)){let e=r.content;eX(e)&&t.push({node:e,shadow:null})}}if(i){let e=y(r);eX(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,l=null,s=null;if((eC=!e)&&(e=""),"string"!=typeof e&&!eJ(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return lP(e);case"boolean":return lI(e);case"bigint":return lD?lD(e):"0";case"symbol":return lj?lj(e):"Symbol()";case"undefined":default:return lV(e);case"function":case"object":{if(null===e)return lV(e);let t=lz(e,"toString");if("function"==typeof t){let r=t(e);return"string"==typeof r?r:lV(r)}return lV(e)}}}(e)))throw lB("dirty is not a string, aborting");if(!n.isSupported)return e;Q?(H=ee,$=et):eD(r),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(H=lZ(H)),D.uponSanitizeAttribute.length>0&&($=lZ($)),n.removed=[];let u=ed&&"string"!=typeof e&&eJ(e);if(u){ez(e);let t=x?x(e):e.nodeName;if("string"==typeof t){let r=eN(t);if(!H[r]||F[r])throw eB(e),lB("root node is forbidden and cannot be sanitized in-place")}if(eK(e))throw eB(e),lB("root node is clobbered and cannot be sanitized in-place");try{e9(e)}catch(t){throw eB(e),t}}else if(eJ(e))1===(a=(i=eW("")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a),e9(a);else{if(!ei&&!K&&!J&&-1===e.indexOf("<"))return t&&ea?T(e):e;if(!(i=eW(e)))return ei?null:ea?E:""}i&&er&&e$(i.firstChild);let d=u?e:i,c=eG(d);try{for(;l=c.nextNode();)e0(l,d),e8(l),eX(l.content)&&e4(l.content)}catch(t){throw u&&(eB(e),lC(n.removed,e=>{e.element&&eZ(e.element)})),t}if(u)return lC(n.removed,e=>{e.element&&eZ(e.element)}),K&&eY(e),e;if(ei){if(K&&eY(i),en)for(s=R.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return($.shadowroot||$.shadowrootmode)&&(s=I.call(o,s,!0)),s}let f=J?i.outerHTML:i.innerHTML;return J&&H["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&l$(st,i.ownerDocument.doctype.name)&&(f="\n"+f),K&&(f=eq(f)),t&&ea?T(f):f},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eD(e),Q=!0,ee=H,et=$},n.clearConfig=function(){eR=null,Q=!1,ee=null,et=null,t=r,E=""},n.isValidAttribute=function(e,t,r){return eR||eD({}),e2(eN(e),eN(t),r)},n.addHook=function(e,t){"function"!=typeof t||lH(D,e)&&lS(D[e],t)},n.removeHook=function(e,t){if(lH(D,e)){if(void 0!==t){let r=lx(D[e],t);return -1===r?void 0:lk(D[e],r,1)[0]}return lE(D[e])}},n.removeHooks=function(e){lH(D,e)&&(D[e]=[])},n.removeAllHooks=function(){D=ss()},n}(),sc=e.i(2373),sf=e=>e.firstName&&e.lastName?`${e.firstName} ${e.lastName}`:e.firstName||e.lastName||e.email,sp=(e,t,r)=>{if(!e)return;let i=sh(e.message).replace(/<[^>]*>/g,"");return e.toUsers?.forEach(e=>{let n=RegExp(`{{${e}}}`,"g"),a=t.userMap[e],o=a?a.display||sf(a):"unknown user",l="html"===r?`@${o}`:`@${o}`;i=i.replace(n,l)}),i},sh=e=>sd.sanitize(e,{USE_PROFILES:{html:!0}});function sv(e,t={}){let{top:r,left:i}=e,n=window.innerWidth,a=t.safeMargin??16,o=t.topSafeMargin??42,l=t.threadWidth??16,s=i,u=r;return s+l>n-a&&(s=n-a-l),u-window.scrollY{let{content:t,children:r,position:i="bottom",className:n,testId:a,...o}=e,[l,s]=ii(!1),[u,d]=ii(i),c=il(null),f=il(null),p=il(r);return io(()=>{p.current!==r&&(s(!1),p.current=r)},[r]),io(()=>{let e=()=>((e,t,r,i)=>{if(!e.current||!t.current)return;let n=t.current.getBoundingClientRect(),a=e.current.getBoundingClientRect(),o={bottom:{top:n.bottom+8,left:n.left+(n.width-a.width)/2},top:{top:n.top-a.height-8,left:n.left+(n.width-a.width)/2},left:{top:n.top+(n.height-a.height)/2,left:n.left-a.width-8},right:{top:n.top+(n.height-a.height)/2,left:n.right+8}},l=r,s=o[r],u=window.innerWidth,d=window.innerHeight,c={bottom:s.top+a.height>d,top:s.top<0,left:s.left<0,right:s.left+a.width>u},f=s.left<0||s.left+a.width>u;if(c[r]||f){let e=["bottom","top","right","left"];for(let t of(e.splice(e.indexOf(r),1),e.push(r),e)){let e=o[t];if(e.top>=0&&e.top+a.height<=d&&e.left>=0&&e.left+a.width<=u){l=t,s=e;break}}}s.left<0?s.left=8:s.left+a.width>u&&(s.left=u-a.width-8),s.top<0?s.top=8:s.top+a.height>d&&(s.top=d-a.height-8),i(l),Object.assign(e.current.style,{top:`${s.top}px`,left:`${s.left}px`})})(c,f,i,d);return e(),window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[l,i]),aB("div",{ref:f,className:(0,aP.default)("collab-tooltip--wrapper",oI()["collab-tooltip--wrapper"],n),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-testid":a,...o,children:[r,l&&aB("div",{ref:c,className:(0,aP.default)("collab-tooltip",`collab-tooltip--${u}`,oI()["collab-tooltip"],oI()[`collab-tooltip--${u}`]),role:"tooltip","aria-hidden":!l,"data-position":u,children:t})]})};sm.defaultProps={testId:"collab-tooltip"};var sb={Cancel:e=>aB("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:aB("path",{class:"collab-icon__svg",d:"M25.5303 7.53033C25.8232 7.23744 25.8232 6.76256 25.5303 6.46967C25.2374 6.17678 24.7626 6.17678 24.4697 6.46967L16 14.9393L7.53033 6.46967C7.23744 6.17678 6.76256 6.17678 6.46967 6.46967C6.17678 6.76256 6.17678 7.23744 6.46967 7.53033L14.9393 16L6.46967 24.4697C6.17678 24.7626 6.17678 25.2374 6.46967 25.5303C6.76256 25.8232 7.23744 25.8232 7.53033 25.5303L16 17.0607L24.4697 25.5303C24.7626 25.8232 25.2374 25.8232 25.5303 25.5303C25.8232 25.2374 25.8232 24.7626 25.5303 24.4697L17.0607 16L25.5303 7.53033Z",fill:"#475161"})}),Delete:e=>aB("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M4.25 7C4.25 6.58579 4.58579 6.25 5 6.25H27C27.4142 6.25 27.75 6.58579 27.75 7C27.75 7.41421 27.4142 7.75 27 7.75H5C4.58579 7.75 4.25 7.41421 4.25 7Z",fill:"#475161"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M13 12.25C13.4142 12.25 13.75 12.5858 13.75 13V21C13.75 21.4142 13.4142 21.75 13 21.75C12.5858 21.75 12.25 21.4142 12.25 21V13C12.25 12.5858 12.5858 12.25 13 12.25Z",fill:"#475161"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M19 12.25C19.4142 12.25 19.75 12.5858 19.75 13V21C19.75 21.4142 19.4142 21.75 19 21.75C18.5858 21.75 18.25 21.4142 18.25 21V13C18.25 12.5858 18.5858 12.25 19 12.25Z",fill:"#475161"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M7 6.25C7.41421 6.25 7.75 6.58579 7.75 7V26C7.75 26.0663 7.77634 26.1299 7.82322 26.1768C7.87011 26.2237 7.93369 26.25 8 26.25H24C24.0663 26.25 24.1299 26.2237 24.1768 26.1768C24.2237 26.1299 24.25 26.0663 24.25 26V7C24.25 6.58579 24.5858 6.25 25 6.25C25.4142 6.25 25.75 6.58579 25.75 7V26C25.75 26.4641 25.5656 26.9092 25.2374 27.2374C24.9092 27.5656 24.4641 27.75 24 27.75H8C7.53587 27.75 7.09075 27.5656 6.76256 27.2374C6.43437 26.9092 6.25 26.4641 6.25 26V7C6.25 6.58579 6.58579 6.25 7 6.25Z",fill:"#475161"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M11.0555 3.05546C11.5712 2.53973 12.2707 2.25 13 2.25H19C19.7293 2.25 20.4288 2.53973 20.9445 3.05546C21.4603 3.57118 21.75 4.27065 21.75 5V7C21.75 7.41421 21.4142 7.75 21 7.75C20.5858 7.75 20.25 7.41421 20.25 7V5C20.25 4.66848 20.1183 4.35054 19.8839 4.11612C19.6495 3.8817 19.3315 3.75 19 3.75H13C12.6685 3.75 12.3505 3.8817 12.1161 4.11612C11.8817 4.35054 11.75 4.66848 11.75 5V7C11.75 7.41421 11.4142 7.75 11 7.75C10.5858 7.75 10.25 7.41421 10.25 7V5C10.25 4.27065 10.5397 3.57118 11.0555 3.05546Z",fill:"#475161"})]}),Edit:e=>aB("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M4.7778 20.5072C4.47473 20.8102 4.29342 21.214 4.26826 21.6418L4.00309 26.1497C3.94156 27.1957 4.80682 28.0609 5.85284 27.9994L10.3606 27.7342C10.7885 27.7091 11.1922 27.5278 11.4953 27.2247L27.4899 11.2301C28.1733 10.5467 28.1733 9.43862 27.4899 8.7552L23.2473 4.51256C22.5639 3.82915 21.4558 3.82915 20.7724 4.51256L4.7778 20.5072ZM5.76567 21.7299C5.76926 21.6688 5.79516 21.6111 5.83846 21.5678L18.9336 8.4727L23.327 12.8661C23.3988 12.9379 23.4816 12.9921 23.57 13.0287L10.4347 26.164C10.3914 26.2073 10.3337 26.2332 10.2726 26.2368L5.76475 26.502C5.61532 26.5108 5.49171 26.3872 5.5005 26.2377L5.76567 21.7299ZM24.5503 12.0484L26.4293 10.1694C26.5269 10.0718 26.5269 9.9135 26.4293 9.81586L22.1866 5.57322C22.089 5.47559 21.9307 5.47559 21.8331 5.57322L19.9943 7.41204L24.3876 11.8054C24.4595 11.8772 24.5137 11.96 24.5503 12.0484Z",fill:"#475161"})}),RightMarkActive:e=>aB("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M17.2065 5.29354C17.3895 5.4766 17.3895 5.7734 17.2065 5.95646L8.45646 14.7065C8.2734 14.8895 7.9766 14.8895 7.79354 14.7065L3.41854 10.3315C3.23549 10.1484 3.23549 9.8516 3.41854 9.66854C3.6016 9.48549 3.8984 9.48549 4.08146 9.66854L8.125 13.7121L16.5435 5.29354C16.7266 5.11049 17.0234 5.11049 17.2065 5.29354Z",fill:"#6C5CE7"})}),Indicator:({active:e})=>aB("svg",{width:e?"25":"24",height:"24",viewBox:`0 0 ${e?25:24} 24`,fill:"none",class:"collab-icon",xmlns:"http://www.w3.org/2000/svg",style:{marginTop:"2px"},children:[aB("path",{class:"collab-icon__svg",d:"M8.4375 9C8.4375 8.68934 8.68934 8.4375 9 8.4375H15C15.3107 8.4375 15.5625 8.68934 15.5625 9C15.5625 9.31066 15.3107 9.5625 15 9.5625H9C8.68934 9.5625 8.4375 9.31066 8.4375 9Z",fill:"white"}),aB("path",{class:"collab-icon__svg",d:"M8.4375 12C8.4375 11.6893 8.68934 11.4375 9 11.4375H15C15.3107 11.4375 15.5625 11.6893 15.5625 12C15.5625 12.3107 15.3107 12.5625 15 12.5625H9C8.68934 12.5625 8.4375 12.3107 8.4375 12Z",fill:"white"}),aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M3 5.25C3 4.83579 3.33579 4.5 3.75 4.5H20.25C20.6642 4.5 21 4.83579 21 5.25V16.4423C21 16.8565 20.6642 17.1923 20.25 17.1923H14.9804C14.853 17.1923 14.7343 17.257 14.6652 17.3641L12.9633 20.0042C12.6651 20.4669 11.9866 20.4613 11.696 19.9938L10.1746 17.5464C10.0378 17.3262 9.79691 17.1923 9.53766 17.1923H3.75C3.33579 17.1923 3 16.8565 3 16.4423V5.25ZM4.125 16.0673V5.625H19.875V16.0673H14.9804C14.4707 16.0673 13.9958 16.3262 13.7197 16.7546L12.3387 18.8968L11.1301 16.9524C10.7879 16.402 10.1858 16.0673 9.53766 16.0673H4.125Z",fill:"white"}),e&&aB("g",{children:[aB("circle",{cx:"20",cy:"5",r:"4",fill:"#EB5646",class:"collab-icon__svg"}),aB("circle",{cx:"20",cy:"5",r:"4.5",stroke:"white","stroke-opacity":"0.6",class:"collab-icon__svg"})]})]})},s_=(n=({icon:e,className:t,onClick:r,testId:i,disabled:n,...a})=>{let o=sb[e];return aB("div",{className:(0,aP.default)("collab-icon-wrapper",oI()["collab-icon-wrapper"]),onClick:e=>{n||r?.(e)},"data-testid":i,...a,children:o?aB(o,{className:(0,aP.default)("collab-icon",oI()["collab-icon"],t)}):null})},({withTooltip:e=!1,tooltipContent:t="",testId:r="collab-icon",...i})=>e&&t?aB("div",{"data-testid":r,children:aB(sm,{content:t,position:"bottom",testId:"collab-icon-tooltip",children:aB(n,{...i})})}):aB(n,{...i,testId:r})),sg=({className:e,color:t="primary",testId:r="collab-async-loader",...i})=>{let n=(0,aP.default)(oI()["collab-button--loader--animation"],oI()["collab-button--loading--color"][t],"collab-button--loader--animation",`collab-button--loading--${t}`);return aB("div",{className:(0,aP.default)("collab-button--loader",oI()["collab-button--loader"],e),...i,"data-testid":r,children:[aB("div",{className:n}),aB("div",{className:n}),aB("div",{className:n})]})},sy=({buttonType:e="primary",children:t,className:r="",testId:i,onClick:n,isLoading:a,loadingColor:o="primary",disabled:l=!1,type:s="button",style:u,href:d,id:c,size:f="large",icon:p,iconProps:h,iconAlignment:v="left"})=>{let m=t&<([t]);if(p){let e=aB(s_,{icon:p,...h});switch(v){case"left":m=lt([e,m]);break;case"right":m=lt([m,e]);break;case"both":m=lt([e,m,e])}}return aB(d?"a":"button",{className:(0,aP.default)(oI()["collab-button--basestyle"],oI()["collab-button--type"][e],oI()["collab-button--size"][f],p&&oI()["collab-button--icon-allignment"][v],l&&oI()["collab-button--disabled"],a&&oI()["collab-button--loading"],r,`collab-button collab-button--${e} collab-button--${f} ${p?`collab-button--icon-${v}`:""} ${l?"collab-button--disabled":""} ${a?"collab-button--loading":""}`),id:c,onClick:n,type:s,style:Object.fromEntries(Object.entries(u||{}).filter(([e,t])=>null!=t)),disabled:l,href:d,"data-testid":i,children:aB("div",{className:(0,aP.default)("flex-center",oD),children:[a&&aB("div",{className:(0,aP.default)(oI()["collab-button--loader--wrapper"],"collab-button--loader--wrapper"),children:aB(sg,{color:o})}),aB("div",{className:(0,aP.default)("flex-v-center",oj,{[`${oI()["collab-button--size"].regular} collab-button--regular`]:"small"!==f},a?`${oI()["collab-button--hidden"]} collab-button--hidden`:`${oI()["collab-button--visible"]} collab-button--visible`),children:m})]})})},sw=({commentCount:e,displayResolve:t,handleResolve:r,isResolving:i})=>aB(rI,{children:[aB("div",{className:(0,aP.default)("collab-thread-header--title",oI()["collab-thread-header--title"]),children:0===e?"Add New Comment":1===e?"1 Comment":`${e} Comments`}),t&&aB(sy,{buttonType:"tertiary",className:(0,aP.default)("collab-thread-header--resolve",oI()["collab-thread-header--resolve"]),icon:"RightMarkActive",iconProps:{className:(0,aP.default)(oI()["collab-thread-header--resolve--icon"],"collab-thread-header--resolve--icon")},onClick:r,testId:"collab-thread-resolve-btn",isLoading:i,loadingColor:"secondary",children:aB("span",{className:(0,aP.default)("collab-thread-header--resolve--text",oI()["collab-thread-header--resolve--text"]),children:"Resolve"})})]}),sC=lr(({onClose:e,displayResolve:t,onResolve:r,commentCount:i,activeThread:n})=>{let[a,o]=ii(!1),l=iu(async()=>{if(!a)try{o(!0);let e={threadUid:n._id,payload:{threadState:2}};await r(e)}finally{e(!0),o(!1)}},[n,a,r,e]);return aB("div",{className:(0,aP.default)("collab-thread-header--wrapper","flex-v-center",oI()["collab-thread-header--wrapper"],oj),children:aB("div",{className:(0,aP.default)("collab-thread-header--container","flex-v-center",oI()["collab-thread-header--container"],oj),children:aB(sw,{commentCount:i,displayResolve:t,handleResolve:l,isResolving:a})})})}),sx=e=>{let{className:t,children:r,style:i,testId:n,...a}=e;return aB("div",{className:(0,aP.default)("collab-button-group",oI()["collab-button-group"],t),style:i,"data-testid":n,...a,children:r})};sx.defaultProps={testId:"collab-button-group"};var sE=({onClose:e,handleOnSaveRef:t,isDisabled:r,editComment:i})=>{let[n,a]=ii(!1),o=async e=>{a(!0),e.preventDefault(),await t.current?.(),a(!1)};return aB("div",{className:(0,aP.default)("collab-thread-footer--wrapper","flex-v-center",oI()["collab-thread-footer--wrapper"],oj),children:aB(sx,{children:[aB(sy,{type:"button",buttonType:"tertiary",testId:"thread-cancel-btn",onClick:()=>e(!1),children:"Cancel"}),aB(sy,{type:"button",buttonType:"primary",onClick:o,testId:"thread-save-btn",disabled:r||n,isLoading:n,children:""===i?"Post":"Update"})]})})},sS=e=>{let{numberOfTiles:t,tileleftSpace:r,tileTopSpace:i,tileHeight:n,tileBottomSpace:a,tileWidth:o,testId:l,tileRadius:s=7}=e;return aB("svg",{"data-testid":l,height:t*n+t*a+t*i,width:"string"==typeof o?o:o+r,className:(0,aP.default)("collab-skeletonTileSvgClass",oI()["collab-skeletonTileSvgClass"]),fill:"#EDF1F7",children:Array.from({length:t}).map((e,t)=>aB("g",{children:aB("rect",{"data-testid":"rect",x:r,y:t*(n+a)+i,rx:s,width:o,height:n})},t))})};sS.defaultProps={testId:"collab-skeletonTile"};var sk=()=>aB("div",{className:(0,aP.default)("collab-thread-body-comment--loader",oI()["collab-thread-body-comment--loader"]),children:[aB("div",{style:{display:"flex"},children:[aB(sS,{numberOfTiles:1,tileHeight:32,tileWidth:32,tileBottomSpace:0,tileTopSpace:0,tileleftSpace:0,tileRadius:50}),aB(sS,{numberOfTiles:2,tileHeight:10,tileWidth:130,tileBottomSpace:7,tileTopSpace:3,tileleftSpace:10})]}),aB(sS,{numberOfTiles:1,tileHeight:14,tileWidth:300,tileBottomSpace:5,tileTopSpace:0,tileleftSpace:0}),aB(sS,{numberOfTiles:1,tileHeight:14,tileWidth:230,tileBottomSpace:0,tileTopSpace:0,tileleftSpace:0})]}),sO=Math.max;let sT=function(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var n=null==r?0:n0(r);return n<0&&(n=sO(i+n,0)),nT(e,nQ(t,3),n)};var sL=function(){function e(t){var r,i;return this.getChildContext||(r=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,rH(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),t.children}return e.__c="__cC"+rk++,e.__=null,e.Provider=e.__l=(e.Consumer=function(e,t){return e.children(t)}).contextType=e,e}(),sM={message:"",toUsers:[],images:[],createdBy:"",author:""},sA=({errorMessage:e})=>aB("div",{className:(0,aP.default)("collab-thread-input-indicator--error",oI()["collab-thread-input-indicator--error"]),children:e}),sN=({currentLength:e,maxLength:t})=>aB("div",{className:(0,aP.default)("collab-thread-input-indicator--count",oI()["collab-thread-input-indicator--count"]),children:[e,"/",t]}),sR=({filteredUsers:e,selectedIndex:t,cursorPosition:r,inputRef:i,listRef:n,itemRefs:a,insertMention:o,handleKeyDown:l})=>0===e.length?null:aB("ul",{className:(0,aP.default)("collab-thread-body--input--textarea--suggestionsList",oI()["collab-thread-body--input--textarea--suggestionsList"]),style:{...r.showAbove?{bottom:`${window.innerHeight-(i.current?.getBoundingClientRect().top||0)-r.top}px`,top:"auto"}:{top:`${(i.current?.getBoundingClientRect().top||0)+r.top}px`}},ref:n,children:e.map((e,r)=>aB("li",{onClick:()=>o(e),className:(0,aP.default)("collab-thread-body--input--textarea--suggestionsList--item",oI()["collab-thread-body--input--textarea--suggestionsList--item"],r===t?oI()["collab-thread-body--input--textarea--suggestionsList--item-selected"]:""),ref:e=>{a.current[r]=e},onKeyDown:t=>"Enter"===t.key?o(e):l(t),tabIndex:-1,"aria-selected":r===t,children:e.display===e.email?e.display.length>20?aB(sm,{content:e.display||"",children:(e.display||"").substring(0,18)+"..."}):e.display:aB(sm,{content:e.display+" - "+e.email||"",children:e.display.length>20?(e.display||"").substring(0,18)+"...":e.display})},e.uid))}),sP=lr(({userState:e,handleOnSaveRef:t,comment:r,onClose:i})=>{let{state:n,error:a,showSuggestions:o,cursorPosition:l,selectedIndex:s,filteredUsers:u,inputRef:d,listRef:c,itemRefs:f,handleInputChange:p,handleKeyDown:h,handleSubmit:v,insertMention:m,maxMessageLength:b}=((e,t,r)=>{let[i,n]=ii(sM),[a,o]=ii(!1),[l,s]=ii({top:0,left:0,showAbove:!1}),[u,d]=ii(""),[c,f]=ii(0),[p,h]=ii([]),v=il(null),m=il(null),b=il([]),{error:_,setError:g,onCreateComment:y,onEditComment:w,editComment:C,setThreadState:x,activeThread:E,setActiveThread:S,createNewThread:k}=id(sL);((e,t,r=1,i=3)=>{io(()=>{let n=document.querySelector(e);return n&&n.setAttribute("rows",t.length>0?`${i}`:`${r}`),()=>{n?.setAttribute("rows",`${r}`)}},[t,e,r,i])})(".collab-thread-body--input--textarea",i.message),io(()=>{b.current=b.current.slice(0,e.mentionsList.length)},[e.mentionsList]),io(()=>{h(e.mentionsList.filter(e=>!u||e.display.toLowerCase().includes(u.toLowerCase())))},[u,e.mentionsList]),io(()=>{let e=document.getElementById("collab-thread-body--input--textarea");if(!e)return;let t={focus:{base:"collab-thread-body--input--textarea--focus",goober:oI()["collab-thread-body--input--textarea--focus"]},hover:{base:"collab-thread-body--input--textarea--hover",goober:oI()["collab-thread-body--input--textarea--hover"]}},r=()=>{e.classList.add(t.focus.base,t.focus.goober)},i=()=>{e.classList.remove(t.focus.base,t.focus.goober)},n=()=>{e.classList.add(t.hover.base,t.hover.goober)},a=()=>{e.classList.remove(t.hover.base,t.hover.goober)};return e.addEventListener("focus",r),e.addEventListener("blur",i),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",a),()=>{e.removeEventListener("focus",r),e.removeEventListener("blur",i),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",a)}},[]),io(()=>{if(!t)return;let r=[];t?.toUsers?.forEach(t=>{let i=e.userMap[t];r.push({display:`${i.display||sf(i)}`,id:t})}),n({message:sp(t,e,"text")??"",toUsers:r,images:t?.images??[],createdBy:t?.createdBy??"",author:t?.author??""})},[t,e]);let O=iu((e,t)=>{let r=e.slice(0,t),i=r.lastIndexOf("@");if(-1===i)return null;let n=r.slice(i+1);return n.includes(" ")?null:{start:i,searchTerm:n}},[]),T=iu((e,t)=>{let r=e?.value,i=r?.slice(0,t),n=i?.split("\n"),a=(n?.length||0)-1,o=n?.[a],l=window.getComputedStyle(e),s=parseInt(l.lineHeight),u=parseInt(l.paddingLeft),d=parseInt(l.paddingTop),c=document.createElement("span");c.style.font=l.font,c.style.visibility="hidden",c.style.position="absolute",c.style.whiteSpace="pre",c.textContent=o||"",document.body.appendChild(c);let f=Math.min(c.offsetWidth+u,e.offsetWidth-200);document.body.removeChild(c);let p=e.scrollTop,h=a*s+d-p,v=h+s,m=window.innerHeight,b=e.getBoundingClientRect().top+v,_=m-b<160;return{top:_?h:v,left:f,showAbove:_,absoluteTop:b,scrollTop:p,currentLineNumber:a}},[]),L=iu(e=>{let t=O(i.message,v.current?.selectionStart||0);if(!t)return;let r=i.message.slice(0,t.start),a=i.message.slice(v.current?.selectionStart||0),l=`${r}@${e.display} ${a}`,s={toUsers:lu([...i.toUsers||[],{display:e.display,id:e.uid||""}].filter(e=>l.includes(e.display)),"id")};n(e=>({...e,message:l,toUsers:s.toUsers})),o(!1);let u=v.current;u&&u.focus()},[i.message,i.toUsers,O]),M=iu(e=>{var t;let r=e.target;if(!r)return;let a=r.value,l=a.trim(),u=r.selectionStart,c=O(a,u);c?(d(c.searchTerm),o(!0),s(T(v.current,u)),f(0)):o(!1);let p=(t=i.toUsers??[],a.length>500?"Limit exceeded. You can have a maximum length of 500 characters.":t.length>20?"Limit exceeded. You can tag a maximum of 20 users.":"");g({hasError:""!==p||""===l,message:p}),n(e=>({...e,message:a}))},[i.toUsers,O,T,g]),A=iu(e=>{if("@"===e.key&&(s(T(v.current,e.target.selectionStart)),f(0)),a)switch(e.key){case"ArrowDown":e.preventDefault(),f(e=>ee>0?e-1:e);break;case"Enter":e.preventDefault(),a&&L(p[c]);break;case"Escape":o(!1),v.current?.focus()}},[a,p,c,L,T]);io(()=>{b.current[c]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[c]);let N=iu(async()=>{if(!_.hasError)try{var a;let o,l,s=E?._id;if(E?._id=="new"){let e=await k();s=e?.thread?._id,S(e?.thread)}let u={...(a={...i,createdBy:e.currentUser.uid,author:e.currentUser.email},l={message:o=sh(a.message).replace(/[^\S\r\n]+/g," ").replace(/ *\n */g,"\n").replace(/<[^>]*>/g,"").trim(),toUsers:[],images:[],createdBy:a.createdBy,author:a.author},a.toUsers?.forEach(e=>{var t,r;let i,n;return t=e,r=l.toUsers,i=t.display,n=RegExp(`@${i}`.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),void(o=o.replace(n,`{{${t.id}}}`),r.push(t.id))}),l.message=o,l)},d={threadUid:s,commentPayload:u};if(C){let e=await w({threadUid:s,commentUid:C,payload:u});x(r=>{let i=tm(r.comments),n=sT(i,e=>e._id===t?._id);return i.splice(n,1,e?.comment),{...r,editComment:"",comments:i}}),r(!1)}else{let e=await y(d);x(t=>({...t,comments:[e.comment,...t.comments],commentCount:t.commentCount+1})),n(sM),r(!1)}}catch(e){console.error("Error submitting comment:",e)}},[_.hasError,i,E]);return io(()=>{0===i.message.length&&g({hasError:!0,message:""})},[i.message,g]),{state:i,setState:n,error:_,showSuggestions:a,cursorPosition:l,selectedIndex:c,filteredUsers:p,inputRef:v,listRef:m,itemRefs:b,handleInputChange:M,handleKeyDown:A,handleSubmit:N,insertMention:L,maxMessageLength:500}})(e,r,i);return io(()=>{t.current=v},[v,t]),aB("div",{className:(0,aP.default)("collab-thread-body--input--wrapper",oI()["collab-thread-body--input--wrapper"]),children:[aB("div",{className:(0,aP.default)("collab-thread-body--input",oI()["collab-thread-body--input"]),children:aB("div",{className:(0,aP.default)("collab-thread-body--input--textarea--wrapper",oI()["collab-thread-body--input--textarea--wrapper"]),children:[aB("textarea",{name:"collab-thread-body--input--textarea",id:"collab-thread-body--input--textarea",rows:1,className:(0,aP.default)("collab-thread-body--input--textarea",oI()["collab-thread-body--input--textarea"]),value:n.message,onChange:e=>p(e),onKeyDown:e=>h(e),maxLength:b,placeholder:"Enter a comment or tag others using “@”",ref:d}),o&&aB(sR,{filteredUsers:u,selectedIndex:s,cursorPosition:l,inputRef:d,listRef:c,itemRefs:f,insertMention:m,handleKeyDown:h})]})}),aB("div",{className:(0,aP.default)("collab-thread-input-indicator--wrapper","flex-v-center",oI()["collab-thread-input-indicator--wrapper"],oj),children:[aB(sA,{errorMessage:a.message}),aB(sN,{currentLength:n.message.length,maxLength:b})]})]})}),sI=({mode:e,commentUser:t,currentUser:r,commentUID:i})=>{let{setThreadState:n,onDeleteComment:a,activeThread:o,onDeleteThread:l}=id(sL),[s,u]=ii(!1),d=e=>{n(t=>({...t,editComment:e||""}))},c=async()=>{if(i&&!s){u(!0);try{await a({threadUid:o?._id,commentUid:i}),n(e=>{let t=e.comments.filter(e=>e._id!==i);return e.commentCount-1==0&&l({threadUid:o?._id}),{...e,comments:t,commentCount:e.commentCount-1}})}catch(e){}finally{u(!1)}}};return"edit"===e&&i?aB("div",{className:(0,aP.default)("collab-thread-comment-action--wrapper",oI()["collab-thread-comment-action--wrapper"]),children:aB(s_,{icon:"Cancel",withTooltip:!0,tooltipContent:"Cancel",onClick:()=>{d(null)}})}):t?.uid===r?.uid&&i?aB("div",{className:(0,aP.default)("collab-thread-comment-action--wrapper",oI()["collab-thread-comment-action--wrapper"]),"data-testid":"collab-thread-comment-action--wrapper",children:[aB(s_,{icon:"Edit",tooltipContent:"Edit",withTooltip:!0,testId:"collab-thread-comment-edit",onClick:()=>{i&&d(i)}}),aB(s_,{icon:"Delete",tooltipContent:"Delete",withTooltip:!0,testId:"collab-thread-comment-delete",onClick:c,disabled:s})]}):null},sD=({comment:e,userState:t})=>{let r=is(()=>sp(e,t,"html")??"",[e.message,t.userMap,e.toUsers]);return aB("div",{"data-testid":"collab-thread-comment--message",className:(0,aP.default)("collab-thread-comment--message",oI()["collab-thread-comment--message"]),dangerouslySetInnerHTML:{__html:r}})};function sj({type:e,avatar:t,initials:r}){return"image"===e&&t.image?aB("img",{"data-testid":"collab-avatar-image",src:t.image,alt:t.name,className:(0,aP.default)("collab-avatar__image",oI()["collab-avatar__image"])}):aB("span",{className:"collab-avatar-link__initials",children:r})}var sH=function({avatar:e,type:t="text",testId:r="collab-avatar"}){let i=function(e){if(!e)return"";let t=e.trim().split(" ");return 1===t.length?e.substring(0,2):t[0][0]+t[t.length-1][0]}(e.name);return aB("div",{"data-testid":r,children:aB(sm,{content:e.name||e.email||"",position:"bottom",children:aB("div",{className:(0,aP.default)("collab-avatar","collab-avatar--single","flex-v-center",oI()["collab-avatar"],oI()["collab-avatar--single"],oj),children:aB("span",{className:(0,aP.default)("collab-avatar__link","flex-v-center",oI()["collab-avatar__link"],oj),children:aB(sj,{type:t,avatar:e,initials:i})})})})})},sV=({userState:e,comment:t,onClose:r,handleOnSaveRef:i,mode:n})=>{let[a,o]=ii(null),[l,s]=ii(!1);io(()=>{o(t?e.userMap[t.createdBy]:e.currentUser)},[t,e]);let u=is(()=>{var e;return t&&(e=t.updatedAt||t.createdAt)?(0,sc.default)(e).format("MMM DD, YYYY, hh:mm A"):""},[t]);return a?aB("div",{className:(0,aP.default)("collab-thread-comment--wrapper",oI()["collab-thread-comment--wrapper"]),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[aB("div",{className:(0,aP.default)("collab-thread-comment--user-details","flex-v-center",oI()["collab-thread-comment--user-details"],oj),children:[aB(sH,{avatar:{name:sf(a),id:a.uid}}),aB("div",{className:(0,aP.default)("collab-thread-comment--user-details__text",oI()["collab-thread-comment--user-details__text"]),children:[aB("div",{className:(0,aP.default)("collab-thread-comment--user-name",oI()["collab-thread-comment--user-name"]),children:sf(a)}),t&&aB("div",{className:(0,aP.default)("collab-thread-comment--time-details",oI()["collab-thread-comment--time-details"]),children:u})]}),l&&aB(sI,{mode:n,commentUser:a,currentUser:e.currentUser,commentUID:t?._id})]}),"edit"===n?aB(sP,{onClose:r,userState:e,handleOnSaveRef:i,comment:t}):t&&aB(sD,{comment:t,userState:e})]}):aB(sk,{},"collab-thread-body--comment-loader")},s$=({isLoading:e,children:t})=>e?aB(sk,{},"collab-thread-body--comment-loader"):aB(rI,{children:t}),sB=({comments:e,userState:t,onClose:r,handleOnSaveRef:i,editComment:n,fetchingMore:a})=>aB("div",{className:(0,aP.default)("collab-thread-comment--list",oI()["collab-thread-comment--list"]),id:"collab-thread-comment--list",children:[e?.map(e=>aB(rI,{children:[aB("div",{className:(0,aP.default)("collab-thread-comment-seperator","flex-v-center",oI()["collab-thread-comment-seperator"],oj),children:aB("svg",{class:"collab-thread-comment-seperator--svg",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"2",viewBox:"0 0 332 2",fill:"none",preserveAspectRatio:"none",children:aB("path",{d:"M0 1H332",stroke:"#DDE3EE",strokeDasharray:"2 2"})})}),aB(sV,{userState:t,comment:e,onClose:r,handleOnSaveRef:i,mode:n===e._id?"edit":"view"})]})),a&&aB(sk,{})]}),sU=lr(({handleOnSaveRef:e,onClose:t,userState:r,isLoading:i,comments:n,fetchingMore:a,editComment:o})=>aB("div",{className:(0,aP.default)("collab-thread-body--wrapper",oI()["collab-thread-body--wrapper"]),children:[aB(s$,{isLoading:i,children:aB(sB,{comments:n,userState:r,onClose:t,handleOnSaveRef:e,editComment:o,fetchingMore:a})}),""===o&&aB(sV,{userState:r,comment:null,onClose:t,handleOnSaveRef:e,mode:"edit"})]})),sF={hasError:!1,message:""},sZ=lr(({onCreateComment:e,onEditComment:t,onDeleteComment:r,onDeleteThread:i,onClose:n,onResolve:a,inviteMetadata:o,loadMoreMessages:l,activeThread:s,setActiveThread:u,createNewThread:d})=>{let c=il(null),[f,p]=ii({isLoading:!1,commentCount:0,comments:[],editComment:"",userState:{mentionsList:[],currentUser:o?.currentUser,userMap:{}}}),[h,v]=ii(sF),m=(({containerId:e,isFetching:t,canFetchMore:r,loadMore:i,offset:n,limit:a})=>{let[o,l]=ii(t);return io(()=>{let t=document.getElementById(e);if(!t)return;let s=async()=>{if(t.scrollHeight+t.scrollTop-t.clientHeight<3&&!o&&r){l(!0);try{await i(n,a)}finally{l(!1)}}};return t.addEventListener("scroll",s,!0),()=>{t.removeEventListener("scroll",s,!0)}},[e,o,r,i,n,a]),o})({containerId:"collab-thread-comment--list",isFetching:!1,canFetchMore:f.commentCount>f.comments.length,loadMore:async(e,t)=>{try{let r={offset:e,limit:t,threadUid:s?._id},i=await l(r);p(e=>({...e,commentCount:i.count,comments:[...e.comments,...i.comments]}))}catch(e){console.error(e)}},offset:f.comments.length,limit:10});io(()=>{let e=[],t={};o?.users?.forEach(r=>{if(r){let i=sf(r);e.push({display:i,email:r.email,uid:r.uid}),t[r.uid]={...r,display:i}}}),p(r=>({...r,userState:{mentionsList:e,userMap:t,currentUser:o?.currentUser}}))},[o]),io(()=>{s?s?._id=="new"||(async()=>{p(e=>({...e,isLoading:!0}));try{let e={offset:0,limit:10,threadUid:s?._id},t=await l(e);p(e=>({...e,isLoading:!1,commentCount:t.count,comments:t.comments}))}catch(e){p(e=>({...e,isLoading:!1})),console.error(e)}})():p(e=>({...e,isLoading:!0}))},[]);let b=is(()=>({inviteMetadata:o,userState:f.userState,commentCount:f.commentCount,setThreadState:p,error:h,setError:v,onCreateComment:e,onEditComment:t,onDeleteComment:r,onDeleteThread:i,onClose:n,editComment:f.editComment,activeThread:s,setActiveThread:u,createNewThread:d}),[o,f.userState,f.commentCount,h,f.editComment,s]);return aB(sL.Provider,{value:b,children:aB("div",{className:(0,aP.default)("collab-thread--wrapper",oI()["collab-thread--wrapper"]),children:[aB(sC,{onClose:n,onResolve:a,displayResolve:!!s&&s?._id!=="new",commentCount:f.commentCount,activeThread:s}),aB("div",{class:(0,aP.default)("collab-thread--container",oI()["collab-thread--container"]),children:[aB(sU,{handleOnSaveRef:c,onClose:n,userState:f.userState,isLoading:f.isLoading,comments:f.comments,fetchingMore:m,editComment:f.editComment}),aB(sE,{onClose:n,handleOnSaveRef:c,isDisabled:h.hasError,editComment:f.editComment})]})]})})}),sz=e=>{let t=ns.get(),[r,i]=ii(t?.collab?.inviteMetadata);io(()=>{i(t?.collab?.inviteMetadata)},[t?.collab?.inviteMetadata]);let{buttonRef:n,popupRef:a,showPopup:o,setShowPopup:l,activeThread:s,setActiveThread:u,togglePopup:d}=(({newThread:e,thread:t})=>{let r=il(null),i=il(null),n=ns.get(),[a,o]=ii(e||!1),[l,s]=ii(()=>e?{_id:"new"}:t||{_id:"new"});return io(()=>{a&&r.current&&i.current&&sX(r.current,i.current)},[a]),io(()=>{let e=e=>{let{threadUid:t,action:i}=e.detail,a=document.querySelector(`div[threaduid='${t}']`);s2();let l=r.current?.closest("div[field-path]");if(l&&(l.style.zIndex="999"),o(!1),"open"===i&&a&&a.contains(r.current)){o(!0);let e=r.current?.closest("div[field-path]");a.scrollIntoView({behavior:"smooth",block:"center"}),e&&(e.style.zIndex="1000"),n?.collab?.isFeedbackMode===!0&&ns.set("collab.isFeedbackMode",!1)}};return document.addEventListener("toggleCollabPopup",e),()=>{document.removeEventListener("toggleCollabPopup",e)}},[]),{buttonRef:r,popupRef:i,showPopup:a,setShowPopup:o,activeThread:l,setActiveThread:s,togglePopup:()=>{if(a){o(!1);let e=r.current?.closest("div[field-path]");e?.hasAttribute("threaduid")||e?.remove(),n?.collab?.isFeedbackMode===!1&&ns.set("collab.isFeedbackMode",!0)}else{sQ({threadUid:"",action:"close"}),o(!0);let e=r.current?.closest("div[field-path]");e&&(e.style.zIndex="1000")}}}})({newThread:e.newThread??!1,thread:e.activeThread||{_id:"new"}}),{createComment:c,editComment:f,deleteComment:p,resolveThread:h,fetchComments:v,createNewThread:m,deleteThread:b}={createComment:async e=>{let t=await ol?.send(os.COLLAB_CREATE_COMMENT,e);if(!t)throw Error("Failed to create comment");return t},editComment:async e=>{let t=await ol?.send(os.COLLAB_EDIT_COMMENT,e);if(!t)throw Error("Failed to update comment");return t},deleteComment:async e=>{let t=await ol?.send(os.COLLAB_DELETE_COMMENT,e);if(!t)throw Error("Failed to delete comment");return t},resolveThread:async e=>{let t=await ol?.send(os.COLLAB_RESOLVE_THREAD,e);if(!t)throw Error("Failed to resolve thread");return t},fetchComments:async e=>await ol?.send(os.COLLAB_FETCH_COMMENTS,e),createNewThread:async(e,t)=>{var r;if(!e.current)throw Error("Button ref not found");let i=e.current.closest("div[field-path]");if(!i)throw Error("Count not find parent div");let n=i.getAttribute("field-path"),a=i.getAttribute("relative");if(!n||!a)throw Error("Invalid field attributes");let o=a?.match(/x: ([\d.]+), y: ([\d.]+)/);if(!o)throw Error("Invalid relative attribute");let l={elementXPath:n,position:{x:parseFloat(o[1]),y:parseFloat(o[2])},author:t.currentUser.email,pageRoute:"/"===(r=window.location.pathname)?r:r.endsWith("/")?r.slice(0,-1):r,inviteUid:t.inviteUid,createdBy:t.currentUser.uid},s=await ol?.send(os.COLLAB_CREATE_THREAD,l);return i.setAttribute("threaduid",s.thread._id),s},deleteThread:async e=>{let t=await ol?.send(os.COLLAB_DELETE_THREAD,e);if(!t)throw Error("Failed to delete thread");sJ(e.threadUid);let r=ns.get();return r?.collab?.isFeedbackMode===!1&&ns.set("collab.isFeedbackMode",!0),t}},_=sb.Indicator;return aB(rI,{children:[aB("button",{ref:n,"data-testid":"collab-indicator",className:(0,aP.default)("collab-indicator",oI()["collab-indicator"]),onClick:d,children:aB(_,{active:!o})}),o&&aB("div",{ref:a,className:(0,aP.default)("collab-popup",oI()["collab-popup"]),"data-testid":"collab-popup",children:aB(sZ,{onCreateComment:c,onEditComment:f,onDeleteComment:p,onClose:(e=!1)=>{e&&n.current?.closest("div[field-path]")?.remove(),s2(),l(!1),t?.collab?.isFeedbackMode===!1&&ns.set("collab.isFeedbackMode",!0)},onResolve:h,inviteMetadata:r,loadMoreMessages:v,activeThread:s,setActiveThread:u,onDeleteThread:b,createNewThread:()=>m(n,r)})})]})},sW=ai` display: none; `;function sG(e,t={}){var r,i,n,a,o;let l,s,u,d,{isNewThread:c=!1,updateConfig:f=!1,hidden:p=!1}=t,h=ns.get?.();if(c)({relativeX:l,relativeY:s,xpath:u}=e);else{let{position:t,elementXPath:r}=e;({x:l,y:s}=t),u=r}if(e?._id&&document.querySelector(`div[threaduid='${e._id}']`))return;let v=ur(u);if(!v)return e._id;let m=v.getBoundingClientRect(),b=m.top+window.scrollY+s*m.height,_=m.left+window.scrollX+l*m.width,g=sv({top:b,left:_});b=g.top,_=g.left;let y=(r=u,i=l,n=s,a=b,o=_,(d=document.createElement("div")).setAttribute("field-path",r),d.setAttribute("relative",`x: ${i}, y: ${n}`),d.style.position="absolute",d.style.top=`${a-43}px`,d.style.left=`${o-9}px`,d.style.zIndex=f?"1000":"999",d.style.cursor="pointer",d.className="collab-thread",p&&d.classList.add(sW),e?._id&&d.setAttribute("threaduid",e._id),d);f&&h?.collab?.enable&&h?.collab.isFeedbackMode&&ns.set("collab.isFeedbackMode",!1),rK(aB(sz,{activeThread:c?void 0:e,newThread:c}),y);let w=document.querySelector(".visual-builder__container");if(w){let e=w.querySelector(".visual-builder__collab-wrapper");e||((e=document.createElement("div")).className="visual-builder__collab-wrapper",w.appendChild(e)),e.appendChild(y)}else document.body.appendChild(y)}function sq(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),t=ns.get?.();t?.collab?.pauseFeedback||e.forEach(e=>{if(!(e instanceof HTMLElement))return;let t=e.getAttribute("field-path"),r=e.getAttribute("relative");if(!t||!r)return void console.error("Missing field-path or relative attribute.");let i=r.match(/x: ([\d.]+), y: ([\d.]+)/);if(!i)return void console.error("Invalid relative attribute format.");let n=parseFloat(i[1]),a=parseFloat(i[2]),o=ur(t);if(!o)return void e.classList.add(sW);let l=o.getBoundingClientRect(),s=l.left+l.width*n+window.scrollX,u=l.top+l.height*a+window.scrollY,d=sv({top:u,left:s});u=d.top,s=d.left,e.style.top=`${u-43}px`,e.style.left=`${s-9}px`,e.classList.remove(sW)})}function sY(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread .collab-popup"),t=ns.get?.();t?.collab?.pauseFeedback||e.forEach(e=>{if(e&&e instanceof HTMLElement){let t=e.closest(".visual-builder__collab-wrapper .collab-thread");if(!t)return void console.error("Parent element with class 'collab-thread' not found.");let r=t.querySelector(".visual-builder__collab-wrapper .collab-thread .collab-indicator");if(!r||!(r instanceof HTMLElement))return void console.error("Button with class 'collab-indicator' not found.");sX(r,e)}})}function sK(){let e=document.querySelectorAll(".collab-thread-body--input--textarea--suggestionsList");e.length&&e.forEach(e=>{if(!(e instanceof HTMLElement))return;let t=document.querySelector(".collab-thread-body--input--textarea");if(!t)return;let r=e.getAttribute("data-position"),i=r?JSON.parse(r):null,n="auto"!==window.getComputedStyle(e).bottom,a=t.getBoundingClientRect();if(n){let r=parseInt(window.getComputedStyle(t).lineHeight)||20,n=parseInt(window.getComputedStyle(t).paddingTop)||8,o=i?.cursorLineY||n+r;e.style.position="fixed",e.style.bottom=`${window.innerHeight-a.top-o+r}px`,e.style.top="auto"}else{let r=parseInt(window.getComputedStyle(t).lineHeight)||20,n=parseInt(window.getComputedStyle(t).paddingTop)||8,o=i?.cursorLineY||n+r;e.style.position="fixed",e.style.top=`${a.top+o}px`,e.style.bottom="auto"}if(!r&&a){let r=parseInt(window.getComputedStyle(t).lineHeight)||20,i=parseInt(window.getComputedStyle(t).paddingTop)||8;e.setAttribute("data-position",JSON.stringify({showAbove:n,cursorLineY:i+r}))}let o=e.getBoundingClientRect();if(!n&&o.bottom>window.innerHeight){let n=parseInt(window.getComputedStyle(t).lineHeight)||20,o=parseInt(window.getComputedStyle(t).paddingTop)||8,l=i?.cursorLineY||o+n;if(e.style.bottom=`${window.innerHeight-a.top-l+n}px`,e.style.top="auto",r){let t=JSON.parse(r);t.showAbove=!0,e.setAttribute("data-position",JSON.stringify(t))}}else if(n&&o.top<0){let n=parseInt(window.getComputedStyle(t).lineHeight)||20,o=parseInt(window.getComputedStyle(t).paddingTop)||8,l=i?.cursorLineY||o+n;if(e.style.top=`${a.top+l}px`,e.style.bottom="auto",r){let t=JSON.parse(r);t.showAbove=!1,e.setAttribute("data-position",JSON.stringify(t))}}})}function sX(e,t){let r,i,n=e.getBoundingClientRect(),a=window.innerHeight,o=window.innerWidth,l=t.offsetHeight||198,s=t.offsetWidth||334,u=n.top,d=a-n.bottom;r=u>=l?n.top-l-8:d>=l||d>u?n.bottom+8:Math.max(n.top-l-8,0),i=n.left+n.width/2-s/2,r=Math.max(r,0),i=Math.min(i=Math.max(i,0),o-s),t.style.top=`${r}px`,t.style.left=`${i}px`,requestAnimationFrame(()=>{t.offsetHeight!==l&&sX(e,t)})}function sJ(e){let t=document.querySelector(`div[threaduid='${e}']`);t?.remove()}function sQ({threadUid:e="",action:t}){document.dispatchEvent(new CustomEvent("toggleCollabPopup",{detail:{threadUid:e,action:t}}))}function s1(e){return Array.from(e.classList).some(e=>e.startsWith("collab"))}function s0(e){ol?.send(os.COLLAB_MISSING_THREADS,e)}function s2(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread");e?.forEach(e=>{e.hasAttribute("threaduid")||e.remove()})}var s5=!1,s3=new Map;function s6(e){return new Promise(t=>setTimeout(t,e))}function s7(e){return s3.has(e)||s3.set(e,{threadId:e,attempts:0,isRendered:!1}),s3.get(e)}function s8(e,t){let r=s7(e);r.isRendered=t,s3.set(e,r)}function s4(e){s3.delete(e)}async function s9(e){let t=s7(e._id);for(;t.attempts<5;)try{let r=sG(e);if(void 0===r)return void s8(e._id,!0);t.attempts++,s8(e._id,!1),t.attempts<5&&await s6(1e3)}catch(r){if(console.error(`Error rendering thread ${e._id}:`,r),t.attempts++,t.attempts>=5)break;await s6(1e3)}return e._id}async function ue(e){if(s5)return[];try{s5=!0;let t=ut(e);if(0===t.length)return[];let r=(await Promise.all(t.map(e=>s9(e)))).filter(Boolean);return r.forEach(s4),r}finally{s5=!1}}function ut(e){return e.filter(e=>!document.querySelector(`[threaduid="${e._id}"]`)||(s8(e._id,!0),!1))}function ur(e){return document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function ui(e,t){ol?.send(os.MOVE_INSTANCE,{data:e.fieldPathWithIndex+"."+e.multipleFieldMetadata.index,direction:t,fieldMetadata:e}).finally(un)}function un(){document.querySelector(".visual-builder__overlay--top")?.click()}var ua={link:aY,json_rte:aY,html_rte:aY,markdown_rte:aY,custom_field:aY,isodate:aY,url:aY};async function uo(e){let{fieldMetadata:t,fieldSchema:r}=e,i=await ol?.send(os.GET_DISCUSSION_ID,{fieldMetadata:t,fieldSchema:r})??null;return od(i)?null:i}function ul(){return aB("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,aP.default)("visual-builder__cursor-icon--loader loader",aH()["visual-builder__cursor-icon--loader"]),children:aB("path",{d:"M15.5023 18.3501C13.5466 19.6388 11.2007 20.2002 8.87354 19.9364C6.54637 19.6725 4.38563 18.6002 2.76808 16.9065C1.15053 15.2127 0.178807 13.0049 0.0223406 10.6681C-0.134126 8.33122 0.534595 6.0136 1.9119 4.1193C3.2892 2.22501 5.2877 0.874235 7.55893 0.302518C9.83015 -0.2692 12.23 -0.0255895 14.34 0.990871C16.45 2.00733 18.1363 3.73215 19.1048 5.86457C20.0734 7.997 20.2627 10.4017 19.6399 12.6595L17.7119 12.1276C18.2102 10.3214 18.0587 8.3976 17.2839 6.69166C16.509 4.98572 15.16 3.60586 13.472 2.7927C11.784 1.97953 9.86412 1.78464 8.04714 2.24201C6.23016 2.69939 4.63136 3.78001 3.52952 5.29544C2.42768 6.81088 1.8927 8.66498 2.01787 10.5345C2.14305 12.4039 2.92043 14.1702 4.21446 15.5252C5.5085 16.8802 7.23709 17.738 9.09883 17.9491C10.9606 18.1601 12.8373 17.711 14.4018 16.6801L15.5023 18.3501Z"})})}function us(e){let{fieldMetadata:t,fieldSchema:r,invertTooltipPosition:i=!1}=e,[n,a]=ii(null),[o,l]=ii(!1);io(()=>{(async()=>{try{l(!0);let e=await uo({fieldMetadata:t,fieldSchema:r});a(e)}catch(e){console.error("Failed to fetch discussion ID:",e),a({uid:"new"})}finally{l(!1)}})()},[t]),io(()=>{let e=ol?.on(os.UPDATE_DISCUSSION_ID,e=>{let{entryId:r,discussion:i,contentTypeId:n,fieldPath:o}=e.data;t.entry_uid===r&&t.content_type_uid===n&&t.fieldPathWithIndex===o&&a(i??{uid:"new"})});return()=>{e?.unregister()}},[]);let s=async()=>{ol?.send(os.OPEN_FIELD_COMMENT_MODAL,{fieldMetadata:t,discussion:n,fieldSchema:r})};return o?aB("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__comment-button-loading",className:(0,aP.default)("visual-builder__button visual-builder__button--secondary visual-builder__button--comment-loader",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__button--comment-loader"]),children:aB(ul,{})}):n?.uid?aB("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__comment-button",className:(0,aP.default)("visual-builder__button visual-builder__button--secondary",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":i,[aH()["visual-builder__tooltip--bottom"]]:i}),"data-tooltip":"Add comment",onClick:e=>{e.preventDefault(),e.stopPropagation(),s()},children:n?.uid==="new"?aB(a1,{}):aB(aQ,{})}):void 0}function uu(e){return aB("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:e.size,height:e.size},children:aB("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.41131 0.157165C4.34585 0.0589769 4.23565 0 4.11765 0C3.99964 0 3.88944 0.0589769 3.82398 0.157165L0.0592764 5.80422C-0.0197588 5.92278 -0.0197588 6.07722 0.0592764 6.19578L3.82398 11.8428C3.88944 11.941 3.99964 12 4.11765 12C4.23565 12 4.34585 11.941 4.41131 11.8428L6 9.4598L7.58869 11.8428C7.65415 11.941 7.76435 12 7.88235 12C8.00036 12 8.11056 11.941 8.17602 11.8428L11.9407 6.19578C12.0198 6.07722 12.0198 5.92278 11.9407 5.80422L8.17602 0.157165C8.11056 0.0589769 8.00036 0 7.88235 0C7.76435 0 7.65415 0.0589769 7.58869 0.157165L6 2.5402L4.41131 0.157165ZM5.57582 3.17647L4.11765 0.989215L0.777124 6L4.11765 11.0108L5.57582 8.82353L3.82398 6.19578C3.74495 6.07722 3.74495 5.92278 3.82398 5.80422L5.57582 3.17647ZM6 8.18726L4.54183 6L6 3.81274L7.45817 6L6 8.18726ZM6.42418 8.82353L8.17602 6.19578C8.25505 6.07722 8.25505 5.92278 8.17602 5.80422L6.42418 3.17647L7.88235 0.989215L11.2229 6L7.88235 11.0108L6.42418 8.82353Z",fill:"currentColor"})})}var ud={isAddedInstances:!1,isBaseModified:!1,isDeletedInstances:!1,isOrderChanged:!1,fieldLevelCustomizations:!1};async function uc(e){try{return await ol?.send("get-field-variant-status",e)}catch(e){console.error("Failed to get field variant status:",e)}}var uf=e=>{let{fieldDataName:t,fieldMetadata:r,variantStatus:i=ud,isOpen:n,closeDropdown:a}=e,o=(()=>{let{isAddedInstances:e,isDeletedInstances:r,isBaseModified:n,isOrderChanged:a,fieldLevelCustomizations:o}=i,l=[];return n&&l.push({label:"Revert to base entry value",action:"revert_to_base_entry_value",id:`iframe-cs-variant-field-${t}-revert`,testId:`iframe-cs-variant-field-${t}-revert`,fieldDataName:t}),e&&l.push({label:"Revert added instances",action:"revert_added_instances",id:`iframe-cs-variant-field-${t}-revert-added-instances`,testId:`iframe-cs-variant-field-${t}-revert-added-instances`,fieldDataName:t}),r&&l.push({label:"Restore deleted instances",action:"restore_deleted_instances",id:`iframe-cs-variant-field-${t}-restore-deleted-instances`,testId:`iframe-cs-variant-field-${t}-restore-deleted-instances`,fieldDataName:t}),o&&l.push({label:"Reset field-level customizations",action:"reset_field_level_customizations",id:`iframe-cs-variant-field-${t}-reset-field-level-customizations`,testId:`iframe-cs-variant-field-${t}-reset-field-level-customizations`,fieldDataName:t}),a&&l.push({label:"Restore sorted instances",action:"restore_sorted_instances",id:`iframe-cs-variant-field-${t}-restore-sorted-instances`,testId:`iframe-cs-variant-field-${t}-restore-sorted-instances`,fieldDataName:t}),l})();return aB("div",{className:(0,aP.default)("variant-field-revert-component",aH()["variant-field-revert-component"]),onClick:e=>e.stopPropagation(),children:n&&aB("div",{"data-testid":"variant-field-revert-component__dropdown-content",className:(0,aP.default)("variant-field-revert-component__dropdown-content",aH()["variant-field-revert-component__dropdown-content"]),children:o.map(e=>aB("div",{className:(0,aP.default)("variant-field-revert-component__dropdown-content__list-item",aH()["variant-field-revert-component__dropdown-content__list-item"]),onClick:t=>{t.preventDefault(),function(e){let{fieldDataName:t,action:i}=e;ol?.send("send-variant-revert-action-trigger",{fieldDataName:t,action:i,euid:r.entry_uid,ct_uid:r.content_type_uid,locale:r.locale})}(e),a()},"data-testid":e.testId,children:aB("span",{children:e.label})},e.id))})})},up=e=>{var t,r;let{closeDropdown:i,invertTooltipPosition:n,toggleVariantDropdown:a,variantStatus:o=ud,disabled:l}=e,s=il(null);io(()=>{let e=e=>{t.current&&!t.current.contains(e.target)&&r()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t=s,r=i]);let u=Object.values(o).some(e=>e),d=(0,aP.default)("visual-builder__button visual-builder__button--secondary",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":n,[aH()["visual-builder__tooltip--bottom"]]:n});return u?aB("div",{ref:s,children:[aB("button",{className:(0,aP.default)(d,aH()["visual-builder__variant-button"]),"data-tooltip":"Variant Revert","data-testid":"visual-builder-canvas-variant-revert",onClick:a,disabled:l,children:[aB(uu,{}),aB(aF,{open:e.isOpen})]}),aB(uf,{...e})]}):aB("button",{className:(0,aP.default)(d),style:{padding:"6px"},"data-tooltip":"Variant","data-testid":"visual-builder-canvas-variant-icon",disabled:l,children:aB(uu,{})})},uh=({id:e="",...t})=>aB("svg",{width:"35",height:"35",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[aB("circle",{cx:"36",cy:"36",r:"36",fill:uv(e)}),aB("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0577 27.3091H25.7747C25.1627 27.3091 24.6667 27.8052 24.6667 28.4171V31.6933H25.4351C28.2423 31.6933 30.9099 33.6523 30.9099 36.8808C30.9099 40.0525 28.3048 42.1467 25.4351 42.1467H24.6667V47.2253C24.6667 47.8372 25.1627 48.3333 25.7747 48.3333H30.8533V47.5649C30.8533 44.6952 32.9475 42.0901 36.1192 42.0901C39.3477 42.0901 41.3067 44.7577 41.3067 47.5649V48.3333H44.5829C45.1948 48.3333 45.6909 47.8372 45.6909 47.2253V40.8782L47.9921 40.5598C49.9596 40.2875 51.3333 38.7771 51.3333 36.8808C51.3333 35.0149 49.9935 33.5515 47.9984 33.2804L45.6909 32.9668V28.4171C45.6909 27.8052 45.1948 27.3091 44.5829 27.3091H40.0974L39.7801 25.0065C39.5081 23.0327 38.0085 21.6667 36.1192 21.6667C34.1999 21.6667 32.6528 23.0659 32.3798 25.0128L32.0577 27.3091ZM38.64 51V47.5649C38.64 45.9382 37.5988 44.7567 36.1192 44.7567C34.6198 44.7567 33.52 45.9602 33.52 47.5649V51H25.7747C23.69 51 22 49.31 22 47.2253V39.48H25.4351C27.0398 39.48 28.2433 38.3802 28.2433 36.8808C28.2433 35.4012 27.0618 34.36 25.4351 34.36H22V28.4171C22 26.3324 23.69 24.6424 25.7747 24.6424H29.739C30.1842 21.4681 32.7819 19 36.1192 19C39.4662 19 41.9856 21.4774 42.4218 24.6424H44.5829C46.6676 24.6424 48.3576 26.3324 48.3576 28.4171V30.638C51.5153 31.0671 54 33.5263 54 36.8808C54 40.2256 51.5248 42.763 48.3576 43.2013V47.2253C48.3576 49.31 46.6676 51 44.5829 51H38.64Z",fill:"white"})]}),uv=(e="")=>{let t=["#99D8CE","#6BC3FE","#5060C1","#835EC3","#B16DBD","#FF85BC","#FF7E83","#A2D959","#59BA5E"];return t[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%t.length]},um=e=>e.toLowerCase().replace(/[^a-z0-9 ]/gi,"").trim(),ub=({apps:e,position:t,toolbarRef:r,domEditStack:i,setDisplayAllApps:n})=>{let a=e.filter((e,t)=>0!==t),[o,l]=ii(""),s=is(()=>{if(!o.trim())return a;let e=um(o);return a.filter(t=>um(t.title).includes(e))},[o,a]);return aB("div",{className:(0,aP.default)(aH()["visual-builder__field-location-app-list"],{[aH()["visual-builder__field-location-app-list--left"]]:"left"===t,[aH()["visual-builder__field-location-app-list--right"]]:"right"===t}),children:[aB("div",{className:aH()["visual-builder__field-location-app-list__search-container"],children:[aB("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,aP.default)("Search__search-icon Icon--mini",aH()["visual-builder__field-location-app-list__search-icon"]),children:aB("path",{d:"M12.438 12.438L9.624 9.624M6.25 10.75a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",stroke:"#A9B6CB",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),aB("input",{type:"text",value:o,onInput:e=>l(e.target.value),placeholder:"Search for Apps",className:aH()["visual-builder__field-location-app-list__search-input"]})]}),aB("div",{className:aH()["visual-builder__field-location-app-list__content"],children:[0===s.length&&aB("div",{className:aH()["visual-builder__field-location-app-list__no-results"],children:aB("span",{className:aH()["visual-builder__field-location-app-list__no-results-text"],children:"No matching results found!"})}),s.map(e=>aB("div",{className:aH()["visual-builder__field-location-app-list__item"],onClick:()=>{ol?.send(os.FIELD_LOCATION_SELECTED_APP,{app:e,position:r.current?.getBoundingClientRect(),DomEditStack:i}),n(!1)},children:[aB("div",{className:aH()["visual-builder__field-location-app-list__item-icon-container"],children:e.icon?aB("img",{src:e.icon,alt:e.title,className:aH()["visual-builder__field-location-app-list__item-icon"]}):aB(uh,{id:e.app_installation_uid})}),aB("span",{className:aH()["visual-builder__field-location-app-list__item-title"],children:e.title})]},e.uid))]})]})},u_=({fieldLocationData:e,multipleFieldToolbarButtonClasses:t,handleMoreIconClick:r,moreButtonRef:i,toolbarRef:n,domEditStack:a})=>e?.apps&&e?.apps?.length!==0?aB("div",{ref:n,className:(0,aP.default)(aH()["visual-builder__field-location-icons-container"]),children:[aB("hr",{className:aH()["visual-builder__field-location-icons-container__divider"]}),aB("button",{title:e.apps[0].title,className:t,"data-tooltip":e.apps[0].title,onClick:t=>{var r;t.preventDefault(),t.stopPropagation(),r=e.apps[0],n.current&&ol?.send(os.FIELD_LOCATION_SELECTED_APP,{app:r,position:n.current?.getBoundingClientRect(),DomEditStack:a})},"data-testid":"field-location-icon",children:e.apps[0].icon?aB("img",{src:e.apps[0].icon,alt:e.apps[0].title,className:aH()["visual-builder__field-location-icons-container__app-icon"]}):aB(uh,{id:e.apps[0].app_installation_uid})},`${e.apps[0].uid}`),e.apps.length>1&&aB("button",{ref:i,className:t,"data-tooltip":"More",onClick:r,"data-testid":"field-location-more-button",children:aB(a2,{})})]}):null;function ug(e){return e&&(e.multiple||"reference"===e.data_type&&e.field_metadata.ref_multiple)}function uy(e,t){return!!e&&!!t&&of(e)===a8.CUSTOM_FIELD&&ug(e)&&t.fieldPathWithIndex!==t.instance?.fieldPathWithIndex&&(t.multipleFieldMetadata?.index??-1)!==-1}var uw=function(e){let{eventDetails:t,isVariant:r,entryPermissions:i,entryWorkflowStageDetails:n,resolvedVariantPermissions:a}=e,{fieldMetadata:o,editableElement:l}=t,[s,u]=ii(!1),[d,c]=ii(null),[f,p]=ii(!1),h=il(null),v=il(null),[m,b]=ii("right"),_=o?.multipleFieldMetadata?.parentDetails?.parentCslpValue||"",g=!!o?.variant||r,y=oE(l,_),[w,C]=ii(null),[x,E]=ii(ud),[S,k]=ii(!1),O=!1,T=!1,L=!1,M=null,A=null,N=!1,R=!1,P=!1;if(w){let{isDisabled:e}=og(w,{editableElement:l,fieldMetadata:o},a,i,n);R=e,M=ua[A=of(w)],L=w.multiple||!1,A===a8.REFERENCE&&(L=w.field_metadata.ref_multiple),N=L&&(o.fieldPathWithIndex===o.instance.fieldPathWithIndex||o.multipleFieldMetadata?.index===-1),P=uy(w,o),O=!!(A===a8.CUSTOM_FIELD&&L&&N)||oi.includes(A)&&!N,T=on.includes(A)&&!N}let I=oO(t.editableElement),D=l.getBoundingClientRect().top<=96,j=M?aB("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__edit-button",className:(0,aP.default)("visual-builder__button visual-builder__button--secondary visual-builder__button--edit",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__button--edit"],aH()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":D,[aH()["visual-builder__tooltip--bottom"]]:D}),"data-tooltip":"Edit",onClick:e=>{e.preventDefault(),e.stopPropagation(),ol?.send(os.OPEN_FIELD_EDIT_MODAL,{fieldMetadata:o})},disabled:R,children:aB(M,{})}):null,H=A?aB("button",{className:(0,aP.default)("visual-builder__replace-button visual-builder__button visual-builder__button--secondary",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":D,[aH()["visual-builder__tooltip--bottom"]]:D}),"data-tooltip":"Replace","data-testid":`visual-builder-replace-${A}`,onClick:e=>{if(e.stopPropagation(),e.preventDefault(),A===a8.REFERENCE){let e;return void(e=o.multipleFieldMetadata.index>-1&&o.fieldPathWithIndex===o.multipleFieldMetadata.parentDetails?.parentPath?o.instance.fieldPathWithIndex:o.fieldPathWithIndex,ol?.send(os.OPEN_REFERENCE_MODAL,{entry_uid:o.entry_uid,content_type_uid:o.content_type_uid,locale:o.locale,fieldPath:o.fieldPath,fieldPathWithIndex:o.fieldPathWithIndex,entryPath:e}))}if(A===a8.FILE)return void ol?.send(os.OPEN_ASSET_MODAL,{fieldMetadata:o})},disabled:R,children:aB(aX,{})}):null,V=aB("button",{className:(0,aP.default)("visual-builder__replace-button visual-builder__button visual-builder__button--secondary",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":D,[aH()["visual-builder__tooltip--bottom"]]:D},{[aH()["visual-builder__button--comment-loader"]]:s,"visual-builder__button--comment-loader":s}),"data-tooltip":"Form","data-testid":"visual-builder-form",onClick:async e=>{e.preventDefault(),e.stopPropagation(),u(!0);try{await function(e){let{editableElement:t}=e;return ol?.send(os.FOCUS_FIELD,{DOMEditStack:oO(t),toggleVisibility:!0})}(t)}finally{u(!1)}},disabled:s,children:s?aB(ul,{}):aB(az,{})});(0,aP.default)("visual-builder__variant-button visual-builder__button visual-builder__button--secondary",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__tooltip"],aH()["visual-builder__variant-button"],{"visual-builder__tooltip--bottom":D,[aH()["visual-builder__tooltip--bottom"]]:D});let $=l?.parentNode?.childElementCount??1,B=o?.multipleFieldMetadata?.index,U=0===B,F=B===$-1;io(()=>{!async function(){let e=await ou.getFieldSchema(o.content_type_uid,o.fieldPath);e&&C(e),E(await uc(o)??ud)}()},[o]),io(()=>{let t=ol?.on(os.DELETE_INSTANCE,t=>{t.data?.path===o.instance.fieldPathWithIndex&&e.hideOverlay()});return()=>{t?.unregister()}},[]),io(()=>{(async()=>{try{let e=await ol?.send(os.FIELD_LOCATION_DATA,{domEditStack:oO(t.editableElement)});c(e)}catch(e){console.error("Error fetching field location data:",e)}})()},[t.editableElement]);let Z=(0,aP.default)("visual-builder__button visual-builder__button--secondary",aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":D,[aH()["visual-builder__tooltip--bottom"]]:D});return P?aB("div",{className:(0,aP.default)("visual-builder__field-toolbar-container",aH()["visual-builder__field-toolbar-container"]),children:aB("div",{className:(0,aP.default)("visual-builder__custom-field-instance-message",aH()["visual-builder__custom-field-instance-message"]),"data-testid":"visual-builder__custom-field-instance-message",children:"You're on a custom field item. Select the entire custom field to edit or manage it."})}):aB("div",{className:(0,aP.default)("visual-builder__field-toolbar-container",aH()["visual-builder__field-toolbar-container"]),children:[aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar__multiple-field-toolbar",aH()["visual-builder__focused-toolbar__multiple-field-toolbar"]),"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar",children:aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar__button-group",aH()["visual-builder__focused-toolbar__button-group"]),children:aB(rI,{children:[g?aB(up,{fieldDataName:o.fieldPathWithIndex,fieldMetadata:o,variantStatus:x,isOpen:S,closeDropdown:()=>{k(!1)},invertTooltipPosition:D,toggleVariantDropdown:()=>{k(!S)},disabled:R}):null,L&&!N?aB(rI,{children:[aB("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__move-left-button",className:Z,"data-tooltip":"vertical"===y?"Move up":"Move left",onClick:e=>{e.preventDefault(),e.stopPropagation(),ui(o,"previous")},disabled:R||U,children:aB(aW,{className:(0,aP.default)({"visual-builder__rotate--90":"vertical"===y,[aH()["visual-builder__rotate--90"]]:"vertical"===y}),disabled:R||U})}),aB("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__move-right-button",className:Z,"data-tooltip":"vertical"===y?"Move down":"Move right",onClick:e=>{e.preventDefault(),e.stopPropagation(),ui(o,"next")},disabled:R||F,children:aB(aG,{className:(0,aP.default)({"visual-builder__rotate--90":"vertical"===y,[aH()["visual-builder__rotate--90"]]:"vertical"===y}),disabled:R||F})}),O?j:null,V,T?H:null,aB("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__delete-button",className:Z,"data-tooltip":"Delete",onClick:e=>{e.preventDefault(),e.stopPropagation(),ol?.send(os.DELETE_INSTANCE,{data:o.fieldPathWithIndex+"."+o.multipleFieldMetadata.index,fieldMetadata:o}).finally(un)},disabled:R,children:aB(aZ,{})})]}):aB(rI,{children:[O?j:null,T?H:null,V,w&&!R?aB(us,{fieldMetadata:o,fieldSchema:w,invertTooltipPosition:D}):null]}),!R&&aB(u_,{fieldLocationData:d,multipleFieldToolbarButtonClasses:Z,handleMoreIconClick:()=>{if(v.current){let e=v.current.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;b(t<230?"left":t>230||t>r?"right":"left")}p(!f)},moreButtonRef:h,toolbarRef:v,domEditStack:I})]})})}),f&&aB(ub,{toolbarRef:v,apps:d?.apps||[],position:m,domEditStack:I,setDisplayAllApps:p,displayAllApps:f})]})};function uC({}){let e=il(null),[t,r]=ii(!1);return io(()=>{let t=e.current,i=()=>{r(!0)},n=()=>{r(!1)};return t&&(t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",n)),()=>{t&&(t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",n))}},[]),aB("div",{className:(0,aP.default)(aH()["visual-builder__focused-toolbar__error"]),ref:e,children:[aB(a0,{}),aB("span",{className:(0,aP.default)(aH()["visual-builder__focused-toolbar__error-text"]),children:"Error"}),t?aB("div",{className:(0,aP.default)(aH()["visual-builder__focused-toolbar__error-toolip"]),children:[aB("p",{children:"Invalid CSLP tag"}),aB("span",{children:"The CSLP is invalid or incorrectly generated."})]}):null]})}let ux=Math.min,uE=Math.max,uS=Math.round,uk=e=>({x:e,y:e}),uO={left:"right",right:"left",bottom:"top",top:"bottom"};function uT(e,t){return"function"==typeof e?e(t):e}function uL(e){return e.split("-")[0]}function uM(e){return e.split("-")[1]}function uA(e){return"x"===e?"y":"x"}function uN(e){return"y"===e?"height":"width"}function uR(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function uP(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let uI=["left","right"],uD=["right","left"],uj=["top","bottom"],uH=["bottom","top"];function uV(e){let t=uL(e);return uO[t]+e.slice(t.length)}function u$(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function uB(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function uU(e,t,r){let i,{reference:n,floating:a}=e,o=uR(t),l=uA(uR(t)),s=uN(l),u=uL(t),d="y"===o,c=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,p=n[s]/2-a[s]/2;switch(u){case"top":i={x:c,y:n.y-a.height};break;case"bottom":i={x:c,y:n.y+n.height};break;case"right":i={x:n.x+n.width,y:f};break;case"left":i={x:n.x-a.width,y:f};break;default:i={x:n.x,y:n.y}}switch(uM(t)){case"start":i[l]-=p*(r&&d?-1:1);break;case"end":i[l]+=p*(r&&d?-1:1)}return i}async function uF(e,t){var r;void 0===t&&(t={});let{x:i,y:n,platform:a,rects:o,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=uT(t,e),h=u$(p),v=l[f?"floating"===c?"reference":"floating":c],m=uB(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(v)))||r?v:v.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:s})),b="floating"===c?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,_=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),g=await (null==a.isElement?void 0:a.isElement(_))&&await (null==a.getScale?void 0:a.getScale(_))||{x:1,y:1},y=uB(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:_,strategy:s}):b);return{top:(m.top-y.top+h.top)/g.y,bottom:(y.bottom-m.bottom+h.bottom)/g.y,left:(m.left-y.left+h.left)/g.x,right:(y.right-m.right+h.right)/g.x}}let uZ=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:o}=r,l=o.detectOverflow?o:{...o,detectOverflow:uF},s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:c}=uU(u,i,s),f=i,p=0,h={};for(let r=0;rtypeof window}function uq(e){return uX(e)?(e.nodeName||"").toLowerCase():"#document"}function uY(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function uK(e){var t;return null==(t=(uX(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uX(e){return!!uG()&&(e instanceof Node||e instanceof uY(e).Node)}function uJ(e){return!!uG()&&(e instanceof Element||e instanceof uY(e).Element)}function uQ(e){return!!uG()&&(e instanceof HTMLElement||e instanceof uY(e).HTMLElement)}function u1(e){return!(!uG()||"u"!!e&&"none"!==e;function u7(e){let t=uJ(e)?u9(e):e;return u6(t.transform)||u6(t.translate)||u6(t.scale)||u6(t.rotate)||u6(t.perspective)||!u8()&&(u6(t.backdropFilter)||u6(t.filter))||u5.test(t.willChange||"")||u3.test(t.contain||"")}function u8(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function u4(e){return/^(html|body|#document)$/.test(uq(e))}function u9(e){return uY(e).getComputedStyle(e)}function de(e){return uJ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dt(e){if("html"===uq(e))return e;let t=e.assignedSlot||e.parentNode||u1(e)&&e.host||uK(e);return u1(t)?t.host:t}function dr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function di(e){let t=u9(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=uQ(e),a=n?e.offsetWidth:r,o=n?e.offsetHeight:i,l=uS(r)!==a||uS(i)!==o;return l&&(r=a,i=o),{width:r,height:i,$:l}}function dn(e){return uJ(e)?e:e.contextElement}function da(e){let t=dn(e);if(!uQ(t))return uk(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=di(t),o=(a?uS(r.width):r.width)/i,l=(a?uS(r.height):r.height)/n;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}let dl=uk(0);function ds(e){let t=uY(e);return u8()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:dl}function du(e,t,r,i){var n;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),o=dn(e),l=uk(1);t&&(i?uJ(i)&&(l=da(i)):l=da(e));let s=(void 0===(n=r)&&(n=!1),i&&(!n||i===uY(o))&&n)?ds(o):uk(0),u=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,c=a.width/l.x,f=a.height/l.y;if(o){let e=uY(o),t=i&&uJ(i)?uY(i):i,r=e,n=dr(r);for(;n&&i&&t!==r;){let e=da(n),t=n.getBoundingClientRect(),i=u9(n),a=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,d*=e.y,c*=e.x,f*=e.y,u+=a,d+=o,n=dr(r=uY(n))}}return uB({width:c,height:f,x:u,y:d})}function dd(e,t){let r=de(e).scrollLeft;return t?t.left+r:du(uK(e)).left+r}function dc(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-dd(e,r),y:r.top+t.scrollTop}}function df(e,t,r){var i;let n;if("viewport"===t)n=function(e,t){let r=uY(e),i=uK(e),n=r.visualViewport,a=i.clientWidth,o=i.clientHeight,l=0,s=0;if(n){a=n.width,o=n.height;let e=u8();(!e||e&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}let u=dd(i);if(u<=0){let e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-n);o<=25&&(a-=o)}else u<=25&&(a+=u);return{width:a,height:o,x:l,y:s}}(e,r);else if("document"===t){let t,r,a,o,l,s,u;i=uK(e),t=uK(i),r=de(i),a=i.ownerDocument.body,o=uE(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=uE(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+dd(i),u=-r.scrollTop,"rtl"===u9(a).direction&&(s+=uE(t.clientWidth,a.clientWidth)-o),n={width:o,height:l,x:s,y:u}}else if(uJ(t)){let e,i,a,o,l,s;i=(e=du(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,o=uQ(t)?da(t):uk(1),l=t.clientWidth*o.x,s=t.clientHeight*o.y,n={width:l,height:s,x:a*o.x,y:i*o.y}}else{let r=ds(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return uB(n)}function dp(e){return"static"===u9(e).position}function dh(e,t){if(!uQ(e)||"fixed"===u9(e).position)return null;if(t)return t(e);let r=e.offsetParent;return uK(e)===r&&(r=r.ownerDocument.body),r}function dv(e,t){var r;let i=uY(e);if(u2(e))return i;if(!uQ(e)){let t=dt(e);for(;t&&!u4(t);){if(uJ(t)&&!dp(t))return t;t=dt(t)}return i}let n=dh(e,t);for(;n&&(r=n,/^(table|td|th)$/.test(uq(r)))&&dp(n);)n=dh(n,t);return n&&u4(n)&&dp(n)&&!u7(n)?i:n||function(e){let t=dt(e);for(;uQ(t)&&!u4(t);){if(u7(t))return t;if(u2(t))break;t=dt(t)}return null}(e)||i}let dm=async function(e){let t=this.getOffsetParent||dv,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=uQ(t),n=uK(t),a="fixed"===r,o=du(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=uk(0);if(i||!i&&!a)if(("body"!==uq(t)||u0(n))&&(l=de(t)),i){let e=du(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&(s.x=dd(n));a&&!i&&n&&(s.x=dd(n));let u=!n||i||a?uk(0):dc(n,l);return{x:o.left+l.scrollLeft-s.x-u.x,y:o.top+l.scrollTop-s.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},db={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,a="fixed"===n,o=uK(i),l=!!t&&u2(t.floating);if(i===o||l&&a)return r;let s={scrollLeft:0,scrollTop:0},u=uk(1),d=uk(0),c=uQ(i);if((c||!c&&!a)&&(("body"!==uq(i)||u0(o))&&(s=de(i)),c)){let e=du(i);u=da(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let f=!o||c||a?uk(0):dc(o,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-s.scrollTop*u.y+d.y+f.y}},getDocumentElement:uK,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,a=[..."clippingAncestors"===r?u2(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let i=(function e(t,r,i){var n;void 0===r&&(r=[]),void 0===i&&(i=!0);let a=function e(t){let r=dt(t);return u4(r)?t.ownerDocument?t.ownerDocument.body:t.body:uQ(r)&&u0(r)?r:e(r)}(t),o=a===(null==(n=t.ownerDocument)?void 0:n.body),l=uY(a);if(!o)return r.concat(a,e(a,[],i));{let t=dr(l);return r.concat(l,l.visualViewport||[],u0(a)?a:[],t&&i?e(t):[])}})(e,[],!1).filter(e=>uJ(e)&&"body"!==uq(e)),n=null,a="fixed"===u9(e).position,o=a?dt(e):e;for(;uJ(o)&&!u4(o);){let t=u9(o),r=u7(o);r||"fixed"!==t.position||(n=null),(a?r||n:!(!r&&"static"===t.position&&n&&("absolute"===n.position||"fixed"===n.position)||u0(o)&&!r&&function e(t,r){let i=dt(t);return!(i===r||!uJ(i)||u4(i))&&("fixed"===u9(i).position||e(i,r))}(e,o)))?n=t:i=i.filter(e=>e!==o),o=dt(o)}return t.set(e,i),i}(t,this._c):[].concat(r),i],o=df(t,a[0],n),l=o.top,s=o.right,u=o.bottom,d=o.left;for(let e=1;e{let[i,n]=ii(!1),a=il(null),o=il(null),l=il(null),s=()=>n(!0),u=()=>n(!1);return io(()=>{var e,t,n;let s,u,d,c;if(!i||!a.current||!o.current)return;let f=a.current,p=o.current;(n={placement:r,middleware:[{name:"offset",options:8,async fn(e){var t,r;let{x:i,y:n,placement:a,middlewareData:o}=e,l=await uW(e,8);return a===(null==(t=o.offset)?void 0:t.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:a}}}},(void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,n,a,o,l,s,u;let d,c,f,{placement:p,middlewareData:h,rects:v,initialPlacement:m,platform:b,elements:_}=t,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:E=!0,...S}=uT(e,t);if(null!=(r=h.arrow)&&r.alignmentOffset)return{};let k=uL(p),O=uR(m),T=uL(m)===m,L=await (null==b.isRTL?void 0:b.isRTL(_.floating)),M=w||(T||!E?[uV(m)]:(d=uV(m),[uP(m),d,uP(d)])),A="none"!==x;!w&&A&&M.push(...(c=uM(m),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?uD:uI;return t?uI:uD;case"left":case"right":return t?uj:uH;default:return[]}}(uL(m),"start"===x,L),c&&(f=f.map(e=>e+"-"+c),E&&(f=f.concat(f.map(uP)))),f));let N=[m,...M],R=await b.detectOverflow(t,S),P=[],I=(null==(i=h.flip)?void 0:i.overflows)||[];if(g&&P.push(R[k]),y){let e,t,r,i,n=(l=p,s=v,void 0===(u=L)&&(u=!1),e=uM(l),r=uN(t=uA(uR(l))),i="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(i=uV(i)),[i,uV(i)]);P.push(R[n[0]],R[n[1]])}if(I=[...I,{placement:p,overflows:P}],!P.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=N[e];if(t&&("alignment"!==y||O===uR(t)||I.every(e=>uR(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let r=null==(a=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(C){case"bestFit":{let e=null==(o=I.filter(e=>{if(A){let t=uR(e.placement);return t===O||"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:o[0];e&&(r=e);break}case"initialPlacement":r=m}if(p!==r)return{reset:{placement:r}}}return{}}}),{name:"shift",options:t={padding:5},async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=uT(t,e),d={x:r,y:i},c=await a.detectOverflow(e,u),f=uR(uL(n)),p=uA(f),h=d[p],v=d[f];if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=h+c[e],i=h-c[t];h=uE(r,ux(h,i))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=v+c[e],i=v-c[t];v=uE(r,ux(v,i))}let m=s.fn({...e,[p]:h,[f]:v});return{...m,data:{x:m.x-r,y:m.y-i,enabled:{[p]:o,[f]:l}}}}},...l.current?[{name:"arrow",options:s={element:l.current},async fn(e){let{x:t,y:r,placement:i,rects:n,platform:a,elements:o,middlewareData:l}=e,{element:u,padding:d=0}=uT(s,e)||{};if(null==u)return{};let c=u$(d),f={x:t,y:r},p=uA(uR(i)),h=uN(p),v=await a.getDimensions(u),m="y"===p,b=m?"clientHeight":"clientWidth",_=n.reference[h]+n.reference[p]-f[p]-n.floating[h],g=f[p]-n.reference[p],y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),w=y?y[b]:0;w&&await (null==a.isElement?void 0:a.isElement(y))||(w=o.floating[b]||n.floating[h]);let C=w/2-v[h]/2-1,x=ux(c[m?"top":"left"],C),E=ux(c[m?"bottom":"right"],C),S=w-v[h]-E,k=w/2-v[h]/2+(_/2-g/2),O=uE(x,ux(k,S)),T=!l.arrow&&null!=uM(i)&&k!==O&&n.reference[h]/2-(k{if(Object.assign(p.style,{left:`${e}px`,top:`${t}px`}),i.arrow&&l.current){let{x:e,y:t}=i.arrow,n=r.split("-")[0],a=l.current;if(Object.assign(a.style,{left:"",top:"",right:"",bottom:""}),r.includes("-start")||r.includes("-end")){let r=p.getBoundingClientRect();"top"===n||"bottom"===n?(a.style.left="14px",null!=t&&(a.style.top=`${t}px`)):(a.style.top=`${r.height/2-4}px`,null!=e&&(a.style.left=`${e}px`))}else null!=e&&(a.style.left=`${e}px`),null!=t&&(a.style.top=`${t}px`);a.style[({top:"bottom",right:"left",bottom:"top",left:"right"})[n]]="-4px"}})},[i,r,t]),aB(rI,{children:[rJ(e,{ref:a,onMouseEnter:s,onMouseLeave:u,onFocus:s,onBlur:u,"aria-describedby":"lightweight-tooltip"}),i&&aB("div",{ref:o,role:"tooltip",id:"lightweight-tooltip",className:(0,aP.default)("tooltip-container",aH()["tooltip-container"]),children:[t,aB("div",{ref:l,className:(0,aP.default)("tooltip-arrow",aH()["tooltip-arrow"])})]})]})};function dg({contentTypeName:e,referenceFieldName:t}){return aB("div",{className:(0,aP.default)("toolbar-tooltip-content",aH()["toolbar-tooltip-content"]),children:[e&&aB("div",{className:(0,aP.default)("toolbar-tooltip-content-item",aH()["toolbar-tooltip-content-item"]),children:[aB(a5,{}),aB("p",{children:e})]}),t&&aB("div",{className:(0,aP.default)("toolbar-tooltip-content-item",aH()["toolbar-tooltip-content-item"]),children:[aB("div",{dangerouslySetInnerHTML:{__html:oM.reference},className:(0,aP.default)("visual-builder__field-icon",aH()["visual-builder__field-icon"])}),aB("p",{children:t})]})]})}function dy({children:e,data:t,disabled:r=!1}){if(r)return e;let{contentTypeName:i,referenceFieldName:n}=t;return aB(d_,{content:aB(dg,{contentTypeName:i,referenceFieldName:n}),children:e})}var dw=function(e,t=(...e)=>JSON.stringify(e)){let r=new Map,i=new Map;async function n(...a){let o=t(...a);if(r.has(o))return r.get(o);if(i.has(o))return i.get(o);let l=e(...a).then(e=>(r.set(o,e),i.delete(o),e)).catch(e=>{throw i.delete(o),e});return i.set(o,l),l}return n.clearCache=()=>{r.clear(),i.clear()},n}(async function e({entryUid:t,contentTypeUid:r,locale:i}){try{let e=await ol?.send(os.GET_PERMISSIONS,{type:"entry",entryUid:t,contentTypeUid:r,locale:i});if(e)return e}catch(e){console.debug("[Visual Builder] Error fetching permissions",e)}return{create:!0,read:!0,update:!0,delete:!0,publish:!0}},({entryUid:e,contentTypeUid:t,locale:r})=>`${e}.${t}.${r}`);async function dC(e){try{return await ol?.send(os.GET_RESOLVED_VARIANT_PERMISSIONS,e)??{update:!0,error:!0}}catch(e){return console.warn("Error retrieving resolved variant permissions",e),{update:!0,error:!0}}}async function dx({entryUid:e,contentTypeUid:t,locale:r,variantUid:i}){try{let n=await ol?.send(os.GET_WORKFLOW_STAGE_DETAILS,{entryUid:e,contentTypeUid:t,locale:r,variantUid:i});if(n)return n}catch(e){console.debug("[Visual Builder] Error fetching workflow stage details",e)}return{stage:{name:"Unknown"},permissions:{entry:{update:!0}},requestEditAccess:{canRequest:!1,hasPending:!1}}}async function dE({entryUid:e,contentTypeUid:t,locale:r,variantUid:i,fieldPathWithIndex:n}){let a=dw({entryUid:e,contentTypeUid:t,locale:r}),o=dC({entry_uid:e,content_type_uid:t,locale:r,variant:i,fieldPathWithIndex:n}),l=dx({entryUid:e,contentTypeUid:t,locale:r,variantUid:i}),s=await Promise.allSettled([a,l,o]);"rejected"===s[0].status&&console.debug("[Visual Builder] Error retrieving entry permissions",s[0].reason),"rejected"===s[1].status&&console.debug("[Visual Builder] Error retrieving entry stage details",s[1].reason),"rejected"===s[2].status&&console.debug("[Visual Builder] Error retrieving resolved variant permissions",s[2].reason);let u="fulfilled"===s[0].status?s[0].value:void 0;return{acl:u,workflowStage:"fulfilled"===s[1].status?s[1].value:void 0,resolvedVariantPermissions:"fulfilled"===s[2].status?s[2].value:void 0}}function dS(){return aB("div",{className:aH()["visual-builder__variant-indicator"],children:aB(uu,{size:"18px"})})}var dk=e=>{let{data:t}=e;return ns.get(),aB("div",{className:"collab-icon",onClick:async()=>{ol?.send(os.OPEN_FIELD_COMMENT_MODAL,{fieldMetadata:t?.fieldMetadata,discussion:t?.discussion,fieldSchema:t?.fieldSchema,absolutePath:t.absolutePath}),sQ({threadUid:"",action:"close"}),ns.set("collab.isFeedbackMode",!0)},children:aB(aJ,{})})};function dO(){document.querySelectorAll(".highlighted-comment").forEach(e=>{if(e&&e instanceof HTMLElement){let t=e.getAttribute("field-path");if(t){let r=document.querySelector(`[data-cslp="${t}"]`);if(r&&r instanceof HTMLElement){let{top:t,left:i}=r.getBoundingClientRect();e.style.top=`${t-25}px`,e.style.left=`${i-25}px`}else e.remove()}}})}var dT=ai` display: none; `,dL=e.i(112864);function dM(e){return e.split(".").slice(0,-1).join(".")}function dA(e,t){return e.closest(`[data-cslp="${t}"]`)}var dN=new Set(["http:","https:","mailto:","tel:"]);function dR(e){e.overlayWrapper&&e.editableElement&&(c1(e.editableElement,e.overlayWrapper,e.isFieldDisabled),e.resizeObserver.observe(e.editableElement))}async function dP(e){var t,r,i,n,a,o,l,s,u,d,c,f,p,h;let v,m,b=e.event.target,_=b?.closest("a")??null,g=b&&(b.hasAttribute("data-cslp")||b.closest("[data-cslp]")),y=b?.getAttribute("data-cslp");if(as(y)){let e=document.querySelectorAll(`[data-cslp="${y}"]`);e.length>1&&e.forEach(e=>{if(!e.hasAttribute("data-cslp-unique-id")){let t=`cslp-${tJ()}`;e.setAttribute("data-cslp-unique-id",t)}})}if(b?.getAttribute("data-studio-ui")==="true")return;if(e.event.altKey){if(_){let{href:t,target:r,protocol:i}=_;e.event.preventDefault(),e.event.stopPropagation(),t&&dN.has(i)&&("_blank"===r?window.open(t,"_blank","noopener,noreferrer"):window.location.href=t)}return}(null!==_||g&&!b.closest(".visual-builder__empty-block"))&&(e.event.preventDefault(),e.event.stopPropagation());let w=ns.get();if(w?.collab.enable===!0){if(w?.collab.pauseFeedback)return;let r=(t=(0,dL.default)(b))?t.replace(/\/svg/g,"/*[name()='svg']"):"";if(!b)return;let i=b.getBoundingClientRect(),n=(e.event.clientX-i.left)/i.width,a=(e.event.clientY-i.top)/i.height;s1(b)||(e.event.preventDefault(),e.event.stopPropagation()),s1(b)?ns.set("collab.isFeedbackMode",!1):w?.collab.isFeedbackMode?sG({xpath:r,relativeX:n,relativeY:a},{isNewThread:!0,updateConfig:!0}):(sQ({threadUid:"",action:"close"}),ns.set("collab.isFeedbackMode",!0));return}let C=oS(e.event);if(r=C,ol?.send(os.MOUSE_CLICK,{cslpData:r?.cslpData,fieldMetadata:r?.fieldMetadata}).catch(e=>{console.warn("Error while sending post message",e)}),!C||!e.overlayWrapper||!e.visualBuilderContainer)return;let{editableElement:x,fieldMetadata:E}=C,{content_type_uid:S,fieldPath:k}=E;if(ou.hasFieldSchema(S,k)){let t=await ou.getFieldSchema(S,k);if(t&&uy(t,E)){let t=dM(E.cslpValue),r=dA(x,t);r?r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:e.event.clientX,clientY:e.event.clientY})):w.debug&&console.debug("[Visual Builder] Custom field multiple instance: whole-field parent not found in DOM for CSLP",t);return}}let O=await uc(E),T=!!O&&Object.values(O).some(e=>!0===e);if(i=e,n=x,((v=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM)&&v!==n||i.reEvaluate)&&cQ({overlayWrapper:i.overlayWrapper,visualBuilderContainer:i.visualBuilderContainer,focusedToolbar:i.focusedToolbar,resizeObserver:i.resizeObserver}),(a=x).classList.contains(fg)||a.classList.contains("visual-builder__empty-block"))return;let L=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(o=L,l=x,s=e,o&&o===l&&!s.reEvaluate)return;fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM=x,u=e,d=C,c=x,f=T,fv.VisualBuilderGlobalState.value.isFocussed=!0,dR({overlayWrapper:u.overlayWrapper,resizeObserver:u.resizeObserver,editableElement:c}),function(e){let{editableElement:t}=e.eventDetails;t&&e.focusedToolbar&&function(e,t,r,i=!1,n){dW(e,t,n),n?.isHover||dz(e,t,r,i)}(e.eventDetails,e.focusedToolbar,e.hideOverlay,e.isVariant,e.options)}({eventDetails:d,focusedToolbar:u.focusedToolbar,hideOverlay:()=>{c5({visualBuilderContainer:u.visualBuilderContainer,visualBuilderOverlayWrapper:u.overlayWrapper,focusedToolbar:u.focusedToolbar,resizeObserver:u.resizeObserver})},isVariant:f});let{cslpValue:M}=E;document.querySelectorAll(`.highlighted-comment[field-path="${M}"]`).forEach(e=>{e.classList.add(dT)}),await dI(e,C,E,x,L),p=e,h=x,m=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"data-cslp"===e.attributeName&&(m?.disconnect(),fv.VisualBuilderGlobalState.value.focusElementObserver=null,dP({...p,reEvaluate:!0}))})}),fv.VisualBuilderGlobalState.value.focusElementObserver=m,m.observe(h,{attributes:!0})}async function dI(e,t,r,i,n){let{content_type_uid:a,entry_uid:o,fieldPath:l,locale:s,variant:u,fieldPathWithIndex:d}=r,c=await ou.getFieldSchema(a,l),{acl:f,workflowStage:p,resolvedVariantPermissions:h}=await dE({entryUid:o,contentTypeUid:a,locale:s,variantUid:u,fieldPathWithIndex:d});if(c){let{isDisabled:r}=og(c,t,h,f,p);r&&dR({overlayWrapper:e.overlayWrapper,resizeObserver:e.resizeObserver,editableElement:i,isFieldDisabled:!0})}ol?.send(os.FOCUS_FIELD,{DOMEditStack:oO(i)}),await cJ(t,{visualBuilderContainer:e.visualBuilderContainer,resizeObserver:e.resizeObserver,lastEditedField:n})}async function dD(){let e=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM,t=fv.VisualBuilderGlobalState.value.previousHoveredTargetDOM,r=e?.getAttribute("data-cslp"),i=e?.getAttribute("data-cslp-unique-id")||null,n=!!e;try{n&&await dj();let r=t||e;if(r){let e=r.getAttribute("data-cslp");if(as(e)){let t=au(e);ou.clearContentTypeSchema(t.content_type_uid)}}ou.clear()}catch(e){console.error("Error handling revalidate field data:",e),window.location.reload()}finally{n&&as(r)&&await dH(r,i)}}async function dj(){let{visualBuilderContainer:e,overlayWrapper:t,focusedToolbar:r}=dV();e&&t&&(c0({visualBuilderContainer:e,visualBuilderOverlayWrapper:t,focusedToolbar:r,resizeObserver:new ResizeObserver(()=>{}),noTrigger:!0}),fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM=null,fv.VisualBuilderGlobalState.value.isFocussed=!1)}async function dH(e,t){try{let r=t&&document.querySelector(`[data-cslp-unique-id="${t}"]`)||document.querySelector(`[data-cslp="${e}"]`);if(!r)return;let{visualBuilderContainer:i,overlayWrapper:n,focusedToolbar:a}=dV();if(!i||!n)return;let o=new MouseEvent("click",{bubbles:!0,cancelable:!0});Object.defineProperty(o,"target",{value:r,enumerable:!0}),await dP({event:o,previousSelectedEditableDOM:null,visualBuilderContainer:i,overlayWrapper:n,focusedToolbar:a,resizeObserver:new ResizeObserver(()=>{})})}catch(e){console.warn("Could not refocus element after revalidation:",e)}}function dV(){return{visualBuilderContainer:document.querySelector(".visual-builder__container"),overlayWrapper:document.querySelector(".visual-builder__overlay__wrapper"),focusedToolbar:document.querySelector(".visual-builder__focused-toolbar")}}async function d$(e){return await ol?.send(os.GET_FIELD_DISPLAY_NAMES,e)}async function dB(e){try{let t=await ol?.send(os.GET_CONTENT_TYPE_NAME,{content_type_uid:e});return t?.contentTypeName}catch(e){return console.warn("[getFieldLabelWrapper] Error getting content type name",e),""}}async function dU(){try{return await ol?.send(os.REFERENCE_MAP,{})??{}}catch(e){return console.warn("[getFieldLabelWrapper] Error getting reference parent map",e),{}}}function dF(e){let{reason:t,workflowRequestUi:r,usePlainDataTooltip:i,onLinkVariant:n,onRequestEditAccess:a}=e,o=il(null),[l,s]=ii(!1),u=(0,aP.default)(aH()["visual-builder__custom-tooltip"],l&&aH()["visual-builder__custom-tooltip--below"]),d=(0,aP.default)(aH()["visual-builder__custom-tooltip"],l&&aH()["visual-builder__custom-tooltip--below"],aH()["visual-builder__custom-tooltip--workflow-access"]);return aB("div",{ref:o,onMouseEnter:()=>{let e=o.current;if(!e)return;let{top:t}=e.getBoundingClientRect();s(t<148)},className:(0,aP.default)(aH()["visual-builder__tooltip--persistent"],l&&aH()["visual-builder__tooltip--persistent--below"]),"data-tooltip":i?t:void 0,children:[t?.includes(ob)?aB("div",{className:u,onClick:n,children:(()=>{let[e,r]=t.split(o_);return aB(rI,{children:[e,aB("span",{style:{textDecoration:"underline"},children:o_}),r]})})()}):null,"request"===r&&t?aB("div",{className:d,children:[aB("span",{children:t})," ",aB("span",{role:"button",tabIndex:0,style:{textDecoration:"underline",cursor:"pointer"},onClick:e=>{e.stopPropagation(),a()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a())},children:"Request Edit Access"})]}):null,"pending"===r&&t?aB("div",{className:d,children:t}):null,aB(aq,{})]})}var dZ=function(e){let{eventDetails:t}=e,[r,i]=ii({text:"",contentTypeName:"",icon:aB(aF,{}),prefixIcon:null,disabled:!1,isVariant:!1,isReference:!1,referenceFieldName:"",parentContentTypeName:""}),[n,a]=ii({}),[o,l]=ii(!0),[s,u]=ii(!1),[d,c]=ii(!1);return io(()=>{let r=async()=>{l(!0);let r=lu([e.fieldMetadata,...e.parentPaths.filter(e=>e).map(e=>au(e))],"cslpValue"),[n,o,s,d]=await Promise.all([d$(r),ou.getFieldSchema(e.fieldMetadata.content_type_uid,e.fieldMetadata.fieldPath),dB(e.fieldMetadata.content_type_uid),dU()]),c=d[e.fieldMetadata.entry_uid],f=!!c,p=c?c[0].referenceFieldName:"",h=c?c[0].contentTypeTitle:"";if(f){let r=t.editableElement.closest(`[data-cslp]:not([data-cslp^="${e.fieldMetadata.content_type_uid}"])`);if(r){let e=r.getAttribute("data-cslp");if(as(e)){let t=au(e).content_type_uid,r=c?.find(e=>e.contentTypeUid===t);r&&(p=r.referenceFieldName,h=r.contentTypeTitle)}}}if(od(n)||!o){l(!1),u(!0);return}let{acl:v,workflowStage:m,resolvedVariantPermissions:b}=await dE({entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale,variantUid:e.fieldMetadata.variant,fieldPathWithIndex:e.fieldMetadata.fieldPathWithIndex}),{isDisabled:_,reason:g,workflowRequestUi:y}=og(o,t,b,v,m),w=async()=>{try{await ol?.send(os.OPEN_REQUEST_EDIT_ACCESS,{entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale,variantUid:e.fieldMetadata.variant})}catch(e){console.error("Error opening request edit access flow:",e)}},C=async()=>{try{if(o.field_metadata?.canLinkVariant){let t=await ol?.send(os.OPEN_LINK_VARIANT_MODAL,{contentTypeUid:e.fieldMetadata.content_type_uid});if(!t||t.type===ot.ERROR)return;t.type===ot.SUCCESS&&await dD()}}catch(e){console.error("Error in link variant modal flow:",e)}},x=n?.[e.fieldMetadata.cslpValue]??o.display_name,E=!!e?.parentPaths?.length,S=!!e.fieldMetadata.variant,k=g&&!g.includes(ob)&&null==y;i({text:x,contentTypeName:s??"",icon:_?aB(dF,{reason:g,...null!=y?{workflowRequestUi:y}:{},usePlainDataTooltip:!!k,onLinkVariant:C,onRequestEditAccess:w}):E?aB(aF,{}):aB(rI,{}),isReference:f,prefixIcon:oM[of(o)],disabled:_,referenceFieldName:p,parentContentTypeName:h,isVariant:S}),n&&a(n),Object.keys(n||{})?.length===r.length&&l(!1)};try{r()}catch(e){console.warn("[getFieldLabelWrapper] Error fetching field label data",e)}},[e]),aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar__field-label-container",aH()["visual-builder__focused-toolbar__field-label-container"]),children:[r.isVariant?aB(dS,{}):null,aB(dy,{data:{contentTypeName:r.parentContentTypeName,referenceFieldName:r.referenceFieldName},disabled:!r.isReference||d,children:aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar__field-label-wrapper",aH()["visual-builder__focused-toolbar__field-label-wrapper"],{"visual-builder__focused-toolbar--field-disabled":r.disabled},{[aH()["visual-builder__focused-toolbar--field-disabled"]]:r.disabled},{"field-label-dropdown-open":d,[aH()["field-label-dropdown-open"]]:d},{"visual-builder__focused-toolbar--variant":r.isVariant},{[aH()["visual-builder__focused-toolbar--variant"]]:r.isVariant}),onClick:()=>c(e=>!e),"data-testid":"visual-builder__focused-toolbar__field-label-wrapper","data-hovered-cslp":e.fieldMetadata.cslpValue,children:[aB("button",{className:(0,aP.default)("visual-builder__focused-toolbar__field-label-wrapper__current-field visual-builder__button visual-builder__button--primary visual-builder__button-loader",aH()["visual-builder__focused-toolbar__field-label-wrapper__current-field"],aH()["visual-builder__button"],aH()["visual-builder__button--primary"],aH()["visual-builder__button-loader"],s&&aH()["visual-builder__button-error"]),disabled:o,children:[!r.isReference||o||s?null:aB("div",{className:(0,aP.default)("visual-builder__reference-icon-container",aH()["visual-builder__reference-icon-container"]),children:[aB("div",{className:(0,aP.default)("visual-builder__field-icon",aH()["visual-builder__field-icon"]),dangerouslySetInnerHTML:{__html:oM.reference},"data-testid":"visual-builder__field-icon-caret"}),aB(a3,{})]}),!r.contentTypeName||o||s?null:aB(rI,{children:[aB(a5,{}),aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar__text",aH()["visual-builder__focused-toolbar__text"]),"data-testid":"visual-builder__focused-toolbar__ct-name",children:r.contentTypeName+" : "})]}),r.prefixIcon?aB("div",{className:(0,aP.default)("visual-builder__field-icon",aH()["visual-builder__field-icon"]),dangerouslySetInnerHTML:{__html:r.prefixIcon},"data-testid":"visual-builder__field-icon"}):null,r.text?aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar__text",aH()["visual-builder__focused-toolbar__text"]),"data-testid":"visual-builder__focused-toolbar__text",children:r.text}):null,s?null:o?aB(ul,{}):r.icon,s?aB(uC,{}):null]}),e.parentPaths.map((t,r)=>aB("button",{className:(0,aP.default)("visual-builder__focused-toolbar__field-label-wrapper__parent-field visual-builder__button visual-builder__button--secondary visual-builder__focused-toolbar__text",aH()["visual-builder__focused-toolbar__field-label-wrapper__parent-field"],aH()["visual-builder__button"],aH()["visual-builder__button--secondary"],aH()["visual-builder__focused-toolbar__text"]),"data-target-cslp":t,style:{top:`${-((r+1)*30)}px`},onClick:()=>{let r;(r=e.getParentEditableElement(t))&&r.click()},children:n[t]},t))]})})]})};async function dz(e,t,r,i=!1,n){let{isHover:a}=n||{},o=".visual-builder__focused-toolbar__multiple-field-toolbar";if(t.querySelector(o)&&!a)return;let{acl:l,workflowStage:s,resolvedVariantPermissions:u}=await dE({entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale,variantUid:e.fieldMetadata.variant,fieldPathWithIndex:e.fieldMetadata.fieldPathWithIndex});if(t.querySelector(o)&&!a)return;let d=document.createDocumentFragment();rK(aB(uw,{eventDetails:e,hideOverlay:r,isVariant:i,entryPermissions:l,entryWorkflowStageDetails:s,resolvedVariantPermissions:u}),d),t.append(d)}function dW(e,t,r){let{isHover:i}=r||{},n=document.querySelector(".visual-builder__focused-toolbar__field-label-wrapper"),{editableElement:a,fieldMetadata:o}=e;if(n)if(!i)return;else{if(n.getAttribute("data-hovered-cslp")===o.cslpValue)return;dG(t)}let l=a.getBoundingClientRect(),s=l.top+window.scrollY-8,u=l.top+window.scrollY<42?s+l.height+42:s,d=Math.max(l.left-2,8);window.scrollX+window.innerWidth-l.left<180?(t.style.justifyContent="flex-end",t.style.left=`${l.right+2}px`):(t.style.justifyContent="flex-start",t.style.left=`${d}px`),t.style.top=`${u}px`;let c=function(e,t){let r=[],i=e.parentElement;for(;(t>0||i===window.document.body)&&i;)i.hasAttribute(oe)&&(r.push(i.getAttribute(oe)),t--),i=i.parentElement;return r}(a,2),f=document.createDocumentFragment();rK(aB(dZ,{fieldMetadata:o,eventDetails:e,parentPaths:c,getParentEditableElement:e=>a.closest(`[${oe}="${e}"]`)}),f),t.appendChild(f)}function dG(e){e.innerHTML="",[os.DELETE_INSTANCE,os.UPDATE_DISCUSSION_ID,os.FIELD_LOCATION_DATA].forEach(e=>{ol?.requestMessageHandlers?.has(e)&&ol?.unregisterEvent?.(e)})}var dq=ns.get();function dY(e){e&&oA({fieldType:"empty",customCursor:e})}function dK(e){e&&oA({fieldType:"discussion",customCursor:e})}function dX(e,t){if(t){let r=e.clientY,i=e.clientX;t.style.left=`${i}px`,t.style.top=`${r}px`}}var dJ=nx(async function(e){if(!e)return;let{editableElement:t,eventDetails:r,content_type_uid:i,fieldPath:n,fieldMetadata:a,fieldDisabled:o}=e;if(!t)return;let l=!!a.variant;oN(t,o,l);let s=await ou.getFieldSchema(i,n);if(!s)return;let{acl:u,workflowStage:d,resolvedVariantPermissions:c}=await dE({entryUid:a.entry_uid,contentTypeUid:a.content_type_uid,locale:a.locale,variantUid:a.variant,fieldPathWithIndex:a.fieldPathWithIndex}),{isDisabled:f}=og(s,r,c,u,d);oN(t,o||f,l)},50,{trailing:!0});function dQ(e){if(!e)return;let t=e.querySelector(".visual-builder__hover-outline");t&&t.classList.add(aH()["visual-builder__hover-outline--hidden"])}function d1(e){document?.body&&document.body.classList.contains(aH()["visual-builder__default-cursor--disabled"])&&document.body.classList.remove(aH()["visual-builder__default-cursor--disabled"]),e?.classList.remove("visible")}function d0(e){document?.body&&!document.body.classList.contains(aH()["visual-builder__default-cursor--disabled"])&&document.body.classList.add(aH()["visual-builder__default-cursor--disabled"]),dq.collab.enable&&(!dq.collab.isFeedbackMode||dq.collab.pauseFeedback)||e?.classList.add("visible")}var d2=nx(async e=>{let t=oS(e.event);t&&e.overlayWrapper&&e.visualBuilderContainer&&e.focusedToolbar&&dW(t,e.focusedToolbar,{isHover:!0})},50,{trailing:!0}),d5=async e=>await d2(e),d3=nE(async e=>{let t=oS(e.event),r=e.event.target;if(dq?.collab.enable&&dq?.collab.pauseFeedback)return void d1(e.customCursor);if(!t){if(r&&(r.classList.contains("visual-builder__overlay")||r.hasAttribute("contenteditable")&&"true"===r.getAttribute("contenteditable")||s1(r))){dX(e.event,e.customCursor),d1(e.customCursor);return}r&&(r.classList.contains("visual-builder__focused-toolbar__field-label-wrapper")||r.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__current-field")||r.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__parent-field"))&&(e.customCursor&&d1(e.customCursor),dJ(void 0),d5({event:e.event,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver})),dq?.collab.enable||dY(e.customCursor),d8({eventTarget:e.event.target,visualBuilderContainer:e.visualBuilderContainer,overlayWrapper:e.overlayWrapper}),dX(e.event,e.customCursor),dq?.collab.enable&&dq?.collab.isFeedbackMode&&(d0(e.customCursor),dK(e.customCursor));return}let{editableElement:i,fieldMetadata:n}=t,{content_type_uid:a,fieldPath:o}=n;if(ou.hasFieldSchema(a,o)){let t=await ou.getFieldSchema(a,o);if(t&&uy(t,n)){let t=dM(n.cslpValue),r=dA(i,t);r?r.dispatchEvent(new MouseEvent("mousemove",{bubbles:!0,cancelable:!0,clientX:e.event.clientX,clientY:e.event.clientY})):(dq.debug&&console.debug("[Visual Builder] Custom field multiple instance: whole-field parent not found in DOM for CSLP",t),dY(e.customCursor),dX(e.event,e.customCursor));return}}if(fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM&&fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM.isSameNode(i))return void d1(e.customCursor);if(e.customCursor){if(dq?.collab.enable&&dq?.collab.isFeedbackMode){dK(e.customCursor),dX(e.event,e.customCursor),d0(e.customCursor);return}if(dq?.collab.enable&&!dq?.collab.isFeedbackMode)return void d1(e.customCursor);fv.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==i&&(dY(e.customCursor),d8({eventTarget:e.event.target,visualBuilderContainer:e.visualBuilderContainer,overlayWrapper:e.overlayWrapper})),ou.hasFieldSchema(a,o)||oA({fieldType:"loading",customCursor:e.customCursor}),fv.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==i&&d6({eventDetails:t,customCursor:e.customCursor}),dX(e.event,e.customCursor),d0(e.customCursor)}i.classList.contains(fg)||i.classList.contains("visual-builder__empty-block")||(dJ({editableElement:i,eventDetails:t,content_type_uid:a,fieldPath:o,fieldMetadata:n}),fv.VisualBuilderGlobalState.value.isFocussed||d5({event:e.event,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver})),fv.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==i&&(fv.VisualBuilderGlobalState.value.previousHoveredTargetDOM=i)},10);async function d6({eventDetails:e,customCursor:t}){if(!t)return;let{fieldMetadata:r}=e,i=await ou.getFieldSchema(r.content_type_uid,r.fieldPath);if(!i)return;let{acl:n,workflowStage:a,resolvedVariantPermissions:o}=await dE({entryUid:r.entry_uid,contentTypeUid:r.content_type_uid,locale:r.locale,variantUid:r.variant,fieldPathWithIndex:r.fieldPathWithIndex}),{isDisabled:l}=og(i,e,o,n,a);oA({fieldType:of(i),customCursor:t,fieldDisabled:l})}var d7=async e=>await d3(e);function d8(e,t=!1){let{visualBuilderContainer:r,overlayWrapper:i,eventTarget:n}=e;if(!r)return;if(t){let e=oC(r,!0);e?.forEach(e=>e.remove())}let a=oC(r);if(!a)return;let[o,l]=a;i?.classList.contains("visible")||n&&(o.contains(n)||l.contains(n))||(l.remove(),o.remove())}function d4({parentCslp:e,index:t}){let r=document.querySelector(`[data-cslp='${e}']`);if(r){let i=[e,t].join("."),n=!1,a=null;new MutationObserver((e,t)=>{let o=r.querySelector(`[data-cslp='${i}']`);if(o){setTimeout(()=>o.click(),350),t.disconnect(),n=!0;return}n||a||(a=setTimeout(()=>{t.disconnect(),n=!1},4e3))}).observe(r,{childList:!0,subtree:!0,attributes:!1})}}let d9=function(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(n);++i=i?e:d9(e,t,r)};var ct=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let cr=function(e){return ct.test(e)};var ci="\\ud800-\\udfff",cn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ca="\\ud83c[\\udffb-\\udfff]",co="[^"+ci+"]",cl="(?:\\ud83c[\\udde6-\\uddff]){2}",cs="[\\ud800-\\udbff][\\udc00-\\udfff]",cu="(?:"+cn+"|"+ca+")?",cd="[\\ufe0e\\ufe0f]?",cc="(?:\\u200d(?:"+[co,cl,cs].join("|")+")"+cd+cu+")*",cf=RegExp(ca+"(?="+ca+")|"+("(?:"+[co+cn+"?",cn,cl,cs,"["+ci+"]"].join("|"))+")"+(cd+cu+cc),"g");let cp=function(e){var t,r=cr(e=tN(e))?cr(t=e)?t.match(cf)||[]:t.split(""):void 0,i=r?r[0]:e.charAt(0),n=r?ce(r,1).join(""):e.slice(1);return i.toUpperCase()+n},ch=function(e,t,r,i){var n=-1,a=null==e?0:e.length;for(i&&a&&(r=e[++n]);++n(t[cZ(r)]=e[r],t),{})}function cW(e,t){let r,i,n,a,o=(i=Array.from(r=window.getComputedStyle(e)),n=["position","left","top","right","bottom","text-overflow","text-transform","margin","margin-block-end","margin-block-start","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-bottom","-webkit-user-modify","cursor"],a={},i.forEach(e=>{if(!n.includes(e)){let t=r.getPropertyValue(e);a[e]=t}}),a),l=e.getBoundingClientRect();t&&(o=cz(o));let s=function({rect:e,camelCase:t}){let r={position:"absolute",top:`${e.top+window.scrollY}px`,left:`${e.left+window.scrollX}px`,height:"auto","min-height":`${Math.abs(e.height)}px`,"white-space":"normal","text-transform":"none","text-wrap-mode":"wrap","text-overflow":"visible"};return t?cz(r):r}({rect:l,camelCase:t});return{...o,...s}}var cG=function(e){let t=cW(e.editableElement,!0);return aB("div",{className:(0,aP.default)("visual-builder__pseudo-editable-element",aH()["visual-builder__pseudo-editable-element"]),"data-testid":"visual-builder__pseudo-editable-element",style:t,children:e.config.textContent})};function cq(e){let t="",r=!0;return!function e(i){for(let n=0;n`${e}${t}:${r};`,"");m.style.cssText=t,m.style.visibility="visible"}let b=e.getBoundingClientRect();if(b.width&&b.height){let e=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!e)return;!function({focusedToolbar:e,selectedElementDimension:t}){if(e){let r=window.scrollX+window.innerWidth-t.left,i=t.top+window.scrollY-8,n=t.top+window.scrollY<42?i+t.height+42:i,a=Math.max(t.left-2,8);r<180&&("flex-end"!==e.style.justifyContent||e.style.left!==`${t.right+2}px`)?(e.style.justifyContent="flex-end",e.style.left=`${t.right+2}px`):("flex-start"!==e.style.justifyContent||e.style.left!==`${a}px`)&&(e.style.justifyContent="flex-start",e.style.left=`${a}px`),e.style.top!==`${n}px`&&(e.style.top=`${n}px`)}}({focusedToolbar:i,selectedElementDimension:e.getBoundingClientRect()})}let _=oC(t),g=d.multipleFieldMetadata?.parentDetails?.parentCslpValue;if(_&&g&&_.length>1&&_[0]&&_[1]){let[t,r]=_,i=oE(e,g),n=e.getBoundingClientRect();if("horizontal"===i){let e=n.top+(n.bottom-n.top)/2+window.scrollY;t.style.left=`${n.left}px`,t.style.top=`${e}px`,r.style.left=`${n.right}px`,r.style.top=`${e}px`}else if("vertical"===i){let e=n.left+(n.right-n.left)/2;t.style.left=`${e}px`,t.style.top=`${n.top+window.scrollY}px`,r.style.left=`${e}px`,r.style.top=`${n.bottom+window.scrollY}px`}}}var cK=nx(e=>{e.preventDefault();let t=e.clipboardData;document.execCommand("inserttext",!1,t?.getData("text/plain"))},100,{leading:!0});function cX({expectedFieldData:e,editableElement:t,fieldType:r,elements:i}){let{visualBuilderContainer:n,resizeObserver:a}=i,o=t;fv.VisualBuilderGlobalState.value.focusFieldValue=o?.innerText;let l=window.getComputedStyle(o).display,s=t.innerText||t.textContent||"";r===a8.MULTILINE&&(s=cq(o),o.addEventListener("paste",cK));let u=document.querySelector("[data-cs-last-edited]")===t;if(e&&s!==e||t.offsetWidth{let e=n.querySelector(".visual-builder__overlay__wrapper"),t=n.querySelector(".visual-builder__focused-toolbar");cY({editableElement:o,visualBuilderContainer:n,overlayWrapper:e,focusedToolbar:t,resizeObserver:a})},200);o.addEventListener("input",e)}o.setAttribute("contenteditable","true"),o.addEventListener("input",op),o.addEventListener("keydown",ov),t.setAttribute("data-cs-last-edited","true"),o.focus()}async function cJ(e,t){let{fieldMetadata:r,editableElement:i}=e,{visualBuilderContainer:n,lastEditedField:a,resizeObserver:o}=t,{content_type_uid:l,entry_uid:s,locale:u,variant:d,fieldPath:c,fieldPathWithIndex:f}=r,[p,h]=await Promise.all([ou.getFieldSchema(l,c),oc({content_type_uid:l,entry_uid:s,locale:u},f)]),v=of(p),{acl:m,workflowStage:b,resolvedVariantPermissions:_}=await dE({entryUid:s,contentTypeUid:l,locale:u,variantUid:d,fieldPathWithIndex:f}),{isDisabled:g}=og(p,e,_,m,b);if(i.setAttribute(a9,v),ug(p)&&!uy(p,r)&&a!==i){let t="blocks"===p.data_type?"Add Section":void 0;!function(e,t,r){let{editableElement:i,visualBuilderContainer:n,resizeObserver:a}=t,{expectedFieldData:o,fieldSchema:l,disabled:s,label:u}=r,d=e.fieldMetadata.multipleFieldMetadata?.parentDetails?.parentCslpValue;if(!i||!d)return;let c=oE(i,d);if("none"===c||!n)return;let f=i.getBoundingClientRect();d8({visualBuilderContainer:n,eventTarget:null,overlayWrapper:null},!0);let p=n.querySelector(".visual-builder__overlay__wrapper"),h=n.querySelector(".visual-builder__focused-toolbar");if(s)return;let v=e.fieldMetadata.instance.fieldPathWithIndex===e.fieldMetadata.fieldPathWithIndex,m=v?0:e.fieldMetadata.multipleFieldMetadata.index,b=v?o.length:e.fieldMetadata.multipleFieldMetadata.index+1,_=v?e.cslpData:d,g=e=>{dQ(n),c5({visualBuilderContainer:n,visualBuilderOverlayWrapper:p,focusedToolbar:h,resizeObserver:a}),d4({parentCslp:_,index:e})},y=iN(!1),w=ow({fieldSchema:l,value:o,fieldMetadata:e.fieldMetadata,index:m,onClick:g.bind(null,m),loading:y,label:u}),C=ow({fieldSchema:l,value:o,fieldMetadata:e.fieldMetadata,index:b,onClick:g.bind(null,b),loading:y,label:u});if(n.contains(w)||n.appendChild(w),n.contains(C)||n.appendChild(C),"horizontal"===c){let e=f.top+(f.bottom-f.top)/2+window.scrollY;w.style.left=`${f.left}px`,w.style.top=`${e}px`,C.style.left=`${f.right}px`,C.style.top=`${e}px`}else{let e=f.left+(f.right-f.left)/2;w.style.left=`${e}px`,w.style.top=`${f.top+window.scrollY}px`,C.style.left=`${e}px`,C.style.top=`${f.bottom+window.scrollY}px`}}(e,{editableElement:e.editableElement,visualBuilderContainer:n,resizeObserver:o},{fieldSchema:p,expectedFieldData:h,disabled:g,label:t})}g||function({fieldType:e,fieldSchema:t,fieldMetadata:r,expectedFieldData:i,editableElement:n,elements:a}){if(!or.includes(e))return;let o=Number(r.instance.fieldPathWithIndex.split(".").at(-1)),l=Number.isFinite(o);if(ug(t)){let t=null;if(Array.isArray(i)){if(!l)return;o>=i.length||(t=i.at(o))}else t=i;cX({fieldType:e,expectedFieldData:t,editableElement:n,elements:a})}else{let t=null;if(l){if(0!==o)return;t=Array.isArray(i)?i.at(0):i}cX({fieldType:e,expectedFieldData:t??i,editableElement:n,elements:a})}}({fieldType:v,fieldSchema:p,fieldMetadata:r,expectedFieldData:h,editableElement:i,elements:t})}function cQ(e){let{overlayWrapper:t,visualBuilderContainer:r,focusedToolbar:i}=e;d8({eventTarget:null,visualBuilderContainer:r,overlayWrapper:t},!0);let n=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM;n&&(n.removeAttribute(a9),n.removeAttribute("contenteditable"),n.removeEventListener("input",op),n.removeEventListener("keydown",ov),n.removeEventListener("paste",cK),e.resizeObserver.unobserve(n));let a=r?.querySelector(".visual-builder__pseudo-editable-element");a&&(e.resizeObserver.unobserve(a),a.removeEventListener("paste",cK),a.remove(),n&&n.style.removeProperty("visibility")),i&&dG(i)}function c1(e,t,r){let i=e.getBoundingClientRect();if(0===i.width||0===i.height)return;t.classList.add("visible");let n=i.top+window.scrollY,a=t.querySelector(".visual-builder__overlay--top");a&&(a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height=`calc(${n}px)`);let o=t.querySelector(".visual-builder__overlay--bottom");o&&(o.style.top=`${i.bottom+window.scrollY}px`,o.style.height=`${window.document.body.scrollHeight-i.bottom-window.scrollY}px`,o.style.left="0",o.style.width="100%");let l=t.querySelector(".visual-builder__overlay--left");l&&(l.style.left="0",l.style.top=`${n}px`,l.style.height=`${i.height}px`,l.style.width=`${i.left}px`);let s=t.querySelector(".visual-builder__overlay--right");s&&(s.style.left=`${i.right}px`,s.style.top=`${n}px`,s.style.height=`${i.height}px`,s.style.width=`${document.documentElement.clientWidth-i.right}px`);let u=t.querySelector(".visual-builder__overlay--outline");u&&(u.style.top=`${i.top+window.scrollY}px`,u.style.height=`${i.height}px`,u.style.width=`${i.width}px`,u.style.left=`${i.left}px`,u.style.outlineColor=r?"#909090":"#715cdd")}function c0(e){let{visualBuilderContainer:t,visualBuilderOverlayWrapper:r,focusedToolbar:i,resizeObserver:n,noTrigger:a}=e;if(r){if(r.classList.remove("visible"),r.childNodes.forEach(e=>{e instanceof Element&&e.removeAttribute("style")}),!a&&fv.VisualBuilderGlobalState.value.focusFieldReceivedInput)c2({visualBuilderContainer:t,eventType:os.UPDATE_FIELD});else if(a){let{previousSelectedEditableDOM:e,focusFieldValue:t}=fv.VisualBuilderGlobalState.value||{};e&&"innerText"in e&&null!=t&&(e.innerText=t)}fv.VisualBuilderGlobalState.value.focusFieldValue=null,fv.VisualBuilderGlobalState.value.focusFieldReceivedInput=!1,cQ({overlayWrapper:r,visualBuilderContainer:t,focusedToolbar:i,resizeObserver:n})}}function c2(e){let{visualBuilderContainer:t,eventType:r}=e,i=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM,n=t?.querySelector("div.visual-builder__pseudo-editable-element");if(i&&(i.hasAttribute("contenteditable")||n)){let e=n||i,t="innerText"in e?e.innerText:e.textContent,a=i.getAttribute("data-cslp");if(!as(a))return;let o=au(a);ou.getFieldSchema(o.content_type_uid,o.fieldPath).then(i=>{if(i&&r===os.UPDATE_FIELD){let r=of(i);r&&r===a8.MULTILINE&&(t=cq(e),e.innerText=t)}}).finally(()=>{ol?.send(r,{data:t,fieldMetadata:o})})}}function c5(e){fv.VisualBuilderGlobalState.value.isFocussed=!1;let t=fv.VisualBuilderGlobalState.value.focusElementObserver;t&&(t.disconnect(),fv.VisualBuilderGlobalState.value.focusElementObserver=null),c0({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:e.visualBuilderOverlayWrapper,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver,noTrigger:!!e.noTrigger}),document.querySelectorAll(`.highlighted-comment.${dT}`).forEach(e=>{e.classList.remove(dT)}),fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM&&(e.resizeObserver.unobserve(fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM),fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM=null)}function c3(){let e=Array.from(document.querySelectorAll("[data-cslp]")),t=new Map;return e.forEach(e=>{let r=e.getAttribute("data-cslp");if(!as(r))return;let i=au(r);t.set(i.entry_uid,{entryUid:i.entry_uid,contentTypeUid:i.content_type_uid,locale:i.locale})}),{entriesInCurrentPage:Array.from(t.values())}}var c6=function(e){let t=t2(),r=t5();return t||r?aB(rI,{children:[aB("style",{dangerouslySetInnerHTML:{__html:aV}}),aB("div",{className:(0,aP.default)(aH()["visual-builder__cursor"],"visual-builder__cursor"),"data-testid":"visual-builder__cursor"}),aB("div",{className:(0,aP.default)(aH()["visual-builder__overlay__wrapper"],"visual-builder__overlay__wrapper"),"data-testid":"visual-builder__overlay__wrapper",onClick:t=>{let r=t.currentTarget,i=document.querySelector(".visual-builder__focused-toolbar");c5({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:r,focusedToolbar:i,resizeObserver:e.resizeObserver})},children:[aB("div",{className:(0,aP.default)("visual-builder__overlay visual-builder__overlay--top",aH()["visual-builder__overlay"]),"data-testid":"visual-builder__overlay--top"}),aB("div",{"data-testid":"visual-builder__overlay--left",className:(0,aP.default)("visual-builder__overlay visual-builder__overlay--left",aH()["visual-builder__overlay"])}),aB("div",{"data-testid":"visual-builder__overlay--right",className:(0,aP.default)("visual-builder__overlay visual-builder__overlay--right",aH()["visual-builder__overlay"])}),aB("div",{"data-testid":"visual-builder__overlay--bottom",className:(0,aP.default)("visual-builder__overlay visual-builder__overlay--bottom",aH()["visual-builder__overlay"])}),aB("div",{"data-testid":"visual-builder__overlay--outline",className:(0,aP.default)("visual-builder__overlay--outline",aH()["visual-builder__overlay--outline"])})]}),aB("div",{className:(0,aP.default)("visual-builder__hover-outline visual-builder__hover-outline--unclickable",aH()["visual-builder__hover-outline"],aH()["visual-builder__hover-outline--unclickable"]),"data-testid":"visual-builder__hover-outline"}),aB("div",{className:(0,aP.default)("visual-builder__focused-toolbar",aH()["visual-builder__focused-toolbar"]),"data-testid":"visual-builder__focused-toolbar"})]}):null},c7=function(e){let t=document.querySelector(".visual-builder__container"),r=t2(),i=t5();if(!t&&(r||i)){let t=document.createElement("div");t.classList.add(aH()["visual-builder__container"],"visual-builder__container"),t.setAttribute("data-testid","visual-builder__container"),document.body.appendChild(t),rK(aB(c6,{visualBuilderContainer:t,resizeObserver:e.resizeObserver}),t)}};function c8(){document.querySelectorAll(`.${aH()["visual-builder__draft-field"]}`).forEach(e=>{e.classList.remove(aH()["visual-builder__draft-field"])})}var c4=e=>{let{content_type_uid:t,entry_uid:r,locale:i,path:n}=e.data.cslpData,a=`${t}.${r}.${i}.${n}`,o=document.querySelector(`[data-cslp="${a}"]`);o&&o.scrollIntoView({behavior:"smooth",block:"center"})},c9=nx(()=>{ol?.send(os.REQUEST_DISCUSSION_HIGHLIGHTS)},200);function fe(){let e=fv.VisualBuilderGlobalState.value.highlightVariantFields,t=fv.VisualBuilderGlobalState.value.variant,r=[],i=t=>{let r=t.getAttribute(oe);if(!as(r))return void t.childNodes.forEach(e=>{e instanceof HTMLElement&&i(e)});if(!(r.startsWith("v2:")&&t.classList.contains("visual-builder__variant-field"))){if(r.startsWith("v2:")&&!t.classList.contains("visual-builder__variant-field")){t.classList.contains("visual-builder__base-field")&&t.classList.remove("visual-builder__base-field");let r=["visual-builder__variant-field"];e&&r.push(aH()["visual-builder__variant-field-outline"]),t.classList.add(...r)}else r.startsWith("v2:")||(t.classList.contains("visual-builder__variant-field")&&t.classList.remove(aH()["visual-builder__variant-field-outline"],"visual-builder__variant-field"),t.classList.add("visual-builder__base-field"));t.childNodes.forEach(e=>{e instanceof HTMLElement&&i(e)})}};document.querySelectorAll(`[${oe}]`).forEach(n=>{let a=new MutationObserver(o=>{o.forEach(o=>{if("attributes"===o.type&&o.attributeName===oe||"childList"===o.type){o.addedNodes.length>0&&o.addedNodes.forEach(e=>{e instanceof HTMLElement&&i(e)});let l=n.getAttribute(oe);((i,n,a)=>{if(!as(n))return;if(n.startsWith("v2:")&&!i.classList.contains("visual-builder__variant-field")){i.classList.contains("visual-builder__base-field")&&i.classList.remove("visual-builder__base-field");let t=["visual-builder__variant-field"];e&&t.push(aH()["visual-builder__variant-field-outline"]),i.classList.add(...t)}else!n.startsWith("v2:")&&i.classList.contains("visual-builder__variant-field")?(i.classList.remove(aH()["visual-builder__variant-field-outline"],"visual-builder__variant-field"),i.classList.add("visual-builder__base-field")):n.startsWith("v2:")&&t&&!n.includes(t)&&i.classList.contains("visual-builder__variant-field")&&(i.classList.remove(aH()["visual-builder__variant-field-outline"],"visual-builder__variant-field"),i.classList.add("visual-builder__disabled-variant-field"));if(!a)return;a.disconnect();let o=r.indexOf(a);o>-1&&r.splice(o,1)})(n,l||"",a),c9()}})});r.push(a),a.observe(n,{attributes:!0,childList:!0,subtree:!0})}),setTimeout(()=>{r.length>0&&(r.forEach(e=>e.disconnect()),r.length=0)},8e3)}function ft(e){let t=fv.VisualBuilderGlobalState.value.variantOrder,r=fv.VisualBuilderGlobalState.value.highlightVariantFields;document.querySelectorAll("[data-cslp]").forEach(i=>{let n=i.getAttribute("data-cslp");as(n)&&(n?.includes(e)?(i.classList.add("visual-builder__variant-field"),r&&i.classList.add(aH()["visual-builder__variant-field-outline"])):n.startsWith("v2:")?function(e,t,r){if(!r||0===r.length)return!1;let{variant:i}=au(t),n=r.lastIndexOf(e),a=r.lastIndexOf(i||"");return!(a<0)&&a{e.classList.remove(aH()["visual-builder__variant-field-outline"])}):document.querySelectorAll(".visual-builder__disabled-variant-field, .visual-builder__variant-field, .visual-builder__base-field, .visual-builder__lower-order-variant-field").forEach(e=>{e.classList.remove("visual-builder__disabled-variant-field","visual-builder__variant-field",aH()["visual-builder__variant-field-outline"],"visual-builder__base-field","visual-builder__lower-order-variant-field")})}function fn(e){fv.VisualBuilderGlobalState.value.highlightVariantFields=e}async function fa(){try{return await ol?.send(os.GET_HIGHLIGHT_VARIANT_FIELDS_STATUS)??{highlightVariantFields:!1}}catch(e){return console.error("Failed to get highlight variant fields status:",e),{highlightVariantFields:!1}}}var fo=cF(function(e,t,r){return e+(r?" ":"")+cp(t)});function fl(e){let{details:t}=e,r=t.fieldSchema.display_name;async function i(){await ol?.send(os.ADD_INSTANCE,{fieldMetadata:t.fieldMetadata,index:0}),d4({parentCslp:t.fieldMetadata.cslpValue,index:0})}return aB("div",{className:(0,aP.default)("visual-builder__empty-block",aH()["visual-builder__empty-block"]),children:[aB("div",{className:(0,aP.default)("visual-builder__empty-block-title",aH()["visual-builder__empty-block-title"]),children:["This page doesn’t have any"," ",aB("span",{className:(0,aP.default)("visual-builder__empty-block-field-name",aH()["visual-builder__empty-block-field-name"]),children:fo(tN(r).toLowerCase())})," ","added. Click the button below to add one."]}),aB("button",{className:(0,aP.default)("visual-builder__empty-block-add-button",aH()["visual-builder__empty-block-add-button"]),onClick:()=>i(),type:"button","data-testid":"visual-builder__empty-block-add-button",children:[aB("span",{className:(0,aP.default)("visual-builder__empty-block-plus-icon",aH()["visual-builder__empty-block-plus-icon"]),children:"+"}),"  Add ",r]})]})}async function fs(e){for(let t of e){let e=t.getAttribute("data-cslp");if(!as(e))return;let r=au(e),i=await ou.getFieldSchema(r.content_type_uid,r.fieldPath);if(!i)return;rX(aB(fl,{details:{fieldSchema:i,fieldMetadata:r}}),t)}}var fu=new Map,fd=e=>{let t,{payload:r}=e.data;t={},r.forEach(e=>{let r=e?.fieldMetadata?.cslpValue;if(!as(r)||t[r])return;t[r]=!0;let i=document.querySelector(`[data-cslp="${r}"]`);if(i&&i instanceof HTMLElement){let{top:t,left:n}=i.getBoundingClientRect(),a=document.createElement("div");a.setAttribute("field-path",r),a.style.position="fixed",a.style.top=`${t-25}px`,a.style.left=`${n-25}px`,a.style.zIndex="900",a.style.cursor="pointer",a.className="highlighted-comment collab-icon",rK(rR(dk,{data:e}),a);let o=document.querySelector(".visual-builder__container");if(o){let e=o.querySelector(".visual-builder__highlighted-comment-wrapper");e||((e=document.createElement("div")).className="visual-builder__highlighted-comment-wrapper",o.appendChild(e)),e.appendChild(a)}}})},fc=()=>{let e;e=document.querySelectorAll(".highlighted-comment"),e?.forEach(e=>e?.remove())},ff=(e=!1)=>{let t;if(e){let e;return void(e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),e?.forEach(e=>e?.classList.add(sW)),sQ({threadUid:"",action:"close"}))}t=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),t?.forEach(e=>e?.remove())},fp=[],fh=class e{constructor(){this.customCursor=null,this.overlayWrapper=null,this.visualBuilderContainer=null,this.focusedToolbar=null,this.scrollEventHandler=()=>{sq(),sY(),sK(),dO()},this.resizeEventHandler=()=>{let t=e.VisualBuilderGlobalState.value.previousSelectedEditableDOM;dO(),sq(),sY(),sK(),t&&this.handlePositionChange(t)},this.resizeObserver=new ResizeObserver(([t])=>{let r=e.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!this.overlayWrapper||!r||!t.target.isSameNode(r)&&!t.target.classList.contains("visual-builder__pseudo-editable-element"))return;let i=t.target.classList.contains("visual-builder__pseudo-editable-element"),n=i?r:t.target.closest("[data-cslp]");i?c1(t.target,this.overlayWrapper):n&&this.handlePositionChange(n);let a=n&&n.getAttribute("data-cslp");if(!n||!as(a))return;let o=au(a);ou.getFieldSchema(o.content_type_uid,o.fieldPath).then(e=>{if(!e)return;let{isDisabled:t}=og(e,{editableElement:n,fieldMetadata:o});t&&c1(n,this.overlayWrapper,t)})}),this.mutationObserver=new MutationObserver(nx(async()=>{!function(e,t,r,i){var n,a;if(!e)return;let o=fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!o)return;let l=o?.getAttribute("data-cslp"),s=o?.getAttribute("data-cslp-unique-id"),u=document.querySelector(`[data-cslp-unique-id="${s}"]`)||document.querySelector(`[data-cslp="${l}"]`);if(!u&&i)return c5({visualBuilderOverlayWrapper:e,focusedToolbar:t,visualBuilderContainer:r,resizeObserver:i,noTrigger:!0});u!==o&&(o=u,fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM=o);let d=o.getBoundingClientRect(),c=e.querySelector(".visual-builder__overlay--outline");c&&(n=d,a=c.getBoundingClientRect(),n.top!==a.top||n.left!==a.left||n.width!==a.width||n.height!==a.height)&&(c.style.top=`${d.top+window.scrollY}px`,c.style.left=`${d.left}px`,c.style.width=`${d.width}px`,c.style.height=`${d.height}px`);let f=e.querySelector(".visual-builder__overlay--top"),p=e.querySelector(".visual-builder__overlay--bottom"),h=e.querySelector(".visual-builder__overlay--left"),v=e.querySelector(".visual-builder__overlay--right"),m=d.top+window.scrollY;if(f&&f.getBoundingClientRect().height!==m&&(f.style.height=`calc(${m}px)`),p){let e=p.getBoundingClientRect();(e.top!==d.bottom||e.height!==window.document.body.scrollHeight-d.bottom-window.scrollY)&&(p.style.top=`${d.bottom+window.scrollY}px`,p.style.height=`${window.document.body.scrollHeight-d.bottom-window.scrollY}px`)}if(h){let e=h.getBoundingClientRect();(e.top+window.scrollY!==m||e.height!==d.height||e.width!==d.left)&&(h.style.top=`${m}px`,h.style.height=`${d.height}px`,h.style.width=`${d.left}px`)}if(v){let e=v.getBoundingClientRect();(e.left!==d.right||e.top+window.scrollY!==m||e.height!==d.height||e.width!==document.documentElement.clientWidth-d.right)&&(v.style.left=`${d.right}px`,v.style.top=`${m}px`,v.style.height=`${d.height}px`,v.style.width=`${document.documentElement.clientWidth-d.right}px`)}if(t){let e=window.scrollX+window.innerWidth-d.left,r=d.top+window.scrollY-8,i=d.top+window.scrollY<42?r+d.height+42:r,n=Math.max(d.left-2,8);e<180&&("flex-end"!==t.style.justifyContent||t.style.left!==`${d.right+2}px`)?(t.style.justifyContent="flex-end",t.style.left=`${d.right+2}px`):("flex-start"!==t.style.justifyContent||t.style.left!==`${n}px`)&&(t.style.justifyContent="flex-start",t.style.left=`${n}px`),t.style.top!==`${i}px`&&(t.style.top=`${i}px`)}if(r){let e=r.querySelector(".visual-builder__pseudo-editable-element"),t=Object.entries(cW(o)).reduce((e,[t,r])=>`${e}${t}:${r};`,"");e&&(e.style.cssText!==t||"visible"!==e.style.visibility)&&(e.style.cssText=t,e.style.visibility="visible")}}(this.overlayWrapper,this.focusedToolbar,this.visualBuilderContainer,this.resizeObserver);let t=Array.from(document.querySelectorAll(`.${fg}`)),r=e.VisualBuilderGlobalState.value.previousEmptyBlockParents;if(!oa(t,r)){let i=r.filter(e=>!t.includes(e)),n=t.filter(e=>!r.includes(e));i?.forEach(e=>{let t=e.querySelector(".visual-builder__empty-block");t&&t.remove()}),await fs(n),e.VisualBuilderGlobalState.value={...e.VisualBuilderGlobalState.value,previousEmptyBlockParents:t}}e.VisualBuilderGlobalState.value.variant&&e.VisualBuilderGlobalState.value.highlightVariantFields&&fr(e.VisualBuilderGlobalState.value.variant)},100,{trailing:!0})),this.threadMutationObserver=new MutationObserver(nx(()=>{document.querySelector(".visual-builder__container")&&fp&&(ut(fp).length>0&&ue(fp).then(e=>{e.forEach(s4),e.length>0&&s0({payload:{isElementPresent:!1},threadUids:e})}),fp=[])},1e3)),this.destroy=()=>{var t;let r,i,n,a;window.removeEventListener("resize",this.resizeEventHandler),window.removeEventListener("scroll",this.scrollEventHandler),this.overlayWrapper,this.visualBuilderContainer,e.VisualBuilderGlobalState.value.previousSelectedEditableDOM,this.focusedToolbar,this.resizeObserver,t=this.customCursor,r=fu.get("click"),i=fu.get("mousemove"),n=fu.get("mouseleave"),a=fu.get("mouseenter"),r&&window.removeEventListener("click",r,{capture:!0}),i&&window.removeEventListener("mousemove",i),n&&document.documentElement.removeEventListener("mouseleave",n),a&&document.documentElement.removeEventListener("mouseenter",a),fu.clear(),this.resizeObserver.disconnect(),this.mutationObserver.disconnect(),this.threadMutationObserver.disconnect(),e.VisualBuilderGlobalState.value={previousSelectedEditableDOM:null,previousHoveredTargetDOM:null,previousEmptyBlockParents:[],focusFieldValue:null,focusFieldReceivedInput:!1,audienceMode:!1,locale:"en-us",variant:null,highlightVariantFields:!1,variantOrder:[],focusElementObserver:null,referenceParentMap:{},isFocussed:!1},this.visualBuilderContainer&&window.document.body.removeChild(this.visualBuilderContainer),this.customCursor&&this.customCursor.remove(),this.overlayWrapper&&this.overlayWrapper.remove(),this.focusedToolbar&&this.focusedToolbar.remove(),this.customCursor=null,this.overlayWrapper=null,this.visualBuilderContainer=null,this.focusedToolbar=null},window.addEventListener("resize",this.resizeEventHandler),window.addEventListener("scroll",this.scrollEventHandler),c7({resizeObserver:this.resizeObserver}),ae.p=void 0,this.visualBuilderContainer=document.querySelector(".visual-builder__container"),this.overlayWrapper=document.querySelector(".visual-builder__overlay__wrapper"),this.customCursor=document.querySelector(".visual-builder__cursor"),this.focusedToolbar=document.querySelector(".visual-builder__focused-toolbar");const t=ns.get();if(!t.enable||t.mode{var i;let n,a,o,l,s,u,d,c,f,{windowType:p=t8.BUILDER,stackDetails:h,collab:v}=r||{};ns.set("windowType",p),ns.set("stackDetails.masterLocale",h?.masterLocale||"en-us"),v&&(ns.set("collab.enable",v.enable),ns.set("collab.isFeedbackMode",v.isFeedbackMode),ns.set("collab.inviteMetadata",v.inviteMetadata)),v?.payload&&(fp=v?.payload);i={overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,previousSelectedEditableDOM:e.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver,customCursor:this.customCursor},n=i,s=e=>{dP({event:e,overlayWrapper:n.overlayWrapper,visualBuilderContainer:n.visualBuilderContainer,previousSelectedEditableDOM:fv.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:n.focusedToolbar,resizeObserver:n.resizeObserver})},a=i,u=e=>{d7({event:e,overlayWrapper:a.overlayWrapper,visualBuilderContainer:a.visualBuilderContainer,customCursor:a.customCursor,resizeObserver:a.resizeObserver,focusedToolbar:a.focusedToolbar})},o=i,d=()=>{d3.cancel(),d2.cancel(),dJ.cancel(),d1(o.customCursor),dQ(o.visualBuilderContainer),!fv?.VisualBuilderGlobalState?.value?.isFocussed&&o?.focusedToolbar&&dG(o.focusedToolbar)},l=i,c=()=>{d0(l.customCursor)},fu.set("click",s),fu.set("mousemove",u),fu.set("mouseleave",d),fu.set("mouseenter",c),window.addEventListener("click",s,{capture:!0}),window.addEventListener("mousemove",u),document.documentElement.addEventListener("mouseleave",d),document.documentElement.addEventListener("mouseenter",c),this.threadMutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!1}),aS(),f=ns.get(),ol?.on(os.COLLAB_ENABLE,e=>{if(!e?.data?.collab)return void console.error("Invalid collab data structure:",e);if(e?.data?.collab?.fromShare){let t;ns.set("collab.pauseFeedback",e?.data?.collab?.pauseFeedback),ns.set("collab.isFeedbackMode",e?.data?.collab?.isFeedbackMode),t=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),t?.forEach(e=>e?.classList.remove(sW));return}ns.set("collab.enable",e.data.collab.enable??!1),ns.set("collab.isFeedbackMode",e.data.collab.isFeedbackMode??!1),ns.set("collab.pauseFeedback",e?.data?.collab?.pauseFeedback),ns.set("collab.inviteMetadata",e.data.collab.inviteMetadata)}),ol?.on(os.COLLAB_DATA_UPDATE,e=>{if(!f?.collab?.enable)return;if(!e?.data?.collab)return void console.error("Invalid collab data structure:",e);if(e?.data?.collab?.inviteMetadata)return void ns.set("collab.inviteMetadata",e?.data?.collab?.inviteMetadata);let t=e?.data?.collab?.payload?.map(e=>sG(e)).filter(e=>void 0!==e)||[];t.length>0&&s0({payload:{isElementPresent:!1},threadUids:t})}),ol?.on(os.COLLAB_DISABLE,e=>{if(e?.data?.collab?.fromShare){ns.set("collab.pauseFeedback",e?.data?.collab?.pauseFeedback),ff(!0);return}ns.set("collab.enable",!1),ns.set("collab.isFeedbackMode",!1),ff()}),ol?.on(os.COLLAB_THREADS_REMOVE,e=>{let t=e?.data?.threadUids;f?.collab?.enable&&(e?.data?.updateConfig&&ns.set("collab.isFeedbackMode",!0),t?.length>0&&t.forEach(e=>{sJ(e)}))}),ol?.on(os.COLLAB_THREAD_REOPEN,e=>{let t=e?.data?.thread;if(!f?.collab?.enable||!t)return;let r=sG(t,{hidden:!!f?.collab?.pauseFeedback});r&&s0({payload:{isElementPresent:!1},threadUids:[r]})}),ol?.on(os.COLLAB_THREAD_HIGHLIGHT,e=>{let t=e?.data?.threadUid;!(!f?.collab?.enable||f?.collab?.pauseFeedback)&&t&&sQ({threadUid:t,action:"open"})}),p===t8.BUILDER&&(!function({overlayWrapper:e,visualBuilderContainer:t,focusedToolbar:r,resizeObserver:i}){document.addEventListener("keydown",n=>{"Escape"===n.key&&c5({visualBuilderOverlayWrapper:e,visualBuilderContainer:t,focusedToolbar:r,resizeObserver:i})})}({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver}),ol?.on(os.SCROLL_TO_FIELD,c4),ol?.on(os.HIGHLIGHT_ACTIVE_COMMENTS,fd),ol?.on(os.REMOVE_HIGHLIGHTED_COMMENTS,fc),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0}),fa().then(e=>{fn(e.highlightVariantFields)}),ol?.on(os.GET_ALL_ENTRIES_IN_CURRENT_PAGE,c3),ol?.send(os.SEND_VARIANT_AND_LOCALE),ol?.on(os.TOGGLE_SCROLL,e=>{e.data.scroll?document.body.style.overflow="auto":document.body.style.overflow="hidden"}),function({visualBuilderContainer:e,overlayWrapper:t,focusedToolbar:r,resizeObserver:i}){ol?.on(os.HIDE_FOCUS_OVERLAY,n=>{n?.data?.fromCollab&&(ns.set("collab.enable",!0),ns.set("collab.pauseFeedback",!0)),c5({visualBuilderOverlayWrapper:t,visualBuilderContainer:e,focusedToolbar:r,resizeObserver:i,noTrigger:!!n?.data?.noTrigger})})}({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver}),ak(),ay?.on("variant-patch-update",e=>{fv.VisualBuilderGlobalState.value.audienceMode&&(fn(e.data.highlightVariantFields),fe())}),ol?.on(os.SHOW_DRAFT_FIELDS,e=>{c8(),e.data.fields.forEach(e=>{let t=document.querySelector(`[data-cslp="${e}"]`);t&&t.classList.add(aH()["visual-builder__draft-field"])})}),ol?.on(os.REMOVE_DRAFT_FIELDS,()=>{c8()}),function({isSSR:e}){ol?.on(os.GET_VARIANT_ID,t=>{let r=t.data.variant;fv.VisualBuilderGlobalState.value.variant=r,ou.clear(),e?r&&ft(r):fe(),ol?.send(os.REQUEST_DISCUSSION_HIGHLIGHTS)}),ol?.on(os.GET_LOCALE,e=>{var t;t=e.data.locale,fv.VisualBuilderGlobalState.value.locale=t}),ol?.on(os.SET_AUDIENCE_MODE,e=>{var t;t=e.data.audienceMode,fv.VisualBuilderGlobalState.value.audienceMode=t}),ol?.on(os.SHOW_VARIANT_FIELDS,e=>{var t;fn(e.data.variant_data.highlightVariantFields),t=e.data.variant_data.variantOrder||[],fv.VisualBuilderGlobalState.value.variantOrder=t,fi(),ft(e.data.variant_data.variant)}),ol?.on(os.REMOVE_VARIANT_FIELDS,e=>{fn(!1),fi(e?.data?.onlyHighlighted)})}({isSSR:t.ssr??!1}))}).catch(()=>{t3()||function(){if(document.querySelector(".visual-builder__start-editing-btn"))return;let e=document.createDocumentFragment();rK(aB(a7,{}),e),0!==e.children.length&&(document.body.appendChild(e),document.querySelector(".visual-builder__start-editing-btn"))}()})}handlePositionChange(e){cY({editableElement:e,visualBuilderContainer:this.visualBuilderContainer,overlayWrapper:this.overlayWrapper,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver})}};fh.VisualBuilderGlobalState=iN({previousSelectedEditableDOM:null,previousHoveredTargetDOM:null,previousEmptyBlockParents:[],focusFieldValue:null,focusFieldReceivedInput:!1,audienceMode:!1,locale:ns.get().stackDetails.masterLocale||"en-us",variant:null,highlightVariantFields:!1,variantOrder:[],focusElementObserver:null,referenceParentMap:{},isFocussed:!1});var fv=fh,fm=class e{static init(t=t4()){return"u"{t.subscribeToOnEntryChange(r,e)}),e.onEntryChangeCallbacks={},window.addEventListener("pagehide",()=>{let e=document.activeElement.href;e&&ay?.send("url-change",{targetURL:e})}),!function(){if(!("u"({url:window.location.href.split("?")[0]})),aM?.on("send-cslp-data",async()=>{let e=Array.from(document.querySelectorAll(aN)),t={};for(let r of e){let e=r.getAttribute("data-cslp");if(as(e))if(r.hasAttributes()&&aA.has(r.tagName.toLowerCase())){let i="";for(let e of r.attributes)i+=`${e.name} -> ${e.value} `;t[e]=i}else t[e]=r.innerHTML}return t}),aM?.on("diff-value",async e=>{let{diff:t,type:r}=e.data,i="base"===r?"removed":"added";for(let e of Array.from(document.querySelectorAll(aN))){let r=e.getAttribute("data-cslp");as(r)&&t[r]&&(aA.has(e.tagName.toLowerCase())?e.classList.add(`cs-compare__void--${i}`):e.innerHTML=t[r])}((e=".cs-compare--added")=>{let t=Array.from(document.querySelectorAll(e));for(let e=1;e{for(let e of Array.from(document.querySelectorAll("cs-compare"))){let t=e.parentElement;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}for(let e of Array.from(document.querySelectorAll(".cs-compare__void--added, .cs-compare__void--removed")))e.classList.remove("cs-compare__void--added"),e.classList.remove("cs-compare__void--removed")})}}(),Promise.resolve(e.previewConstructors)}static onEntryChange(t,r={}){let{skipInitialRender:i=!1}=r,n=tJ();e.isInitialized()?e.previewConstructors.livePreview.subscribeToOnEntryChange(t,n):e.onEntryChangeCallbacks[n]=t;let a="u">typeof window?new URLSearchParams(window.location.search):null,o=a&&a.has("live_preview"),l=a&&a.has("builder");return(!i||o&&l)&&t(),n}static onLiveEdit(t){return e.onEntryChange(t,{skipInitialRender:!0})}static unsubscribeOnEntryChange(t){e.isInitialized()?e.previewConstructors.livePreview.unsubscribeOnEntryChange(t):aO(e.onEntryChangeCallbacks,t)}static setPageContext(e){ns.set("pageContext",e),t3()&&ol?.send(os.PAGE_CONTEXT,{entryUid:e.entryUid,contentTypeUid:e.contentTypeUid}).catch(e=>{tQ.error("Failed to send page context to Visual Builder.",e)})}static getSdkVersion(){return"4.4.5"}};fm.previewConstructors={},fm.onEntryChangeCallbacks={};var fb=class e{static init(){return"u"{"use strict";let t;e.s([],38570),e.i(38570),(tl=td||(td={})).assertEqual=e=>{},tl.assertIs=function(e){},tl.assertNever=function(e){throw Error()},tl.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},tl.getValidEnumValues=e=>{let t=tl.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let i of t)r[i]=e[i];return tl.objectValues(r)},tl.objectValues=e=>tl.objectKeys(e).map(function(t){return e[t]}),tl.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},tl.find=(e,t)=>{for(let r of e)if(t(r))return r},tl.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,tl.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},tl.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(tc||(tc={})).mergeShapes=(e,t)=>({...e,...t});let r=td.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return Number.isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("u">typeof Map&&e instanceof Map)return r.map;if("u">typeof Set&&e instanceof Set)return r.set;if("u">typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}};e.s(["ZodParsedType",0,r,"getParsedType",0,i,"objectUtil",0,tc,"util",0,td],904783);let n=td.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),a=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(i);else if("invalid_return_type"===n.code)i(n.returnTypeError);else if("invalid_arguments"===n.code)i(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;ie.message){let t={},r=[];for(let i of this.issues)if(i.path.length>0){let r=i.path[0];t[r]=t[r]||[],t[r].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e),e.s(["ZodError",0,o,"ZodIssueCode",0,n,"quotelessJson",0,a],169790);let l=(e,t)=>{let i;switch(e.code){case n.invalid_type:i=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case n.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,td.jsonStringifyReplacer)}`;break;case n.unrecognized_keys:i=`Unrecognized key(s) in object: ${td.joinValues(e.keys,", ")}`;break;case n.invalid_union:i="Invalid input";break;case n.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${td.joinValues(e.options)}`;break;case n.invalid_enum_value:i=`Invalid enum value. Expected ${td.joinValues(e.options)}, received '${e.received}'`;break;case n.invalid_arguments:i="Invalid function arguments";break;case n.invalid_return_type:i="Invalid function return type";break;case n.invalid_date:i="Invalid date";break;case n.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:td.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case n.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case n.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case n.custom:i="Invalid input";break;case n.invalid_intersection_types:i="Intersection results could not be merged";break;case n.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case n.not_finite:i="Number must be finite";break;default:i=t.defaultError,td.assertNever(e)}return{message:i}},s=l;function u(e){s=e}function d(){return s}e.s(["getErrorMap",0,d,"setErrorMap",0,u],937904),e.i(937904),e.s(["defaultErrorMap",0,l,"getErrorMap",0,d,"setErrorMap",0,u],277290),e.i(277290);let c=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,a=[...r,...n.path||[]],o={...n,path:a};if(void 0!==n.message)return{...n,path:a,message:n.message};let l="";for(let e of i.filter(e=>!!e).slice().reverse())l=e(o,{data:t,defaultError:l}).message;return{...n,path:a,message:l}},f=[];function p(e,t){let r=d(),i=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(i)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let i of t){if("aborted"===i.status)return v;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,i=await e.value;r.push({key:t,value:i})}return h.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let i of t){let{key:t,value:n}=i;if("aborted"===t.status||"aborted"===n.status)return v;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||i.alwaysSet)&&(r[t.value]=n.value)}return{status:e.value,value:r}}}let v=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),b=e=>({status:"valid",value:e}),_=e=>"aborted"===e.status,g=e=>"dirty"===e.status,y=e=>"valid"===e.status,w=e=>"u">typeof Promise&&e instanceof Promise;e.s(["DIRTY",0,m,"EMPTY_PATH",0,f,"INVALID",0,v,"OK",0,b,"ParseStatus",0,h,"addIssueToContext",0,p,"isAborted",0,_,"isAsync",0,w,"isDirty",0,g,"isValid",0,y,"makeIssue",0,c],665354),e.i(665354),e.s([],527404),e.i(527404),e.i(904783),(ts=tf||(tf={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},ts.toString=e=>"string"==typeof e?e:e?.message;class C{constructor(e,t,r,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if(y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(t,n)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??n.defaultError}:void 0===n.data?{message:a??i??n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:a??r??n.defaultError}},description:n}}class S{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parseSync({data:e,path:r.path,parent:r});return x(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return y(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>y(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:r.path,parent:r});return x(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,i)=>{let a=e(r),o=()=>i.addIssue({code:n.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&a instanceof Promise?a.then(e=>!!e||(o(),!1)):!!a||(o(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new eg({schema:this,typeName:tp.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ey.create(this,this._def)}nullable(){return ew.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return er.create(this)}promise(){return e_.create(this,this._def)}or(e){return en.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new eg({...E(this._def),schema:this,typeName:tp.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eC({...E(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tp.ZodDefault})}brand(){return new ek({typeName:tp.ZodBranded,type:this,...E(this._def)})}catch(e){return new ex({...E(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tp.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eO.create(this,e)}readonly(){return eT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let k=/^c[^\s-]{8,}$/i,O=/^[0-9a-z]+$/,T=/^[0-9A-HJKMNP-TV-Z]{26}$/i,L=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,M=/^[a-z0-9_-]{21}$/i,A=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,N=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,P=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,D=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,j=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${$}$`);function U(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function F(e){let t=`${$}T${U(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class Z extends S{_parse(e){var i,a,o,l;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r.string){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.string,received:t.parsedType}),v}let u=new h;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(p(s=this._getOrReturnCtx(e,s),{code:n.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),u.dirty());else if("length"===r.kind){let t=e.data.length>r.value,i=e.data.lengthe.test(t),{validation:t,code:n.invalid_string,...tf.errToObj(r)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tf.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tf.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tf.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tf.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tf.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tf.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tf.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tf.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tf.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...tf.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...tf.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tf.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...tf.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...tf.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...tf.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...tf.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tf.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...tf.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tf.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tf.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tf.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tf.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tf.errToObj(t)})}nonempty(e){return this.min(1,tf.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew Z({checks:[],typeName:tp.ZodString,coerce:e?.coerce??!1,...E(e)});class z extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r.number){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.number,received:t.parsedType}),v}let i=new h;for(let r of this._def.checks)"int"===r.kind?td.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:n.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:n.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}(e.data,r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:n.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:n.not_finite,message:r.message}),i.dirty()):td.assertNever(r);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tf.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tf.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tf.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tf.toString(t))}setLimit(e,t,r,i){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tf.toString(i)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tf.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tf.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tf.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tf.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tf.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tf.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tf.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tf.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tf.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&td.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew z({checks:[],typeName:tp.ZodNumber,coerce:e?.coerce||!1,...E(e)});class W extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==r.bigint)return this._getInvalidInput(e);let i=new h;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:n.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:n.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):td.assertNever(r);return{status:i.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,tf.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tf.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tf.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tf.toString(t))}setLimit(e,t,r,i){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tf.toString(i)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tf.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tf.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tf.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tf.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tf.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew W({checks:[],typeName:tp.ZodBigInt,coerce:e?.coerce??!1,...E(e)});class G extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.boolean,received:t.parsedType}),v}return b(e.data)}}G.create=e=>new G({typeName:tp.ZodBoolean,coerce:e?.coerce||!1,...E(e)});class q extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r.date){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.date,received:t.parsedType}),v}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:n.invalid_date}),v;let i=new h;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(p(t=this._getOrReturnCtx(e,t),{code:n.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):td.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tf.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tf.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew q({checks:[],coerce:e?.coerce||!1,typeName:tp.ZodDate,...E(e)});class Y extends S{_parse(e){if(this._getType(e)!==r.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.symbol,received:t.parsedType}),v}return b(e.data)}}Y.create=e=>new Y({typeName:tp.ZodSymbol,...E(e)});class K extends S{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.undefined,received:t.parsedType}),v}return b(e.data)}}K.create=e=>new K({typeName:tp.ZodUndefined,...E(e)});class X extends S{_parse(e){if(this._getType(e)!==r.null){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.null,received:t.parsedType}),v}return b(e.data)}}X.create=e=>new X({typeName:tp.ZodNull,...E(e)});class J extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}J.create=e=>new J({typeName:tp.ZodAny,...E(e)});class Q extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}Q.create=e=>new Q({typeName:tp.ZodUnknown,...E(e)});class ee extends S{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.never,received:t.parsedType}),v}}ee.create=e=>new ee({typeName:tp.ZodNever,...E(e)});class et extends S{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.void,received:t.parsedType}),v}return b(e.data)}}et.create=e=>new et({typeName:tp.ZodVoid,...E(e)});class er extends S{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==r.array)return p(t,{code:n.invalid_type,expected:r.array,received:t.parsedType}),v;if(null!==a.exactLength){let e=t.data.length>a.exactLength.value,r=t.data.lengtha.maxLength.value&&(p(t,{code:n.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>a.type._parseAsync(new C(t,e,t.path,r)))).then(e=>h.mergeArray(i,e));let o=[...t.data].map((e,r)=>a.type._parseSync(new C(t,e,t.path,r)));return h.mergeArray(i,o)}get element(){return this._def.type}min(e,t){return new er({...this._def,minLength:{value:e,message:tf.toString(t)}})}max(e,t){return new er({...this._def,maxLength:{value:e,message:tf.toString(t)}})}length(e,t){return new er({...this._def,exactLength:{value:e,message:tf.toString(t)}})}nonempty(e){return this.min(1,e)}}er.create=(e,t)=>new er({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tp.ZodArray,...E(t)});class ei extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=td.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==r.object){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.object,received:t.parsedType}),v}let{status:t,ctx:i}=this._processInputParams(e),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof ee&&"strip"===this._def.unknownKeys))for(let e in i.data)o.includes(e)||l.push(e);let s=[];for(let e of o){let t=a[e],r=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new C(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof ee){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)l.length>0&&(p(i,{code:n.unrecognized_keys,keys:l}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let r=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new C(i,r,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,i=await t.value;e.push({key:r,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return tf.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let i=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:tf.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tp.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};for(let r of td.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ei({...this._def,shape:()=>t})}omit(e){let t={};for(let r of td.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let r={};for(let i in t.shape){let n=t.shape[i];r[i]=ey.create(e(n))}return new ei({...t._def,shape:()=>r})}if(t instanceof er)return new er({...t._def,type:e(t.element)});if(t instanceof ey)return ey.create(e(t.unwrap()));if(t instanceof ew)return ew.create(e(t.unwrap()));if(t instanceof es)return es.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of td.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}return new ei({...this._def,shape:()=>t})}required(e){let t={};for(let r of td.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ey;)e=e._def.innerType;t[r]=e}return new ei({...this._def,shape:()=>t})}keyof(){return ev(td.objectKeys(this.shape))}}ei.create=(e,t)=>new ei({shape:()=>e,unknownKeys:"strip",catchall:ee.create(),typeName:tp.ZodObject,...E(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:ee.create(),typeName:tp.ZodObject,...E(t)}),ei.lazycreate=(e,t)=>new ei({shape:e,unknownKeys:"strip",catchall:ee.create(),typeName:tp.ZodObject,...E(t)});class en extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o(e.ctx.common.issues));return p(t,{code:n.invalid_union,unionErrors:r}),v});{let e,i=[];for(let n of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=n._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=i.map(e=>new o(e));return p(t,{code:n.invalid_union,unionErrors:a}),v}}get options(){return this._def.options}}en.create=(e,t)=>new en({options:e,typeName:tp.ZodUnion,...E(t)});let ea=e=>{if(e instanceof ep)return ea(e.schema);if(e instanceof eg)return ea(e.innerType());if(e instanceof eh)return[e.value];if(e instanceof em)return e.options;if(e instanceof eb)return td.objectValues(e.enum);else if(e instanceof eC)return ea(e._def.innerType);else if(e instanceof K)return[void 0];else if(e instanceof X)return[null];else if(e instanceof ey)return[void 0,...ea(e.unwrap())];else if(e instanceof ew)return[null,...ea(e.unwrap())];else if(e instanceof ek)return ea(e.unwrap());else if(e instanceof eT)return ea(e.unwrap());else if(e instanceof ex)return ea(e._def.innerType);else return[]};class eo extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return p(t,{code:n.invalid_type,expected:r.object,received:t.parsedType}),v;let i=this.discriminator,a=t.data[i],o=this.optionsMap.get(a);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:n.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),v)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=ea(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new eo({typeName:tp.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...E(r)})}}class el extends S{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),o=(e,o)=>{if(_(e)||_(o))return v;let l=function e(t,n){let a=i(t),o=i(n);if(t===n)return{valid:!0,data:t};if(a===r.object&&o===r.object){let r=td.objectKeys(n),i=td.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(a===r.array&&o===r.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;io(e,t)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}el.create=(e,t,r)=>new el({left:e,right:t,typeName:tp.ZodIntersection,...E(r)});class es extends S{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.array)return p(i,{code:n.invalid_type,expected:r.array,received:i.parsedType}),v;if(i.data.lengththis._def.items.length&&(p(i,{code:n.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...i.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new C(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(a).then(e=>h.mergeArray(t,e)):h.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new es({...this._def,rest:e})}}es.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new es({items:e,typeName:tp.ZodTuple,rest:null,...E(t)})};class eu extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.object)return p(i,{code:n.invalid_type,expected:r.object,received:i.parsedType}),v;let a=[],o=this._def.keyType,l=this._def.valueType;for(let e in i.data)a.push({key:o._parse(new C(i,e,i.path,e)),value:l._parse(new C(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?h.mergeObjectAsync(t,a):h.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,r){return new eu(t instanceof S?{keyType:e,valueType:t,typeName:tp.ZodRecord,...E(r)}:{keyType:Z.create(),valueType:e,typeName:tp.ZodRecord,...E(t)})}}class ed extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.map)return p(i,{code:n.invalid_type,expected:r.map,received:i.parsedType}),v;let a=this._def.keyType,o=this._def.valueType,l=[...i.data.entries()].map(([e,t],r)=>({key:a._parse(new C(i,e,i.path,[r,"key"])),value:o._parse(new C(i,t,i.path,[r,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of l){let i=await r.key,n=await r.value;if("aborted"===i.status||"aborted"===n.status)return v;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of l){let i=r.key,n=r.value;if("aborted"===i.status||"aborted"===n.status)return v;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}}}ed.create=(e,t,r)=>new ed({valueType:t,keyType:e,typeName:tp.ZodMap,...E(r)});class ec extends S{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.set)return p(i,{code:n.invalid_type,expected:r.set,received:i.parsedType}),v;let a=this._def;null!==a.minSize&&i.data.sizea.maxSize.value&&(p(i,{code:n.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let o=this._def.valueType;function l(e){let r=new Set;for(let i of e){if("aborted"===i.status)return v;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let s=[...i.data.values()].map((e,t)=>o._parse(new C(i,e,i.path,t)));return i.common.async?Promise.all(s).then(e=>l(e)):l(s)}min(e,t){return new ec({...this._def,minSize:{value:e,message:tf.toString(t)}})}max(e,t){return new ec({...this._def,maxSize:{value:e,message:tf.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ec.create=(e,t)=>new ec({valueType:e,minSize:null,maxSize:null,typeName:tp.ZodSet,...E(t)});class ef extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return p(t,{code:n.invalid_type,expected:r.function,received:t.parsedType}),v;function i(e,r){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:n.invalid_arguments,argumentsError:r}})}function a(e,r){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:n.invalid_return_type,returnTypeError:r}})}let s={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof e_){let e=this;return b(async function(...t){let r=new o([]),n=await e._def.args.parseAsync(t,s).catch(e=>{throw r.addIssue(i(t,e)),r}),l=await Reflect.apply(u,this,n);return await e._def.returns._def.type.parseAsync(l,s).catch(e=>{throw r.addIssue(a(l,e)),r})})}{let e=this;return b(function(...t){let r=e._def.args.safeParse(t,s);if(!r.success)throw new o([i(t,r.error)]);let n=Reflect.apply(u,this,r.data),l=e._def.returns.safeParse(n,s);if(!l.success)throw new o([a(n,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ef({...this._def,args:es.create(e).rest(Q.create())})}returns(e){return new ef({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ef({args:e||es.create([]).rest(Q.create()),returns:t||Q.create(),typeName:tp.ZodFunction,...E(r)})}}class ep extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ep.create=(e,t)=>new ep({getter:e,typeName:tp.ZodLazy,...E(t)});class eh extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:n.invalid_literal,expected:this._def.value}),v}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ev(e,t){return new em({values:e,typeName:tp.ZodEnum,...E(t)})}eh.create=(e,t)=>new eh({value:e,typeName:tp.ZodLiteral,...E(t)});class em extends S{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:td.joinValues(r),received:t.parsedType,code:n.invalid_type}),v}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:n.invalid_enum_value,options:r}),v}return b(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return em.create(e,{...this._def,...t})}exclude(e,t=this._def){return em.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}em.create=ev;class eb extends S{_parse(e){let t=td.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==r.string&&i.parsedType!==r.number){let e=td.objectValues(t);return p(i,{expected:td.joinValues(e),received:i.parsedType,code:n.invalid_type}),v}if(this._cache||(this._cache=new Set(td.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=td.objectValues(t);return p(i,{received:i.data,code:n.invalid_enum_value,options:e}),v}return b(e.data)}get enum(){return this._def.values}}eb.create=(e,t)=>new eb({values:e,typeName:tp.ZodNativeEnum,...E(t)});class e_ extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r.promise&&!1===t.common.async?(p(t,{code:n.invalid_type,expected:r.promise,received:t.parsedType}),v):b((t.parsedType===r.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}e_.create=(e,t)=>new e_({type:e,typeName:tp.ZodPromise,...E(t)});class eg extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tp.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:e=>{p(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===i.type){let e=i.transform(r.data,n);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return v;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?v:"dirty"===i.status||"dirty"===t.value?m(i.value):i});{if("aborted"===t.value)return v;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?v:"dirty"===i.status||"dirty"===t.value?m(i.value):i}}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,n);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?v:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?v:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}}if("transform"===i.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(i.transform(e.value,n)).then(e=>({status:t.value,value:e})):v);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return v;let a=i.transform(e.value,n);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}td.assertNever(i)}}eg.create=(e,t,r)=>new eg({schema:e,typeName:tp.ZodEffects,effect:t,...E(r)}),eg.createWithPreprocess=(e,t,r)=>new eg({schema:t,effect:{type:"preprocess",transform:e},typeName:tp.ZodEffects,...E(r)});class ey extends S{_parse(e){return this._getType(e)===r.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:tp.ZodOptional,...E(t)});class ew extends S{_parse(e){return this._getType(e)===r.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:tp.ZodNullable,...E(t)});class eC extends S{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===r.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:tp.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...E(t)});class ex extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:tp.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...E(t)});class eE extends S{_parse(e){if(this._getType(e)!==r.nan){let t=this._getOrReturnCtx(e);return p(t,{code:n.invalid_type,expected:r.nan,received:t.parsedType}),v}return{status:"valid",value:e.data}}}eE.create=e=>new eE({typeName:tp.ZodNaN,...E(e)});let eS=Symbol("zod_brand");class ek extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eO extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eO({in:e,out:t,typeName:tp.ZodPipeline})}}class eT extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(y(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eL(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eM(e,t={},r){return e?J.create().superRefine((i,n)=>{let a=e(i);if(a instanceof Promise)return a.then(e=>{if(!e){let e=eL(t,i),a=e.fatal??r??!0;n.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=eL(t,i),a=e.fatal??r??!0;n.addIssue({code:"custom",...e,fatal:a})}}):J.create()}eT.create=(e,t)=>new eT({innerType:e,typeName:tp.ZodReadonly,...E(t)});let eA={object:ei.lazycreate};(tu=tp||(tp={})).ZodString="ZodString",tu.ZodNumber="ZodNumber",tu.ZodNaN="ZodNaN",tu.ZodBigInt="ZodBigInt",tu.ZodBoolean="ZodBoolean",tu.ZodDate="ZodDate",tu.ZodSymbol="ZodSymbol",tu.ZodUndefined="ZodUndefined",tu.ZodNull="ZodNull",tu.ZodAny="ZodAny",tu.ZodUnknown="ZodUnknown",tu.ZodNever="ZodNever",tu.ZodVoid="ZodVoid",tu.ZodArray="ZodArray",tu.ZodObject="ZodObject",tu.ZodUnion="ZodUnion",tu.ZodDiscriminatedUnion="ZodDiscriminatedUnion",tu.ZodIntersection="ZodIntersection",tu.ZodTuple="ZodTuple",tu.ZodRecord="ZodRecord",tu.ZodMap="ZodMap",tu.ZodSet="ZodSet",tu.ZodFunction="ZodFunction",tu.ZodLazy="ZodLazy",tu.ZodLiteral="ZodLiteral",tu.ZodEnum="ZodEnum",tu.ZodEffects="ZodEffects",tu.ZodNativeEnum="ZodNativeEnum",tu.ZodOptional="ZodOptional",tu.ZodNullable="ZodNullable",tu.ZodDefault="ZodDefault",tu.ZodCatch="ZodCatch",tu.ZodPromise="ZodPromise",tu.ZodBranded="ZodBranded",tu.ZodPipeline="ZodPipeline",tu.ZodReadonly="ZodReadonly";let eN=(e,t={message:`Input not instance of ${e.name}`})=>eM(t=>t instanceof e,t),eR=Z.create,eP=z.create,eI=eE.create,eD=W.create,ej=G.create,eH=q.create,eV=Y.create,e$=K.create,eB=X.create,eU=J.create,eF=Q.create,eZ=ee.create,ez=et.create,eW=er.create,eG=ei.create,eq=ei.strictCreate,eY=en.create,eK=eo.create,eX=el.create,eJ=es.create,eQ=eu.create,e1=ed.create,e0=ec.create,e2=ef.create,e5=ep.create,e3=eh.create,e6=em.create,e7=eb.create,e8=e_.create,e4=eg.create,e9=ey.create,te=ew.create,tt=eg.createWithPreprocess,tr=eO.create,ti=()=>eR().optional(),tn=()=>eP().optional(),ta=()=>ej().optional(),to={string:e=>Z.create({...e,coerce:!0}),number:e=>z.create({...e,coerce:!0}),boolean:e=>G.create({...e,coerce:!0}),bigint:e=>W.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})};e.s(["BRAND",0,eS,"NEVER",0,v,"Schema",0,S,"ZodAny",0,J,"ZodArray",0,er,"ZodBigInt",0,W,"ZodBoolean",0,G,"ZodBranded",0,ek,"ZodCatch",0,ex,"ZodDate",0,q,"ZodDefault",0,eC,"ZodDiscriminatedUnion",0,eo,"ZodEffects",0,eg,"ZodEnum",0,em,"ZodFirstPartyTypeKind",0,tp,"ZodFunction",0,ef,"ZodIntersection",0,el,"ZodLazy",0,ep,"ZodLiteral",0,eh,"ZodMap",0,ed,"ZodNaN",0,eE,"ZodNativeEnum",0,eb,"ZodNever",0,ee,"ZodNull",0,X,"ZodNullable",0,ew,"ZodNumber",0,z,"ZodObject",0,ei,"ZodOptional",0,ey,"ZodPipeline",0,eO,"ZodPromise",0,e_,"ZodReadonly",0,eT,"ZodRecord",0,eu,"ZodSchema",0,S,"ZodSet",0,ec,"ZodString",0,Z,"ZodSymbol",0,Y,"ZodTransformer",0,eg,"ZodTuple",0,es,"ZodType",0,S,"ZodUndefined",0,K,"ZodUnion",0,en,"ZodUnknown",0,Q,"ZodVoid",0,et,"any",0,eU,"array",0,eW,"bigint",0,eD,"boolean",0,ej,"coerce",0,to,"custom",0,eM,"date",0,eH,"datetimeRegex",0,F,"discriminatedUnion",0,eK,"effect",0,e4,"enum",0,e6,"function",0,e2,"instanceof",0,eN,"intersection",0,eX,"late",0,eA,"lazy",0,e5,"literal",0,e3,"map",0,e1,"nan",0,eI,"nativeEnum",0,e7,"never",0,eZ,"null",0,eB,"nullable",0,te,"number",0,eP,"object",0,eG,"oboolean",0,ta,"onumber",0,tn,"optional",0,e9,"ostring",0,ti,"pipeline",0,tr,"preprocess",0,tt,"promise",0,e8,"record",0,eQ,"set",0,e0,"strictObject",0,eq,"string",0,eR,"symbol",0,eV,"transformer",0,e4,"tuple",0,eJ,"undefined",0,e$,"union",0,eY,"unknown",0,eF,"void",0,ez],965638),e.i(965638),e.i(169790),e.s(["BRAND",0,eS,"DIRTY",0,m,"EMPTY_PATH",0,f,"INVALID",0,v,"NEVER",0,v,"OK",0,b,"ParseStatus",0,h,"Schema",0,S,"ZodAny",0,J,"ZodArray",0,er,"ZodBigInt",0,W,"ZodBoolean",0,G,"ZodBranded",0,ek,"ZodCatch",0,ex,"ZodDate",0,q,"ZodDefault",0,eC,"ZodDiscriminatedUnion",0,eo,"ZodEffects",0,eg,"ZodEnum",0,em,"ZodError",0,o,"ZodFirstPartyTypeKind",0,tp,"ZodFunction",0,ef,"ZodIntersection",0,el,"ZodIssueCode",0,n,"ZodLazy",0,ep,"ZodLiteral",0,eh,"ZodMap",0,ed,"ZodNaN",0,eE,"ZodNativeEnum",0,eb,"ZodNever",0,ee,"ZodNull",0,X,"ZodNullable",0,ew,"ZodNumber",0,z,"ZodObject",0,ei,"ZodOptional",0,ey,"ZodParsedType",0,r,"ZodPipeline",0,eO,"ZodPromise",0,e_,"ZodReadonly",0,eT,"ZodRecord",0,eu,"ZodSchema",0,S,"ZodSet",0,ec,"ZodString",0,Z,"ZodSymbol",0,Y,"ZodTransformer",0,eg,"ZodTuple",0,es,"ZodType",0,S,"ZodUndefined",0,K,"ZodUnion",0,en,"ZodUnknown",0,Q,"ZodVoid",0,et,"addIssueToContext",0,p,"any",0,eU,"array",0,eW,"bigint",0,eD,"boolean",0,ej,"coerce",0,to,"custom",0,eM,"date",0,eH,"datetimeRegex",0,F,"defaultErrorMap",0,l,"discriminatedUnion",0,eK,"effect",0,e4,"enum",0,e6,"function",0,e2,"getErrorMap",0,d,"getParsedType",0,i,"instanceof",0,eN,"intersection",0,eX,"isAborted",0,_,"isAsync",0,w,"isDirty",0,g,"isValid",0,y,"late",0,eA,"lazy",0,e5,"literal",0,e3,"makeIssue",0,c,"map",0,e1,"nan",0,eI,"nativeEnum",0,e7,"never",0,eZ,"null",0,eB,"nullable",0,te,"number",0,eP,"object",0,eG,"objectUtil",0,tc,"oboolean",0,ta,"onumber",0,tn,"optional",0,e9,"ostring",0,ti,"pipeline",0,tr,"preprocess",0,tt,"promise",0,e8,"quotelessJson",0,a,"record",0,eQ,"set",0,e0,"setErrorMap",0,u,"strictObject",0,eq,"string",0,eR,"symbol",0,eV,"transformer",0,e4,"tuple",0,eJ,"undefined",0,e$,"union",0,eY,"unknown",0,eF,"util",0,td,"void",0,ez],788685);var tl,ts,tu,td,tc,tf,tp,th=e.i(788685);e.s(["default",0,th],894706)},883036,e=>{"use strict";var t=e.i(843476),r=e.i(55918),i=e.i(271645);function n(){return void 0===globalThis.window?null:new URLSearchParams(globalThis.window.location.search).get("live_preview")}async function a(){let e=n(),t=e?`/api/nav?live_preview=${encodeURIComponent(e)}`:"/api/nav";try{let r=await fetch(t,{cache:e?"no-store":"default"});if(!r.ok)return;return await r.json()}catch{return}}function o(e){if(e)return{all_global_navigation:e.all_global_navigation,all_collection_hub:e.all_collection_hub}}let l=Promise.resolve(),s=(0,i.createContext)({loadDropdown:()=>{},getDropdown:()=>l,navRevision:0});e.s(["GlobalNavDataContext",0,s,"GlobalNavDataProvider",0,({children:e})=>{let u=(0,i.useRef)(null),[d,c]=(0,i.useState)(0),f=(0,i.useCallback)(()=>{u.current=a().then(o),c(e=>e+1)},[]),p=(0,i.useCallback)(()=>{let e=!!n();(!u.current||e)&&f()},[f]),h=(0,i.useCallback)(()=>u.current??l,[]),v=(0,i.useMemo)(()=>({loadDropdown:p,getDropdown:h,navRevision:d}),[h,p,d]);return(0,i.useEffect)(()=>{if(!n())return;let e=r.default.onEntryChange(()=>{f()});return()=>{r.default.unsubscribeOnEntryChange(e)}},[f]),(0,t.jsx)(s.Provider,{value:v,children:e})}])},669138,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let i=(0,r.createContext)(void 0);e.s(["FeatureFlagsProvider",0,function({value:e,children:n}){let a=(0,r.useMemo)(()=>e??{pianoPreview:!0},[e]);return(0,t.jsx)(i.Provider,{value:a,children:n})},"useFeatureFlags",0,function(){let e=(0,r.useContext)(i);if(!e)throw Error("useFeatureFlags must be used within FeatureFlagsProvider");return e}])}]);