1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[2781],{24243(e,t,i){let s;i.d(t,{T:()=>x});var n=i(96540),l=i(40961);function o(e,t,i){let s,n=i.initialDeps??[],l=!0;function o(){let o=e();return o.length!==n.length||o.some((e,t)=>n[t]!==e)?(n=o,s=t(...o),(null==i?void 0:i.onChange)&&!(l&&i.skipInitialOnChange)&&i.onChange(s),l=!1,s):s}return o.updateDeps=e=>{n=e},o}function r(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let h=(e,t)=>1.01>Math.abs(e-t),a=()=>{if(void 0!==s)return s;if("u"<typeof navigator)return s=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return s=!0;let e=navigator.maxTouchPoints;return s="MacIntel"===navigator.platform&&void 0!==e&&e>0},d=e=>{let{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},u=e=>e,c=e=>{let t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,s=Array(i);for(let e=0;e<i;e++)s[e]=t+e;return s},f=(e,t)=>{let i=e.scrollElement;if(!i)return;let s=e.targetWindow;if(!s)return;let n=e=>{let{width:i,height:s}=e;t({width:Math.round(i),height:Math.round(s)})};if(n(d(i)),!s.ResizeObserver)return()=>{};let l=new s.ResizeObserver(t=>{let s=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void n({width:t.inlineSize,height:t.blockSize})}n(d(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return l.observe(i,{box:"border-box"}),()=>{l.unobserve(i)}},m={passive:!0},g="u"<typeof window||"onscrollend"in window,p=(e,t)=>((e,t,i)=>{var s,n;let l,o=e.scrollElement;if(!o)return;let r=e.targetWindow;if(!r)return;let h=e.options.useScrollendEvent&&g,a=0,d=h?null:(s=()=>t(i(o),!1),n=e.options.isScrollingResetDelay,Object.assign(function(...e){r.clearTimeout(l),l=r.setTimeout(()=>s.apply(this,e),n)},{cancel:()=>{r.clearTimeout(l)}})),u=e=>()=>{a=i(o),null==d||d(),t(a,e)},c=u(!0),f=u(!1);return o.addEventListener("scroll",c,m),h&&o.addEventListener("scrollend",f,m),()=>{o.removeEventListener("scroll",c),h&&o.removeEventListener("scrollend",f),null==d||d.cancel()}})(e,t,t=>{let{horizontal:i,isRtl:s}=e.options;return i?t.scrollLeft*(s&&-1||1):t.scrollTop}),w=(e,t,i)=>{if(i.options.useCachedMeasurements){let t=i.indexFromElement(e),s=i.options.getItemKey(t);return i.itemSizeCache.get(s)??i.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=i.indexFromElement(e),s=i.options.getItemKey(t),n=i.itemSizeCache.get(s);if(void 0!==n)return n}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]},v=(e,{adjustments:t=0,behavior:i},s)=>{var n,l;null==(l=null==(n=s.scrollElement)?void 0:n.scrollTo)||l.call(n,{[s.options.horizontal?"left":"top"]:e+t,behavior:i})};class b{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e,t,i;return(null==(i=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:i.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,i=this.indexFromElement(t);if(!t.isConnected){for(let[e,i]of(this.observer.unobserve(t),this.elementsCache))if(i===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(i)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var i;null==(i=t())||i.disconnect(),e=null},observe:e=>{var i;return null==(i=t())?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return null==(i=t())?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t;let i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:u,rangeExtractor:c,onChange:()=>{},measureElement:w,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let s=e[t];void 0!==s&&(i[t]=s)}let s=this.options,n=null,l=null,o=!1;if(void 0!==s&&s.enabled&&i.enabled&&"end"===i.anchorTo&&null!==this.scrollElement){let e=s.count,r=i.count,h=this.getMeasurements(),a=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??h,d=e=>{var t;
1return"object"==typeof(t=a[e])?t.key:t},u=e>0?d(0):null,c=e>0?d(e-1):null;if(r!==e||e>0&&r>0&&(i.getItemKey(0)!==u||i.getItemKey(r-1)!==c)){o=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??h[0]:null;t&&(n=[t.key,this.getScrollOffset()-t.start]);let a=!0===i.followOnAppend?"auto":i.followOnAppend||null;a&&r>0&&this.isAtEnd(s.scrollEndThreshold)&&(0===e||i.getItemKey(r-1)!==c)&&(r>e||function(e,t,i,s){if(0===t)return!1;let n=s(0),l=new Set,o=0;for(;o<e;){let e=i(o);if(e===n)break;l.add(e),o++}let r=e-o;if(0===r||r>=t)return!1;for(let e=0;e<r;e++)if(s(e)!==i(o+e))return!1;for(let e=r;e<t;e++)if(l.has(s(e)))return!1;return!0}(e,r,d,i.getItemKey))&&(l=a)}}this.options=i,o&&(this.pendingMin=0,this.itemSizeCacheVersion++);let r=!1,h=0;if(n&&null!==this.scrollOffset){let[e,t]=n,i=this.getMeasurements(),{count:s,getItemKey:o}=this.options,a=0;for(;a<s&&o(a)!==e;)a++;if(a<s){let e=i[a];if(e){let i=Math.max(0,e.start+t);l||i===this.scrollOffset||(h=i-this.scrollOffset,this.scrollOffset=i,r=!0)}}}(r||l)&&(this.pendingScrollAnchor=[r?n[0]:null,r?n[1]:0,l,h])},this.notify=e=>{var t,i;null==(i=(t=this.options).onChange)||i.call(t,this,e)},this.maybeNotify=o(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;let i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i)return void this.maybeNotify();if(this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;let i=this.getScrollOffset();this.scrollDirection=t?i===e?this.scrollDirection:i<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},i=()=>{this._iosTouching=!1,a()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,m),e.addEventListener("touchend",i,m),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",i),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){let[e,i,n,l]=s;null!==e&&!n&&(a()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==l&&(this._iosDeferredAdjustment+=l):((null==(t=this.scrollState)?void 0:t.behavior)!=="smooth"||h(this.getScrollOffset()-l,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,i=this.getMaxScrollOffset();i>t+.5&&(this._clampedAdjustment=e>i+.5?{target:e,maxAtWrite:i}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>
1{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let i=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=i,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=o(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,i,s,n,l,o,r)=>(void 0!==this.prevLanes&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:n,lanes:l,laneAssignmentMode:o,gap:r}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=o(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:n,lanes:l,laneAssignmentMode:o,gap:r},h)=>{var a,d;let u=this.itemSizeCache;if(!n)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let c=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===l){let n,l,o=2*e,h=null==(a=this._singleLaneMeasurements)?void 0:a.flat;if(!h||h.length<o){let e=new Float64Array(o);h&&c>0&&e.set(h.subarray(0,2*c)),h=e}let f=0===c?Array(e):this._singleLaneMeasurements.items.slice();if(0===c)n=t+i;else{let e=c-1;n=h[2*e]+h[2*e+1]+r}for(let t=c;t<e;t++){let e=s(t);f[t]=e;let i=u.get(e),l="number"==typeof i?i:this.options.estimateSize(t);h[2*t]=n,h[2*t+1]=l,n+=l+r}this._singleLaneMeasurements={flat:h,items:f};let m=(d=h,l=f.length,new Proxy(f,{get(e,t,i){if("string"==typeof t){let i=t.charCodeAt(0);if(i>=48&&i<=57){let i=+t;if(Number.isInteger(i)&&i>=0&&i<l){let t=e[i];if("object"!=typeof t){let s=d[2*i];t=e[i]={index:i,key:t,start:s,size:d[2*i+1],end:s+d[2*i+1],lane:0}}return t}}if("length"===t)return l}return Reflect.get(e,t,i)}}));return this.measurementsCache=m,m}let f=this.measurementsCache.slice(0,c),m=Array(l).fill(void 0),g=new Float64Array(l),p=0;for(let e=0;e<c;e++){let t=f[e];t&&(void 0===m[t.lane]&&p++,m[t.lane]=e,g[t.lane]=t.end)}for(let n=c;n<e;n++){let e,h,a=s(n),d=this.laneAssignments.get(n),c="estimate"===o||u.has(a);if(void 0!==d&&this.options.lanes>1){let s=m[e=d],n=void 0!==s?f[s]:void 0;h=n?n.end+r:t+i}else if(p===l){let t=0,i=g[0],s=m[0];for(let e=1;e<l;e++){let n=g[e];(n<i||n===i&&m[e]<s)&&(t=e,i=n,s=m[e])}e=t,h=i+r,c&&this.laneAssignments.set(n,e)}else e=n%this.options.lanes,h=t+i,c&&this.laneAssignments.set(n,e);let w=u.get(a),v="number"==typeof w?w:this.options.estimateSize(n),b=h+v;f[n]={index:n,start:h,size:v,end:b,key:a,lane:e},void 0===m[e]&&p++,m[e]=n,g[e]=b}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=o(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,i,s)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,i,s,n){let l=e.length-1;if(e.length<=s)return{startIndex:0,endIndex:l};if(1===s&&null!==n){let e=function(e,t,i){let s=0;for(;s<=t;){let n=(s+t)/2|0,l=e[2*n];if(l<i)s=n+1;else{if(!(l>i))return n;t=n-1}}return s>0?s-1:0}(n,l,i),s=e,o=i+t;
1for(;s<l&&n[2*s]+n[2*s+1]<o;)s++;return{startIndex:e,endIndex:s}}let o=S(0,l,t=>e[t].start,i),r=o;if(1===s)for(;r<l&&e[r].end<i+t;)r++;else if(s>1){let n=Array(s).fill(0);for(;r<l&&n.some(e=>e<i+t);){let t=e[r];n[t.lane]=t.end,r++}let h=Array(s).fill(i+t);for(;o>=0&&h.some(e=>e>=i);){let t=e[o];h[t.lane]=t.start,o--}o=Math.max(0,o-o%s),r=Math.min(l,r+(s-1-r%s))}return{startIndex:o,endIndex:r}}(e,t,i,s,1===s&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=o(()=>{let e=null,t=null,i=this.calculateRange();return i&&(e=i.startIndex,t=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,i,s,n)=>null===s||null===n?[]:e({startIndex:s,endIndex:n,overscan:t,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let i=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==i&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-t),n=Math.min(this.options.count-1,i+t);return e>=s&&e<=n}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let i=this.options.getItemKey(t),s=this.elementsCache.get(i);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(i,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var i,s,n;let l,o,r;if(!this.isIndexInRange(e))return;let h=null==(i=this._singleLaneMeasurements)?void 0:i.flat;if(1===this.options.lanes&&null!=h)r=this.options.getItemKey(e),o=h[2*e],l=h[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;r=t.key,o=t.start,l=t.size}let a=this.itemSizeCache.get(r)??l,d=t-a;if(0!==d){let i="end"===this.options.anchorTo&&(null==(s=this.scrollState)?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,h=i?this.getTotalSize():0,u=this.getScrollOffset()+this.scrollAdjustments,c=this.itemSizeCache.has(r)?o+a<=u&&"backward"!==this.scrollDirection:o<u,f=(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:r,start:o,size:l,end:o+l,lane:0},d,this):c);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(r,t),this.itemSizeCacheVersion++;let m=!1;i?m=this.applyScrollAdjustment(this.getTotalSize()-h):f&&(m=this.applyScrollAdjustment(d)),this.notify(m),this._retryClampedAdjustment()}},this.getVirtualItems=o(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let n=t[e[s]];i.push(n)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{var t;let i=this.getMeasurements();if(0===i.length)return;let s=null==(t=this._singleLaneMeasurements)?void 0:t.flat,n=1===this.options.lanes&&null!=s,l=S(0,i.length-1,n?e=>s[2*e]:e=>r(i[e]).start,e);return r(i[l])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,i=0)=>{if(!this.scrollElement)return 0;let s=this.getSize(),n=this.getScrollOffset();return"auto"===t&&(t=e>=n+s?"end":"start"),"center"===t?e+=(i-s)/2:"end"===t&&(e-=s),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.getSize(),s=this.getScrollOffset(),n=this.measurementsCache[e];if(!n)return;if("auto"===t)if(n.end>=s+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let l="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,t,n.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0;let s=this.getOffsetForAlignment(e,t),n=this.now();this.scrollState={index:null,align:t,behavior:i,startedAt:n,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let s=this.getOffsetForIndex(e,t);if(!s)return;let[n,l]=s,o=this.now();this.scrollState={index:e,align:l,behavior:i,startedAt:o,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let i=this.getScrollOffset()+e,s=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e,t;let i,s=this.getMeasurements();if(0===s.length)i=this.options.paddingStart;else if(1===this.options.lanes){let n=s.length-1,l=null==(e=this._singleLaneMeasurements)?void 0:e.flat;i=null!=l?l[2*n]+l[2*n+1]:(null==(t=s[n])?void 0:t.end)??0}else{let e=Array(this.options.lanes).fill(null),t=s.length-1;for(;t>=0&&e.some(e=>null===e);){let i=s[t];null===e[i.lane]&&(e[i.lane]=i.end),t--}i=Math.max(...e.filter(e=>null!==e))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
1if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:i})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:i,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(a()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{let i=this.getScrollOffset()+this.scrollAdjustments+e,s=this.scrollElement,n=null!==s&&("scrollHeight"in s||"document"in s)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==n&&i>n+.5?{target:i,maxAtWrite:n}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,i=t!==this.scrollState.lastTargetOffset;if(!i&&h(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,i){let e=this.getSize()||600,i=Math.abs(t-this.getScrollOffset()),s="smooth"===this.scrollState.behavior&&i>e;this.scrollState.lastTargetOffset=t,s||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:s?"smooth":"auto"})}this.scheduleScrollReconcile()}}let S=(e,t,i,s)=>{for(;e<=t;){let n=(e+t)/2|0,l=i(n);if(l<s)e=n+1;else{if(!(l>s))return n;t=n-1}}return e>0?e-1:0},E="u">typeof document?n.useLayoutEffect:n.useEffect;function x(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:i="transform",...s}){let o=n.useReducer(e=>e+1,0)[1],r=n.useRef({enabled:t,mode:i,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});r.current.enabled=t,r.current.mode=i;let h=n.useRef(!1),a=e=>{let t=r.current;if(!t.enabled||!t.container)return;let i=e.getTotalSize();if(i!==t.lastSize){t.lastSize=i;let s=e.options.horizontal?"width":"height";t.container.style[s]=`${i}px`}},d=e=>{let t=r.current;if(!t.enabled||!t.container)return;a(e);let i=!!e.options.horizontal,s="transform"===t.mode,n=i?"left":"top",l=e.options.scrollMargin;for(let o of e.getVirtualItems()){let r=o.start-l,h=e.elementsCache.get(o.key);h&&t.lastPositions.get(h)!==r&&(t.lastPositions.set(h,r),s?h.style.transform=i?`translate3d(${r}px, 0, 0)`:`translate3d(0, ${r}px, 0)`:h.style[n]=`${r}px`)}},u={...s,onChange:(t,i)=>{var n;let a=r.current,u=!0;if(a.enabled){d(t);let e=t.range,i=a.prevRange;(u=!i||i.isScrolling!==t.isScrolling||i.startIndex!==(null==e?void 0:e.startIndex)||i.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&i&&!h.current?(0,l.flushSync)(o):o()),null==(n=s.onChange)||n.call(s,t,i)}},[c]=n.useState(()=>{let e=new b(u),t=e.measureElement;return e.measureElement=e=>{h.current=!0;try{t(e)}finally{h.current=!1}},Object.assign(e,{containerRef:t=>{let i=r.current;if(i.container=t,i.lastSize=null,t&&i.enabled){let s=e.getTotalSize();i.lastSize=s;let n=e.options.horizontal?"width":"height";t.style[n]=`${s}px`}}})});return c.setOptions(u),E(()=>c._didMount(),[]),E(()=>(a(c),c._willUpdate())),E(()=>{d(c)}),c}({observeElementRect:f,observeElementOffset:p,scrollToFn:v,...e})}},7247(e,t,i){i.d(t,{A:()=>r});var s=i(74848),n=i(96540),l=i(40961),o=i(67247);let r=({children:e,wrapperElement:t="div",wrapperElementId:i="divId",inputRef:r,type:h,DropdownDirection:a="auto",wrapperName:d="",openInCenter:u=!1,glassDesign:c=!1})=>
1{let[f,m]=(0,n.useState)(null),[g,p]=(0,n.useState)(0),[w,v]=(0,n.useState)(0),b=(0,n.useRef)(null),[S,E]=(0,n.useState)({top:0,left:0}),x=o.Wp.CheckIsProApp(),[M,y]=(0,n.useState)(e?.props?.children?.length);return((0,n.useLayoutEffect)(()=>{if(!f||!f.firstElementChild)return;let e=f.firstElementChild,t=e?.getBoundingClientRect(),i=0,s=f.children;for(let e=0;e<s.length;e++)i+=s[e].scrollHeight;p(i),v(t?.width||700)},[f,i,e]),(0,n.useLayoutEffect)(()=>{E((()=>{let t,s,l;if(!r?.current)return{top:0,left:0};let f=r?.current?.getBoundingClientRect();if(!f||!f?.width&&!f.height)return{top:0,left:0};let m=85*!!c,p=window.innerHeight-f.bottom-(("threedotmenu"===i||"NestedDropdownPortal"===i)&&x?85:0)-m,v=f.top-m;if("ColorPicker"===i)t=420;else if("threedotmenu"===i||"threedotmenu"===d)t=36*(M||0)+10;else if("daterpicker"===i)t=340;else if("timepicker"===i||i.startsWith("timepicker-"))t=160;else if("dropdownmenu"===i)t=36*(e?.props?.children[0].length||0)+32;else if("NestedDropdownPortal"===i)t=38*(M||0)+8;else if("phonecountry"===i)t=257;else if("inputtogglemenu"===i){let i=e?.props?.children?.[1],s=(i?n.Children.toArray(i.props?.children).filter(Boolean):[]).length;t=s>0?41.8*s+53.6:179}else t="dotphrase-portal"===i?38*(M||0)+60:"gif-picker-portal"===i?370:"emoji-picker-portal"===i?369:u&&"daterangepicker"===i?490:258;let b=g||t,S=f.left,E=window.innerWidth-f.right,y=w||700,I=f.left+window.scrollX,T=!1;if(h===o.IU.addressSuggestions){let e=window.innerHeight,t=e/3,i=2*e/3,n=f.top<t,l=f.top>=t&&f.top<=i;s=f.top>i?f.top+window.scrollY-b:l||n||p>=b?f.bottom+window.scrollY:v>=b?f.top+window.scrollY-b:f.bottom+window.scrollY}else h===o.IU.timePickerRight?s=p<b&&v>=b?f.top+window.scrollY-b:f.bottom+window.scrollY:p>=b?s=f.bottom+window.scrollY:v>=b?s=f.top+window.scrollY-b:u&&("daterangepicker"===i||"daterpicker"===i)?(s=window.scrollY+Math.max(0,(window.innerHeight-b)/2),T=!0):s=f.bottom+window.scrollY;if("dotphrase-portal"===i){let e=g||38*(M||0)+20,t=w||320,i=window.innerWidth-f.left;f.right;let s=window.innerHeight-f.bottom;f.top;let n=s>=e?f.bottom+window.scrollY:f.top+window.scrollY-e-16,l=i>=t?f.left+window.scrollX:f.right+window.scrollX-t;return l=Math.max(window.scrollX+8,Math.min(l,window.scrollX+window.innerWidth-t-8)),{top:n=Math.max(window.scrollY+8,Math.min(n,window.scrollY+window.innerHeight-e-8)),left:l}}if(("daterangepicker"===i||"daterpicker"===i||"phonecountry"===i)&&h===o.IU.dateRangePickerAutoPosition)if(u&&T)I=window.scrollX+Math.max(0,(window.innerWidth-y)/2),l=void 0;else if(E+f?.width>=y)I=f.left+window.scrollX,l=void 0;else if(S+f?.width>=y)l=window.innerWidth-(f.right+window.scrollX),I=void 0;else{let e=window.innerWidth;f.left<e/2?(I=window.scrollX,l=void 0):"phonecountry"===i?l=void 0:(l=0,I=void 0)}else if("phonecountry"===i&&h===o.IU.phonecountry)E>=328?(I=f.left+window.scrollX,l=void 0):S>=328?(l=window.innerWidth-(f.right+window.scrollX),I=void 0):E>=S?(I=f.left+window.scrollX,l=void 0):(l=window.innerWidth-(f.right+window.scrollX),I=void 0);else switch(h){case o.IU.action:I=S<E?f.left+window.scrollX:window.innerWidth-E-(f?.width||328);break;case o.IU.timePickerRight:f?.width;let O=window.innerWidth,A=navigator.userAgent,C=/^((?!chrome|android).)*safari/i.test(A),_=navigator.platform.toUpperCase().indexOf("MAC")>=0;l=O-(f.right+window.scrollX+(C||_?0:10));break;case o.IU.threeDotmenu:s=p<b&&v>=b?f.top+window.scrollY-b:f.bottom+window.scrollY;let z=window.visualViewport?.width??document.documentElement.clientWidth??window.innerWidth,R=w||0,k=f.right>=R,W=z-f.left>=R;("left"===a?!R||W||!k:R&&!k&&W)?(I=f.left+window.scrollX,l=void 0):(l=Math.round(z-f.right),I=void 0);break;case o.IU.smileyPicker:I=f.right+window.scrollX-240;break;case o.IU.tableGrid:{let e=window.scrollX+8,t=window.scrollX+window.innerWidth-8,i=window.visualViewport,n=i?window.innerHeight-i.height:0;s=null!=i&&n>80?f.top+window.scrollY-b:p>=b?f.bottom+window.scrollY:v>=b?f.top+window.scrollY-b:p>=v?f.bottom+window.scrollY:f.top+window.scrollY-b,I=E>=y?f.left+window.scrollX:S>=y?f.right+window.scrollX-y:Math.max(e,Math.min(f.left+window.scrollX,t-y));break}case o.IU.dateRangePickerRight:l=window.innerWidth-(f.right+window.scrollX);break;case o.IU.gifPicker:{let e=window.innerWidth-f.left,t=f.right;I=e>=343?f.left+window.scrollX:t>=343?f.right+window.scrollX-335:window.scrollX+Math.max(8,Math.min(f.left,window.innerWidth-335-8));break}case o.IU.emojiPicker:{let e=b||369;s=p>=e+4?f.bottom+window.scrollY+4:v>=e+4?f.top+window.scrollY-e-4:p>v?f.bottom+window.scrollY+4:f.top+window.scrollY-e-4;let t=f.left+window.scrollX;t+360>window.innerWidth+window.scrollX-8&&(t=window.innerWidth+window.scrollX-360-8),t<window.scrollX+8&&(t=window.scrollX+8),I=t;break}default:I=f.left+window.scrollX}if("dropdownmenu"===i&&a&&"auto"!==a){let e,t=window.innerHeight-f.bottom,i=f.top;return"right"===a?e=f.right+window.scrollX:"left"===a&&(e=f.left-f.width+window.scrollX),{top:t>=b?f.top+window.scrollY:i>=b?f.bottom+window.scrollY-b:f.top+window.scrollY,left:e}}return void 0!==l?{top:s,right:l}:{top:s,left:I}})())},[r,g,h,i,e]),(0,n.useEffect)(()=>{let e=b.current;if(!e||!e.firstElementChild)return;let t=()=>{let t=e.firstElementChild,i=t?.getBoundingClientRect(),s=0,n=e.children;for(let e=0;e<n.length;e++)s+=n[e].offsetHeight;p(s),v(i?.width||700)};t();let i=new ResizeObserver(t),s=new MutationObserver(t);return i.observe(e),s.observe(e,{childList:!0,subtree:!0}),()=>{i.disconnect(),s.disconnect()}},[e,i,h]),(0,n.useEffect)(()=>{let e,s=document.getElementById(i);
1s||((e=document.createElement(t)).setAttribute("id",i),""!==i&&("Popup-change-log-popup"===i&&e.setAttribute("data-identity","history"),"Popup-renter-popup"===i&&e.setAttribute("data-identity","sub-history")),document.body.appendChild(e),s=e),b.current=s,m(s);try{let e=r?.current??null,t=e?e.closest("[data-popup-id]"):null,i=t?.getAttribute("data-popup-id");i?s.setAttribute("data-parent-popup-id",i):s.removeAttribute("data-parent-popup-id")}catch{}return()=>{s&&document.body.contains(s)&&document.body.removeChild(s)}},[i,t]),null===f)?null:(0,l.createPortal)((0,s.jsx)("div",{style:{position:"absolute",...S,..."dropdownmenu"===i||"table-grid-portal"===i||"threedotmenu"===i||"threedotmenu"===d||"emoji-picker-portal"===i||"gif-picker-portal"===i?{zIndex:9999}:{}},children:e}),f)}},6409(e,t,i){i.d(t,{E:()=>o,o:()=>l});let s=null,n=null,l=()=>s,o=()=>s?Promise.resolve(s):(n||(n=Promise.all([i.e(6138),i.e(5066),i.e(3416),i.e(3354),i.e(522),i.e(9762),i.e(9844),i.e(5606),i.e(1323),i.e(7145),i.e(2732),i.e(8526),i.e(3832),i.e(5375),i.e(5943),i.e(4510)]).then(i.bind(i,44)).then(e=>(s=e.default,e.default),e=>{throw n=null,e})),n)},15624(e,t,i){i.r(t),i.d(t,{default:()=>a});var s=i(74848),n=i(96540),l=i(67247),o=i(7247);let r=l.Wp.CheckIsFromProAppWithoutState(),h=l.Wp.CheckIsFromIpadAndroidTabWithoutParm(),a=({NotificationTitle:e,Icon:t=!1,types:i="positive",Duration:l=0,show:a=!1,TopMessage:d=!1,OnClose:u,UsePortal:c=!1,RenderOnTop:f=""})=>{let[m,g]=(0,n.useState)(!1),p=(0,n.useRef)(`PassiveNotification-${Math.random().toString(36).substr(2,9)}`),w=f?{top:f}:void 0,v="positive"===i?"vg-banner-success-master":"warning"===i?"vg-banner-warning-master":"vg-banner-fail-master";(0,n.useEffect)(()=>{let t;return a||d?(g(!0),t=setTimeout(()=>{g(!1),setTimeout(()=>{u&&u()},300)},l>0?l:e?e.length<50?2e3:e.length<100?3e3:e.length<200?4e3:7e3:3e3)):g(!1),()=>{t&&clearTimeout(t)}},[a,e,l,d,u]);let b=()=>m&&(0,s.jsx)("div",{className:`${r||h?"vg-passinvmessage-pro":""} passinvmessageblock`,children:(0,s.jsxs)("div",{className:`${v} ${m&&d?"showmsgTop":""}`,style:w,children:[t&&(0,s.jsx)("div",{className:"icon-banner"}),(0,s.jsx)("div",{className:"text-block-28",children:e})]})});return(0,s.jsx)(s.Fragment,{children:c?(0,s.jsx)(o.A,{wrapperElementId:p.current,wrapperElement:"div",children:b()}):b()})}},94089(e,t,i){i.r(t),i.d(t,{default:()=>r});var s=i(74848),n=i(96540),l=i(40961),o=i(67247);let r=({TooltipText:e,Children:t,ScreenTitleForMobile:i,IsEmptyScreenTitle:r=!1,Html:h=!0,TextAlign:a="center",BeakPoint:d="Down",BeakPosition:u="Middle",Duration:c=2e3,ShowHover:f=!0,TriggerTooltip:m=!1,OnTooltipClose:g,FullWidth:p=!1,TooltipRender:w="inline",MaxWidth:v,FullHeight:b=!1,ForceWebRender:S=!1})=>{let[E,x]=(0,n.useState)("top-center"),[M,y]=(0,n.useState)(!1),I=(0,n.useRef)(null),T=(0,n.useRef)(null),O=(0,n.useRef)(null),A=(0,n.useRef)(null),C=(0,n.useRef)(!1),[_,z]=(0,n.useState)({top:0,left:0}),R=o.Wp.CheckIsFromProAppWithoutState()&&!S,k=o.Wp.CheckIsFromIpadAndroidTabWithoutParm(),W=f&&!k,j=(0,n.useRef)([]),L=e=>{let t=getComputedStyle(e),i=t.overflowY,s=t.overflowX;return/(auto|scroll|overlay)/.test(i)||/(auto|scroll|overlay)/.test(s)},D=(0,n.useCallback)(e=>{let t=[],i=e?.parentElement||null;for(;i;)L(i)&&t.push(i),i=i.parentElement;return t.push(document.scrollingElement||document.documentElement),t},[]);(0,n.useEffect)(()=>(O.current&&(clearTimeout(O.current),O.current=null),!f&&m?(y(!0),c>0&&(O.current=setTimeout(()=>{y(!1),g&&g()},c))):y(!1),()=>{O.current&&(clearTimeout(O.current),O.current=null)}),[m,c,g,f]),(0,n.useEffect)(()=>{if("portal"!==w&&M&&I.current&&T.current){let e=I.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),i=window.innerWidth,s=window.innerHeight,n=t.top>=e.height,l=s-t.bottom>=e.height,o=t.left>=e.width,r=i-t.right>=e.width;n?x("top-center"):l?x("bottom-center"):o?x("left"):r?x("right"):x("bottom-center")}},[M,w]),(0,n.useEffect)(()=>{if("inline"!==w&&M&&T.current){let e=T.current.getBoundingClientRect(),t=I.current?.getBoundingClientRect().width??200,i=I.current?.getBoundingClientRect().height??40,s=window.innerWidth,n=window.innerHeight,l=e.top>=i+8,o=n-e.bottom>=i+8,r=e.left>=t+8,h=s-e.right>=t+8;
1l?x("top-center"):o?x("bottom-center"):r?x("left"):h?x("right"):x("bottom-center")}},[M,w]);let F=()=>{if(!T.current||!I.current)return"Middle";let e=T.current.getBoundingClientRect(),t=I.current.getBoundingClientRect(),i=window.innerWidth,s=t.width||200,n=e.left+e.width/2,l=n-s/2,o=i-(n+s/2);return l>=20&&o>=20?"Middle":l<20?"Left":o<20?"Right":"Middle"};(0,n.useEffect)(()=>{let e=u;"Auto"===u&&(e=F()),"Down"===d&&"Middle"===e?x("bottom-center"):"Down"===d&&"Left"===e?x("bottom-left"):"Down"===d&&"Right"===e?x("bottom-right"):"Up"===d&&"Left"===e?x("top-left"):"Up"===d&&"Right"===e&&x("top-right")},[d,u,E,M]),(0,n.useEffect)(()=>{if("Auto"!==u)return;let e=()=>{if(M){let e=F();"Down"===d&&"Middle"===e?x("bottom-center"):"Down"===d&&"Left"===e?x("bottom-left"):"Down"===d&&"Right"===e?x("bottom-right"):"Up"===d&&"Left"===e?x("top-left"):"Up"===d&&"Right"===e&&x("top-right")}};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[u,d,M,window.innerWidth]);let P=(0,n.useCallback)(()=>{if("inline"===w||!M||"Auto"!==u||!I.current||!T.current)return;let e=I.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),i=window.innerWidth,s=t.left,n=i-t.right,l=e.width;return n<l&&n<s?`${s+30}px`:s<l&&s<n?`${n+30}px`:void 0},[w,M,u]),X=(0,n.useCallback)(()=>{if("inline"===w||!M||!I.current||!T.current)return;let e=I.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),i=0,s=0,n=t.left+t.width/2,l=t.top+t.height/2;switch(E){case"top-center":i=t.top-e.height-8,s=n-e.width/2;break;case"bottom-center":i=t.bottom+8,s=n-e.width/2;break;case"left":i=l-e.height/2,s=t.left-e.width-8;break;case"right":i=l-e.height/2,s=t.right+8;break;case"top-left":i=t.top-e.height-8,s=t.left-10;break;case"top-right":i=t.top-e.height-8,s=t.right-e.width+10;break;case"bottom-left":i=t.bottom+8,s=t.left-10;break;case"bottom-right":i=t.bottom+8,s=t.right-e.width+10}let o=window.innerWidth,r=window.innerHeight,h=Math.max(8,Math.min(s,o-e.width-8)),a=Math.max(8,Math.min(i,r-e.height-8)),d=`${n-h}px`;z({top:a,left:h,maxWidth:P(),beakLeft:d})},[w,M,E,P]);(0,n.useLayoutEffect)(()=>{"portal"===w&&X()},[M,E,u,w,X]),(0,n.useEffect)(()=>{if("inline"===w||!M)return;let e=D(T.current);j.current=e;let t=()=>X();return e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),window.addEventListener("resize",t),t(),()=>{e.forEach(e=>e.removeEventListener("scroll",t)),window.removeEventListener("resize",t)}},[M,E,u,w,X,D]),(0,n.useEffect)(()=>{if(!M)return;let e=D(T.current),t=()=>{C.current=!0,y(!1),g&&g()};return e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),window.addEventListener("scroll",t,{passive:!0}),()=>{e.forEach(e=>e.removeEventListener("scroll",t)),window.removeEventListener("scroll",t)}},[M,D,g]);let Y=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"";(0,n.useEffect)(()=>{let e=e=>{k&&T.current&&!T.current.contains(e.target)&&y(!1)};if(k)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[k]),(0,n.useEffect)(()=>{if("portal"!==w&&!v&&M&&I.current&&T.current&&"Auto"===u){let e=I.current,t=e.getBoundingClientRect(),i=T.current.getBoundingClientRect(),s=window.innerWidth,n=i.left,l=s-i.right;e.style.maxWidth="none";let o=t.width;l<o&&l<n?e.style.maxWidth=`${n+30}px`:n<o&&n<l&&(e.style.maxWidth=`${l+30}px`)}},[M,E,w,v]);let B=()=>{A.current&&(window.clearTimeout(A.current),A.current=null)},$=()=>{W&&"inline"!==w&&(B(),y(!0))},H=()=>{W&&"inline"!==w&&(B(),A.current=window.setTimeout(()=>y(!1),10))};(0,n.useEffect)(()=>()=>B(),[]);let U=()=>{!k&&f&&(C.current=!1,y(!0))},N="portal"===w&&W?{onMouseEnter:$,onMouseLeave:H,onMouseMove:()=>{C.current&&$()}}:{onMouseEnter:U,onMouseLeave:()=>{!k&&f&&(C.current=!1,y(!1))},onMouseMove:()=>{C.current&&U()}};return(0,s.jsxs)("div",{className:`vg-group vg-tooltip-group ${b?"vg-tooltip-fullheight":""}`,children:[(0,s.jsxs)("div",{className:`vg-tooltip vg-tooltip-${E} ${p?"vg-tooltip-fullwidth":""} ${"portal"===w?"vg-tooltip-portal-trigger":""}`,ref:T,...N,onPointerUp:s=>
1{if(s.preventDefault(),s.stopPropagation(),f&&(k&&!R&&y(!0),R&&e)){var l={};l.message=e,l.messageType=0,l.screenTitle=n.isValidElement(t)?r?"":i||"Info":Y(e),l.screenType=0,l.navType=51,l.action="",o.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(l))}},children:["inline"===w&&e&&M&&(0,s.jsx)("div",{className:`vg-tooltip-sms vg-text-${a}`,ref:I,style:v?{maxWidth:v}:void 0,children:h?(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&Y(e)}),t]}),"portal"===w&&e&&M&&(0,l.createPortal)((0,s.jsx)("div",{className:`vg-tooltip vg-tooltip-portal vg-tooltip-${E} ${p?"vg-tooltip-fullwidth":""}`,children:(0,s.jsx)("div",{className:`vg-tooltip-sms vg-text-${a}`,ref:I,style:{position:"fixed",top:_.top,left:_.left,maxWidth:v||_.maxWidth,zIndex:9999,visibility:0===_.left&&0===_.top?"hidden":"visible","--beak-left":_.beakLeft||"50%"},onMouseEnter:$,onMouseLeave:H,children:h?(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&Y(e)})}),document.body)]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.