(()=>{var t={7762:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],l=o[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,l)),u=0,p=l>0?s-4:s;for(r=0;r
>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===l&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[u++]=255&e),1===l&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a "+r+"{"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Compiler=l,e.precompile=function(t,e,r){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),o=(new r.Compiler).compile(n,e);return(new r.JavaScriptCompiler).compile(o,e)},e.compile=function(t,e,r){if(void 0===e&&(e={}),null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=o.extend({},e))||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){var n=r.parse(t,e),i=(new r.Compiler).compile(n,e),o=(new r.JavaScriptCompiler).compile(i,e,void 0,!0);return r.template(o)}function a(t,e){return n||(n=s()),n.call(this,t,e)}return a._setup=function(t){return n||(n=s()),n._setup(t)},a._child=function(t,e,r,i){return n||(n=s()),n._child(t,e,r,i)},a};var i=n(r(4680)),o=r(6516),s=n(r(8975)),a=[].slice;function l(){}function c(t,e){if(t===e)return!0;if(o.isArray(t)&&o.isArray(e)&&t.length===e.length){for(var r=0;rthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,r=t.length;e0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(r&&o&&a)return n[o=r(n,i)]===i?o:-1;if(i!=i)return(o=e(f.call(n,s,a),tt))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&o=3;return function(e,r,n,i){var o=!Ae(e)&&ut(e),s=(o||e).length,a=t>0?0:s-1;for(i||(n=e[o?o[a]:a],a+=t);a>=0&&a=0}const sr=L((function(t,e,r){var n,i;return V(e)?i=e:(e=$t(e),n=e.slice(0,-1),e=e[e.length-1]),Xe(t,(function(t){var o=i;if(!o){if(n&&n.length&&(t=zt(t,n)),null==t)return;o=t[e]}return null==o?o:o.apply(t,r)}))}));function ar(t,e){return Xe(t,Jt(e))}function lr(t,e){return er(t,Yt(e))}function cr(t,e,r){var n,i,o=-1/0,s=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=Ae(t)?t:Tt(t)).length;a
"):t},show:function(t){this.init(t),null!==this.options.id&&Gr()('[data-id="'+this.options.id+'"]').length>0?this.updateNotice():(this.createNotice(),this.showNotice())},showNotice:function(){switch(this.setMessage(this.options.message),this.element.insertAfter(Gr()("h2.title")),this.options.type){case"success":this.element.addClass("notice notice-success");break;case"system":this.element.addClass("notice notice-warning");break;case"error":this.element.addClass("notice notice-error");break;default:this.element.addClass("notice")}this.element.fadeIn(200),!0===this.options.scroll&&this.element.get(0).scrollIntoView(!1),!1===this.options.static&&setTimeout((function(t){t.trigger("close")}),this.options.timeout,this.element),!1===this.options.hideClose&&(this.element.append(''),this.element.find(".notice-dismiss").on("click",(function(){Gr()(this).trigger("close")}))),null!==this.options.onOpen&&this.options.onOpen(this.element)},hide:function(t){void 0!==t&&!0===t?Gr()(".mailpoet_notice:not([id])").trigger("close"):void 0!==t&&Array.isArray(t)&&Object.keys(t).forEach((function(e){Gr()('[data-id="'+t[e]+'"]').trigger("close")})),void 0!==t?Gr()('[data-id="'+t+'"]').trigger("close"):Gr()(".mailpoet_notice.notice-success:not([id]), .mailpoet_notice.notice-error:not([id])").trigger("close")},error:function(t,e){this.show(Gr().extend({},{type:"error",message:t},e))},success:function(t,e){this.show(Gr().extend({},{type:"success",message:t},e))},system:function(t,e){this.show(Gr().extend({},{type:"system",static:!0,message:t},e))},showApiErrorNotice:function(t,e){let r=n.t("ajaxFailedErrorMessage"),i=e;t&&t.errors&&t.errors.length>0&&(r=t.errors.map((t=>t.message)),i=JSON.stringify(t.errors).includes("reinstall_plugin")?{...e,static:!0,scroll:!0}:e),this.show(Gr().extend({},{type:"error",message:r},i))}};var en=[];const rn="mailpoet-track-events-cache",nn="saveInStorage";function on(t,e=[],r={},n=null){let i=e;const o=r===nn?{}:r;"function"!=typeof window.mixpanel.track&&window.mixpanel.init(window.mixpanelTrackingId,window.mixpanelInitConfig),void 0!==window.mailpoet_version&&(i["MailPoet Free version"]=window.mailpoet_version),void 0!==window.mailpoet_premium_version&&(i["MailPoet Premium version"]=window.mailpoet_premium_version),window.mixpanelIsLoaded?window.mixpanel.track(t,i,o,n):n&&n()}function sn(t){(window.mailpoet_analytics_enabled||t.forced)&&on(t.name,t.data,t.options)}function an(t,e,r,n,i){en.push({name:e,data:r,options:n,forced:t}),n===nn&&localStorage.setItem(rn,JSON.stringify(en)),"function"==typeof i&&i()}const ln=zr.partial(an,!1),cn=zr.partial(an,!0),un={toLocaleFixed:function(t,e){var r=e||0,n=10**r;return(Math.round(t*n)/n).toLocaleString(void 0,{minimumFractionDigits:r,maximumFractionDigits:r})}};var pn=r(3108),hn=r.n(pn),fn=r(1609);const dn=Math.min,mn=Math.max,gn=Math.round,yn=Math.floor,vn=t=>({x:t,y:t}),bn={left:"right",right:"left",bottom:"top",top:"bottom"},wn={start:"end",end:"start"};function Sn(t,e,r){return mn(t,dn(e,r))}function xn(t,e){return"function"==typeof t?t(e):t}function En(t){return t.split("-")[0]}function kn(t){return t.split("-")[1]}function An(t){return"x"===t?"y":"x"}function Ln(t){return"y"===t?"height":"width"}function On(t){return["top","bottom"].includes(En(t))?"y":"x"}function Pn(t){return An(On(t))}function Cn(t){return t.replace(/start|end/g,(t=>wn[t]))}function Tn(t){return t.replace(/left|right|bottom|top/g,(t=>bn[t]))}function In(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Nn(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function Bn(t,e,r){let{reference:n,floating:i}=t;const o=On(e),s=Pn(e),a=Ln(s),l=En(e),c="y"===o,u=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,h=n[a]/2-i[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(kn(e)){case"start":f[s]-=h*(r&&c?-1:1);break;case"end":f[s]+=h*(r&&c?-1:1)}return f}async function Rn(t,e){var r;void 0===e&&(e={});const{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:f=0}=xn(e,t),d=In(f),m=a[h?"floating"===p?"reference":"floating":p],g=Nn(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===p?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,_=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),v=await(null==o.isElement?void 0:o.isElement(_))&&await(null==o.getScale?void 0:o.getScale(_))||{x:1,y:1},b=Nn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(g.top-b.top+d.top)/v.y,bottom:(b.bottom-g.bottom+d.bottom)/v.y,left:(g.left-b.left+d.left)/v.x,right:(b.right-g.right+d.right)/v.x}}function Dn(t){return jn(t)?(t.nodeName||"").toLowerCase():"#document"}function Mn(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function qn(t){var e;return null==(e=(jn(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function jn(t){return t instanceof Node||t instanceof Mn(t).Node}function Un(t){return t instanceof Element||t instanceof Mn(t).Element}function Hn(t){return t instanceof HTMLElement||t instanceof Mn(t).HTMLElement}function Fn(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Mn(t).ShadowRoot)}function Vn(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Kn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function $n(t){return["table","td","th"].includes(Dn(t))}function zn(t){const e=Wn(),r=Kn(t);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!e&&!!r.backdropFilter&&"none"!==r.backdropFilter||!e&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((t=>(r.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(r.contain||"").includes(t)))}function Wn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gn(t){return["html","body","#document"].includes(Dn(t))}function Kn(t){return Mn(t).getComputedStyle(t)}function Yn(t){return Un(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jn(t){if("html"===Dn(t))return t;const e=t.assignedSlot||t.parentNode||Fn(t)&&t.host||qn(t);return Fn(e)?e.host:e}function Xn(t){const e=Jn(t);return Gn(e)?t.ownerDocument?t.ownerDocument.body:t.body:Hn(e)&&Vn(e)?e:Xn(e)}function Zn(t,e,r){var n;void 0===e&&(e=[]),void 0===r&&(r=!0);const i=Xn(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),s=Mn(i);return o?e.concat(s,s.visualViewport||[],Vn(i)?i:[],s.frameElement&&r?Zn(s.frameElement):[]):e.concat(i,Zn(i,[],r))}function Qn(t){const e=Kn(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Hn(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,a=gn(r)!==o||gn(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function ti(t){return Un(t)?t:t.contextElement}function ei(t){const e=ti(t);if(!Hn(e))return vn(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Qn(e);let s=(o?gn(r.width):r.width)/n,a=(o?gn(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ri=vn(0);function ni(t){const e=Mn(t);return Wn()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ri}function ii(t,e,r,n){void 0===e&&(e=!1),void 0===r&&(r=!1);const i=t.getBoundingClientRect(),o=ti(t);let s=vn(1);e&&(n?Un(n)&&(s=ei(n)):s=ei(t));const a=function(t,e,r){return void 0===e&&(e=!1),!(!r||e&&r!==Mn(t))&&e}(o,r,n)?ni(o):vn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,p=i.height/s.y;if(o){const t=Mn(o),e=n&&Un(n)?Mn(n):n;let r=t,i=r.frameElement;for(;i&&n&&e!==r;){const t=ei(i),e=i.getBoundingClientRect(),n=Kn(i),o=e.left+(i.clientLeft+parseFloat(n.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(n.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,p*=t.y,l+=o,c+=s,r=Mn(i),i=r.frameElement}}return Nn({width:u,height:p,x:l,y:c})}const oi=[":popover-open",":modal"];function si(t){return oi.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ai(t){return ii(qn(t)).left+Yn(t).scrollLeft}function li(t,e,r){let n;if("viewport"===e)n=function(t,e){const r=Mn(t),n=qn(t),i=r.visualViewport;let o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const t=Wn();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(t,r);else if("document"===e)n=function(t){const e=qn(t),r=Yn(t),n=t.ownerDocument.body,i=mn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=mn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ai(t);const a=-r.scrollTop;return"rtl"===Kn(n).direction&&(s+=mn(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}(qn(t));else if(Un(e))n=function(t,e){const r=ii(t,!0,"fixed"===e),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=Hn(t)?ei(t):vn(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:n*o.y}}(e,r);else{const r=ni(t);n={...e,x:e.x-r.x,y:e.y-r.y}}return Nn(n)}function ci(t,e){const r=Jn(t);return!(r===e||!Un(r)||Gn(r))&&("fixed"===Kn(r).position||ci(r,e))}function ui(t,e,r){const n=Hn(e),i=qn(e),o="fixed"===r,s=ii(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=vn(0);if(n||!n&&!o)if(("body"!==Dn(e)||Vn(i))&&(a=Yn(e)),n){const t=ii(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=ai(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function pi(t){return"static"===Kn(t).position}function hi(t,e){return Hn(t)&&"fixed"!==Kn(t).position?e?e(t):t.offsetParent:null}function fi(t,e){const r=Mn(t);if(si(t))return r;if(!Hn(t)){let e=Jn(t);for(;e&&!Gn(e);){if(Un(e)&&!pi(e))return e;e=Jn(e)}return r}let n=hi(t,e);for(;n&&$n(n)&&pi(n);)n=hi(n,e);return n&&Gn(n)&&pi(n)&&!zn(n)?r:n||function(t){let e=Jn(t);for(;Hn(e)&&!Gn(e);){if(zn(e))return e;e=Jn(e)}return null}(t)||r}const di={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const o="fixed"===i,s=qn(n),a=!!e&&si(e.floating);if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=vn(1);const u=vn(0),p=Hn(n);if((p||!p&&!o)&&(("body"!==Dn(n)||Vn(s))&&(l=Yn(n)),Hn(n))){const t=ii(n);c=ei(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:qn,getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o="clippingAncestors"===r?si(e)?[]:function(t,e){const r=e.get(t);if(r)return r;let n=Zn(t,[],!1).filter((t=>Un(t)&&"body"!==Dn(t))),i=null;const o="fixed"===Kn(t).position;let s=o?Jn(t):t;for(;Un(s)&&!Gn(s);){const e=Kn(s),r=zn(s);r||"fixed"!==e.position||(i=null),(o?!r&&!i:!r&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Vn(s)&&!r&&ci(t,s))?n=n.filter((t=>t!==s)):i=e,s=Jn(s)}return e.set(t,n),n}(e,this._c):[].concat(r),s=[...o,n],a=s[0],l=s.reduce(((t,r)=>{const n=li(e,r,i);return t.top=mn(n.top,t.top),t.right=dn(n.right,t.right),t.bottom=dn(n.bottom,t.bottom),t.left=mn(n.left,t.left),t}),li(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:fi,getElementRects:async function(t){const e=this.getOffsetParent||fi,r=this.getDimensions,n=await r(t.floating);return{reference:ui(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:r}=Qn(t);return{width:e,height:r}},getScale:ei,isElement:Un,isRTL:function(t){return"rtl"===Kn(t).direction}};const mi=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:o,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:r,platform:n,elements:i}=t,o=await(null==n.isRTL?void 0:n.isRTL(i.floating)),s=En(r),a=kn(r),l="y"===On(r),c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,p=xn(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:d}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&"number"==typeof d&&(f="end"===a?-1*d:d),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(e,t);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},gi=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:r}=t;return{x:e,y:r}}},...l}=xn(t,e),c={x:r,y:n},u=await Rn(e,l),p=On(En(i)),h=An(p);let f=c[h],d=c[p];if(o){const t="y"===h?"bottom":"right";f=Sn(f+u["y"===h?"top":"left"],f,f-u[t])}if(s){const t="y"===p?"bottom":"right";d=Sn(d+u["y"===p?"top":"left"],d,d-u[t])}const m=a.fn({...e,[h]:f,[p]:d});return{...m,data:{x:m.x-r,y:m.y-n}}}}},yi=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...g}=xn(t,e);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const y=En(i),_=En(a)===a,v=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=h||(_||!m?[Tn(a)]:function(t){const e=Tn(t);return[Cn(t),e,Cn(e)]}(a));h||"none"===d||b.push(...function(t,e,r,n){const i=kn(t);let o=function(t,e,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?o:s;default:return[]}}(En(t),"start"===r,n);return i&&(o=o.map((t=>t+"-"+i)),e&&(o=o.concat(o.map(Cn)))),o}(a,m,d,v));const w=[a,...b],S=await Rn(e,g),x=[];let E=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&x.push(S[y]),p){const t=function(t,e,r){void 0===r&&(r=!1);const n=kn(t),i=Pn(t),o=Ln(i);let s="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Tn(s)),[s,Tn(s)]}(i,s,v);x.push(S[t[0]],S[t[1]])}if(E=[...E,{placement:i,overflows:x}],!x.every((t=>t<=0))){var k,A;const t=((null==(k=o.flip)?void 0:k.index)||0)+1,e=w[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let r=null==(A=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:A.placement;if(!r)switch(f){case"bestFit":{var L;const t=null==(L=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0];t&&(r=t);break}case"initialPlacement":r=a}if(i!==r)return{reset:{placement:r}}}return{}}}},_i=(t,e,r)=>{const n=new Map,i={platform:di,...r},o={...i.platform,_c:n};return(async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:p}=Bn(c,n,l),h=n,f={},d=0;for(let r=0;r