"use strict";Liferay.Loader.define("frontend-js-dropdown-support-web$dom-align@1.10.4/dist-node/index",["module","exports","require"],(function(t,e,o){window;{var n;Object.defineProperty(e,"__esModule",{value:!0});var r={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function i(){if(void 0!==n)return n;n="";var t=document.createElement("p").style;for(var e in r)e+"Transform"in t&&(n=e);return n}function a(){return i()?"".concat(i(),"TransitionProperty"):"transitionProperty"}function f(){return i()?"".concat(i(),"Transform"):"transform"}function l(t,e){var o=a();o&&(t.style[o]=e,"transitionProperty"!==o&&(t.style.transitionProperty=e))}function u(t,e){var o=f();o&&(t.style[o]=e,"transform"!==o&&(t.style.transform=e))}var c,s=/matrix\((.*)\)/,p=/matrix3d\((.*)\)/;function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function g(t,e,o){var n=o;if("object"!==d(e))return void 0!==n?("number"==typeof n&&(n="".concat(n,"px")),void(t.style[e]=n)):c(t,e);for(var r in e)e.hasOwnProperty(r)&&g(t,r,e[r])}function m(t,e){var o=t["page".concat(e?"Y":"X","Offset")],n="scroll".concat(e?"Top":"Left");if("number"!=typeof o){var r=t.document;"number"!=typeof(o=r.documentElement[n])&&(o=r.body[n])}return o}function v(t){return m(t)}function y(t){return m(t,!0)}function w(t){var e=function(t){var e,o,n,r=t.ownerDocument,i=r.body,a=r&&r.documentElement;return o=(e=t.getBoundingClientRect()).left,n=e.top,{left:o-=a.clientLeft||i.clientLeft||0,top:n-=a.clientTop||i.clientTop||0}}(t),o=t.ownerDocument,n=o.defaultView||o.parentWindow;return e.left+=v(n),e.top+=y(n),e}function b(t){return null!=t&&t==t.window}function x(t){return b(t)?t.document:9===t.nodeType?t:t.ownerDocument}var W=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),S=/^(top|right|bottom|left)$/;function P(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function O(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function j(t,e,o){"static"===g(t,"position")&&(t.style.position="relative");var n=-999,r=-999,i=P("left",o),f=P("top",o),u=O(i),c=O(f);"left"!==i&&(n=999),"top"!==f&&(r=999);var s,p="",d=w(t);("left"in e||"top"in e)&&(p=(s=t).style.transitionProperty||s.style[a()]||"",l(t,"none")),"left"in e&&(t.style[u]="",t.style[i]="".concat(n,"px")),"top"in e&&(t.style[c]="",t.style[f]="".concat(r,"px")),h(t);var m=w(t),v={};for(var y in e)if(e.hasOwnProperty(y)){var b=P(y,o),x="left"===y?n:r,W=d[y]-m[y];v[b]=b===y?x+W:x-W}g(t,v),h(t),("left"in e||"top"in e)&&l(t,p);var S={};for(var j in e)if(e.hasOwnProperty(j)){var T=P(j,o),C=e[j]-d[j];S[T]=j===T?v[T]+C:v[T]-C}g(t,S)}function T(t,e){for(var o=0;o<t.length;o++)e(t[o])}function C(t){return"border-box"===c(t,"boxSizing")}"undefined"!=typeof window&&(c=window.getComputedStyle?function(t,e,o){var n=o,r="",i=x(t);return(n=n||i.defaultView.getComputedStyle(t,null))&&(r=n.getPropertyValue(e)||n[e]),r}:function(t,e){var o=t.currentStyle&&t.currentStyle[e];if(W.test(o)&&!S.test(e)){var n=t.style,r=n.left,i=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left,n.left="fontSize"===e?"1em":o||0,o=n.pixelLeft+"px",n.left=r,t.runtimeStyle.left=i}return""===o?"auto":o});var M=["margin","border","padding"];function L(t,e,o){var n={},r=t.style;for(var i in e)e.hasOwnProperty(i)&&(n[i]=r[i],r[i]=e[i]);for(i in o.call(t),e)e.hasOwnProperty(i)&&(r[i]=n[i])}function D(t,e,o){var n,r,i,a=0;for(r=0;r<e.length;r++)if(n=e[r])for(i=0;i<o.length;i++){var f;f="border"===n?"".concat(n).concat(o[i],"Width"):n+o[i],a+=parseFloat(c(t,f))||0}return a}var E={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function H(t,e,o){var n=o;if(b(t))return"width"===e?E.viewportWidth(t):E.viewportHeight(t);if(9===t.nodeType)return"width"===e?E.docWidth(t):E.docHeight(t);var r="width"===e?["Left","Right"]:["Top","Bottom"],i="width"===e?t.getBoundingClientRect().width:t.getBoundingClientRect().height;c(t);var a=C(t),f=0;(null==i||i<=0)&&(i=void 0,(null==(f=c(t,e))||Number(f)<0)&&(f=t.style[e]||0),f=parseFloat(f)||0),void 0===n&&(n=a?1:-1);var l=void 0!==i||a,u=i||f;return-1===n?l?u-D(t,["border","padding"],r):f:l?1===n?u:u+(2===n?-D(t,["border"],r):D(t,["margin"],r)):f+D(t,M.slice(n),r)}T(["Width","Height"],(function(t){E["doc".concat(t)]=function(e){var o=e.document;return Math.max(o.documentElement["scroll".concat(t)],o.body["scroll".concat(t)],E["viewport".concat(t)](o))},E["viewport".concat(t)]=function(e){var o="client".concat(t),n=e.document,r=n.body,i=n.documentElement[o];return"CSS1Compat"===n.compatMode&&i||r&&r[o]||i}}));var X={position:"absolute",visibility:"hidden",display:"block"};function Y(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];var n,r=e[0];return 0!==r.offsetWidth?n=H.apply(void 0,e):L(r,X,(function(){n=H.apply(void 0,e)})),n}function F(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}T(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);E["outer".concat(e)]=function(e,o){return e&&Y(e,t,o?0:1)};var o="width"===t?["Left","Right"]:["Top","Bottom"];E[t]=function(e,n){var r=n;return void 0!==r?e?(c(e),C(e)&&(r+=D(e,["padding","border"],o)),g(e,t,r)):void 0:e&&Y(e,t,-1)}}));var R={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:x,offset:function(t,e,o){if(void 0===e)return w(t);!function(t,e,o){if(o.ignoreShake){var n=w(t),r=n.left.toFixed(0),i=n.top.toFixed(0),a=e.left.toFixed(0),l=e.top.toFixed(0);if(r===a&&i===l)return}o.useCssRight||o.useCssBottom?j(t,e,o):o.useCssTransform&&f()in document.body.style?function(t,e){var o=w(t),n=function(t){var e=window.getComputedStyle(t,null),o=e.getPropertyValue("transform")||e.getPropertyValue(f());if(o&&"none"!==o){var n=o.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}(t),r={x:n.x,y:n.y};"left"in e&&(r.x=n.x+e.left-o.left),"top"in e&&(r.y=n.y+e.top-o.top),function(t,e){var o=window.getComputedStyle(t,null),n=o.getPropertyValue("transform")||o.getPropertyValue(f());if(n&&"none"!==n){var r,i=n.match(s);i?((r=(i=i[1]).split(",").map((function(t){return parseFloat(t,10)})))[4]=e.x,r[5]=e.y,u(t,"matrix(".concat(r.join(","),")"))):((r=n.match(p)[1].split(",").map((function(t){return parseFloat(t,10)})))[12]=e.x,r[13]=e.y,u(t,"matrix3d(".concat(r.join(","),")")))}else u(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,r)}(t,e):j(t,e,o)}(t,e,o||{})},isWindow:b,each:T,css:g,clone:function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);if(t.overflow)for(o in t)t.hasOwnProperty(o)&&(e.overflow[o]=t.overflow[o]);return e},mix:F,getWindowScrollLeft:function(t){return v(t)},getWindowScrollTop:function(t){return y(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)R.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};F(R,E);var V=R.getParent;function B(t){if(R.isWindow(t)||9===t.nodeType)return null;var e,o=R.getDocument(t).body,n=R.css(t,"position");if("fixed"!==n&&"absolute"!==n)return"html"===t.nodeName.toLowerCase()?null:V(t);for(e=V(t);e&&e!==o&&9!==e.nodeType;e=V(e))if("static"!==(n=R.css(e,"position")))return e;return null}var k=R.getParent;function z(t){for(var e={left:0,right:1/0,top:0,bottom:1/0},o=B(t),n=R.getDocument(t),r=n.defaultView||n.parentWindow,i=n.body,a=n.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===i||o===a||"visible"===R.css(o,"overflow")){if(o===i||o===a)break}else{var f=R.offset(o);f.left+=o.clientLeft,f.top+=o.clientTop,e.top=Math.max(e.top,f.top),e.right=Math.min(e.right,f.left+o.clientWidth),e.bottom=Math.min(e.bottom,f.top+o.clientHeight),e.left=Math.max(e.left,f.left)}o=B(o)}var l=null;R.isWindow(t)||9===t.nodeType||(l=t.style.position,"absolute"===R.css(t,"position")&&(t.style.position="fixed"));var u=R.getWindowScrollLeft(r),c=R.getWindowScrollTop(r),s=R.viewportWidth(r),p=R.viewportHeight(r),d=a.scrollWidth,h=a.scrollHeight,g=window.getComputedStyle(i);if("hidden"===g.overflowX&&(d=r.innerWidth),"hidden"===g.overflowY&&(h=r.innerHeight),t.style&&(t.style.position=l),function(t){if(R.isWindow(t)||9===t.nodeType)return!1;var e=R.getDocument(t).body,o=null;for(o=k(t);o&&o!==e;o=k(o))if("fixed"===R.css(o,"position"))return!0;return!1}(t))e.left=Math.max(e.left,u),e.top=Math.max(e.top,c),e.right=Math.min(e.right,u+s),e.bottom=Math.min(e.bottom,c+p);else{var m=Math.max(d,u+s);e.right=Math.min(e.right,m);var v=Math.max(h,c+p);e.bottom=Math.min(e.bottom,v)}return e.top>=0&&e.left>=0&&e.bottom>e.top&&e.right>e.left?e:null}function _(t){var e,o,n;if(R.isWindow(t)||9===t.nodeType){var r=R.getWindow(t);e={left:R.getWindowScrollLeft(r),top:R.getWindowScrollTop(r)},o=R.viewportWidth(r),n=R.viewportHeight(r)}else e=R.offset(t),o=R.outerWidth(t),n=R.outerHeight(t);return e.width=o,e.height=n,e}function A(t,e){var o=e.charAt(0),n=e.charAt(1),r=t.width,i=t.height,a=t.left,f=t.top;return"c"===o?f+=i/2:"b"===o&&(f+=i),"c"===n?a+=r/2:"r"===n&&(a+=r),{left:a,top:f}}function $(t,e,o,n,r){var i=A(e,o[1]),a=A(t,o[0]),f=[a.left-i.left,a.top-i.top];return{left:Math.round(t.left-f[0]+n[0]-r[0]),top:Math.round(t.top-f[1]+n[1]-r[1])}}function I(t,e,o){return t.left<o.left||t.left+e.width>o.right}function N(t,e,o){return t.top<o.top||t.top+e.height>o.bottom}function q(t,e,o){var n=[];return R.each(t,(function(t){n.push(t.replace(e,(function(t){return o[t]})))})),n}function U(t,e){return t[e]=-t[e],t}function Z(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function G(t,e){t[0]=Z(t[0],e.width),t[1]=Z(t[1],e.height)}function J(t,e,o,n){var r=o.points,i=o.offset||[0,0],a=o.targetOffset||[0,0],f=o.overflow,l=o.source||t;i=[].concat(i),a=[].concat(a),f=f||{};var u={},c=0,s=z(l),p=_(l);G(i,p),G(a,e);var d=$(p,e,r,i,a),h=R.merge(p,d);if(s&&(f.adjustX||f.adjustY)&&n){if(f.adjustX&&I(d,p,s)){var g=q(r,/[lr]/gi,{l:"r",r:"l"}),m=U(i,0),v=U(a,0);(function(t,e,o){return t.left>o.right||t.left+e.width<o.left})($(p,e,g,m,v),p,s)||(c=1,r=g,i=m,a=v)}if(f.adjustY&&N(d,p,s)){var y=q(r,/[tb]/gi,{t:"b",b:"t"}),w=U(i,1),b=U(a,1);(function(t,e,o){return t.top>o.bottom||t.top+e.height<o.top})($(p,e,y,w,b),p,s)||(c=1,r=y,i=w,a=b)}c&&(d=$(p,e,r,i,a),R.mix(h,d));var x=I(d,p,s),W=N(d,p,s);(x||W)&&(r=o.points,i=o.offset||[0,0],a=o.targetOffset||[0,0]),u.adjustX=f.adjustX&&x,u.adjustY=f.adjustY&&W,(u.adjustX||u.adjustY)&&(h=function(t,e,o,n){var r=R.clone(t),i={width:e.width,height:e.height};return n.adjustX&&r.left<o.left&&(r.left=o.left),n.resizeWidth&&r.left>=o.left&&r.left+i.width>o.right&&(i.width-=r.left+i.width-o.right),n.adjustX&&r.left+i.width>o.right&&(r.left=Math.max(o.right-i.width,o.left)),n.adjustY&&r.top<o.top&&(r.top=o.top),n.resizeHeight&&r.top>=o.top&&r.top+i.height>o.bottom&&(i.height-=r.top+i.height-o.bottom),n.adjustY&&r.top+i.height>o.bottom&&(r.top=Math.max(o.bottom-i.height,o.top)),R.mix(r,i)}(d,p,s,u))}return h.width!==p.width&&R.css(l,"width",R.width(l)+h.width-p.width),h.height!==p.height&&R.css(l,"height",R.height(l)+h.height-p.height),R.offset(l,{left:h.left,top:h.top},{useCssRight:o.useCssRight,useCssBottom:o.useCssBottom,useCssTransform:o.useCssTransform,ignoreShake:o.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:u}}function K(t,e,o){var n=o.target||e;return J(t,_(n),o,!function(t){var e=z(t),o=_(t);return!e||o.left+o.width<=e.left||o.top+o.height<=e.top||o.left>=e.right||o.top>=e.bottom}(n))}function Q(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function tt(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}K.__getOffsetParent=B,K.__getVisibleRectForElement=z,e.alignElement=K,e.alignPoint=function(t,e,o){var n,r,i=R.getDocument(t),a=i.defaultView||i.parentWindow,f=R.getWindowScrollLeft(a),l=R.getWindowScrollTop(a),u=R.viewportWidth(a),c=R.viewportHeight(a);n="pageX"in e?e.pageX:f+e.clientX,r="pageY"in e?e.pageY:l+e.clientY;var s=n>=0&&n<=f+u&&r>=0&&r<=l+c;return J(t,{left:n,top:r,width:0,height:0},function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Q(o,!0).forEach((function(e){tt(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Q(o).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},o,{points:[o.points[0],"cc"]}),s)},e.default=K}}));
//# sourceMappingURL=index.js.map
Liferay.Loader.define("frontend-js-dropdown-support-web@2.0.9/DropdownProvider",["module","exports","require","frontend-js-dropdown-support-web$dom-align","frontend-js-web"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(n=r("frontend-js-dropdown-support-web$dom-align"))&&n.__esModule?n:{default:n},o=r("frontend-js-web");function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const e={SHOW:"show"},a={TRIGGER:'[data-toggle="liferay-dropdown"]'},u={ENTER:13,SPACE:32};class g{constructor(){if(s(this,"EVENT_HIDDEN","liferay.dropdown.hidden"),s(this,"EVENT_HIDE","liferay.dropdown.hide"),s(this,"EVENT_SHOW","liferay.dropdown.show"),s(this,"EVENT_SHOWN","liferay.dropdown.shown"),s(this,"hide",(({menu:t,trigger:r})=>{t&&!r&&(r=this._getTrigger(t)),t||(t=this._getMenu(r)),t.classList.contains(e.SHOW)&&(Liferay.fire(this.EVENT_HIDE,{menu:t,trigger:r}),r.parentElement.classList.remove(e.SHOW),r.setAttribute("aria-expanded",!1),t.classList.remove(e.SHOW),Liferay.fire(this.EVENT_HIDDEN,{menu:t,trigger:r}))})),s(this,"show",(({menu:t,trigger:r})=>{if(t&&!r&&(r=this._getTrigger(t)),t||(t=this._getMenu(r)),t.classList.contains(e.SHOW))return;Liferay.fire(this.EVENT_SHOW,{menu:t,trigger:r}),r.parentElement.classList.add(e.SHOW),r.setAttribute("aria-expanded",!0);const n=e=>{t.contains(e.target)||r.contains(e.target)||(this.hide({menu:t,trigger:r}),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))};document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),t.classList.add(e.SHOW),(0,i.default)(t,r,{overflow:{adjustX:!0,adjustY:!0},points:["tl","bl"]}),Liferay.fire(this.EVENT_SHOWN,{menu:t,trigger:r})})),s(this,"_onKeyDown",(e=>{e.keyCode!==u.ENTER&&e.keyCode!==u.SPACE||this._onTriggerClick(e)})),s(this,"_onTriggerClick",(t=>{const r=t.delegateTarget;"A"===r.tagName&&t.preventDefault();const n=this._getMenu(r);n&&(n.classList.contains(e.SHOW)?this.hide({menu:n,trigger:r}):this.show({menu:n,trigger:r}))})),Liferay.DropdownProvider)return Liferay.DropdownProvider;(0,o.delegate)(document.body,"click",a.TRIGGER,this._onTriggerClick),(0,o.delegate)(document.body,"keydown",a.TRIGGER,this._onKeyDown),Liferay.DropdownProvider=this}_getMenu(e){return e.parentElement.querySelector(".dropdown-menu")}_getTrigger(e){return e.parentElement.querySelector(".dropdown-toggle")}}var d=g;t.default=d}}));
//# sourceMappingURL=DropdownProvider.js.map
Liferay.Loader.define("frontend-js-dropdown-support-web@2.0.9/index",["module","exports","require","./DropdownProvider"],(function(e,o,d){var r;window;Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){new n.default};var n=(r=d("./DropdownProvider"))&&r.__esModule?r:{default:r}}));
//# sourceMappingURL=index.js.map
