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