Liferay.Loader.define("frontend-taglib-clay$aria-hidden@1.2.3/dist/es5/index",["module","exports","require"],function(C,e,D){Object.defineProperty(e,"__esModule",{value:!0});e.suppressOthers=e.supportsInert=e.inertOthers=e.hideOthers=void 0;var r=function(a){return"undefined"===typeof document?null:(Array.isArray(a)?a[0]:a).ownerDocument.body},k=new WeakMap,l=new WeakMap,m={},q=0,t=function(a){return a&&(a.host||t(a.parentNode))},A=function(a,f){return f.map(function(b){if(a.contains(b))return b;
var g=t(b);if(g&&a.contains(g))return g;console.error("aria-hidden",b,"in not contained inside",a,". Doing nothing");return null}).filter(function(b){return!!b})},z=function(a,f,b,g){a=A(f,Array.isArray(a)?a:[a]);m[b]||(m[b]=new WeakMap);var n=m[b],u=[],p=new Set,B=new Set(a),v=function(c){c&&!p.has(c)&&(p.add(c),v(c.parentNode))};a.forEach(v);var w=function(c){c&&!B.has(c)&&Array.prototype.forEach.call(c.children,function(d){if(p.has(d))w(d);else{var h=d.getAttribute(g);h=null!==h&&"false"!==h;var x=
(k.get(d)||0)+1,y=(n.get(d)||0)+1;k.set(d,x);n.set(d,y);u.push(d);1===x&&h&&l.set(d,!0);1===y&&d.setAttribute(b,"true");h||d.setAttribute(g,"true")}})};w(f);p.clear();q++;return function(){u.forEach(function(c){var d=k.get(c)-1,h=n.get(c)-1;k.set(c,d);n.set(c,h);d||(l.has(c)||c.removeAttribute(g),l.delete(c));h||c.removeAttribute(b)});q--;q||(k=new WeakMap,k=new WeakMap,l=new WeakMap,m={})}};e.hideOthers=function(a,f,b){void 0===b&&(b="data-aria-hidden");var g=Array.from(Array.isArray(a)?a:[a]);a=
f||r(a);if(!a)return function(){return null};g.push.apply(g,Array.from(a.querySelectorAll("[aria-live]")));return z(g,a,b,"aria-hidden")};e.inertOthers=function(a,f,b){void 0===b&&(b="data-inert-ed");return(f=f||r(a))?z(a,f,b,"inert"):function(){return null}};e.supportsInert=function(){return"undefined"!==typeof HTMLElement&&HTMLElement.prototype.hasOwnProperty("inert")};e.suppressOthers=function(a,f,b){void 0===b&&(b="data-suppressed");return((0,e.supportsInert)()?e.inertOthers:e.hideOthers)(a,f,
b)}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useInteractOutside",["module","exports","require","frontend-js-react-web$react"],function(v,m,t){Object.defineProperty(m,"__esModule",{value:!0});m.useInteractOutside=u;var n=t("frontend-js-react-web$react");function u(b){var d=b.isDisabled,f=void 0===d?!1:d;d=b.onInteract;var g=b.onInteractStart,h=b.ref,k=b.triggerRef,a=(0,n.useRef)({ignoreEmulatedMouseEvents:!1,isPointerDown:!1,onInteract:d}).current;a.onInteract=d;(0,n.useEffect)(function(){if(!f){var e=
function(c){l(c,h,k)&&a.onInteract&&(g&&g(c),a.isPointerDown=!0)};if("undefined"!==typeof PointerEvent){var p=function(c){a.isPointerDown&&a.onInteract&&l(c,h,k)&&(a.isPointerDown=!1,a.onInteract(c))};document.addEventListener("pointerdown",e,!0);document.addEventListener("pointerup",p,!0);return function(){document.removeEventListener("pointerdown",e,!0);document.removeEventListener("pointerup",p,!0)}}var q=function(c){a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&a.onInteract&&
l(c,h,k)&&(a.isPointerDown=!1,a.onInteract(c))},r=function(c){a.ignoreEmulatedMouseEvents=!0;a.onInteract&&a.isPointerDown&&l(c,h,k)&&(a.isPointerDown=!1,a.onInteract(c))};document.addEventListener("mousedown",e,!0);document.addEventListener("mouseup",q,!0);document.addEventListener("touchstart",e,!0);document.addEventListener("touchend",r,!0);return function(){document.removeEventListener("mousedown",e,!0);document.removeEventListener("mouseup",q,!0);document.removeEventListener("touchstart",e,!0);
document.removeEventListener("touchend",r,!0)}}},[h,a,f])}function l(b,d,f){if(0<b.button)return!1;if(b.target){var g=b.target.ownerDocument;if(!g||!g.documentElement.contains(b.target))return!1}return f.current&&f.current.contains(b.target)?!1:d.current&&!d.current.contains(b.target)}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/Overlay","module exports require frontend-taglib-clay$aria-hidden frontend-js-react-web$react ./Keys ./Portal ./useInteractOutside".split(" "),function(H,y,q){function w(a){"@babel/helpers - typeof";return w="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},w(a)}Object.defineProperty(y,
"__esModule",{value:!0});y.Overlay=C;var x=q("frontend-taglib-clay$aria-hidden"),g=D(q("frontend-js-react-web$react")),E=q("./Keys"),F=q("./Portal"),G=q("./useInteractOutside");function z(a){if("function"!==typeof WeakMap)return null;var b=new WeakMap,e=new WeakMap;return(z=function(f){return f?e:b})(a)}function D(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!==w(a)&&"function"!==typeof a)return{default:a};if((b=z(b))&&b.has(a))return b.get(a);var e={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor,
d;for(d in a)if("default"!==d&&Object.prototype.hasOwnProperty.call(a,d)){var h=f?Object.getOwnPropertyDescriptor(a,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=a[d]}e.default=a;b&&b.set(a,e);return e}var k=[];function C(a){var b=a.children,e=a.isCloseOnInteractOutside;e=void 0===e?!1:e;var f=a.isKeyboardDismiss;f=void 0===f?!1:f;var d=a.isModal,h=void 0===d?!1:d;d=a.isOpen;var l=void 0===d?!1:d;d=a.menuClassName;var m=a.menuRef,r=a.onClose,p=a.portalRef,A=a.suppress,t=a.triggerRef,
n=(0,g.useRef)(null),v=(0,g.useCallback)(function(c){k[k.length-1]===m&&r(c)},[r]);B("focus",(0,g.useCallback)(function(c){var u;!p||null!==(u=p.current)&&void 0!==u&&u.contains(c.target)||!t.current||t.current.contains(c.target)||v("blur")},[v]),l,!0,[l,v]);B("keydown",(0,g.useCallback)(function(c){c.key===E.Keys.Esc&&k[k.length-1]===m&&(c.stopImmediatePropagation(),c.preventDefault(),t.current&&(n.current&&(n.current(),n.current=null),t.current.focus()),r("escape"))},[r]),l&&f,!0,[l,r]);(0,G.useInteractOutside)({isDisabled:l?
!e:!0,onInteract:function(){v("blur")},onInteractStart:function(c){k[k.length-1]===m&&h&&(c.stopPropagation(),c.preventDefault())},ref:null!==p&&void 0!==p?p:m,triggerRef:t});(0,g.useEffect)(function(){l&&k.push(m);return function(){var c=k.indexOf(m);0<=c&&k.splice(c,1)}},[l,m]);(0,g.useEffect)(function(){if(m.current&&l){var c=A?A.map(function(u){return u.current}):m.current;return h&&(0,x.supportsInert)()?(n.current=(0,x.suppressOthers)(c),function(){n.current&&n.current();n.current=null}):(0,x.hideOthers)(c)}},
[h,l]);return g.default.createElement(F.ClayPortal,{className:d,subPortalRef:p},h&&g.default.createElement("span",{"aria-hidden":"true","data-focus-scope-start":"true",tabIndex:0}),b,h&&g.default.createElement("span",{"aria-hidden":"true","data-focus-scope-end":"true",tabIndex:0}))}function B(a,b,e,f){(0,g.useEffect)(function(){if(e)return document.addEventListener(a,b,f),function(){document.removeEventListener(a,b,f)}},4<arguments.length&&void 0!==arguments[4]?arguments[4]:[])}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/setElementFullHeight",["module","exports","require"],function(f,c,g){Object.defineProperty(c,"__esModule",{value:!0});c.setElementFullHeight=e;function e(a){if(a){for(var d=0,b=0;b<a.children.length;b++)d+=a.children[b].clientHeight;a.setAttribute("style","height: ".concat(d,"px"))}}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/sub",["module","exports","require"],function(l,c,m){Object.defineProperty(c,"__esModule",{value:!0});c.sub=void 0;var g=/({\d+})/g;c.sub=function(a,e){a=a.split(g).filter(function(h){return 0!==h.length});for(var b=0;b<e.length;b++)for(var k=e[b],f="{".concat(b,"}"),d=a.indexOf(f);0<=d;)a.splice(d,1,k.toString()),d=a.indexOf(f);return a.join("")}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useDebounce",["module","exports","require","frontend-js-react-web$react"],function(x,k,q){Object.defineProperty(k,"__esModule",{value:!0});k.useDebounce=r;var l=t(q("frontend-js-react-web$react"));function t(a){return a&&a.__esModule?a:{default:a}}function m(a){var c=Array.isArray(a)?g(a):void 0;c||(c="undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"]?Array.from(a):void 0);if(!(a=c||n(a)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
return a}function h(a){"@babel/helpers - typeof";return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},h(a)}function u(a,c){var b=Array.isArray(a)?a:void 0;if(!b)if(b=null==a?null:"undefined"!==typeof Symbol&&a[Symbol.iterator]||a["@@iterator"],null==b)b=void 0;else{var d=[],e=!0,f=!1,p;try{for(b=b.call(a);!(e=(p=b.next()).done)&&(d.push(p.value),
!c||d.length!==c);e=!0);}catch(v){f=!0;var w=v}finally{try{if(!e&&null!=b["return"])b["return"]()}finally{if(f)throw w;}}b=d}if(!(a=b||n(a,c)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return a}function n(a,c){if(a){if("string"===typeof a)return g(a,c);var b=Object.prototype.toString.call(a).slice(8,-1);"Object"===b&&a.constructor&&(b=a.constructor.name);if("Map"===b||"Set"===b)return Array.from(a);
if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return g(a,c)}}function g(a,c){if(null==c||c>a.length)c=a.length;for(var b=0,d=Array(c);b<c;b++)d[b]=a[b];return d}function r(a,c){var b=l.default.useState(a);b=u(b,2);var d=b[0],e=b[1];l.default.useEffect(function(){var f=setTimeout(function(){e(a)},c);return function(){clearTimeout(f)}},"object"===h(a)&&null!==a?[].concat(m(Object.keys(a)),m(Object.values(a))):[a]);return d}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useId",["module","exports","require","frontend-js-react-web$react"],function(f,a,c){Object.defineProperty(a,"__esModule",{value:!0});a.useId=d;var e=c("frontend-js-react-web$react"),b=0;function d(){return(0,e.useMemo)(function(){b++;return"clay-id-".concat(b)},[])}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/platform",["module","exports","require"],function(l,a,m){Object.defineProperty(a,"__esModule",{value:!0});a.isAppleDevice=h;a.isIOS=e;a.isIPad=f;a.isIPhone=g;a.isMac=b;function c(k){var d;return"undefined"!==typeof window&&null!=window.navigator?k.test((null===(d=window.navigator.userAgentData)||void 0===d?void 0:d.platform)||window.navigator.platform):!1}function b(){return c(/^Mac/i)}function g(){return c(/^iPhone/i)}function f(){return c(/^iPad/i)||
b()&&1<navigator.maxTouchPoints}function e(){return g()||f()}function h(){return b()||e()}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useInteractionFocus",["module","exports","require","frontend-js-react-web$react","./platform"],function(F,n,u){Object.defineProperty(n,"__esModule",{value:!0});n.useFocusVisible=z;n.useInteractionFocus=v;var p=u("frontend-js-react-web$react"),A=u("./platform");function B(a,c){var b=Array.isArray(a)?a:void 0;if(!b)if(b=null==a?null:"undefined"!==typeof Symbol&&a[Symbol.iterator]||a["@@iterator"],null==b)b=void 0;else{var f=[],e=
!0,d=!1,l;try{for(b=b.call(a);!(e=(l=b.next()).done)&&(f.push(l.value),!c||f.length!==c);e=!0);}catch(C){d=!0;var h=C}finally{try{if(!e&&null!=b["return"])b["return"]()}finally{if(d)throw h;}}b=f}if(!(a=b||w(a,c)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return a}function D(a,c){var b="undefined"!==typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(!b){if(Array.isArray(a)||(b=
w(a))||c&&a&&"number"===typeof a.length){b&&(a=b);var f=0;c=function(){};return{s:c,n:function(){return f>=a.length?{done:!0}:{done:!1,value:a[f++]}},e:function(h){throw h;},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var e=!0,d=!1,l;return{s:function(){b=b.call(a)},n:function(){var h=b.next();e=h.done;return h},e:function(h){d=!0;l=h},f:function(){try{e||null==b.return||b.return()}finally{if(d)throw l;
}}}}function w(a,c){if(a){if("string"===typeof a)return x(a,c);var b=Object.prototype.toString.call(a).slice(8,-1);"Object"===b&&a.constructor&&(b=a.constructor.name);if("Map"===b||"Set"===b)return Array.from(a);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return x(a,c)}}function x(a,c){if(null==c||c>a.length)c=a.length;for(var b=0,f=Array(c);b<c;b++)f[b]=a[b];return f}var g=null,q=!1,k=!1,r=!1,t=new Set;function y(){return"pointer"!==g}function E(){return g}function m(a){var c=
D(t),b;try{for(c.s();!(b=c.n()).done;){var f=b.value;f(a)}}catch(e){c.e(e)}finally{c.f()}}function v(){(0,p.useEffect)(function(){if(!q){var a=function(d){k=!0;d.metaKey||!(0,A.isMac)()&&d.altKey||d.ctrlKey||"Control"===d.key||"Shift"===d.key||"Meta"===d.key||(g="keyboard",m(g))},c=function(d){d=0===d.mozInputSource&&d.isTrusted?!0:0===d.detail&&!d.pointerType;d&&(k=!0,g="virtual",m(g))},b=function(d){d.target!==window&&d.target!==document&&(k||r||(g="virtual",m(g)),r=k=!1)},f=function(){k=!1;r=!0},
e=function(d){g="pointer";if("mousedown"===d.type||"pointerdown"===d.type)k=!0,m(g)};document.addEventListener("keydown",a,!0);document.addEventListener("keyup",a,!0);document.addEventListener("click",c,!0);window.addEventListener("focus",b,!0);window.addEventListener("blur",f,!1);"undefined"!==typeof PointerEvent?(document.addEventListener("pointerdown",e,!0),document.addEventListener("pointermove",e,!0),document.addEventListener("pointerup",e,!0)):(document.addEventListener("mousedown",e,!0),document.addEventListener("mousemove",
e,!0),document.addEventListener("mouseup",e,!0));q=!0;return function(){document.removeEventListener("keydown",a,!0);document.removeEventListener("keyup",a,!0);document.removeEventListener("click",c,!0);window.removeEventListener("focus",b,!0);window.removeEventListener("blur",f,!1);"undefined"!==typeof PointerEvent?(document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointermove",e,!0),document.removeEventListener("pointerup",e,!0)):(document.removeEventListener("mousedown",
e,!0),document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",e,!0));q=!1}}},[]);return{getInteraction:E,isFocusVisible:y}}function z(){v();var a=(0,p.useState)(y());a=B(a,2);var c=a[0],b=a[1];(0,p.useEffect)(function(){var f=function(e){b("pointer"!==e)};t.add(f);return function(){t.delete(f)}},[]);return c}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useInternalState",["module","exports","require","frontend-js-react-web$react","frontend-taglib-clay$warning"],function(u,k,l){Object.defineProperty(k,"__esModule",{value:!0});k.useInternalState=p;var q=l("frontend-js-react-web$react");r(l("frontend-taglib-clay$warning"));function r(c){return c&&c.__esModule?c:{default:c}}function m(c,a){if(null==a||a>c.length)a=c.length;for(var e=0,b=Array(a);e<a;e++)b[e]=c[e];return b}function p(c){var a=
c.defaultValue,e=c.onChange;c=c.value;a=(0,q.useState)(void 0===a?c:a);var b;var d=Array.isArray(a)?a:void 0;if(!d)if(d=null==a?null:"undefined"!==typeof Symbol&&a[Symbol.iterator]||a["@@iterator"],null!=d){var f=[],g=!0,n=!1;try{for(d=d.call(a);!(g=(b=d.next()).done)&&(f.push(b.value),2!==f.length);g=!0);}catch(t){n=!0;var h=t}finally{try{if(!g&&null!=d["return"])d["return"]()}finally{if(n)throw h;}}d=f}else d=void 0;if(!(b=d))a:{if(a){if("string"===typeof a){b=m(a,2);break a}b=Object.prototype.toString.call(a).slice(8,
-1);"Object"===b&&a.constructor&&(b=a.constructor.name);if("Map"===b||"Set"===b){b=Array.from(a);break a}if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)){b=m(a,2);break a}}b=void 0}if(!b)throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");a=b[0];b=b[1];void 0;void 0;if(h="undefined"===typeof c||"undefined"===typeof e)c=a,e=b;return[c,e,h]}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useNavigation","module exports require frontend-js-react-web$react ./Keys ./useFocusManagement".split(" "),function(R,p,v){Object.defineProperty(p,"__esModule",{value:!0});p.getFocusableList=E;p.isTypeahead=N;p.useNavigation=O;var h=v("frontend-js-react-web$react"),e=v("./Keys"),w=v("./useFocusManagement");function F(a){var b=Array.isArray(a)?x(a):void 0;b||(b="undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"]?
Array.from(a):void 0);if(!b)a:{if(a){if("string"===typeof a){b=x(a,void 0);break a}b=Object.prototype.toString.call(a).slice(8,-1);"Object"===b&&a.constructor&&(b=a.constructor.name);if("Map"===b||"Set"===b){b=Array.from(a);break a}if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)){b=x(a,void 0);break a}}b=void 0}if(!(a=b))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
return a}function x(a,b){if(null==b||b>a.length)b=a.length;for(var k=0,g=Array(b);k<b;k++)g[k]=a[k];return g}var G=[e.Keys.Up,e.Keys.Down,e.Keys.Home,e.Keys.End],H=[e.Keys.Left,e.Keys.Right,e.Keys.Home,e.Keys.End];function O(a){var b=a.activation,k=void 0===b?"manual":b,g=a.active,m=a.containerRef;b=a.focusableElements;var P=void 0===b?w.FOCUSABLE_ELEMENTS:b;b=a.loop;var Q=void 0===b?!1:b,y=a.onNavigate;b=a.orientation;var z=void 0===b?"horizontal":b;b=a.typeahead;var I=void 0===b?!1:b;a=a.visible;
var n=void 0===a?!1:a,A=(0,h.useRef)(),l=(0,h.useRef)(""),B=(0,h.useRef)(-1),q=(0,h.useRef)(null),r=(0,h.useRef)([]);(0,h.useEffect)(function(){n||(clearTimeout(A.current),q.current=null,l.current="")},[n]);var K=(0,h.useCallback)(function(c,d){y(c,d?d.indexOf(c):null);(d=m.current.firstElementChild)&&d.clientHeight<d.scrollHeight&&J(c,d);d=c.getBoundingClientRect();0<=d.top&&0<=d.left&&d.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&d.right<=(window.innerWidth||document.documentElement.clientWidth)||
c.scrollIntoView({behavior:"smooth",block:"nearest"})},[]),M=(0,h.useCallback)(function(c){if(m.current){var d="vertical"===z?H:G;if(("vertical"===z?G:H).includes(c.key)||I&&!d.includes(c.key)){d=E(m,P);switch(c.key){case e.Keys.Left:case e.Keys.Right:case e.Keys.Down:case e.Keys.Up:var t=d.indexOf(document.activeElement);"string"===typeof g&&(t=d.findIndex(function(u){return u.getAttribute("id")===g}));if(-1===t)break;var L="vertical"===z?e.Keys.Up:e.Keys.Left;var f=d[c.key===L?t-1:t+1];Q&&!f&&(f=
d[c.key===L?d.length-1:0]);break;case e.Keys.Home:case e.Keys.End:f=d[c.key===e.Keys.Home?0:d.length-1];break;default:f=c.target;if(!I||"INPUT"===f.tagName||c.key===e.Keys.Tab||c.currentTarget&&!c.currentTarget.contains(f))return;0<l.current.length&&l.current[0]!==e.Keys.Spacebar&&c.key===e.Keys.Spacebar&&(c.preventDefault(),c.stopPropagation());if(1!==c.key.length||c.ctrlKey||c.metaKey||c.altKey)return;c.stopPropagation();l.current===c.key&&(l.current="",B.current=q.current);l.current+=c.key;clearTimeout(A.current);
A.current=setTimeout(function(){l.current="";B.current=q.current},1E3);f=B.current;if(f=[].concat(F(d.slice((null!==f&&void 0!==f?f:0)+1)),F(d.slice(0,(null!==f&&void 0!==f?f:0)+1))).find(function(u){var C,D;return 0===(null===(C=null!==(D=u.innerText)&&void 0!==D?D:u.textContent)||void 0===C?void 0:C.toLowerCase().indexOf(l.current.toLocaleLowerCase()))}))q.current=d.indexOf(f)}f&&(c.preventDefault(),y?K(f,d):f.focus(),"automatic"===k&&f.click())}}else c.persist(),r.current.push(c)},[g]);(0,h.useEffect)(function(){if(n&&
m.current&&g&&y){var c=m.current.firstElementChild,d=document.getElementById(g);d&&c&&c.clientHeight<c.scrollHeight&&J(d,c)}},[n]);(0,h.useEffect)(function(){if(n&&0!==r.current.length)for(var c=0;c<r.current.length;c++){var d=r.current.shift();M(d)}},[n]);return{accessibilityFocus:K,navigationProps:{onKeyDown:M}}}function E(a){return a.current?Array.from(a.current.querySelectorAll((1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.FOCUSABLE_ELEMENTS).join(","))).filter(function(b){return(0,w.isFocusable)({contentEditable:b.contentEditable,
disabled:null!==b.getAttribute("disabled"),offsetParent:b.offsetParent,tabIndex:0,tagName:b.tagName})}):[]}function N(a){return 1===a.key.length&&!a.ctrlKey&&!a.metaKey&&!a.altKey}function J(a,b){var k=a.offsetHeight;a=a.offsetTop;var g=b.offsetHeight,m=b.scrollTop;a<m?b.scrollTo(0,a):a+k>m+g&&b.scrollTo(0,a-g+k)}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useOverlayPositon","module exports require frontend-js-react-web$react ./doAlign ./observeRect".split(" "),function(g,d,c){Object.defineProperty(d,"__esModule",{value:!0});d.useOverlayPosition=q;g=c("frontend-js-react-web$react");var r=c("./doAlign"),t=c("./observeRect"),u={0:"TopCenter",1:"TopRight",2:"RightCenter",3:"BottomRight",4:"BottomCenter",5:"BottomLeft",6:"LeftCenter",7:"TopLeft",8:"RightTop",9:"RightBottom",10:"LeftTop",
11:"LeftBottom"},v={BottomCenter:["tc","bc"],BottomLeft:["tl","bl"],BottomRight:["tr","br"],LeftBottom:["br","bl"],LeftCenter:["cr","cl"],LeftTop:["tr","tl"],RightBottom:["bl","br"],RightCenter:["cl","cr"],RightTop:["tl","tr"],TopCenter:["bc","tc"],TopLeft:["bl","tl"],TopRight:["br","tr"]};c=[0,4];d=[-4,0];var h=[4,0],k=[0,-4],w={bctc:k,blbr:h,bltl:k,brbl:d,brtr:k,clcr:h,crcl:d,tcbc:c,tlbl:c,tltr:h,trbr:c,trtl:d},x="undefined"===typeof window?g.useEffect:g.useLayoutEffect,y=function(a){return w[a.join("")]};
function q(a){var z=a.alignmentByViewport,b=a.alignmentPosition,A=void 0===b?5:b;b=a.autoBestAlign;var l=void 0===b?!0:b;b=a.getOffset;var B=void 0===b?y:b,m=a.isOpen,f=a.ref,n=a.triggerRef;x(function(){function p(){if(n.current){var e=A;"number"===typeof e&&(e=v[u[e]]);f.current&&(0,r.doAlign)({offset:B(e),overflow:{adjustX:l,adjustY:l,alwaysByViewport:z},points:e,sourceElement:f.current,targetElement:n.current})}}if(m&&f.current)return p(),(0,t.observeRect)(f.current,p)},1<arguments.length&&void 0!==
arguments[1]?arguments[1]:[m])}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useHover",["module","exports","require","frontend-js-react-web$react"],function(q,e,n){Object.defineProperty(e,"__esModule",{value:!0});e.useHover=p;var f=n("frontend-js-react-web$react");function p(g){var d=g.disabled,h=g.onHover,b=(0,f.useRef)({isEmulatedMouseEvents:!1,isHovered:!1,pointerType:void 0,target:null}).current;return(0,f.useMemo)(function(){var c={},l=function(a,k){d||"touch"===k||b.isHovered||!a.currentTarget.contains(a.target)||
(b.isHovered=!0,a=a.currentTarget,b.target=a,h({pointerType:k,target:a,type:"hoverstart"}))},m=function(a){b.pointerType=void 0;b.target=null;"touch"!==a&&b.isHovered&&(b.isHovered=!1)};"undefined"!==typeof PointerEvent?(c.onPointerEnter=function(a){l(a,a.pointerType)},c.onPointerLeave=function(a){!d&&a.currentTarget.contains(a.target)&&m(a.pointerType)}):(c.onTouchStart=function(){b.isEmulatedMouseEvents=!0},c.onMouseEnter=function(a){b.isEmulatedMouseEvents||l(a,"mouse");b.isEmulatedMouseEvents=
!1},c.onMouseLeave=function(a){!d&&a.currentTarget.contains(a.target)&&m("mouse")});return c},[h])}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useIsMobileDevice",["module","exports","require"],function(c,a,d){Object.defineProperty(a,"__esModule",{value:!0});a.useIsMobileDevice=b;function b(){return"undefined"===typeof window?!1:700>=window.screen.width}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/index","module exports require ./Portal ./delegate ./doAlign ./FocusScope ./getEllipsisItems ./Keys ./LinkOrButton ./MouseSafeArea ./observeRect ./Overlay ./setElementFullHeight ./sub ./useDebounce ./useFocusManagement ./useId ./useInteractionFocus ./useInternalState ./useMousePosition ./useNavigation ./useOverlayPositon ./useHover ./useIsMobileDevice ./platform".split(" "),function(D,a,b){Object.defineProperty(a,"__esModule",{value:!0});
Object.defineProperty(a,"ClayPortal",{enumerable:!0,get:function(){return g.ClayPortal}});Object.defineProperty(a,"FOCUSABLE_ELEMENTS",{enumerable:!0,get:function(){return e.FOCUSABLE_ELEMENTS}});Object.defineProperty(a,"FocusScope",{enumerable:!0,get:function(){return h.FocusScope}});Object.defineProperty(a,"Keys",{enumerable:!0,get:function(){return k.Keys}});Object.defineProperty(a,"LinkOrButton",{enumerable:!0,get:function(){return l.LinkOrButton}});Object.defineProperty(a,"MouseSafeArea",{enumerable:!0,
get:function(){return m.MouseSafeArea}});Object.defineProperty(a,"Overlay",{enumerable:!0,get:function(){return n.Overlay}});Object.defineProperty(a,"delegate",{enumerable:!0,get:function(){return p.delegate}});Object.defineProperty(a,"doAlign",{enumerable:!0,get:function(){return q.doAlign}});Object.defineProperty(a,"getEllipsisItems",{enumerable:!0,get:function(){return r.getEllipsisItems}});Object.defineProperty(a,"getFocusableList",{enumerable:!0,get:function(){return d.getFocusableList}});Object.defineProperty(a,
"isAppleDevice",{enumerable:!0,get:function(){return c.isAppleDevice}});Object.defineProperty(a,"isIOS",{enumerable:!0,get:function(){return c.isIOS}});Object.defineProperty(a,"isIPad",{enumerable:!0,get:function(){return c.isIPad}});Object.defineProperty(a,"isIPhone",{enumerable:!0,get:function(){return c.isIPhone}});Object.defineProperty(a,"isMac",{enumerable:!0,get:function(){return c.isMac}});Object.defineProperty(a,"isTypeahead",{enumerable:!0,get:function(){return d.isTypeahead}});a.noop=void 0;
Object.defineProperty(a,"observeRect",{enumerable:!0,get:function(){return t.observeRect}});Object.defineProperty(a,"setElementFullHeight",{enumerable:!0,get:function(){return u.setElementFullHeight}});Object.defineProperty(a,"sub",{enumerable:!0,get:function(){return v.sub}});Object.defineProperty(a,"useDebounce",{enumerable:!0,get:function(){return w.useDebounce}});Object.defineProperty(a,"useFocusManagement",{enumerable:!0,get:function(){return e.useFocusManagement}});Object.defineProperty(a,"useFocusVisible",
{enumerable:!0,get:function(){return f.useFocusVisible}});Object.defineProperty(a,"useHover",{enumerable:!0,get:function(){return x.useHover}});Object.defineProperty(a,"useId",{enumerable:!0,get:function(){return y.useId}});Object.defineProperty(a,"useInteractionFocus",{enumerable:!0,get:function(){return f.useInteractionFocus}});Object.defineProperty(a,"useInternalState",{enumerable:!0,get:function(){return z.useInternalState}});Object.defineProperty(a,"useIsMobileDevice",{enumerable:!0,get:function(){return A.useIsMobileDevice}});
Object.defineProperty(a,"useMousePosition",{enumerable:!0,get:function(){return B.useMousePosition}});Object.defineProperty(a,"useNavigation",{enumerable:!0,get:function(){return d.useNavigation}});Object.defineProperty(a,"useOverlayPosition",{enumerable:!0,get:function(){return C.useOverlayPosition}});var g=b("./Portal"),p=b("./delegate"),q=b("./doAlign"),h=b("./FocusScope"),r=b("./getEllipsisItems"),k=b("./Keys"),l=b("./LinkOrButton"),m=b("./MouseSafeArea"),t=b("./observeRect"),n=b("./Overlay"),
u=b("./setElementFullHeight"),v=b("./sub"),w=b("./useDebounce"),e=b("./useFocusManagement"),y=b("./useId"),f=b("./useInteractionFocus"),z=b("./useInternalState"),B=b("./useMousePosition"),d=b("./useNavigation"),C=b("./useOverlayPositon"),x=b("./useHover"),A=b("./useIsMobileDevice"),c=b("./platform");a.noop=function(){}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/tooltip@3.4.0/lib/TooltipProvider","module exports require @frontend-taglib-clay$clayui/shared frontend-taglib-clay$dom-align frontend-js-react-web$react frontend-taglib-clay$warning ./Tooltip".split(" "),function(Q,u,q){function v(a){"@babel/helpers - typeof";v="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 v(a)}Object.defineProperty(u,"__esModule",{value:!0});u.default=void 0;var A=q("@frontend-taglib-clay$clayui/shared"),H=w(q("frontend-taglib-clay$dom-align")),m=I(q("frontend-js-react-web$react"));w(q("frontend-taglib-clay$warning"));var J=w(q("./Tooltip"));function B(){if("function"!==typeof WeakMap)return null;var a=new WeakMap;B=function(){return a};return a}function I(a){if(a&&a.__esModule)return a;if(null===a||"object"!==v(a)&&"function"!==typeof a)return{default:a};
var b=B();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor,g;for(g in a)if(Object.prototype.hasOwnProperty.call(a,g)){var f=d?Object.getOwnPropertyDescriptor(a,g):null;f&&(f.get||f.set)?Object.defineProperty(c,g,f):c[g]=a[g]}c.default=a;b&&b.set(a,c);return c}function w(a){return a&&a.__esModule?a:{default:a}}function K(a,b){var c=Array.isArray(a)?a:void 0;if(!c)if("undefined"!==typeof Symbol&&Symbol.iterator in Object(a)){c=[];var d=!0,g=!1,f=void 0;
try{for(var e=a[Symbol.iterator](),k;!(d=(k=e.next()).done)&&(c.push(k.value),!b||c.length!==b);d=!0);}catch(r){g=!0,f=r}finally{try{if(!d&&null!=e["return"])e["return"]()}finally{if(g)throw f;}}}else c=void 0;if(!(e=c))a:{if(a){if("string"===typeof a){e=C(a,b);break a}e=Object.prototype.toString.call(a).slice(8,-1);"Object"===e&&a.constructor&&(e=a.constructor.name);if("Map"===e||"Set"===e){e=Array.from(a);break a}if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)){e=C(a,b);break a}}e=
void 0}if(!(a=e))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return a}function C(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function D(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(g){return Object.getOwnPropertyDescriptor(a,g).enumerable}));c.push.apply(c,d)}return c}
function n(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?D(Object(c),!0).forEach(function(d){var g=c[d];d in a?Object.defineProperty(a,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):a[d]=g}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):D(Object(c)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(c,d))})}return a}var L={bottom:["tc","bc"],"bottom-left":["tl","bl"],"bottom-right":["tr",
"br"],left:["cr","cl"],right:["cl","cr"],top:["bc","tc"],"top-left":["bl","tl"],"top-right":["br","tr"]},M={bctc:"top",bltl:"top-left",brtr:"top-right",clcr:"right",crcl:"left",tcbc:"bottom",tlbl:"bottom-left",trbr:"bottom-right"},E={align:"top",message:"",show:!1},N=function(a,b){var c=b.type;var d=["type"];if(null==b)b={};else{if(null==b)var g={};else{g={};var f=Object.keys(b),e;for(e=0;e<f.length;e++){var k=f[e];0<=d.indexOf(k)||(g[k]=b[k])}}if(Object.getOwnPropertySymbols)for(e=Object.getOwnPropertySymbols(b),
k=0;k<e.length;k++)f=e[k],0<=d.indexOf(f)||Object.prototype.propertyIsEnumerable.call(b,f)&&(g[f]=b[f]);b=g}switch(c){case "align":return n(n({},a),b);case "show":return n(n(n({},a),b),{},{show:!0});case "hide":return n(n({},a),{},{align:E.align,show:!1});default:throw new TypeError;}};function O(a,b){var c=a;if(!document.documentElement.contains(a))return null;do{a=c;var d=b;if(a.matches?a.matches(d):a.msMatchesSelector?a.msMatchesSelector(d):a.webkitMatchesSelector&&a.webkitMatchesSelector(d))return c;
c=c.parentElement}while(null!==c);return null}u.default=function(a){var b=a.autoAlign,c=void 0===b?!0:b;b=a.children;var d=a.contentRenderer;d=void 0===d?function(h){return h.title}:d;a=a.delay;var g=void 0===a?600:a;a=m.default.useReducer(N,E);a=K(a,2);var f=a[0],e=f.align,k=f.message;k=void 0===k?"":k;f=f.show;var r=a[1],F=m.default.useRef(),x=m.default.useRef(null),p=m.default.useRef(null),y=m.default.useRef(null),t=(0,m.useCallback)(function(h){h=h.target;if(p.current){var l=p.current.getAttribute("data-title");
l&&(document.removeEventListener("keyup",G,!0),h.removeEventListener("click",t),p.current.setAttribute("title",l),p.current.removeAttribute("data-title"),p.current=null,x.current=null,r({type:"hide"}),clearTimeout(F.current))}},[]),G=(0,m.useCallback)(function(h){h.key===A.Keys.Esc&&(h.stopImmediatePropagation(),t(h))},[]);a=(0,m.useCallback)(function(h){var l=h.target,z=(h=l&&l.hasAttribute("title")?l:O(l,"[title]"))&&h.getAttribute("title");if(z){p.current=h;x.current=l;document.addEventListener("keyup",
G,!0);l.addEventListener("click",t);h.setAttribute("data-title",z);h.removeAttribute("title");l=h.getAttribute("data-tooltip-delay");var P=h.getAttribute("data-tooltip-align");F.current=setTimeout(function(){r({align:P||e,message:z,type:"show"})},l?Number(l):g)}},[]);m.default.useEffect(function(){if(p.current&&y.current){var h=L[e||"top"],l=(0,H.default)(y.current,p.current,{overflow:{adjustX:c,adjustY:c},points:h}).points.join("");h.join("")!==l&&r({align:M[l],type:"align"})}},[e,f]);void 0;return m.default.createElement(m.default.Fragment,
null,f&&m.default.createElement(A.ClayPortal,null,m.default.createElement(J.default,{alignPosition:e,ref:y,show:!0},d({targetNode:x.current,title:k}))),m.default.cloneElement(b,n(n({},b.props),{},{onMouseOut:t,onMouseOver:a})))}});
Liferay.Loader.define("@frontend-taglib-clay$clayui/tooltip@3.4.0/lib/index",["module","exports","require","./Tooltip","./TooltipProvider"],function(c,a,d){Object.defineProperty(a,"__esModule",{value:!0});Object.defineProperty(a,"ClayTooltipProvider",{enumerable:!0,get:function(){return f.default}});a.default=void 0;c=e(d("./Tooltip"));var f=e(d("./TooltipProvider"));function e(b){return b&&b.__esModule?b:{default:b}}a.default=c.default});
Liferay.Loader.define("frontend-js-metal-web$metal-position@2.1.2/lib/Geometry",["module","exports","require"],function(f,g,p){Object.defineProperty(g,"__esModule",{value:!0});var h=function(){function e(c,d){for(var b=0;b<d.length;b++){var a=d[b];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(c,a.key,a)}}return function(c,d,b){d&&e(c.prototype,d);b&&e(c,b);return c}}();f=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
}h(e,null,[{key:"intersectRect",value:function(c,d,b,a,k,l,m,n){return!(k>b||m<c||l>a||n<d)}}]);return e}();g.default=f});
Liferay.Loader.define("frontend-js-metal-web$metal-position@2.1.2/lib/Position",["module","exports","require","frontend-js-metal-web$metal","./Geometry"],function(h,l,g){Object.defineProperty(l,"__esModule",{value:!0});var m=function(){function e(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(a,b,c){b&&e(a.prototype,b);c&&e(a,c);return a}}(),f=(h=g("frontend-js-metal-web$metal"))&&
h.__esModule?h:{default:h},n=(g=g("./Geometry"))&&g.__esModule?g:{default:g};g=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");}m(e,null,[{key:"getClientHeight",value:function(a){return this.getClientSize_(a,"Height")}},{key:"getClientSize_",value:function(a,b){var c=a;f.default.isWindow(a)&&(c=a.document.documentElement);f.default.isDocument(a)&&(c=a.documentElement);return c["client"+b]}},{key:"getClientWidth",value:function(a){return this.getClientSize_(a,
"Width")}},{key:"getDocumentRegion_",value:function(a){var b=this.getHeight(a);a=this.getWidth(a);return this.makeRegion(b,b,0,a,0,a)}},{key:"getHeight",value:function(a){return this.getSize_(a,"Height")}},{key:"getOffsetLeft",value:function(a,b){return a.offsetLeft+(b?0:e.getTranslation(a).left)}},{key:"getOffsetTop",value:function(a,b){return a.offsetTop+(b?0:e.getTranslation(a).top)}},{key:"getRegion",value:function(a,b){return f.default.isDocument(a)||f.default.isWindow(a)?this.getDocumentRegion_(a):
this.makeRegionFromBoundingRect_(a.getBoundingClientRect(),b)}},{key:"getScrollLeft",value:function(a){return f.default.isWindow(a)?a.pageXOffset:f.default.isDocument(a)?a.defaultView.pageXOffset:a.scrollLeft}},{key:"getScrollTop",value:function(a){return f.default.isWindow(a)?a.pageYOffset:f.default.isDocument(a)?a.defaultView.pageYOffset:a.scrollTop}},{key:"getSize_",value:function(a,b){if(f.default.isWindow(a))return this.getClientSize_(a,b);if(f.default.isDocument(a)){var c=a.documentElement;
return Math.max(a.body["scroll"+b],c["scroll"+b],a.body["offset"+b],c["offset"+b],c["client"+b])}return Math.max(a["client"+b],a["scroll"+b],a["offset"+b])}},{key:"getTransformMatrixValues",value:function(a){a=getComputedStyle(a);a=a.msTransform||a.transform||a.webkitTransform||a.mozTransform;if("none"!==a){for(var b=[],c=/([\d-\.\s]+)/g,d=c.exec(a);d;)b.push(d[1]),d=c.exec(a);return b}}},{key:"getTranslation",value:function(a){a=e.getTransformMatrixValues(a);var b={left:0,top:0};a&&(b.left=parseFloat(6===
a.length?a[4]:a[13]),b.top=parseFloat(6===a.length?a[5]:a[14]));return b}},{key:"getWidth",value:function(a){return this.getSize_(a,"Width")}},{key:"intersectRegion",value:function(a,b){return n.default.intersectRect(a.top,a.left,a.bottom,a.right,b.top,b.left,b.bottom,b.right)}},{key:"insideRegion",value:function(a,b){return b.top>=a.top&&b.bottom<=a.bottom&&b.right<=a.right&&b.left>=a.left}},{key:"insideViewport",value:function(a){return this.insideRegion(this.getRegion(window),a)}},{key:"intersection",
value:function(a,b){if(!this.intersectRegion(a,b))return null;var c=Math.min(a.bottom,b.bottom),d=Math.min(a.right,b.right),k=Math.max(a.left,b.left);a=Math.max(a.top,b.top);return this.makeRegion(c,c-a,k,d,a,d-k)}},{key:"makeRegion",value:function(a,b,c,d,k,p){return{bottom:a,height:b,left:c,right:d,top:k,width:p}}},{key:"makeRegionFromBoundingRect_",value:function(a,b){var c=b?e.getScrollLeft(document):0;b=b?e.getScrollTop(document):0;return this.makeRegion(a.bottom+b,a.height,a.left+c,a.right+
c,a.top+b,a.width)}},{key:"pointInsideRegion",value:function(a,b,c){return e.insideRegion(c,e.makeRegion(b,0,a,a,b,0))}}]);return e}();l.default=g});
Liferay.Loader.define("frontend-js-metal-web$metal-position@2.1.2/lib/Align",["module","exports","require","./Position"],function(d,p,t){Object.defineProperty(p,"__esModule",{value:!0});var u=function(){function g(a,b){for(var f=0;f<b.length;f++){var c=b[f];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(a,c.key,c)}}return function(a,b,f){b&&g(a.prototype,b);f&&g(a,f);return a}}(),h=(d=t("./Position"))&&d.__esModule?d:{default:d};d=function(){function g(){if(!(this instanceof
g))throw new TypeError("Cannot call a class as a function");}u(g,null,[{key:"align",value:function(a,b,f){if(3<arguments.length&&void 0!==arguments[3]?arguments[3]:1){var c=this.suggestAlignBestRegion(a,b,f);f=c.position;c=c.region}else c=this.getAlignRegion(a,b,f);if("fixed"!==window.getComputedStyle(a,null).getPropertyValue("position")){c.top+=window.pageYOffset;c.left+=window.pageXOffset;for(var e=a;e=e.offsetParent;)c.top-=h.default.getOffsetTop(e),c.left-=h.default.getOffsetLeft(e)}a.style.top=
c.top+"px";a.style.left=c.left+"px";return f}},{key:"getAlignBestRegion",value:function(a,b,f){return g.suggestAlignBestRegion(a,b,f).region}},{key:"getAlignRegion",value:function(a,b,f){b=h.default.getRegion(b);a=h.default.getRegion(a);var c=0,e=0;switch(f){case g.TopCenter:c=b.top-a.height;e=b.left+b.width/2-a.width/2;break;case g.RightCenter:c=b.top+b.height/2-a.height/2;e=b.left+b.width;break;case g.BottomCenter:c=b.bottom;e=b.left+b.width/2-a.width/2;break;case g.LeftCenter:c=b.top+b.height/
2-a.height/2;e=b.left-a.width;break;case g.TopRight:c=b.top-a.height;e=b.right-a.width;break;case g.BottomRight:c=b.bottom;e=b.right-a.width;break;case g.BottomLeft:c=b.bottom;e=b.left;break;case g.TopLeft:c=b.top-a.height,e=b.left}return{bottom:c+a.height,height:a.height,left:e,right:e+a.width,top:c,width:a.width}}},{key:"isValidPosition",value:function(a){return 0<=a&&8>=a}},{key:"suggestAlignBestRegion",value:function(a,b,f){for(var c=0,e=f,m=this.getAlignRegion(a,b,e),n=e,k=m,q=h.default.getRegion(window),
r=0;8>r;){if(h.default.intersectRegion(q,k)){var l=h.default.intersection(q,k);l=l.width*l.height;l>c&&(c=l,m=k,e=n);if(h.default.insideViewport(k))break}n=(f+ ++r)%8;k=this.getAlignRegion(a,b,n)}return{position:e,region:m}}}]);return g}();d.TopCenter=0;d.TopRight=1;d.RightCenter=2;d.BottomRight=3;d.BottomCenter=4;d.BottomLeft=5;d.LeftCenter=6;d.TopLeft=7;d.Top=d.TopCenter;d.Right=d.RightCenter;d.Bottom=d.BottomCenter;d.Left=d.LeftCenter;p.default=d});
Liferay.Loader.define("frontend-js-metal-web$metal-position@2.1.2/lib/all/position","module exports require ../Align ../Geometry ../Position".split(" "),function(c,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.Position=a.Geometry=a.Align=void 0;c=b("../Align");c=e(c);var f=b("../Geometry");f=e(f);b=b("../Position");b=e(b);function e(d){return d&&d.__esModule?d:{default:d}}a.default=b.default;a.Align=c.default;a.Geometry=f.default;a.Position=b.default});
Liferay.Loader.define("frontend-js-tooltip-support-web@3.0.7/reducer",["module","exports","require"],function(m,g,n){Object.defineProperty(g,"__esModule",{value:!0});g.default=l;g.STATES=void 0;function k(a,d){var f=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);d&&(e=e.filter(function(h){return Object.getOwnPropertyDescriptor(a,h).enumerable}));f.push.apply(f,e)}return f}function c(a){for(var d=1;d<arguments.length;d++){var f=null!=arguments[d]?arguments[d]:
{};d%2?k(Object(f),!0).forEach(function(e){var h=f[e];e in a?Object.defineProperty(a,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):a[e]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(f)):k(Object(f)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(f,e))})}return a}var b={IDLE:{show:!1},SHOW:{show:!0},WAIT_HIDE:{show:!0},WAIT_RESHOW:{show:!0},WAIT_SHOW:{show:!1}};g.STATES=b;function l(a,d){switch(d.type){case "show":return a.current===
b.IDLE?c(c({},a),{},{current:b.WAIT_SHOW,target:d.target,timestamp:Date.now()}):a.current===b.WAIT_SHOW?c(c({},a),{},{target:d.target,timestamp:Date.now()}):a.current===b.WAIT_RESHOW?c(c({},a),{},{nextTarget:d.target,timestamp:Date.now()}):a.current===b.WAIT_HIDE?c(c({},a),{},{current:b.WAIT_RESHOW,nextTarget:d.target}):c(c({},a),{},{timestamp:Date.now()});case "hideDelayCompleted":if(a.current===b.WAIT_HIDE)return{current:b.IDLE};break;case "showDelayCompleted":if(a.current===b.WAIT_SHOW)return c(c({},
a),{},{current:b.SHOW});if(a.current===b.WAIT_RESHOW)return c(c({},a),{},{current:b.SHOW,target:a.nextTarget});break;case "hide":if(a.current===b.WAIT_SHOW)return{current:b.IDLE};if(a.current===b.SHOW||a.current===b.WAIT_RESHOW)return c(c({},a),{},{current:b.WAIT_HIDE,timestamp:Date.now()})}return a}});
Liferay.Loader.define("frontend-js-tooltip-support-web@3.0.7/index","module exports require @frontend-taglib-clay$clayui/tooltip frontend-js-react-web frontend-js-metal-web$metal-dom frontend-js-metal-web$metal-position frontend-js-react-web$react ./reducer".split(" "),function(L,u,n){function v(a){"@babel/helpers - typeof";v="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 v(a)}Object.defineProperty(u,"__esModule",{value:!0});u.default=void 0;var E=y(n("@frontend-taglib-clay$clayui/tooltip")),w=n("frontend-js-react-web"),t=y(n("frontend-js-metal-web$metal-dom")),z=n("frontend-js-metal-web$metal-position"),g=A(n("frontend-js-react-web$react")),p=A(n("./reducer"));function B(){if("function"!==typeof WeakMap)return null;var a=new WeakMap;B=function(){return a};return a}function A(a){if(a&&a.__esModule)return a;if(null===a||"object"!==v(a)&&"function"!==
typeof a)return{default:a};var b=B();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var h=d?Object.getOwnPropertyDescriptor(a,e):null;h&&(h.get||h.set)?Object.defineProperty(c,e,h):c[e]=a[e]}c.default=a;b&&b.set(a,c);return c}function y(a){return a&&a.__esModule?a:{default:a}}function C(a){if(Array.isArray(a)){var b=0;for(var c=Array(a.length);b<a.length;b++)c[b]=a[b];b=c}else b=void 0;b||
(b=Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a)?Array.from(a):void 0);if(!(a=b))throw new TypeError("Invalid attempt to spread non-iterable instance");return a}function D(a,b){var c=Array.isArray(a)?a:void 0;if(!c)if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a)){c=[];var d=!0,e=!1,h=void 0;try{for(var q=a[Symbol.iterator](),k;!(d=(k=q.next()).done)&&(c.push(k.value),!b||c.length!==b);d=!0);}catch(x){e=!0,h=x}finally{try{if(!d&&
null!=q["return"])q["return"]()}finally{if(e)throw h;}}}else c=void 0;if(!(a=c))throw new TypeError("Invalid attempt to destructure non-iterable instance");return a}var F="top-right top top-left bottom-right bottom bottom-left left right".split(" "),G=["mouseleave","mouseup","MSPointerUp","pointerup","touchend"],H=["mouseenter","mouseup","MSPointerDown","pointerdown","touchstart"],K=function(){var a=(0,w.useTimeout)(),b=(0,g.useReducer)(p.default,{current:p.STATES.IDLE});b=D(b,2);var c=b[0],d=b[1],
e=(0,g.useRef)(null);b=(0,g.useState)(0);b=D(b,2);var h=b[0],q=b[1];(0,g.useEffect)(function(){var k;c.current===p.STATES.WAIT_SHOW?k=a(function(){return d({type:"showDelayCompleted"})},500):c.current===p.STATES.WAIT_HIDE?k=a(function(){return d({type:"hideDelayCompleted"})},100):c.current===p.STATES.WAIT_RESHOW&&(k=a(function(){return d({type:"showDelayCompleted"})},100));return k},[a,c]);(0,g.useEffect)(function(){var k=H.map(function(r){return t.default.delegate(document.body,r,"\n\t.lfr-portal-tooltip,\n\t.manage-collaborators-dialog .lexicon-icon[data-title]:not(.lfr-portal-tooltip),\n\t.manage-collaborators-dialog .lexicon-icon[title]:not(.lfr-portal-tooltip),\n\t.manage-collaborators-dialog [data-restore-title],\n\t.management-bar [data-title]:not(.lfr-portal-tooltip),\n\t.management-bar [title]:not(.lfr-portal-tooltip),\n\t.management-bar [data-restore-title],\n\t.preview-toolbar-container [data-title]:not(.lfr-portal-tooltip),\n\t.preview-toolbar-container [title]:not(.lfr-portal-tooltip),\n\t.preview-tooltbar-containter [data-restore-title],\n\t.progress-container[data-title],\n\t.redirect-entries span[data-title],\n\t.source-editor__fixed-text__help[data-title],\n\t.upper-tbar [data-title]:not(.lfr-portal-tooltip),\n\t.upper-tbar [title]:not(.lfr-portal-tooltip),\n\t.upper-tbar [data-restore-title]\n",
function(l){var f=l.delegateTarget;if(f){var m=f.getAttribute("title");m?(f.setAttribute("data-restore-title",m),f.removeAttribute("title")):"svg"===f.tagName&&(m=f.querySelector("title"))&&(f.setAttribute("data-restore-title",m.innerHTML),m.remove())}d({target:l.delegateTarget,type:"show"})})}),x=G.map(function(r){return t.default.delegate(document.body,r,"\n\t.lfr-portal-tooltip,\n\t.manage-collaborators-dialog .lexicon-icon[data-title]:not(.lfr-portal-tooltip),\n\t.manage-collaborators-dialog .lexicon-icon[title]:not(.lfr-portal-tooltip),\n\t.manage-collaborators-dialog [data-restore-title],\n\t.management-bar [data-title]:not(.lfr-portal-tooltip),\n\t.management-bar [title]:not(.lfr-portal-tooltip),\n\t.management-bar [data-restore-title],\n\t.preview-toolbar-container [data-title]:not(.lfr-portal-tooltip),\n\t.preview-toolbar-container [title]:not(.lfr-portal-tooltip),\n\t.preview-tooltbar-containter [data-restore-title],\n\t.progress-container[data-title],\n\t.redirect-entries span[data-title],\n\t.source-editor__fixed-text__help[data-title],\n\t.upper-tbar [data-title]:not(.lfr-portal-tooltip),\n\t.upper-tbar [title]:not(.lfr-portal-tooltip),\n\t.upper-tbar [data-restore-title]\n",
function(){d({type:"hide"});var l=c.target;if(l){var f=l.getAttribute("data-restore-title");if(f){if("svg"===l.tagName){var m=document.createElement("title");m.innerHTML=f;l.appendChild(m)}else l.setAttribute("title",f);l.removeAttribute("data-restore-title")}}})}),I=t.default.delegate(document.body,"mouseenter",'.tooltip[role\x3d"tooltip"]',function(){return d({target:c.target,type:"show"})}),J=t.default.delegate(document.body,"mouseleave",'.tooltip[role\x3d"tooltip"]',function(){return d({type:"hide"})});
return function(){[I,J].concat(C(x),C(k)).forEach(function(r){return r.dispose()})}},[c]);(0,g.useLayoutEffect)(function(){c.target&&e.current&&q(z.Align.align(e.current,c.target,z.Align.BottomCenter))},[c.target]);return c.target?g.default.createElement(E.default,{alignPosition:F[h],ref:e,show:c.current.show},g.default.createElement("div",{dangerouslySetInnerHTML:{__html:c.target.title||c.target.dataset.restoreTitle||c.target.dataset.title}})):null};u.default=function(){var a=w.render,b=g.default.createElement(K,
null),c=document.getElementById("tooltipContainer");c||(c=document.createElement("div"),c.id="tooltipContainer",document.body.appendChild(c));a.call(w,b,{},c)}});
