1"use strict";(()=>{var wi=Object.defineProperty;var Ci=(t,e,n)=>e in t?wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var S=(t,e,n)=>(Ci(t,typeof e!="symbol"?e+"":e,n),n);function _(t){let e=typeof t;return e==="object"&&t!==null||e==="function"}function H(t={},e=new FormData,n){return Object.entries(t).forEach(([i,o])=>{let r=n?`${n}[${i}]`:i;Array.isArray(o)?o.forEach(a=>{H({[r]:a},e)}):_(o)&&!(o instanceof File)?H(o,e,r):e.append(r,o)}),e}function pn(t){return typeof t=="string"&&(t=document.querySelector(t)),t}var vt=class{get namespace(){return this._STATE_.namespace}get portletNamespace(){return this._STATE_.portletNamespace}get rootNode(){return this._STATE_.rootNode}set portletNamespace(e){this.rootNode=`#p_p_id${e}`,this._STATE_.portletNamespace=e}set namespace(e){this.rootNode=`#p_p_id${e}`,this._STATE_.namespace=e}set rootNode(e){typeof e=="string"&&(e=document.getElementById(e[0]==="#"?e.slice(1):e)),this._STATE_.rootNode=e}constructor(e){this._EVENTS_={},this._STATE_={namespace:null,portletNamespace:null,rootNode:null};let{namespace:n,portletNamespace:i,rootNode:o}=e;n&&(this.namespace=n),i&&(this.portletNamespace=i),o&&(this.rootNode=o),this.created(e),this.attached(e)}dispose(){this.disposeInternal(),this.detached(),this.disposed()}attached(){}created(){}detached(){}disposed(){}disposeInternal(){}emit(e,n){let i=this._EVENTS_[e];if(i&&i.length)for(let o=0;o<i.length;o++)i[o](n)}on(e,n){this._EVENTS_[e]||(this._EVENTS_[e]=[]),this._EVENTS_[e].push(n)}},bt=class extends vt{all(e,n){return n=pn(n)||this.rootNode||document,n.querySelectorAll(this.namespaceSelectors_(this.portletNamespace||this.namespace,e))}fetch(e,n){let i=this.getRequestBody_(n);return fetch(e,{body:i,credentials:"include",method:"POST"})}getRequestBody_(e){let n;return e instanceof FormData?n=e:e instanceof HTMLFormElement?n=new FormData(e):typeof e=="object"?n=H(this.ns(e)):n=e,n}namespaceSelectors_(e,n){return n.replace(new RegExp(`(#|\\[id=(\\"|\\'))(?!`+e+")","g"),"$1"+e)}ns(e){return Liferay.Util.ns(this.portletNamespace||this.namespace,e)}one(e,n){return n=pn(n)||this.rootNode||document,n.querySelector(this.namespaceSelectors_(this.portletNamespace||this.namespace,e))}},pe=bt;var wt=class extends pe{callAction(e){let n=e.data.item.data;n&&n.action&&this[n.action]&&this[n.action](n)}handleActionItemClicked(e){this.callAction(e)}handleCreationButtonClicked(e){let n=e.data.data;n&&n.action&&this[n.action]&&this[n.action](n)}handleCreationMenuItemClicked(e){this.callAction(e)}handleFilterItemClicked(e){this.callAction(e)}handleItemClicked(e){this.callAction(e)}},mn=wt;var Ii={blur:!0,error:!0,focus:!0,invalid:!0,load:!0,scroll:!0};function xi(t){return!!(t.disabled||t.closest("[disabled]"))}function Pi(t,e,n,i){let o=r=>{let{defaultPrevented:a,target:s}=r;if(a||e==="click"&&xi(s))return;let l=s.closest(n);l&&(r.delegateTarget=l,i(r))};return t.addEventListener(e,o,!!Ii[e]),{dispose(){t.removeEventListener(e,o)}}}var ve=Pi;var Ct=class extends pe{attached(){let{rootNode:e}=this;e=e||document.body,this.inlineScrollEventHandler_=ve(e,"scroll","ul.pagination ul.inline-scroller",this.onScroll_.bind(this))}created(e){this.applyNamespaceToCurParam=e.applyNamespaceToCurParam,this.cur=Number(e.cur),this.curParam=e.curParam,this.forcePost=e.forcePost,this.formName=e.formName,this.initialPages=Number(e.initialPages),this.jsCall=e.jsCall,this.namespace=e.namespace,this.pages=Number(e.pages),this.randomNamespace=e.randomNamespace,this.url=e.url,this.urlAnchor=e.urlAnchor,this.handleListItemClick_=this.handleListItemClick_.bind(this)}detached(){super.detached(),this.inlineScrollEventHandler_.dispose(),document.createElement("li").removeEventListener("click",this.handleListItemClick_)}addListItem_(e,n){let i=document.createElement("li");i.innerHTML=`<a aria-label="${Liferay.Util.sub(Liferay.Language.get("page-x"),[n])}" class="dropdown-item" href="${this.getHREF_(n)}">${n}</a>`,n++,e.appendChild(i),e.setAttribute("data-page-index",n),i.addEventListener("click",this.handleListItemClick_)}getHREF_(e){let{applyNamespaceToCurParam:n,curParam:i,formName:o,jsCall:r,namespace:a,url:s,urlAnchor:l}=this,c=n?`${a}${i}`:i;return s!==null?`${s}&${c}=${e}${l}
1`:`javascript:document.${o}.${c}.value = "${e}; ${r}`}getNumber_(e){return Number(e??0)}handleListItemClick_(e){if(this.forcePost){e.preventDefault();let{curParam:n,id:i,namespace:o,randomNamespace:r}=this,a=document.getElementById(`${r}${o||i}pageIteratorFm`);a.elements[o+n].value=e.currentTarget.textContent,a.submit()}}onScroll_(e){let{cur:n,initialPages:i,pages:o}=this,{target:r}=e;if(r.nodeName!=="UL")return;let a=this.getNumber_(r.dataset.pageIndex),s=this.getNumber_(r.dataset.maxIndex);if(a===0){let l=this.getNumber_(r.dataset.currentIndex);l===0?a=i:a=l+i}s===0&&(s=o),n<=o&&a<s&&r.scrollTop>=r.scrollHeight-300&&this.addListItem_(r,a)}},It=Ct;var be={'"':""","&":"&","'":"'","/":"/","<":"<",">":">","`":"`"};var Ai={};Object.entries(be).forEach(([t,e])=>{Ai[e]=t});var Ui=Object.keys(be),Ri=new RegExp(`[${Ui.join("")}]`,"g"),Oi=/&([^\s;]+);/g;function X(t){return t.replace(Ri,e=>be[e])}function xt(t){return t.replace(Oi,e=>new DOMParser().parseFromString(e,"text/html").documentElement.textContent)}function F(t,e){typeof t=="string"?t=document.querySelectorAll(t):t._node?t=[t._node]:t._nodes?t=t._nodes:t.nodeType===Node.ELEMENT_NODE&&(t=[t]),t.forEach(n=>{n.disabled=e,e?n.classList.add("disabled"):n.classList.remove("disabled")})}function Ni(t,e){let n=t.indexOf('">'),i=t.substring(n);n=e.indexOf('">');let o=e.substring(n);return i<o?-1:i>o?1:0}function Di(t){return Array.isArray(t)?!0:!!(t&&typeof t=="object"&&typeof t.length=="number"&&!t.tagName&&!t.scrollTo&&!t.document)}function ki(t){return Di(t)?Array.from(t):[t]}function hn(t,e,n){let i=t[e],o=document.getElementById(i.select);if(!o)return;let r=ki(i.selectVal),a=[];for(i.selectNullable!==!1&&a.push('<option selected value="0"></option>'),n.forEach(s=>{let l=X(s[i.selectId]),c=X(s[i.selectDesc]),d="";r.indexOf(l)>-1&&(d='selected="selected"'),a.push(`<option ${d} value="${l}">${c}</option>`)}),i.selectSort&&a.sort(Ni);o.lastChild;)o.removeChild(o.lastChild);o.innerHTML=a.join(""),i.selectDisableOnEmpty&&F(o,!n.length)}function Mi(t,e){if(e+1<t.length){let n=document.getElementById(t[e].select),i=t[e+1].selectData;i(o=>{hn(t,e+1,o)},n&&n.value)}}function Hi(t){t.forEach((e,n)=>{let i=e.select,o=document.getElementById(i),r=e.selectData;if(o){o.setAttribute("data-componentType","dynamic_select");let a;n>0&&(a=t[n-1].selectVal),r(s=>{hn(t,n,s)},a),o.getAttribute("name")||o.setAttribute("name",i),o.addEventListener("change",()=>{Mi(t,n)})}})}var we=class{constructor(e){Hi(e)}};var gn=" ",Pt=class{constructor(e){S(this,"handleInput",e=>{requestAnimationFrame(()=>{this._resizeInput(e.target)})});this.inputElement=e,this.computedStyle=getComputedStyle(this.inputElement),this.minHeight=parseInt(this.computedStyle.height.replace("px",""),10),this.paddingHeight=parseInt(this.computedStyle.paddingTop.replace("px",""),10)+parseInt(this.computedStyle.paddingBottom.replace("px",""),10),this.template=this.createTemplate(this.computedStyle),document.body.appendChild(this.template),this.inputElement.addEventListener("input",this.handleInput),this._resizeInput(this.inputElement)}createTemplate(e){let n=document.createElement("pre");return n.style.clip="rect(0, 0, 0, 0) !important",n.style.left="0",n.style.overflowWrap="break-word",n.style.position="absolute",n.style.top="0",n.style.transform="scale(0)",n.style.whiteSpace="pre-wrap",n.style.wordBreak="break-word",n.style.fontFamily=e.fontFamily,n.style.fontSize=e.fontSize,n.style.fontStyle=e.fontStyle,n.style.fontWeight=e.fontWeight,n.style.lineHeight=e.lineHeight,n.style.letterSpacing=e.letterSpacing,n.style.textTransform=e.textTransform,n.style.width=e.width,n.textContent=gn,n}_resizeInput(e){this.template.style.width!==this.computedStyle.width&&(this.template.style.width=this.computedStyle.width),this.template.innerHTML=X(e.value)+gn,e.style.height=`${this.template.scrollHeight+this.paddingHeight<this.minHeight?this.minHeight:this.template.scrollHeight+this.paddingHeight}px`}},At=Pt;var oe={PHONE:768,TABLET:980};var re={},z={},N={},$e={},_n={},Fi=["p_p_id","p_p_lifecycle"],$i=["ddmStructureKey","fileEntryTypeId","folderId","navigation","status"],yn="liferay.component",En=function(t){let e;if(t)e={promise:Promise.resolve(t),resolve(){}};else{let n;e={promise:new Promise(o=>{n=o}),resolve:n}}return e},ji=function(t,e,n){let i=t.data;
1Object.keys(i).forEach(r=>{let a=n.querySelector(`#${r}`);a&&(a.innerHTML=i[r].html)})},Bi=function(t){let e=new URL(window.location.href),n=new URL(t.path,window.location.href);if(Fi.every(o=>n.searchParams.get(o)===e.searchParams.get(o))){let o=Object.keys(N);o=o.filter(r=>{let a=N[r];if(!a)return!1;let s=re[r],l=$i.every(d=>{let u=!1;if(s){let f=`_${s.portletId}_${d}`;u=n.searchParams.get(f)===e.searchParams.get(f)}return u});return(typeof a.isCacheable=="function"?a.isCacheable(n):!1)&&l&&s&&s.cacheState&&a.element&&a.getState}),$e=o.reduce((r,a)=>{let s=N[a],l=re[a],c=s.getState(),d=l.cacheState.reduce((u,f)=>(u[f]=c[f],u),{});return r[a]={html:s.element.innerHTML,state:d},r},[]),Liferay.DOMTaskRunner.addTask({action:ji,condition:r=>r.owner===yn}),Liferay.DOMTaskRunner.addTaskState({data:$e,owner:yn})}else $e={}},Ln=function(t,e,n){let i;if(arguments.length===1){let o=N[t];o&&typeof o=="function"&&(_n[t]=o,o=o(),N[t]=o),i=o}else if(N[t]&&e!==null&&(delete re[t],delete z[t],console.warn('Component with id "'+t+'" is being registered twice. This can lead to unexpected behaviour in the "Liferay.component" and "Liferay.componentReady" APIs, as well as in the "*:registered" events.')),i=N[t]=e,e===null)delete re[t],delete z[t];else{re[t]=n,Liferay.fire(t+":registered");let o=z[t];o?o.resolve(e):z[t]=En(e)}return i},Ut=function(){let t,e;if(arguments.length===1)t=arguments[0];else{t=[];for(let n=0;n<arguments.length;n++)t[n]=arguments[n]}if(Array.isArray(t))e=Promise.all(t.map(n=>Ut(n)));else{let n=z[t];n||(z[t]=n=En()),e=n.promise}return e},Rt=function(t){let e=N[t];if(e){let n=e.destroy||e.dispose;n&&n.call(e),delete re[t],delete z[t],delete _n[t],delete N[t]}},Sn=function(t){let e=Object.keys(N);t&&(e=e.filter(n=>t(N[n],re[n]||{}))),e.forEach(Rt)},Tn=function(){z={}},vn=function(t){let e=$e[t];return e?e.state:{}},bn=function(){Liferay.on("startNavigate",Bi)};function qi(t,e){return function n(){let i=arguments;Ot(n),n.id=setTimeout(()=>{t(...i)},e)}}function Ot(t){clearTimeout(t.id)}var Nt=qi;var Wi=document.currentScript.src,se="sessionToast",je=[],Be=class{constructor(e){S(this,"autoExtend");S(this,"redirectOnExpire");S(this,"redirectUrl");S(this,"sessionLength");S(this,"sessionTimeoutOffset");S(this,"_alertClosed");S(this,"_banner");S(this,"_timestampKey");S(this,"_expiredText");S(this,"_initPageTitle");S(this,"_intervalId");S(this,"_pageTitle");S(this,"_warningLength");S(this,"_warningText");S(this,"sessionState");this.autoExtend=e.autoExtend||!1,this.redirectOnExpire=e.redirectOnExpire??!0,this.redirectUrl=e.redirectUrl||"",this.sessionLength=e.sessionLength*1e3||0,this.sessionTimeoutOffset=e.sessionTimeoutOffset*1e3||0,this._alertClosed="",this._banner=null,this._timestampKey="LFR_SESSION_STATE_"+Liferay.ThemeDisplay.getRealUserId(),this._expiredText=Liferay.Language.get("due-to-inactivity-your-session-has-expired"),this._initPageTitle=document.title,this._pageTitle=document.title,this._setTimestamp(),this._warningLength=e.warningLength*1e3||0,this._warningText=Liferay.Util.sub(Liferay.Language.get("due-to-inactivity-your-session-will-expire"),['<span class="countdown-timer">{0}</span>',(this.sessionLength/6e4).toString(),`<a class="alert-link" href="javascript:void(0);">${Liferay.Language.get("extend")}</a>`]),this.sessionState="active",e.rememberMe||this._startTimer()}destructor(){clearInterval(this._intervalId),this._destroyBanner()}expire(){this._expireSession(),this._uiSetExpired(),this.sessionState="expired",clearInterval(this._intervalId)}extend(){this._removeAlert(),this._extendSession(),this.sessionState="active"}async openToast(e){let{openToast:n}=await import(Liferay.FrontendESM.buildURL(Wi,"frontend-js-components-web","index"));n(e)}warn(){this._uiSetWarned(),this.sessionState="warned"}_destroyBanner(){let n=document.getElementById(se)?.parentElement;Liferay.destroyComponent(se),n&&n.remove(),this._banner=!1}_expireSession(){Liferay.Util.fetch(Liferay.ThemeDisplay.getPathMain()+"/portal/expire_session").then(e=>{e.ok?(Liferay.fire("sessionExpired"),this.redirectOnExpire&&(location.href=this.redirectUrl)):setTimeout(()=>{this._expireSession},1e3)})}_extendSession(){this._setTimestamp(),Liferay.Util.fetch(Liferay.ThemeDisplay.getPathMain()+"/portal/extend_session").then(e=>{e.status===500&&this.expire()})}_formatNumber(e){return Math.floor(e).toString().padStart(2,"0")}_formatTime(e){return e=Number(e),Number.isInteger(e)&&e>0?(e/=1e3,je[0]=this._formatNumber(e/3600),e%=3600,je[1]=this._formatNumber(e/60),e%=60,je[2]=this._formatNumber(e),e=je.join(":")):e=0,e.toString()}_getBanner(){let e=this._banner;if(!e){let n=this.openToast,i={onClick:({event:r})=>{r.target.classList.contains("alert-link")&&this.extend()},renderData:{__reactDOMFlushSync:!0,componentId:se},toastProps:{autoClose:!1,id:se,role:"alert"}};n({message:this._warningText,type:"warning",...i});let o=Liferay.component(se);e={open:r=>{this._destroyBanner(),n({...r,...i})},...o},this._banner=e}return e}_getTimestamp(){return parseInt(Liferay.Util.LocalStorage.getItem(this._timestampKey,Liferay.Util.LocalStorage.TYPES.NECESSARY),10)}_setTimestamp(){Liferay.Util.LocalStorage.setItem(this._timestampKey,Date.now().toString(),Liferay.Util.LocalStorage.TYPES.NECESSARY)}_startTimer(){this._intervalId=setInterval(()=>{let e=Math.floor((Date.now()-this._getTimestamp())/1e3)*1e3,n=e>=this.sessionLength,i=this._warningLength>0&&e>=this.sessionLength-this._warningLength,o=e>=this.sessionLength-this.sessionTimeoutOffset;n&&this.sessionState!=="expired"?this.expire():this.autoExtend&&o?this.extend():!this.autoExtend&&i&&this.sessionState!=="warned"&&this.warn(),this._banner&&(i?n||this._uiSetRemainingTime(this.sessionLength-e,document.querySelector(`#${se} .countdown-timer`)):this._removeAlert())},1e3)}_removeAlert(){document.title=this._initPageTitle,this._banner&&this._destroyBanner(),this.sessionState="active"}_uiSetExpired(){this._banner&&(this._banner.open({message:this._expiredText,title:Liferay.Language.get("danger"),type:"danger"}),document.title=this._pageTitle)}_uiSetRemainingTime(e,n){if(e=this._formatTime(e),!this._alertClosed&&n){let i=n.closest('div[role="alert"]');i&&i.removeAttribute("role"),n.innerHTML=e}document.title=Liferay.Util.sub(Liferay.Language.get("session-expires-in-x"),[e])+" | "+this._pageTitle}_uiSetWarned(){let e=this.sessionLength,n=this._getTimestamp(),i=this._warningLength,o=e;n&&(o=Math.floor((Date.now()-n)/1e3)*1e3);let r=e-o;r>i&&(r=i),this._getBanner(),setTimeout(()=>{this._uiSetRemainingTime(r,document.querySelector(`#${se} .countdown-timer`))},60)}};(function(){let t={_scheduledTasks:[],_taskStates:[],addTask(e){this._scheduledTasks.push(e)},addTaskState(e){this._taskStates.push(e)},reset(){let e=this;e._taskStates.length=0,e._scheduledTasks.length=0},runTasks(e){let n=this,i=n._scheduledTasks,o=n._taskStates,r=i.length,a=o.length;for(let s=0;s<r;s++){let l=i[s],c=l.params;for(let d=0;d<a;d++){let u=o[d];l.condition(u,c,e)&&l.action(u,c,e)}}}};Liferay.DOMTaskRunner=t})();(function(t){let e={},n=Liferay.Util;t.use("attribute","oop",i=>{i.augment(Liferay,i.Attribute,!0)}),Liferay.provide(Liferay,"delegateClick",(i,o)=>{let r=t.config.doc.getElementById(i);if(!r||r.id!==i)return;let a=t.one(r).addClass("lfr-delegate-click").guid();e[a]=o,Liferay._baseDelegateHandle||(Liferay._baseDelegateHandle=t.getBody().delegate("click",Liferay._baseDelegate,".lfr-delegate-click"))},["aui-base"]),Liferay._baseDelegate=function(i){let o=i.currentTarget.attr("id"),r=e[o];r&&r.apply(this,arguments)},Liferay._CLICK_EVENTS=e,Liferay.provide(window,"submitForm",(i,o,r,a)=>{n._submitLocked||(i.jquery&&(i=i[0]),Liferay.fire("submitForm",{action:o,form:t.one(i),singleSubmit:r,validate:a!==!1}
1))},["aui-base","aui-form-validator","aui-url","liferay-form"]),Liferay.publish("submitForm",{defaultFn(i){let o=i.form,r=!1;if(i.validate){let s=Liferay.Form.get(o.attr("id"));if(s){let l=s.formValidator;t.instanceOf(l,t.FormValidator)&&(l.validate(),r=l.hasErrors(),r&&l.focusInvalidField())}}function a(s){n._submitLocked=null,n.toggleDisabled(s,!1)}if(!r){let s=i.action||o.getAttribute("action"),l=i.singleSubmit,c=o.all("button[type=submit], input[type=button], input[type=image], input[type=reset], input[type=submit]"),d=Array.from(c._nodes);d.length&&d.map(h=>{h.disabled=!0,h.style.opacity=.5}),l===!1?n._submitLocked=t.later(1e3,n,a,[c,o]):n._submitLocked=!0;let u,f,g=s.indexOf("?");g===-1?(u=s,f=""):(u=s.slice(0,g),f=s.slice(g+1));let p=new URLSearchParams(f),y=p.get("p_auth")||"";y.includes("#")&&(y=y.substring(0,y.indexOf("#"))),y&&(o.append('<input name="p_auth" type="hidden" value="'+y+'" />'),p.delete("p_auth"),s=u+"?"+p.toString()),o.attr("action",s),n.submitForm?n.submitForm(o):o.submit(),o.attr("target",""),n._submitLocked=null}}}),Liferay.after("closeWindow",i=>{let o=i.id,r=n.getTop().Liferay.Util.Window.getById(o);if(r&&r.iframe){let s=r.iframe.node.get("contentWindow").getDOM().Liferay.Util.getOpener(),l=i.redirect;if(l)s.Liferay.Util.navigate(l);else{let c=i.refresh;if(c&&s){let d;i.portletAjaxable||(d={portletAjaxable:!1}),s.Liferay.Portlet.refresh("#p_p_id_"+c+"_",d)}}r.hide()}})})(AUI());var Dt=class{constructor(){this._disposed=!1}dispose(){this._disposed||(this.disposeInternal(),this._disposed=!0)}disposeInternal(){}isDisposed(){return this._disposed}},K=Dt;var kt=class extends K{constructor(e,n,i){super(),this._emitter=e,this._event=n,this._listener=i}disposeInternal(){this.removeListener(),this._emitter=null,this._listener=null}removeListener(){this._emitter.isDisposed()||this._emitter.removeListener(this._event,this._listener)}},Mt=kt;var wn=[0],Ht=class extends K{constructor(){super(),this._events=null,this._listenerHandlers=null,this._shouldUseFacade=!1}_addHandler(e,n){return e?(Array.isArray(e)||(e=[e]),e.push(n)):e=n,e}addListener(e,n,i){this._validateListener(n);let o=this._toEventsArray(e);for(let r=0;r<o.length;r++)this._addSingleListener(o[r],n,i);return new Mt(this,e,n)}_addSingleListener(e,n,i,o){this._runListenerHandlers(e),(i||o)&&(n={default:i,fn:n,origin:o}),this._events=this._events||{},this._events[e]=this._addHandler(this._events[e],n)}_buildFacade(e){if(this.getShouldUseFacade()){let n={preventDefault(){n.preventedDefault=!0},target:this,type:e};return n}}disposeInternal(){this._events=null}emit(e){let n=this._getRawListeners(e);if(!n.length)return!1;let i=Array.prototype.slice.call(arguments,1);return this._runListeners(n,i,this._buildFacade(e)),!0}_getRawListeners(e){return qe(this._events&&this._events[e]).concat(qe(this._events&&this._events["*"]))}getShouldUseFacade(){return this._shouldUseFacade}listeners(e){return this._getRawListeners(e).map(n=>n.fn?n.fn:n)}many(e,n,i){let o=this._toEventsArray(e);for(let r=0;r<o.length;r++)this._many(o[r],n,i);return new Mt(this,e,i)}_many(e,n,i){let o=this;if(n<=0)return;function r(){--n===0&&o.removeListener(e,r),i.apply(o,arguments)}o._addSingleListener(e,r,!1,i)}_matchesListener(e,n){return(e.fn||e)===n||e.origin&&e.origin===n}off(e,n){if(this._validateListener(n),!this._events)return this;let i=this._toEventsArray(e);for(let o=0;o<i.length;o++)this._events[i[o]]=this._removeMatchingListenerObjs(qe(this._events[i[o]]),n);return this}on(){return this.addListener.apply(this,arguments)}onListener(e){this._listenerHandlers=this._addHandler(this._listenerHandlers,e)}once(e,n){return this.many(e,1,n)}removeAllListeners(e){if(this._events)if(e){let n=this._toEventsArray(e);for(let i=0;i<n.length;i++)this._events[n[i]]=null}else this._events=null;return this}_removeMatchingListenerObjs(e,n){let i=[];for(let o=0;o<e.length;o++)this._matchesListener(e[o],n)||i.push(e[o]);return i.length?i:null}removeListener(){return this.off.apply(this,arguments)}_runListenerHandlers(e){let n=this._listenerHandlers;if(n){n=qe(n);for(let i=0;i<n.length;i++)n[i](e)}}_runListeners(e,n,i){i&&n.push(i);let o=[];for(let r=0;r<e.length;r++){let a=e[r].fn||e[r];e[r].default?o.push(a):a.apply(this,n)}if(!i||!i.preventedDefault)for(let r=0;r<o.length;r++)o[r].apply(this,n)}setShouldUseFacade(e){return this._shouldUseFacade=e,this}_toEventsArray(e){return typeof e=="string"&&(wn[0]=e,e=wn),e}_validateListener(e){if(typeof e!="function")throw new TypeError("Listener must be a function")}};function qe(t){return t=t||[],Array.isArray(t)?t:[t]}var Ce=Ht;var Ft=class extends K{constructor(){super(),this._eventHandles=[]}add(...e){for(let n=0;n<e.length;n++)this._eventHandles.push(e[n])}disposeInternal(){this._eventHandles=null}removeAllListeners(){for(let e=0;e<this._eventHandles.length;e++)this._eventHandles[e].removeListener();this._eventHandles=[]}},Cn=Ft;var Vi="simulationDeviceIframe",In;function $(){let t=In;if(!t){let e=window.parent,n;for(;e!==window;){try{if(typeof e.location.href>"u")break;n=e.themeDisplay}catch{break}if(!n||window.name===Vi)break;if(!n.isStatePopUp()||e===e.parent){t=e;break}e=e.parent}t||(t=window),In=t}return t}function xn(t,e){t.preventDefault();let{currentTarget:n}=t;e=Object.assign({},Object.assign({},n.dataset),e),e.uri||(e.uri=n.dataset.href||n.getAttribute("href")),e.t
1itle||(e.title=n.getAttribute("title")),e.url||(e.url=e.uri),Y(e)}function Y(t,e){let n=$();t.openingWindow=window,t.uri&&!t.url&&(t.url=t.uri),n.Liferay.Util.openModal(t,e)}function Pn(t){t=t||{};let e=t.obj,n=t.pane;e&&e.checked&&(n=document.querySelector(n),n&&n.classList.add("hide"))}function An(){return{minus:themeDisplay.getPathThemeImages()+"/arrows/01_minus.png",plus:themeDisplay.getPathThemeImages()+"/arrows/01_plus.png"}}function Un(t){t=t||{};let e=t.namespace,n=t.reviewers,i='<div><form action="'+t.url+'" method="post">';if(n.length){i+='<textarea name="'+e+'description"></textarea><br /><br />'+Liferay.Language.get("reviewer")+' <select name="'+e+'reviewUserId">';for(let o=0;o<n.length;o++)i+='<option value="'+n[o].userId+'">'+n[o].fullName+"</option>";i+='</select><br /><br /><input type="submit" value="'+Liferay.Language.get("proceed")+'" />'}else i+=Liferay.Language.get("no-reviewers-were-found")+"<br />"+Liferay.Language.get("please-contact-the-administrator-to-assign-reviewers")+"<br /><br />";i+="</form></div>",Y({dialog:{destroyOnHide:!0},title:i})}function Rn(t){t=t||{},Y({dialog:{constrain:!0,modal:!0,on:{visibleChange(e){let n=this;e.newVal||n.destroy()}}},title:t.title,uri:t.url})}function On(t){t=t||{};let e=t.obj,n=t.pane;e&&e.checked&&(n=document.querySelector(n),n&&n.classList.remove("hide"))}function Nn(t){t=t||{};let e=document.querySelector(t.detail),n=document.querySelector(t.toggle);if(e&&n){let i=themeDisplay.getPathThemeImages()+"/arrows/01_plus.png";e.classList.contains("hide")?(e.classList.remove("hide"),i=themeDisplay.getPathThemeImages()+"/arrows/01_minus.png"):e.classList.add("hide"),n.setAttribute("src",i)}}(function(){Liferay.lazyLoad=function(){let t,e=function(o){return typeof o=="function"},n,i;if(Array.isArray(arguments[0]))n=arguments[0],i=e(arguments[1])?arguments[1]:null,t=e(arguments[2])?arguments[2]:null;else{n=[];for(let o=0;o<arguments.length;++o)if(typeof arguments[o]=="string")n[o]=arguments[o];else if(e(arguments[o])){i=arguments[o],t=e(arguments[++o])?arguments[o]:null;break}}return function(){let o=[];for(let r=0;r<arguments.length;++r)o.push(arguments[r]);Liferay.Loader.require(n,function(){for(let r=0;r<arguments.length;++r)o.splice(r,0,arguments[r]);i.apply(i,o)},t)}}})();(function(){let t=function(a){return typeof a=="function"},e=function(a){return a&&(a._node||a.jquery||a.nodeType)},n=/^get$/i,i="multipart/form-data";Liferay.namespace=function(s,l){l===void 0&&(l=s,s=this);let c=l.split(".");for(let d;c.length&&(d=c.shift());)s[d]&&s[d]!==Object.prototype[d]?s=s[d]:s=s[d]={};return s};let o=function(){let a=o.parseInvokeArgs(Array.prototype.slice.call(arguments,0));return o.invoke.apply(o,a)};o.URL_INVOKE=themeDisplay.getPathContext()+"/api/jsonws/invoke",o.bind=function(){let a=Array.prototype.slice.call(arguments,0);return function(){let s=Array.prototype.slice.call(arguments,0);return o.apply(o,a.concat(s))}},o.parseInvokeArgs=function(a){let s=this,l=a[0],c=s.parseIOConfig(a);if(typeof l=="string"){l=s.parseStringPayload(a),s.parseIOFormConfig(c,a);let d=a[a.length-1];typeof d=="object"&&d.method&&(c.method=d.method)}return[l,c]},o.parseIOConfig=function(a){let s=a[0],l=s.io||{};if(delete s.io,!l.success){let c=a.filter(t),d=c[1],u=c[0];d||(d=u),l.error=d,l.complete=function(f){if(!Object.prototype.hasOwnProperty.call(f,"exception"))u&&u.call(this,f);else if(d){let g=f?f.exception:"The server returned an empty response";d.call(this,g,f)}}}return!Object.prototype.hasOwnProperty.call(l,"cache")&&n.test(l.type)&&(l.cache=!1),l},o.parseIOFormConfig=function(a,s){let l=s[1];e(l)&&(l.enctype===i&&(a.contentType="multipart/form-data"),a.formData=new FormData(l))},o.parseStringPayload=function(a){let s={},l={},c=a[1];return!t(c)&&!e(c)&&(s=c),l[a[0]]=s,l},o.invoke=function(a,s){let l=this,c=JSON.stringify(a),d=c;return s.formData&&(s.formData.append("cmd",c),d=s.formData),Liferay.Util.fetch(l.URL_INVOKE,{body:d,headers:{contentType:s.contentType},method:"POST"}).then(u=>Promise.all([Promise.resolve(u),u.json()])).then(([u,f])=>{u.ok?s.complete(f):s.error()}).catch(s.error)};function r(a){return function(){let s=Array.prototype.slice.call(arguments,0),l={method:a};return s.push(l),o.apply(o,s)}}o.get=r("get"),o.del=r("delete"),o.post=r("post"),o.put=r("put"),o.update=r("update"),Liferay.Service=o,Liferay.Template={PORTLET:'<div class="portlet"><div class="portlet-topper"><div class="portlet-title"></div></div><div class="portlet-content"></div><div class="forbidden-action"></div></div>'}})();function ae(t){if(typeof t!="function")throw new TypeError("Parameter fn must be a function");let e=new Map,n=(...i)=>{let o;if(i.find(r=>typeof r=="object")){let r=i.filter(a=>typeof a=="object");o=r.map(a=>JSON.stringify(a)),i.length>
11&&r.length<i.length&&i.forEach(a=>typeof a!="object"&&o.push(a)),o=o.join(",")}else o=i.length>1?i.join(","):i[0];if(e.has(o))return e.get(o);{let r=t.apply(null,i);return e.set(o,r),r}};return n.getCache=()=>e,n}var Gi=ae(t=>t.split("").map(e=>e.charCodeAt()).join("")),Ie=Gi;var $t="showTab";function kn(t,e,n,i){let o=t+Ie(n),r=document.getElementById(o+"TabsId"),a=document.getElementById(o+"TabsSection");if(r&&a){let s={id:n,names:e,namespace:t,selectedTab:r,selectedTabSection:a};i&&typeof i=="function"&&i.call(this,t,e,n,s);try{Liferay.on($t,Dn),Liferay.fire($t,s)}finally{Liferay.detach($t,Dn)}}}function Dn({id:t,names:e,namespace:n,selectedTab:i,selectedTabSection:o}){let r=i.querySelector("a");if(i&&r){let l=i.parentElement.querySelector(".active");l&&l.classList.remove("active"),r.classList.add("active")}o&&o.classList.remove("hide");let a=document.getElementById(n+"dropdownTitle");a&&r&&(a.innerHTML=r.textContent),e.splice(e.indexOf(t),1);let s;for(let l=0;l<e.length;l++)s=document.getElementById(n+Ie(e[l])+"TabsSection"),s&&s.classList.add("hide")}function Mn(t,e){t.setAttribute("title",e),t.classList.add("lfr-portal-tooltip")}(function(t){let e=t.Lang,n=Liferay.Util,i="head",o='<div class="alert alert-info">{0}</div>',r=s=>
1{let l=document.createElement("div");l.innerHTML=`<br>${s}`,l.removeChild(l.firstChild);let c=document.createDocumentFragment();for(;l.firstChild;)c.appendChild(l.firstChild);return c},a={...Liferay.Portlet,_defCloseFn(s){if(s.portlet.remove(!0),!s.nestedPortlet){let l=Liferay.Util.objectToFormData({cmd:"delete",doAsUserId:s.doAsUserId,p_auth:Liferay.authToken,p_l_id:s.plid,p_p_id:s.portletId,p_v_l_s_g_id:themeDisplay.getSiteGroupId()});Liferay.Util.fetch(themeDisplay.getPathMain()+"/portal/update_layout",{body:l,method:"POST"}).then(c=>{c.ok&&Liferay.fire("updatedLayout")})}},_loadMarkupHeadElements(s){let l=s.markupHeadElements;if(l&&l.length){t.one(i).append(l);let d=t.Node.create("<div />");d.plug(t.Plugin.ParseContent),d.setContent(l)}},_loadModules(s){return Promise.all(s.map(l=>new Promise(c=>{let d=document.createElement("script");d.src=l,d.type="module",d.onload=d.onreadystatechange=()=>{this.readyState&&this.readyState!=="complete"&&this.readyState!=="load"||(d.onload=d.onreadystatechange=null,d.onerror=null,c())},d.onerror=()=>{d.onload=d.onreadystatechange=null,d.onerror=null,console.error("Unable to load",l),c()},document.head.appendChild(d)})))},_loadPortletFiles(s,l){let c=s.footerCssPaths||[],d=s.headerCssPaths||[],u=t.one(i);d.length&&t.Get.css(d,{insertBefore:u.get("firstChild").getDOM()});let f=document.body.lastChild;c.length&&t.Get.css(c,{insertBefore:f});let g=s.portletHTML,p=s.headerJavaScriptPaths||[];if(p=p.concat(s.footerJavaScriptPaths||[]),p.length){let y=p.filter(h=>h.startsWith("module:")).map(h=>h.substring(7));p=p.filter(h=>!h.startsWith("module:")),a._loadModules(y).then(()=>{t.Get.script(p,{onEnd(){l(g)}})})}else l(g)},_mergeOptions(s,l){return l=l||{},l.doAsUserId=l.doAsUserId||themeDisplay.getDoAsUserIdEncoded(),l.plid=l.plid||themeDisplay.getPlid(),l.portlet=s,l.portletId=s.portletId,l},_staticPortlets:{},destroyComponents(s){Liferay.destroyComponents((l,c)=>s===c.portletId)},isStatic(s){let l=this;return n.getPortletId(s.id||s)in l._staticPortlets},list:[],readyCounter:0,refreshLayout(s){},register(s){let l=this;l.list.indexOf(s)<0&&l.list.push(s)}};Liferay.provide(a,"add",function(s){let l=this;Liferay.fire("initLayout");let c=s.doAsUserId||themeDisplay.getDoAsUserIdEncoded(),d=s.plid||themeDisplay.getPlid(),u=s.portletData,f=s.portletId,g=s.portletItemId,p=s.placeHolder;p?p=t.one(p):p=t.Node.create('<div class="loading-animation" />');let y=s.beforePortletLoaded,h=s.onComplete,m=function(P,ie){h&&h(P,ie),l.list.push(P.portletId),P&&P.attr("data-qa-id","app-loaded"),Liferay.fire("addPortlet",{portlet:P})},I=null;if(Liferay.Layout&&Liferay.Layout.INITIALIZED&&(I=Liferay.Layout.getActiveDropContainer()),!I)return;let R=I.attr("id").replace(/layout-column_/,""),q=0;if(s.placeHolder){let P=p.get("parentNode");if(!P)return;p.addClass("portlet-boundary");let ie=P.all(".portlet-boundary"),Se=P.all(".portlet-nested-portlets");q=ie.indexOf(p);let ue=0;Se.some(Te=>{let A=ie.indexOf(Te);if(A!==-1&&A<q)ue+=Te.all(".portlet-boundary").size();else if(A>=q)return!0}),q-=ue,R=P.attr("id").replace(/layout-column_/,"")}let L=themeDisplay.getPathMain()+"/portal/update_layout",Le={cmd:"add",dataType:"JSON",doAsUserId:c,p_auth:Liferay.authToken,p_l_id:d,p_p_col_id:R,p_p_col_pos:q,p_p_i_id:g,p_p_id:f,p_p_isolated:!0,p_v_l_s_g_id:themeDisplay.getSiteGroupId(),portletData:u},ne=I.one(".portlet-boundary"),He=ne&&ne.isStatic;!s.placeHolder&&!s.plid&&(He?ne.placeAfter(p):I.prepend(p)),Le.currentURL=Liferay.currentURL,l.addHTML({beforePortletLoaded:y,data:Le,onComplete:m,placeHolder:p,url:L})},["aui-base"]),Liferay.provide(a,"addHTML",function(s){let l=this,c=null,d=s.beforePortletLoaded,u=s.data,f="HTML",g=s.onComplete,p=s.placeHolder,y=s.url;u&&e.isString(u.dataType)&&(f=u.dataType),f=f.toUpperCase();let h=function(m){let I=p.get("parentNode"),x=t.Node.create("<div></div>");x.plug(t.Plugin.ParseContent),x.setContent(m),x=x.one("> *");let R;if(x){let q=x.attr("id");R=n.getPortletId(q),x.portletId=R,p.hide(),p.placeAfter(x),p.remove(),l.refreshLayout(x),window.location.hash&&(window.location.href=encodeURI(window.location.hash)),c=x;let L=Liferay.Layout;L&&L.INITIALIZED&&(L.updateCurrentPortletInfo(c),I&&L.syncEmptyColumnClassUI(I),L.syncDraggableClassUI(),L.updatePortletDropZones(c)),g&&g(c,R)}else p.remove();return R};d&&d(p),Liferay.Util.fetch(y,{body:Liferay.Util.objectToURLSearchParams(u),method:"POST"}).then(m=>f==="JSON"?m.json():m.text()).then(m=>{f==="HTML"?h(m):m.refresh?h(m.portletHTML):(a._loadMarkupHeadElements(m),a._loadPortletFiles(m,h)),(!u||!u.preventNotification)&&Liferay.fire("updatedLayout")}).catch(m=>{let I=typeof m=="string"?m:Liferay.Language.get("there-was-an-unexpected-error.-please-refresh-the-current-page");Liferay.Util.openToast({message:I,type:"danger"})})},["aui-parse-content"]),Liferay.provide(a,"close",function(s,l,c){let d=this,u=()=>{let f=s.portletId,g=d.list.indexOf(f);g>=0&&d.list.splice(g,1),c=a._mergeOptions(s,c),a.destroyComponents(f),Liferay.fire("destroyPortlet",c),Liferay.fire("closePortlet",c)};s=t.one(s),s?l?u():Liferay.Util.openConfirmModal({message:Liferay.Language.get("are-you-sure-you-want-to-remove-this-component"),onConfirm:f=>{f&&u()}}):t.config.win.focus()},[]),Liferay.provide(a,"destroy",(s,l)=>{if(s=t.one(s),s){let c=s.portletId||n.getPortletId(s.attr("id"));a.destroyComponents(c),Liferay.fire("destroyPortlet",a._mergeOptions(s,l))}},["aui-node-base"]),Liferay.provide(a,"onLoad",function(s){let l=this,c=s.canEditTitle,d=s.columnPos,u=s.isAjaxable,f=s.isStatic==="no"?null:s.isStatic,g=s.namespacedId,p=s.portletId,y=s.refreshURL,h=s.refreshURLData;f&&l.registerStatic(p);let m=t.one("#"+g);if(m&&!m.portletProcessed&&(m.portletProcessed=!0,m.portletId=p,m.columnPos=d,m.isAjaxable=u,m.isStatic=f,m.refreshURL=y,m.refreshURLData=h,c)){let I="focus";t.UA.touchEnabled||(I=["focus","mousemove"]);let x=m.on(I,()=>{if(t.Event.defineOutside("mouseup"),m){let R=m.one(".portlet-title-text");if(R&&!R.hasClass("not-editable")){R.addClass("portlet-title-editable"),R.setAttribute("contenteditable","plaintext-only");let q=r(` 2 <div class="btn-group hide" id="${p}_button-group-title-edit"> 3 <button aria-label="${Liferay.Language.get("cancel")}" class="btn-toolbar-button btn btn-default lfr-portal-tooltip" id="${p}_cancel-edit-title" title="${Liferay.Language.get("cancel")}"> 4 <svg aria-hidden="true" class="lexicon-icon lexicon-icon-times" focusable="false" role="presentation"><use href="${Liferay.Icons.spritemap}#times"></use></svg> 5 </button> 6 <button aria-label="${Liferay.Language.get("confirm")}" class="btn-toolbar-button btn btn-default lfr-portal-tooltip" id="${p}_confirm-edit-title" title="${Liferay.Language.get("confirm")}"> 7 <svg aria-hidden="true" class="lexicon-icon lexicon-icon-check" focusable="false" role="presentation"><use href="${Liferay.Icons.spritemap}#check"></use></svg> 8 </button> 9 </div> 10 `),L=m._node.querySelector(".portlet-title-text"),Le=""+L.innerText;L.parentNode.appendChild(q);let ne=document.getElementById(`${p}_button-group-title-edit`),He=A=>{let Fe={doAsUserId:themeDisplay.getDoAsUserIdEncoded(),p_auth:Liferay.authToken,p_l_id:themeDisplay.getPlid(),portletId:m.portletId||0,title:A.innerText||""};Le=""+A.innerText,Liferay.Util.fetch(themeDisplay.getPathMain()+"/portal/update_portlet_title",{body:Liferay.Util.objectToFormData(Fe),method:"POST"}),ne.classList.add("hide"),A.style.textTransform=""},P=document.getElementById(`${p}_cancel-edit-title`),ie=document.getElementById(`${p}_confirm-edit-title`),Se=()=>{L.innerText=Le,ne.classList.add("hide"),L.style.textTransform=""},ue=()=>He(L),Te=A=>
10{A.key==="Enter"?He(L):A.key==="Escape"&&Se()};L.addEventListener("click",()=>{ne.classList.remove("hide"),L.style.textTransform="initial",L.addEventListener("keyup",Te),ie.addEventListener("click",ue),P.addEventListener("click",Se);let A=bi=>{L.parentNode.contains(bi.target)||(ue(),document.removeEventListener("click",A))};document.addEventListener("click",A);let Fe;clearTimeout(Fe),L.addEventListener("blur",()=>{Fe=setTimeout(()=>{L.removeEventListener("keyup",Te),ie.removeEventListener("click",ue),P.removeEventListener("click",Se)},100)})})}}x.detach()})}Liferay.fire("portletReady",{portlet:m,portletId:p}),l.readyCounter++,l.readyCounter===l.list.length&&Liferay.fire("allPortletsReady",{portletId:p})},["aui-base","aui-timer","event-move","event-outside"]),Liferay.provide(a,"refresh",function(s,l,c){let d=this;if(s=t.one(s),s){c?l={...s.refreshURLData||{},...l||{}}:l=l||s.refreshURLData||{};let u=s.attr("portlet"),f=s.refreshURL,g=t.Node.create('<div class="loading-animation" id="p_p_id'+u+'" />');if(s.isAjaxable&&f){s.placeBefore(g),s.remove(!0),a.destroyComponents(s.portletId);let p={},y=f.split("?");y.length>1&&(p=t.QueryString.parse(y[1]),delete p.dataType,f=y[0]),d.addHTML({data:t.mix(p,l,!0),onComplete(h,m){h.refreshURL=s.refreshURL,h&&h.attr("data-qa-id","app-refreshed"),Liferay.fire(h.portletId+":portletRefreshed",{portlet:h,portletId:m})},placeHolder:g,url:f})}else if(!s.getData("pendingRefresh")){s.setData("pendingRefresh",!0);let p=e.sub(o,[Liferay.Language.get("this-change-will-only-be-shown-after-you-refresh-the-page")]),y=s.one(".portlet-body");y.placeBefore(p),y.hide()}Liferay.fire("refreshPortlet",{portletId:s.portletId})}},["aui-base","querystring-parse"]),Liferay.provide(a,"registerStatic",function(s){let l=this,c=t.Node;c&&s instanceof c?s=s.attr("id"):s.id&&(s=s.id);let d=n.getPortletId(s);l._staticPortlets[d]=!0},["aui-base"]),Liferay.publish("closePortlet",{defaultFn:a._defCloseFn}),Liferay.publish("allPortletsReady",{fireOnce:!0}),a.ready=function(s){Liferay.on("portletReady",l=>{s(l.portletId,l.portlet)})},Liferay.Portlet=a})(AUI());function Hn(t,e){return typeof t=="string"?t=e:t instanceof URL?t=new URL(e):t instanceof Request?t=new Request(e,t):console.warn("Resource passed to `fetch()` must either be a string, Request, or URL."),t}function C(t,e={}){t||(t="/o/");let n=t.url?t.url:t.toString();if(n.startsWith("/")){let a=Liferay.ThemeDisplay.getPathContext();a&&!n.startsWith(a)&&(n=a+n,t=Hn(t,n)),n=window.location.origin+n}let i=new URL(n),o=new Headers({}),r={};if(i.origin===window.location.origin){o.set("x-csrf-token",Liferay.authToken),r.credentials="include";let a=Liferay.ThemeDisplay.getDoAsUserIdEncoded();a&&(i.searchParams.set("doAsUserId",a),n=i.toString(),t=Hn(t,n))}return new Headers(e.headers||{}).forEach((a,s)=>{o.set(s,a)}),fetch(t,{...r,...e,headers:o})}var Xi=/^(?:p_p_id)?_(.*)_.*$/;function me(t){return t.replace(Xi,"$1")}function he(t){if(typeof t!="string")throw new TypeError("portletId must be a string");return`_${t}_`}var zi=/^[a-z][a-z0-9+.-]*:/i;function Ki(t){return zi.test(t)}function O(t,e={}){if(typeof t!="string")throw new TypeError("basePortletURL parameter must be a string");if(!e||typeof e!="object")throw new TypeError("parameters argument must be an object");let n=new Set(["doAsGroupId","doAsUserId","doAsUserLanguageId","p_auth","p_auth_secret","p_f_id","p_j_a_id","p_l_id","p_l_reset","p_p_auth","p_p_cacheability","p_p_i_id","p_p_id","p_p_isolated","p_p_lifecycle","p_p_mode","p_p_resource_id","p_p_state","p_p_state_rcv","p_p_static","p_p_url_type","p_p_width","p_t_lifecycle","p_v_l_s_g_id","refererGroupId","refererPlid","saveLastPath","scroll"]);t.indexOf(Liferay.ThemeDisplay.getPortalURL())!==0&&!Ki(t)&&(t.indexOf("/")!==0?t=`${Liferay.ThemeDisplay.getPortalURL()}/${t}`:t=Liferay.ThemeDisplay.getPortalURL()+t);let i=new URL(t),o=new URLSearchParams(i.search),r=e.p_p_id||o.get("p_p_id");if(Object.entries(e).length&&!r)throw new TypeError("Portlet ID must not be null if parameters are provided");let a="";return Object.entries(e).length&&(a=he(r)),Object.keys(e).forEach(s=>{let l;n.has(s)?l=s:l=`${a}${s}`,o.set(l,e[s])}),i.search=o.toString(),i}var We,Yi=new Uint8Array(16);function jt(){if(!We&&(We=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!We))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return We(Yi)}var T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function Fn(t,e=0){return(T[t[e+0]]+T[t[e+1]]+T[t[e+2]]+T[t[e+3]]+"-"+T[t[e+4]]+T[t[e+5]]+"-"+T[t[e+6]]+T[t[e+7]]+"-"+T[t[e+8]]+T[t[e+9]]+"-"+T[t[e+10]]+T[t[e+11]]+T[t[e+12]]+T[t[e+13]]+T[t[e+14]]+T[t[e+15]]).toLowerCase()}var Ji=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bt={randomUUID:Ji};function Zi(t,e,n){if(Bt.randomUUID&&!e&&!t)return Bt.randomUUID();t=t||{};let i=t.random||(t.rng||jt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){n=n||0;for(let o=0;o<16;++o)e[n+o]=i[o];return e}return Fn(i)}var qt=Zi;var Qi={EDIT:"edit",HELP:"help",VIEW:"view",MAXIMIZED:"maximized",MINIMIZED:"minimized",NORMAL:"normal",FULL:"cacheLevelFull",PAGE:"cacheLevelPage",PORTLET:"cacheLevelPortlet"};var D=Qi;var Wt=class t{constructor(e){_(e)?this.from(e):(this.parameters={},this.portletMode=D.VIEW,this.windowState=D.NORMAL)}clone(){return new t(this)}from(e){this.parameters={}
10,Object.keys(e.parameters).forEach(n=>{Array.isArray(e.parameters[n])&&(this.parameters[n]=e.parameters[n].slice(0))}),this.setPortletMode(e.portletMode),this.setWindowState(e.windowState)}getPortletMode(){return this.portletMode}getValue(e,n){if(typeof e!="string")throw new TypeError("Parameter name must be a string");let i=this.parameters[e];return Array.isArray(i)&&(i=i[0]),i===void 0&&n!==void 0&&(i=n),i}getValues(e,n){if(typeof e!="string")throw new TypeError("Parameter name must be a string");let i=this.parameters[e];return i||n}getWindowState(){return this.windowState}remove(e){if(typeof e!="string")throw new TypeError("Parameter name must be a string");this.parameters[e]!==void 0&&delete this.parameters[e]}setPortletMode(e){if(typeof e!="string")throw new TypeError("Portlet Mode must be a string");(e===D.EDIT||e===D.HELP||e===D.VIEW)&&(this.portletMode=e)}setValue(e,n){if(typeof e!="string")throw new TypeError("Parameter name must be a string");if(typeof n!="string"&&n!==null&&!Array.isArray(n))throw new TypeError("Parameter value must be a string, an array or null");Array.isArray(n)||(n=[n]),this.parameters[e]=n}setValues(e,n){this.setValue(e,n)}setWindowState(e){if(typeof e!="string")throw new TypeError("Window State must be a string");(e===D.MAXIMIZED||e===D.MINIMIZED||e===D.NORMAL)&&(this.windowState=e)}};var Vt=Wt;var eo="0",to="p_p_cacheability",$n="p_p_hub",no="1",io="p_p_mode",Bn="p_r_p_",Gt="priv_r_p_",oo="p_p_resource_id",J="&",ro="",W="=",so="",ao="p_p_state",qn=function(t,e){let n=!1;t===void 0&&e===void 0&&(n=!0),(t===void 0||e===void 0)&&(n=!1),t.length!==e.length&&(n=!1);for(let i=t.length-1;i>=0;i--)t[i]!==e[i]&&(n=!1);return n},lo=function(t,e,n){let i=!1;if(t&&t.portlets&&t.portlets[n]){let r=t.portlets[n].state;if(!e.portletMode||!e.windowState||!e.parameters)throw new Error(`Error decoding state: ${e}`);e.porletMode!==r.portletMode||e.windowState!==r.windowState?i=!0:(Object.keys(e.parameters).forEach(l=>{let c=e.parameters[l],d=r.parameters[l];qn(c,d)||(i=!0)}),Object.keys(r.parameters).forEach(l=>{e.parameters[l]||(i=!0)}))}return i},Wn=function(t,e){let n=t&&t.portlets?t.portlets:{};try{let i=JSON.parse(e);i.portlets&&Object.keys(n).forEach(r=>{let a=i.portlets[r].state,s=n[r].state;if(!a||!s)throw new Error(`Invalid update string. 11old state=${s} 12new state=${a}`);lo(t,a,r)&&(n[r]=i.portlets[r])})}catch{}return n},co=function(t,e){let n=[];for(let i=0;i<e.elements.length;i++){let o=e.elements[i],r=o.name,a=o.nodeName.toUpperCase(),s=a==="INPUT"?o.type.toUpperCase():"",l=o.value;if(r&&!o.disabled&&s!=="FILE"){if(a==="SELECT"&&o.multiple)[...o.options].forEach(d=>{if(d.checked){let u=d.value,f=encodeURIComponent(t+r)+"="+encodeURIComponent(u);n.push(f)}});else if(s!=="CHECKBOX"&&s!=="RADIO"||o.checked){let c=encodeURIComponent(t+r)+"="+encodeURIComponent(l);n.push(c)}}}return n.join("&")},Ve=function(t,e){let n="";return Array.isArray(e)&&(e.length?e.forEach(i=>{n+=J+encodeURIComponent(t),i===null?n+=W+so:n+=W+encodeURIComponent(i)}):n+=J+encodeURIComponent(t)+W+ro),n},Vn=function(t,e,n){let i={credentials:"same-origin",method:"POST",url:e};if(n)if(n.enctype==="multipart/form-data"){let r=new FormData(n);i.body=r}else{let r=co(t,n);(n.method?n.method.toUpperCase():"GET")==="GET"?(e.indexOf("?")>=0?e+=`&${r}`:e+=`?${r}`,i.url=e):(i.body=r,i.headers={"Content-Type":"application/x-www-form-urlencoded"})}return i},jn=function(t,e,n,i,o){let r="";if(t.portlets&&t.portlets[e]){let a=t.portlets[e];if(a&&a.state&&a.state.parameters){let s=a.state.parameters[n];s!==void 0&&(i===Bn?r+=Ve(o,s):i===Gt?r+=Ve(e+Gt+n,s):r+=Ve(e+n,s))}}return r},fo=function(t,e){let n="";if(t.portlets){let i=t.portlets[e];if(i.state){let o=i.state;n+=J+io+W+encodeURIComponent(o.portletMode),n+=J+ao+W+encodeURIComponent(o.windowState)}}return n},uo=function(t,e,n,i){let o=!1;if(t&&t.portlets){let r=t.portlets[e];if(n.parameters[i]&&r.state.parameters[i]){let a=n.parameters[i],s=r.state.parameters[i];o=qn(a,s)}}return o},Gn=function(t,e,n){let i={};if(t&&t.portlets){let o=t.portlets[e];if(o&&o.pubParms){let r=o.pubParms;Object.keys(r).forEach(s=>{if(!uo(t,e,n,s)){let l=r[s];i[l]=n.parameters[s]}})}}return i},po=function(t,e,n){let i=!1;if(t&&t.portlets){let o=t.portlets[e];o&&o.pubParms&&(i=Object.keys(o.pubParms).includes(n))}return i},xe=function(t,e,n,i,o,r){let a="cacheLevelPage",s="",l="";if(t&&t.portlets){e==="RENDER"&&n===void 0&&(n=null);let c=t.portlets[n];if(c&&(e==="RESOURCE"?(l=decodeURIComponent(c.encodedResourceURL),o&&(a=o),l+=J+to+W+encodeURIComponent(a),r&&(l+=J+oo+W+encodeURIComponent(r))):e==="RENDER"&&n!==null?l=decodeURIComponent(c.encodedRenderURL):e==="RENDER"?l=decodeURIComponent(t.encodedCurrentURL):e==="ACTION"?(l=decodeURIComponent(c.encodedActionURL),l+=J+$n+W+encodeURIComponent(eo)):e==="PARTIAL_ACTION"&&(l=decodeURIComponent(c.encodedActionURL),l+=J+$n+W+encodeURIComponent(no)),e!=="RESOURCE"||a!=="cacheLevelFull")){if(n&&(l+=fo(t,n)),n&&(s="",c.state&&c.state.parameters)){let d=c.state.parameters;
12Object.keys(d).forEach(f=>{po(t,n,f)||(s+=jn(t,n,f,Gt))}),l+=s}if(t.prpMap){s="";let d={};Object.keys(t.prpMap).forEach(f=>{Object.keys(t.prpMap[f]).forEach(p=>{let h=t.prpMap[f][p].split("|");Object.hasOwnProperty.call(d,f)||(d[f]=jn(t,h[0],h[1],Bn,f),s+=d[f])})}),l+=s}}}return i&&(s="",Object.keys(i).forEach(d=>{s+=Ve(n+d,i[d])}),l+=s),Promise.resolve(l)},Pe=function(t=[],e=0,n=1,i=[]){if(t.length<e)throw new TypeError(`Too few arguments provided: Number of arguments: ${t.length}`);if(t.length>n)throw new TypeError(`Too many arguments provided: ${[].join.call(t,", ")}`);if(Array.isArray(i)){let o=Math.min(t.length,i.length)-1;for(o;o>=0;o--){if(typeof t[o]!==i[o])throw new TypeError(`Parameter ${o} is of type ${typeof t[o]} rather than the expected type ${i[o]}`);if(t[o]===null||t[o]===void 0)throw new TypeError(`Argument is ${typeof t[o]}`)}}},Xn=function(t){if(!(t instanceof HTMLFormElement))throw new TypeError("Element must be an HTMLFormElement");let e=t.method?t.method.toUpperCase():void 0;if(e&&e!=="GET"&&e!=="POST")throw new TypeError(`Invalid form method ${e}. Allowed methods are GET & POST`);let n=t.enctype;if(n&&n!=="application/x-www-form-urlencoded"&&n!=="multipart/form-data")throw new TypeError(`Invalid form enctype ${n}. Allowed: 'application/x-www-form-urlencoded' & 'multipart/form-data'`);if(n&&n==="multipart/form-data"&&e!=="POST")throw new TypeError("Invalid method with multipart/form-data. Must be POST");if(!n||n==="application/x-www-form-urlencoded"){let i=t.elements.length;for(let o=0;o<i;o++)if(t.elements[o].nodeName.toUpperCase()==="INPUT"&&t.elements[o].type.toUpperCase()==="FILE")throw new TypeError("Must use enctype = 'multipart/form-data' with input type FILE.")}},Ae=function(t){if(t==null)throw new TypeError(`The parameter object is: ${typeof t}`);Object.keys(t).forEach(n=>{if(!Array.isArray(t[n]))throw new TypeError(`${n} parameter is not an array`);if(!t[n].length)throw new TypeError(`${n} parameter is an empty array`)})},zn=function(t={},e=""){return t.portlets&&Object.keys(t.portlets).includes(e)},Kn=function(t={},e={}){Ae(t.parameters);let n=t.portletMode;if(typeof n!="string")throw new TypeError(`Invalid parameters. portletMode is ${typeof n}`);{let o=e.allowedPM;if(!o.includes(n.toLowerCase()))throw new TypeError(`Invalid portletMode=${n} is not in ${o}`)}let i=t.windowState;if(typeof i!="string")throw new TypeError(`Invalid parameters. windowState is ${typeof i}`);{let o=e.allowedWS;if(!o.includes(i.toLowerCase()))throw new TypeError(`Invalid windowState=${i} is not in ${o}`)}};var mo=window.history&&window.history.pushState,ho="^portlet[.].*",U=!1,k={},Z=[],E,Xt=class{constructor(e){this._portletId=e,this.constants={...D},E||(E=global.portlet.data.pageRenderState,this._updateHistory(!0)),this.portletModes=E.portlets[this._portletId].allowedPM.slice(0),this.windowStates=E.portlets[this._portletId].allowedWS.slice(0)}_executeAction(e,n){return new Promise((i,o)=>{xe(E,"ACTION",this._portletId,e).then(r=>{let a=Vn(this._portletId,r,n);C(a.url,a).then(s=>s.text()).then(s=>{let l=this._updatePageStateFromString(s,this._portletId);i(l)}).catch(s=>{o(s)})})})}_hasListener(e){return Object.keys(k).map(i=>k[i].id).includes(e)}_reportError(e,n){Object.keys(k).map(i=>{let o=k[i];return o.id===e&&o.type==="portlet.onError"&&setTimeout(()=>{o.handler("portlet.onError",n)}),!1})}_setPageState(e,n){if(typeof n!="string")throw new TypeError(`Invalid update string: ${n}`);this._updatePageState(n,e).then(i=>{this._updatePortletStates(i)},i=>{U=!1,this._reportError(e,i)})}_setState(e){let n=Gn(E,this._portletId,e),i=[];Object.keys(n).forEach(a=>{let s=n[a],l=E.prpMap[a];Object.keys(l).forEach(d=>{if(d!==this._portletId){let u=l[d].split("|"),f=u[0],g=u[1];s===void 0?delete E.portlets[f].state.parameters[g]:E.portlets[f].state.parameters[g]=[...s],i.push(f)}})});let r=this._portletId;return E.portlets[r].state=e,i.push(r),i.forEach(a=>{E.portlets[a].renderData.content=null}),this._updateHistory(),Promise.resolve(i)}_setupAction(e,n){if(this.isInProgress())throw{message:"Operation is already in progress",name:"Acce
12ssDeniedException"};if(!this._hasListener(this._portletId))throw{message:`No onStateChange listener registered for portlet: ${this._portletId}`,name:"NotInitializedException"};return U=!0,this._executeAction(e,n).then(i=>this._updatePortletStates(i).then(o=>(U=!1,o)),i=>{U=!1,this._reportError(this._portletId,i)})}_updateHistory(e){mo&&xe(E,"RENDER",null,{}).then(n=>{let i=JSON.stringify(E);if(e)history.replaceState(i,"");else try{history.pushState(i,"",n)}catch{}})}_updatePageState(e){return new Promise((n,i)=>{try{let o=this._updatePageStateFromString(e,this._portletId);n(o)}catch(o){i(new Error(`Partial Action decode status: ${o.message}`))}})}_updatePageStateFromString(e,n){let i=Wn(E,e),o=[],r=!1;return Object.entries(i).forEach(([s,l])=>{E.portlets[s]=l,o.push(s),r=!0}),r&&n&&this._updateHistory(),o}_updatePortletStates(e){return new Promise(n=>{e.length?e.forEach(i=>{this._updateStateForPortlet(i)}):U=!1,n(e)})}_updateState(e){if(U)throw{message:"Operation in progress",name:"AccessDeniedException"};if(!this._hasListener(this._portletId))throw{message:`No onStateChange listener registered for portlet: ${this._portletId}`,name:"NotInitializedException"};U=!0,this._setState(e).then(n=>{this._updatePortletStates(n)}).catch(n=>{U=!1,this._reportError(this._portletId,n)})}_updateStateForPortlet(e){let n=Z.map(o=>o.handle);Object.entries(k).forEach(([o,r])=>{r.type==="portlet.onStateChange"&&r.id===e&&!n.includes(o)&&Z.push(r)}),Z.length&&setTimeout(()=>{for(U=!0;Z.length;){let o=Z.shift(),r=o.handler,a=o.id;if(!E.portlets[a])continue;let s=E.portlets[a].renderData,l=new Vt(E.portlets[a].state);s&&s.content?r("portlet.onStateChange",l,s):r("portlet.onStateChange",l)}U=!1})}action(...e){let n=null,i=0,o=null;return e.forEach(r=>{if(r instanceof HTMLFormElement){if(o!==null)throw new TypeError(`Too many [object HTMLFormElement] arguments: ${r}, ${o}`);o=r}else if(_(r)){if(Ae(r),n!==null)throw new TypeError("Too many parameters arguments");n=r}else if(r!==void 0){let a=Object.prototype.toString.call(r);throw new TypeError(`Invalid argument type. Argument ${i+1} is of type ${a}`)}i++}),o&&Xn(o),this._setupAction(n,o).then(r=>{Promise.resolve(r)}).catch(r=>{Promise.reject(r)})}addEventListener(e,n){if(arguments.length>2)throw new TypeError("Too many arguments passed to addEventListener");if(typeof e!="string"||typeof n!="function")throw new TypeError("Invalid arguments passed to addEventListener");let i=this._portletId;if(e.startsWith("portlet.")&&e!=="portlet.onStateChange"&&e!=="portlet.onError")throw new TypeError(`The system event type is invalid: ${e}`);let o=qt(),r={handle:o,handler:n,id:i,type:e};return k[o]=r,e==="portlet.onStateChange"&&this._updateStateForPortlet(this._portletId),o}createResourceUrl(e,n,i){if(arguments.length>3)throw new TypeError("Too many arguments. 3 arguments are allowed.");if(e)if(_(e))Ae(e);else throw new TypeError("Invalid argument type. Resource parameters must be a parameters object.");let o=null;if(n)if(typeof n=="string")if(n==="cacheLevelPage"||n==="cacheLevelPortlet"||n==="cacheLevelFull")o=n;else throw new TypeError(`Invalid cacheability argument: ${n}`);else throw new TypeError("Invalid argument type. Cacheability argument must be a string.");if(o||(o="cacheLevelPage"),i&&typeof i!="string")throw new TypeError("Invalid argument type. Resource ID argument must be a string.");return xe(E,"RESOURCE",this._portletId,e,o,i)}dispatchClientEvent(e,n){if(Pe(arguments,2,2,["string"]),e.match(new RegExp(ho)))throw new TypeError("The event type is invalid: "+e);return Object.keys(k).reduce((i,o)=>{let r=k[o];return e.match(r.type)&&(r.handler(e,n),i++),i},0)}isInProgress(){return U}newParameters(e={}){let n={};return Object.keys(e).forEach(i=>{Array.isArray(e[i])&&(n[i]=[...e[i]])}),n}newState(e){return new Vt(e)}removeEventListener(e){if(arguments.length>1)throw new TypeError("Too many arguments passed to removeEventListener");if(e==null)throw new TypeError(`The event handle provided is ${typeof e}`);let n=!1;if(_(k[e])&&k[e].id===this._portletId){delete k[e];let i=Z.length;for(let o=0;o<i;o++){let r=Z[o];r&&r.handle===e&&Z.splice(o,1)}n=!0}if(!n)throw new TypeError("The event listener handle doesn't match any listeners.")}setRenderState(e){if(Pe(arguments,1,1,["object"]),E.portlets&&E.portlets[this._portletId]){let n=E.portlets[this._portletId];Kn(e,n),this._updateState(e)}}startPartialAction(e){let n=this,i=null;if(arguments.length>1)throw new TypeError("Too many arguments. 1 arguments are allowed");if(e!==void 0)if(_(e))Ae(e),i=e;else throw new TypeError(`Invalid argument type. Argument is of type ${typeof e}`);
12if(U===!0)throw{message:"Operation in progress",name:"AccessDeniedException"};if(!this._hasListener(this._portletId))throw{message:`No onStateChange listener registered for portlet: ${this._portletId}`,name:"NotInitializedException"};U=!0;let o={setPageState(r){n._setPageState(n._portletId,r)},url:""};return xe(E,"PARTIAL_ACTION",this._portletId,i).then(r=>(o.url=r,o))}};var Yn=Xt;var go=function(t){Pe(arguments,1,1,["string"]);let e=global.portlet.data.pageRenderState;return new Promise((n,i)=>{zn(e,t)?n(new Yn(t)):i(new Error("Invalid portlet ID"))})};var Jn=go;function Zn(t,e,n){n={doAsUserId:themeDisplay.getDoAsUserIdEncoded(),plid:themeDisplay.getPlid(),...n};let i=document.querySelector(t);if(i){let o=i.querySelector(".portlet-content-container");if(o){let r=o.classList.contains("d-none");if(r?(o.classList.remove("d-none"),i.classList.remove("portlet-minimized")):(o.classList.add("d-none"),i.classList.add("portlet-minimized")),e){let l=r?Liferay.Language.get("minimize"):Liferay.Language.get("restore");e.setAttribute("alt",l),e.setAttribute("title",l),e.innerHTML=l;let c=e.querySelector("i");c&&(c.classList.remove("icon-minus","icon-resize-vertical"),r?(c.classList.add("icon-minus"),c.classList.remove("icon-resize-vertical")):(c.classList.add("icon-resize-vertical"),c.classList.remove("icon-minus")))}let a=me(i.id),s=H({cmd:"minimize",doAsUserId:n.doAsUserId,p_auth:Liferay.authToken,p_l_id:n.plid,p_p_id:a,p_p_restore:r,p_v_l_s_g_id:themeDisplay.getSiteGroupId()});C(themeDisplay.getPathMain()+"/portal/update_layout",{body:s,method:"POST"}).then(l=>{if(l.ok&&r){let c={doAsUserId:n.doAsUserId,p_l_id:n.plid,p_p_boundary:!1,p_p_id:a,p_p_isolated:!0};C(O(themeDisplay.getPathMain()+"/portal/render_portlet",c)).then(d=>d.text()).then(d=>{let u=document.createRange();u.selectNode(i),i.innerHTML="";let f=u.createContextualFragment(d);i.appendChild(f)}).catch(d=>{})}}).catch(l=>{})}}}var Qn={register:Jn};function Ue(t,e){let n=null,i;return function(...o){let r=this,a=Date.now(),s=()=>{n=setTimeout(()=>{n=null},e),i=a,t.apply(r,o)};if(n===null)s();else{let l=Math.max(i+e-a,0);clearTimeout(n),n=setTimeout(s,l)}}}var yo=document.currentScript.src,_o={breakpoint:576,content:".sidenav-content",gutter:"12px",loadingIndicatorTPL:'<div class="loading-animation loading-animation-md"></div>',navigation:".sidenav-menu-slider",position:"left",type:"relative",typeMobile:"relative",url:null,width:"225px"},Xe=new WeakMap;function le(t){if(t&&t.jquery){if(t.length>1)throw new Error(`getElement(): Expected at most one element, got ${t.length}`);t=t.get(0)}return t&&!(t instanceof HTMLElement)&&(t=t.element),t}function zt(t){return t=le(t),Xe.get(t)}var Eo=[/^aria-/,/^data-/,/^type$/];function Lo(t){if(t=le(t),t.id)return`#${t.id}`;let e=t.parentNode;for(;e&&!e.id;)e=e.parentNode;let n=Array.from(t.attributes).map(({name:i,value:o})=>Eo.some(a=>a.test(i))?`[${i}=${JSON.stringify(o)}]`:null).filter(Boolean).sort();return[e?`#${e.id} `:"",t.tagName.toLowerCase(),...n].join("")}function G(t,e,n=null){let i=new CustomEvent(e,{detail:n});t.dispatchEvent(i)}function M(t,e){w(t,{[e]:!0})}function V(t,e){w(t,{[e]:!1})}function w(t,e){t=le(t),t&&Object.entries(e).forEach(([n,i])=>{n.split(/\s+/).forEach(o=>{i?t.classList.add(o):t.classList.remove(o)})})}function b(t,e){return t=le(t),e.split(/\s+/).every(n=>t.classList.contains(n))}function v(t,e){t=le(t),t&&Object.entries(e).forEach(([n,i])=>{t.style[n]=i})}function j(t){return typeof t=="number"?t+"px":typeof t=="string"&&t.match(/^\s*\d+\s*$/)?t.trim()+"px":t}function Ge(t){let e=t.getBoundingClientRect().left,n=t.ownerDocument.defaultView.pageOffsetX||0;return e+n}var Oe={};function So(t,e){Object.keys(Oe[t]).forEach(n=>{let i=!1,o=e.target;for(;o&&(i=o.matches&&o.matches(n),!i);)o=o.parentNode;i&&Oe[t][n].emit("click",e)})}var ge;function To(){ge||(ge=Ue(()=>{G(document,"screenChange.lexicon.sidenav")},150),window.addEventListener("resize",ge))}function ei(t,e,n){if(t){Oe[e]||(Oe[e]={},document.addEventListener(e,s=>So(e,s)));let i=Oe[e],o=typeof t=="string"?t:Lo(t);i[o]||(i[o]=new Ce);let a=i[o].on(e,s=>{s.defaultPrevented||n(s)});return{dispose(){a.dispose()}}}return null}function Re(t){return parseInt(t,10)||0}function B(t,e){t=le(t),this.init(t,e)}B.TRANSITION_DURATION=500;B.prototype={_bindUI(){this._subscribeClickTrigger(),this._subscribeReducedMotion(),this._subscribeClickSidenavClose()},_emit(t){this._emitter.emit(t,this)},_focusNavigation(){let t=document.querySelector(this.options.container);if(!t)return;let e=t.querySelector(this.options.navigation);if(!e){t.focus();return}
12e.focus()},_focusTrigger(){let t=this.toggler;!t||!document.activeElement.classList.contains("sidenav-close")||t.focus()},_getSidenavWidth(){let e=this.options.widthOriginal,n=e,i=window.innerWidth;return i<e+40&&(n=i-40),n},_getSimpleSidenavType(){let t=this._getType();return this._isDesktop()&&t==="fixed-push"?"desktop-fixed-push":!this._isDesktop()&&t==="fixed-push"?"mobile-fixed-push":"fixed"},_getType(){return this._isDesktop()?this.options.type:this.options.typeMobile},_isDesktop(){return window.innerWidth>=this.options.breakpoint},_isSidenavRight(){let t=this.options,e=document.querySelector(t.container);return e?b(e,"sidenav-right"):void 0},_isSimpleSidenavClosed(){let t=this.options,e=t.openClass,n=document.querySelector(t.container);if(n)return!b(n,e)},_loadUrl(t,e){let n=this,i=t.querySelector(".sidebar-body");if(!n._fetchPromise&&i){for(;i.firstChild;)i.removeChild(i.firstChild);let o=document.createElement("div");M(o,"sidenav-loading"),o.innerHTML=n.options.loadingIndicatorTPL,i.appendChild(o),n._fetchPromise=C(e),n._fetchPromise.then(r=>{if(!r.ok)throw new Error(`Failed to fetch ${e}`);return r.text()}).then(r=>{let a=document.createRange();a.selectNode(i);let s=a.createContextualFragment(r);i.removeChild(o),i.appendChild(s),n.setHeight()}).catch(r=>{console.error(r)})}},_onClosed(){let t=this.options,e=document.querySelector(t.container);e&&(this._handleClosed||(this._handleClosed=()=>
12{this._getType()==="relative"&&b(e,"open")&&V(e,"sidenav-transition")},document.addEventListener("closed.lexicon.sidenav",this._handleClosed)))},_onClosedStart(){let t=this.options,e=document.querySelector(t.container),n=document.querySelector(t.content);!e||!n||this._handleClosedStart||(this._handleClosedStart=()=>{if(this._getType()==="relative"&&b(e,"open")&&n.closest(".page-maximized")){let o=document.body.scrollWidth-n.getBoundingClientRect().right,r=t.gutter+t.width,a=getComputedStyle(n).maxWidth||getComputedStyle(n).width;/px$/.test(a)&&(o=(document.body.scrollWidth-Re(a))/2,o>t.width?r="":o>0&&o<t.width&&(r=t.gutter+t.width-o)),this.isReducedMotion()||M(e,"sidenav-transition"),v(n,{"padding-right":j(r)})}},document.addEventListener("closedStart.lexicon.sidenav",this._handleClosedStart))},_onOpen(){let t=this.options,e=document.querySelector(t.container);e&&(this._handleOpen||(this._handleOpen=()=>{this._getType()==="relative"&&b(e,"open")&&V(e,"sidenav-transition")},document.addEventListener("open.lexicon.sidenav",this._handleOpen)))},_onOpenStart(){let t=this.options,e=document.querySelector(t.container),n=document.querySelector(t.content);!e||!n||this._handleOpenStart||(this._handleOpenStart=i=>
12{if(this._getType()==="relative"&&b(e,"open")&&n.closest(".page-maximized")){let r=document.querySelector(i.detail.options.container+" .sidenav-menu");if(!r)return;let a=r.getBoundingClientRect().width,s=document.body.scrollWidth-n.getBoundingClientRect().right-a/2,l=s>0?t.width+t.gutter-s:t.width+t.gutter;this.isReducedMotion()||M(e,"sidenav-transition"),v(n,{"padding-right":j(l)})}},document.addEventListener("openStart.lexicon.sidenav",this._handleOpenStart))},_onScreenChange(){let t=this.options,e=document.querySelector(t.container),n=document.querySelector(t.content);if(!e||!n)return;let i=this._isDesktop();this._handleOnScreenChange||(this._handleOnScreenChange=()=>{let o=this._getType();o==="relative"&&b(e,"open")&&(this.setHeight(),this.setWidth()),this._isDesktop()!==i&&(o!=="relative"?(M(e,"sidenav-fixed"),n.style.paddingRight="",n.style.minHeight=""):V(e,"sidenav-fixed"),i=this._isDesktop())},document.addEventListener("screenChange.lexicon.sidenav",this._handleOnScreenChange))},_renderNav(){let t=this.options,e=document.querySelector(t.container),n=e.querySelector(t.navigation);if(!e||!n)return;let i=n.querySelector(".sidenav-menu"),o=b(e,"closed"),r=this._isSidenavRight(),a=this._getSidenavWidth();if(o){if(v(i,{width:j(a)}),r){let s=t.rtl?"left":"right";v(i,{[s]:j(a)})}}else this.showSidenav(),this.setHeight()},_renderUI(){let t=this.options,e=document.querySelector(t.container);if(!e)return;let n=this.toggler,i=this._getType();this.useDataAttribute||(To(),this._onClosedStart(),this._onClosed(),this._onOpenStart(),this._onOpen(),this._onScreenChange(),this._isDesktop()||(w(e,{closed:!0,open:!1}),w(n,{active:!1,open:!1})),t.position==="right"&&M(e,"sidenav-right"),i!=="relative"&&M(e,"sidenav-fixed"),this._renderNav()),v(e,{display:""})},_subscribeClickSidenavClose(){let t=this,n=t.options.container;if(!t._sidenavCloseSubscription){let i=`${n} .sidenav-close`;t._sidenavCloseSubscription=ei(i,"click",function(r){r.preventDefault(),t.toggle()})}},_subscribeClickTrigger(){let t=this;if(!t._togglerSubscription){let e=t.toggler;t._togglerSubscription=ei(e,"click",function(i){t.toggle(),i.preventDefault()})}},_subscribeReducedMotion(){let t=this;import(Liferay.FrontendESM.buildURL(yo,"accessibility-settings-state-web","index")).then(({isReducedMotion:e})=>{t.isReducedMotion=e})},_subscribeSidenavTransitionEnd(t,e){this.isReducedMotion()?(V(t,"sidenav-transition"),e()):setTimeout(()=>{V(t,"sidenav-transition"),e()},B.TRANSITION_DURATION)},clearHeight(){let t=this.options,e=document.querySelector(t.container);if(e){let n=e.querySelector(t.content),i=e.querySelector(t.navigation),o=e.querySelector(".sidenav-menu");[n,i,o].forEach(r=>{v(r,{height:"","min-height":""})})}},destroy(){let t=this;t._sidenavCloseSubscription&&(t._sidenavCloseSubscription.dispose(),t._sidenavCloseSubscription=null),t._togglerSubscription&&(t._togglerSubscription.dispose(),t._togglerSubscription=null),Xe.delete(t.toggler),document.removeEventListener("closedStart.lexicon.sidenav",t._handleClosedStart),document.removeEventListener("closed.lexicon.sidenav",t._handleClosed),document.removeEventListener("openStart.lexicon.sidenav",t._handleOpenStart),document.removeEventListener("open.lexicon.sidenav",t._handleOpen),document.removeEventListener("screenChange.lexicon.sidenav",t._handleOnScreenChange),ge&&(window.removeEventListener("resize",ge),ge=null)},hide(){this.useDataAttribute?this.hideSimpleSidenav():this.toggleNavigation(!1)},hideSidenav(){let t=this,e=t.options,n=document.querySelector(e.container);if(n){let i=n.querySelector(e.content),o=n.querySelector(e.navigation),r=o.querySelector(".sidenav-menu"),a=t._isSidenavRight(),s=e.rtl?"right":"left";a&&(s=e.rtl?"left":"right");let l="padding-"+s;v(i,{[l]:"",[s]:""}),v(o,{width:""}),a&&v(r,{[s]:j(t._getSidenavWidth())}),t._subscribeSidenavTransitionEnd(r,()=>{t._focusTrigger()})}},hideSimpleSidenav(){let t=this,e=t.options;if(!t._isSimpleSidenavClosed()){let i=document.querySelector(e.container),o=document.querySelector(e.content);if(!i||!o)return;let r=e.closedClass,a=e.openClass,s=t.toggler,l=s.dataset.target||s.getAttribute("href");
12t._emit("closedStart.lexicon.sidenav"),G(document,"closedStart.lexicon.sidenav",t),t._subscribeSidenavTransitionEnd(o,()=>{V(i,"sidenav-transition"),V(s,"sidenav-transition"),t._emit("closed.lexicon.sidenav"),G(document,"closed.lexicon.sidenav",t),t._focusTrigger()});let c=t.isReducedMotion();b(o,a)&&w(o,{[r]:!0,[a]:!1,"sidenav-transition":!c}),c||(M(i,"sidenav-transition"),M(s,"sidenav-transition")),w(i,{[r]:!0,[a]:!1});let d=document.querySelectorAll(`[data-target="${l}"], [href="${l}"]`);Array.from(d).forEach(u=>{w(u,{active:!1,[a]:!1}),w(u,{active:!1,[a]:!1})})}},init(t,e){let n=t.dataset.toggle==="liferay-sidenav";e={..._o,...e},e.breakpoint=Re(e.breakpoint),e.container=e.container||t.dataset.target||t.getAttribute("href"),e.gutter=Re(e.gutter),e.rtl=document.dir==="rtl",e.width=Re(e.width),e.widthOriginal=e.width,n&&(e.closedClass=t.dataset.closedClass||"closed",e.content=t.dataset.content,e.loadingIndicatorTPL=t.dataset.loadingIndicatorTpl||e.loadingIndicatorTPL,e.openClass=t.dataset.openClass||"open",e.type=t.dataset.type,e.typeMobile=t.dataset.typeMobile,e.url=t.dataset.url,e.width=""),this.toggler=t,this.options=e,this.useDataAttribute=n,this._emitter=new Ce,this._bindUI(),this._renderUI()},on(t,e){return this._emitter.on(t,e)},setHeight(){let t=this.options,e=document.querySelector(t.container);if(!e)return;let n=this._getType();if(n!=="fixed"&&n!=="fixed-push"){let i=e.querySelector(t.content),o=e.querySelector(t.navigation),r=e.querySelector(".sidenav-menu"),a=i.closest(".page-maximized")?window.innerHeight-r.getBoundingClientRect().top:i.getBoundingClientRect().height,s=o.getBoundingClientRect().height,l=j(Math.max(a,s));v(i,{"min-height":l}),v(o,{height:"100%","min-height":l}),v(r,{height:"100%","min-height":l})}},setWidth(){let t=this.options,e=document.querySelector(t.container),n=e.querySelector(t.content),i=e.querySelector(t.navigation);if(!e||!n||!i)return;let o=i.querySelector(".sidenav-menu"),r=this._isSidenavRight(),a=this._getSidenavWidth(),s=a+t.gutter,l=t.url;l&&this._loadUrl(o,l),v(i,{width:j(a)}),v(o,{width:j(a)});let c=t.rtl?"right":"left";r&&(c=t.rtl?"left":"right");let d="padding-"+c,u=this._isDesktop()?d:c,f=this._getType();if(f!=="relative"&&M(e,"sidenav-fixed"),f!=="fixed"){let g=b(e,"open")?Ge(i)-t.gutter:Ge(i)-s,p=Ge(n),y=Re(getComputedStyle(n).width),h="";t.rtl&&r||!t.rtl&&t.position==="left"?(g=Ge(i)+s,g>p&&(h=g-p)):(t.rtl&&t.position==="left"||!t.rtl&&r)&&g<p+y&&(h=p+y-g,h>=s&&(h=s)),v(n,{[u]:j(h)})}},show(){this.useDataAttribute?this.showSimpleSidenav():this.toggleNavigation(!0)},showSidenav(){let t=this,e=t.options,n=document.querySelector(e.container),i=n.querySelector(e.navigation);if(!n||!i)return;let o=i.querySelector(".sidenav-menu"),r=e.url;r&&t._loadUrl(o,r),t.setWidth(),t._subscribeSidenavTransitionEnd(o,()=>{t._focusNavigation()})},showSimpleSidenav(){let t=this,e=t.options;if(t._isSimpleSidenavClosed()){let i=document.querySelector(e.container),o=document.querySelector(e.content);if(!i||!o)return;let r=e.closedClass,a=e.openClass,s=t.toggler,l=s.dataset.url;l&&t._loadUrl(i,l),t._emit("openStart.lexicon.sidenav"),G(document,"openStart.lexicon.sidenav",t);let c=t.isReducedMotion();w(o,{[r]:!1,[a]:!0,"sidenav-transition":!c}),w(i,{[r]:!1,[a]:!0,"sidenav-transition":!c}),w(s,{active:!0,[a]:!0,"sidenav-transition":!c}),t._subscribeSidenavTransitionEnd(o,()=>{c||(V(i,"sidenav-transition"),V(s,"sidenav-transition")),t._emit("open.lexicon.sidenav"),G(document,"open.lexicon.sidenav",t),this._focusNavigation()})}},toggle(){this.useDataAttribute?this.toggleSimpleSidenav():this.toggleNavigation()},toggleNavigation(t){let e=this,n=e.options,i=e._getType(),o=document.querySelector(n.container),r=o.querySelector(".sidenav-menu");if(!o||!r)return;let a=e.toggler,s=n.width,l=typeof t=="boolean"?t:b(o,"closed"),c=e._isSidenavRight();if(l?(e._emit("openStart.lexicon.sidenav"),G(document,"openStart.lexicon.sidenav",e)):(e._emit
12("closedStart.lexicon.sidenav"),G(document,"closedStart.lexicon.sidenav",e)),e._subscribeSidenavTransitionEnd(o,()=>{let d=o.querySelector(".sidenav-menu");b(o,"closed")?(e.clearHeight(),w(a,{open:!1,"sidenav-transition":!1}),e._emit("closed.lexicon.sidenav"),G(document,"closed.lexicon.sidenav",e)):(w(a,{open:!0,"sidenav-transition":!1}),e._emit("open.lexicon.sidenav"),G(document,"open.lexicon.sidenav",e)),e._isDesktop()||d.focus()}),l){i==="relative"&&e.setHeight(),v(r,{width:j(s)});let d=n.rtl?"left":"right";c&&v(r,{[d]:""})}e.isReducedMotion()||(M(o,"sidenav-transition"),M(a,"sidenav-transition")),l?e.showSidenav():e.hideSidenav(),w(o,{closed:!l,open:l}),w(a,{active:l,open:l})},toggleSimpleSidenav(){this._isSimpleSidenavClosed()?this.showSimpleSidenav():this.hideSimpleSidenav()},visible(){let t;if(this.useDataAttribute)t=this._isSimpleSidenavClosed();else{let e=document.querySelector(this.options.container);if(!e)return;t=b(e,"sidenav-transition")?!b(e,"closed"):b(e,"closed")}return!t}};B.destroy=function(e){let n=zt(e);n&&n.destroy()};B.hide=function(e){let n=zt(e);n&&n.hide()};B.initialize=function(e,n={}){e=le(e);let i=Xe.get(e);return i||(i=new B(e,n),Xe.set(e,i)),i};B.instance=zt;function ti(){let t=document.querySelectorAll('[data-toggle="liferay-sidenav"]');Array.from(t).forEach(B.initialize)}document.readyState!=="loading"?ti():document.addEventListener("DOMContentLoaded",()=>{ti()});var ni=B;var Kt={BAD_REQUEST:400,INTERNAL_SERVER_ERROR:500,OK:200,SC_DUPLICATE_FILE_EXCEPTION:490,SC_FILE_ANTIVIRUS_EXCEPTION:494,SC_FILE_CUSTOM_EXCEPTION:499,SC_FILE_EXTENSION_EXCEPTION:491,SC_FILE_MIME_TYPE_EXCEPTION:496,SC_FILE_NAME_EXCEPTION:492,SC_FILE_SIZE_EXCEPTION:493,SC_UPLOAD_REQUEST_SIZE_EXCEPTION:495};function ze(t,e){if(!t||typeof t!="object"&&typeof t!="string")throw new TypeError("Parameter params must be an object or string");if(typeof e!="string")throw new TypeError("Parameter baseUrl must be a string");let n=e.startsWith("/")?new URL(e,location.href):new URL(e);return typeof t=="object"?Object.entries(t).forEach(([i,o])=>{n.searchParams.append(i,o)}):new URLSearchParams(t.trim()).forEach((o,r)=>{o?n.searchParams.append(r,o):n.searchParams.append(r,"")}),n.toString()}function Ke(t){if(typeof t!="function")throw new TypeError("Parameter callback must be a function");Liferay.Service("/country/get-company-countries",{active:!0,companyId:Liferay.ThemeDisplay.getCompanyId()},t)}function Ye(t,e){if(typeof t!="function")throw new TypeError("Parameter callback must be a function");if(typeof e!="string")throw new TypeError("Parameter selectKey must be a string");Liferay.Service("/region/get-regions",{active:!0,countryId:parseInt(e,10)},t)}var ce={FUNCTIONAL:"CONSENT_TYPE_FUNCTIONAL",NECESSARY:"CONSENT_TYPE_NECESSARY",PERFORMANCE:"CONSENT_TYPE_PERFORMANCE",PERSONALIZATION:"CONSENT_TYPE_PERSONALIZATION"};function Q(t){return t===ce.NECESSARY||Je(t,ce.NECESSARY)!=="false"}var ii=(t,e,n={})=>{let i=`${t}=${e}`;n.path||(i+="; path=/"),!n.expires&&!("max-age"in n)&&(i+=`; max-age=${365*24*60*60}`);for(let[o,r]of Object.entries(n))r!==!1&&(r===!0?i+=`; ${o}`:i+=`; ${o}=${r}`);return i};function Je(t,e){if(Q(e))return document.cookie.split("; ").find(n=>n.startsWith(`${t}=`))?.split("=")[1]}function Yt(t){document.cookie=ii(t,"",{"max-age":0})}function Jt(t,e,n,i){return Q(n)?(document.cookie=ii(t,e,i),!0):!1}var oi={TYPES:ce,get:Je,remove:Yt,set:Jt};function Ne(t){return t._node||t._nodes?t.nodeType?t:t._node||null:t}function ee(t){let e=Ne(t);return typeof e=="string"?document.querySelector(e):e.jquery?e[0]:e}function de(t,e,n){let i=!1;if(t=ee(t),t){n||(n=t.getBoundingClientRect(),n={left:n.left+window.scrollX,top:n.top+window.scrollY},n.bottom=n.top+t.offsetHeight,n.right=n.left+t.offsetWidth),e||(e=window),e=ee(e);let o={};if(o.left=e.scrollX,o.right=o.left+e.innerWidth,o.top=e.scrollY,o.bottom=o.top+e.innerHeight,i=n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right&&n.top>=o.top,i){let r=e.frameElement;if(r){let a=r.getBoundingClientRect();a={left:a.left+window.scrollX,top:a.top+window.scrollY};let s=a.left-o.left;n.left+=s,n.right+=s;let l=a.top-o.top;n.top+=l,n.bottom+=l,i=de(t,e.parent,n)}}}return i}function vo(t){let e=[];for(;t.parentElement;)t.parentElement.getAttribute("disabled")&&e.push(t.parentElement),t=t.parentElement;return e}function Ze(t){if(t=ee(t),de(t)){let e=vo(t),n=!t.getAttribute("disabled")&&t.offsetWidth>0&&t.offsetHeight>0&&!e.length,i=t.closest("form");if(!i||n)t.focus();else if(i){let r=i.dataset.fmNamespace+"formReady",a=s=>{let l=i.getAttribute("name"),c=s.formName;l===c&&(t.focus(),Liferay.detach(r,a))};Liferay.on(r,a)}}}function ye(t,e){let n=null;if(t!==void 0&&t.nodeName==="FORM"&&typeof e=="string"){let i=t.dataset.fmNamespace||"";n=t.elements[i+e]||null}return n}function _e(t,e){if(t===void 0||t.nodeName!=="FORM"||!_(e))return;Object.entries(e).forEach(([i,o])=>{let r=ye(t,i);r&&(r.value=o)})}function Qe(t,e){if(typeof t=="string"&&(t=document.querySelector(t)),t&&t.nodeName==="FORM")if(t.setAttribute("method","post"),_(e)){let{data:n,url:i}=e;if(_(n))_e(t,n);else return;i===void 0?submitForm(t):typeof i=="string"&&submitForm(t,i)}else submitForm(t)}var bo={addSpaceBeforeSuffix:!1,decimalSeparator:".",denominator:1024,suffixGB:"GB",suffixKB:"KB",suffixMB:"MB"};function et(t,e={}){let{addSpaceBeforeSuffix:n,decimalSeparator:i,denominator:o,suffixGB:r,suffixKB:a,suffixMB:s}={...bo,...e};if(typeof t!="number")throw new TypeError("Parameter size must be a number");let l=0,c=a;t/=o,t>=o&&(c=s,t/=o,l=1),t>=o&&(c=r,t/=o,l=1);let d=t.toFixed(l);return i!=="."&&(d=d.replace(/\./,i)),d+(n?" ":"")+c}var wo=`\r 13`,ri=/<!\[CDATA\[.*?\]\]>/gs,si=/-->|\]>/,Co=/<!/,Io=/<\?/,xo=/!DOCTYPE/,Po=/^<\w/,Ao=/^<\/\w/,Uo=/^<[\w:\-.,]+/,Ro=/^<\/[\w:\-.,]+/,ai=/<\w/,Oo=/xmlns(?::|=)/g,No=/\s*(xmlns)(:|=)/g,Zt=/<\//,Do=/</g,li=/\/>/,ko=/>\s+</g,Mo="",De="~::~",ci="<"+De+"CDATA"+De+">",Ho=new RegExp(ci,"g"),Fo=" ",$o={newLine:wo,tagIndent:Fo};function Qt(t,e={}){let{newLine:n,tagIndent:i}={...$o,...e};if(typeof t!="string")throw new TypeError("Parameter content must be a string");let o=[];t=t.trim(),t=t.replace(ri,d=>(o.push(d),ci)),t=t.replace(ko,"><"),t=t.replace(Do,De+"<"),t=t.replace(No,De+"$1$2"),t=t.replace(Ho,()=>o.shift());let r=0,a=!1,s=t.split(De),l=0,c="";
13return s.forEach((d,u)=>{ri.test(d)?c+=te(l,n,i)+d:Co.test(d)?(c+=te(l,n,i)+d,r++,a=!0,(si.test(d)||xo.test(d))&&(r--,a=r!==0)):si.test(d)?(c+=d,r--,a=r!==0):Po.exec(s[u-1])&&Ao.exec(d)&&Uo.exec(s[u-1]).toString()===Ro.exec(d)[0].replace("/",Mo).toString()?(c+=d,a||--l):ai.test(d)&&!Zt.test(d)&&!li.test(d)?a?c+=d:c+=te(l++,n,i)+d:ai.test(d)&&Zt.test(d)?a?c+=d:c+=te(l,n,i)+d:Zt.test(d)?a?c+=d:c+=te(--l,n,i)+d:li.test(d)?a?c+=d:c+=te(l,n,i)+d:Io.test(d)||Oo?c+=te(l,n,i)+d:c+=d,new RegExp("^"+n).test(c)&&(c=c.slice(n.length))}),c}function te(t,e,n){return e+new Array(t+1).join(n)}function di(t,e,n,i){typeof t=="string"?t=document.querySelector(t):t=t._node||t;let o="input[type=checkbox]";n&&(o+=`[name=${n}]`);let r=Array.from(t.querySelectorAll(o));return r.length?r.reduce((a,s)=>{let{checked:l,disabled:c,name:d,value:u}=s;return u&&d!==e&&l===i&&!c&&a.push(u),a},[]).join():""}function en(t,e,n){return di(t,e,n,!0)}function tn(t,e,n){return di(t,e,n,!1)}function tt(t,e){if(!_(t)||_(t)&&t.tagName!=="IMG")throw new TypeError("Parameter imagePreview must be an image");if(!_(e))throw new TypeError("Parameter region must be an object");let n=t.naturalWidth/t.offsetWidth,i=t.naturalHeight/t.offsetHeight,o=e.height?e.height*i:t.naturalHeight,r=e.width?e.width*n:t.naturalWidth,a=e.x?Math.max(e.x*n,0):0,s=e.y?Math.max(e.y*i,0):0;return{height:o,width:r,x:a,y:s}}function nt(t,e,n){t&&navigator.geolocation?navigator.geolocation.getCurrentPosition(i=>{t(i.coords.latitude,i.coords.longitude,i)},e,n):e&&e()}function Ee(t,e=""){if(!t)throw new TypeError("Parameter icon must be provided");function n(r,a){return`<svg 14 aria-hidden="true" 15 class="lexicon-icon lexicon-icon-${r} ${a}" 16 focusable="false" 17 role="presentation" 18 > 19 <use href="${Liferay.Icons.spritemap}#${r}" /> 20 </svg>`}let i=n(t,e),o=document.createElement("div");return o.innerHTML=i,o.firstChild}function it(t,e=""){return`<svg aria-hidden="true" class="lexicon-icon lexicon-icon-${t} ${e}" focusable="false" role="presentation"><use href="${Liferay.Icons.spritemap}#${t}" /></svg>`}var fi;function ot(){let t=fi;if(!t){let e=$().Liferay.Util,n=window.name,i=e.Window.getById(n);i&&(t=i._opener,fi=t)}return t||window.opener||window.parent}function rt(t,e=","){return Array.from(t.getElementsByTagName("option")).reduce((i,o)=>{let{value:r}=o;return r&&i.push(r),i},[]).join(e)}function nn(t){if(!themeDisplay.isAddSessionIdToURL())return t;let e=t.indexOf(";");if(e>-1)return t;let n=`;jsessionid=${themeDisplay.getSessionId()}`;if(e=t.indexOf("?"),e>-1)return`${t.substring(0,e)}${n}${t.substring(e)}`;if(e=t.indexOf("//"),e>-1){let i=t.lastIndexOf("/");if(e+1===i)return`${t}/${n}`}return`${t}${n}`}function st(t=window.name){return $().Liferay.Util.Window.getById(t)}function at(){return window.innerWidth<oe.PHONE}function lt(){return window.innerWidth<oe.TABLET}var fe=class{constructor(e){S(this,"TYPES",ce);this.storage=e}clear(){return this.storage.clear()}getItem(e,n){return Q(n)?this.storage.getItem(e):null}key(e,n){return Q(n)?this.storage.key(e):null}removeItem(e){return this.storage.removeItem(e)}setItem(e,n,i){return Q(i)?(this.storage.setItem(e,n),!0):!1}get length(){return this.storage.length}};var on=new fe(localStorage);function rn(t,e){let n=t;t?.constructor?.name==="URL"&&(n=String(t)),Liferay.SPA?.app?.canNavigate(n)?(Liferay.SPA.app.navigate(n),e&&Object.keys(e).forEach(i=>{Liferay.once(i,e[i])})):jo(n)&&(window.location.href=n)}function jo(t){let e;try{t.startsWith("/")?e=new URL(t,window.location.origin):e=new URL(t)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"}function ct(t){if(typeof t!="string")throw new TypeError("parameter text must be a string");return t.replace(/[^a-z0-9_-]/gi,"-").replace(/^-+/,"").replace(/--+/,"-").toLowerCase()}var ui=ae((t,e)=>(typeof e<"u"&&e.lastIndexOf(t,0)!==0&&(e=`${t}${e}`),e));function sn(t,e){let n;return typeof e!="object"?n=ui(t,e):(n={},Object.keys(e).forEach(o=>{let r=o;o=ui(t,o),n[o]=e[r]})),n}function an(t){if(!_(t))throw new TypeError("Parameter obj must be an object");let e=new URLSearchParams;return Object.entries(t).forEach(([n,i])=>{if(Array.isArray(i))for(let o=0;o<i.length;o++)e.append(n,i[o]);else e.append(n,i)}),e}var pi=new Map;function mi(t){return pi.get(t)}function hi(t,e){pi.set(t,e)}function dt(t,e={}){return O(t,{...e,p_p_lifecycle:"1"})}function ft(t,e={}){return O(t,{...e,p_p_lifecycle:"0"})}function ut(t,e={}){return O(t,{...e,p_p_lifecycle:"2"})}function pt(t,e,n,i){let o=document.getElementById(`${i}${t}`);o&&(o.value=0);let r=document.getElementById(`${i}${e}`);r&&(r.value=""),F(n,!0),Liferay.fire("entitySelectionRemoved")}function Bo(t,e,n){let{text:i,type:o}=t,r=document.createElement("script");Liferay.CSP.nonce&&r.setAttribute("nonce",Liferay.CSP.nonce),r.text=i,r.type=o,n?n(r):document.head.appendChild(r),r.remove(),e()}function qo(t,e,n){let{src:i,type:o}=t,r=document.createElement("script");Liferay.CSP.nonce&&r.setAttribute("nonce",Liferay.CSP.nonce),r.src=i,r.type=o;let a=function(){r.remove(),e()};r.addEventListener("load",a,{once:!0}),r.addEventListener("error",a,{once:!0}),n?n(r):document.head.appendChild(r)}function gi(t,e,n,i){let o=t[e],r=()=>{e<t.length-1?gi(t,e+1,n,i):n&&setTimeout(n)};if(o)o.type&&o.type!=="text/javascript"&&o.type!=="module"&&o.type!=="module-shim"?r():(o.remove(),o.src?qo(o,r,i):Bo(o,r,i));else return}function ln(t,e,n){let i=t.querySelectorAll("script");
20if(!i.length&&e){setTimeout(e);return}gi(i,0,e,n)}function mt(t,e){let n=document.getElementById(`${e}${t.idString}`);n&&(n.value=t.idValue);let i=document.getElementById(`${e}${t.nameString}`);i&&(i.value=Liferay.Util.unescape(t.nameValue));let o=document.getElementById(`${e}removeFolderButton`);o&&F(o,!1)}var cn="serialize://";function yi(t){let e=Liferay.ThemeDisplay.getDoAsUserIdEncoded(),n=new FormData;return n.append("cmd",t),n.append("p_auth",Liferay.authToken),e&&n.append("doAsUserId",e),n}function _i(){return`${Liferay.ThemeDisplay.getPortalURL()}${Liferay.ThemeDisplay.getPathMain()}/portal/session_click?p_l_id=${Liferay.ThemeDisplay.getPlid()}`}function dn(t,e={}){let n=yi("get");return n.append("key",t),e.useHttpSession&&n.append("useHttpSession",!0),C(_i(),{body:n,method:"POST"}).then(i=>i.text()).then(i=>{if(i.startsWith(cn)){let o=i.substring(cn.length);i=JSON.parse(o)}return i})}function ke(t,e,n={}){let i=yi("set");return e&&typeof e=="object"&&(e=cn+JSON.stringify(e)),i.append(t,e),n.useHttpSession&&i.append("useHttpSession",!0),C(_i(),{body:i,method:"POST"})}var fn=new fe(sessionStorage);function ht(t,e){let n=document.getElementById(e);n&&(n.classList.add("hide"),n.style.display="none",t.getModifierState("CapsLock")&&(n.classList.remove("hide"),n.style.display=""))}var Wo=/({\d+})/g;function gt(t,...e){let n=e.reduce((o,r)=>Array.isArray(r)?[...o,...r]:[...o,r],[]),i=t.split(Wo).filter(o=>o.length!==0);for(let o=0;o<n.length;o++){let r=n[o],a=`{${o}}`,s=i.indexOf(a);for(;s>=0;)i.splice(s,1,r),s=i.indexOf(a)}return i.some(o=>o&&typeof o=="object")?i:i.join("")}function yt(t,e,n,i){let o=document.getElementById(t),r=document.getElementById(e);if(o&&r){let a=o.checked;n&&(a=!a),a?r.classList.remove("hide"):r.classList.add("hide"),o.addEventListener("click",()=>{r.classList.toggle("hide"),i&&r.querySelectorAll("input[type=checkbox]").forEach(l=>{l.checked=o.checked})})}}var Ei={false:{cssClass:"controls-hidden",iconCssClass:"hidden",state:"hidden"},true:{cssClass:"controls-visible",iconCssClass:"view",state:"visible"}};function _t(t){let e=document.body;t=t._node||e;let n=t.querySelector(".toggle-controls");if(!n)return;let i=Liferay._editControlsState==="visible",o=Ei[i],r=n.querySelector(".lexicon-icon");r&&(o.icon=r),e.classList.add(o.cssClass),Liferay.fire("toggleControls",{enabled:i}),n.addEventListener("click",()=>{i=!i;let a=o;o=Ei[i],e.classList.toggle(a.cssClass),e.classList.toggle(o.cssClass);let s=o.iconCssClass,l=o.state,c=Ee(s);o.icon=c,r.replaceWith(c),r=c,Liferay._editControlsState=l,ke("com.liferay.frontend.js.web_toggleControls",l),Liferay.fire("toggleControls",{enabled:i,src:"ui"})})}function Et(t,e,n){let i=document.getElementById(t);if(i){let o;e&&(Array.isArray(e)&&(e=e.join(",#")),o=document.querySelectorAll(`#${e}`),o.forEach(r=>{i.checked?r.classList.remove("hide"):r.classList.add("hide")})),i.addEventListener("change",()=>{o&&o.forEach(r=>{r.classList.remove("hide")}),n&&(Array.isArray(n)&&(n=n.join(",#")),document.querySelectorAll(`#${n}`).forEach(a=>{a.classList.add("hide")}))})}}var Li=(t,e,n,i)=>{let o=t.value,r=n?i(o,i):i===o;e.classList.toggle("hide",!r)};function Lt(t,e,n){let i=document.getElementById(t),o=document.getElementById(n);if(!i||!o)return;let r=typeof e=="function";Li(i,o,r,e),i.addEventListener("change",()=>Li(i,o,r,e))}async function St(t){let[e,n]=Vo(t);return(await import(e))[n]}function Vo(t){let e=t.split(" from "),n=e[1]?.trim(),i=e[0]?.trim();return i.startsWith("{")&&i.endsWith("}")&&(i=i.substring(1,i.length-1).trim()),[n,i]}function Me(t){for(let{clientExtensionDefinitions:e,onLoad:n}of t){if(!e.length)continue;let i=e.map(({context:o,importDeclaration:r})=>St(r).then(a=>({binding:a,context:o})).catch(a=>({context:o,error:a})));Promise.all(i).then(n)}}function Tt({config:t,onLoad:e}){Me([{clientExtensionDefinitions:t.editorTransformerURLs.map(n=>({importDeclaration:`default from ${n}`})),onLoad:n=>{let i=JSON.parse(JSON.stringify(t));n.forEach(({binding:o})=>{let r=o?.editorConfigTransformer;r&&(i=r(i))}),e({transformedConfig:i})}}])}Liferay.Workflow={ACTION_PUBLISH:1,ACTION_SAVE_DRAFT:2,STATUS_ANY:-1,STATUS_APPROVED:0,STATUS_DENIED:4,STATUS_DRAFT:2,STATUS_EXPIRED:3,STATUS_PENDING:1};
20var un={ALERT:430,DOCK:10,DOCK_PARENT:20,DRAG_ITEM:460,DROP_AREA:440,DROP_POSITION:450,MENU:5e3,OVERLAY:1e3,POPOVER:1600,TOOLTIP:1e4,WINDOW:1200};var Si=document.currentScript.src;Liferay.BREAKPOINTS=oe;Liferay.STATUS_CODE=Kt;Liferay.zIndex=un;Liferay.component=Ln;Liferay.componentReady=Ut;Liferay.destroyComponent=Rt;Liferay.destroyComponents=Sn;Liferay.destroyUnfulfilledPromises=Tn;Liferay.getComponentCache=vn;Liferay.initComponentCache=bn;Liferay.Address={getCountries:Ke,getRegions:Ye};Liferay.DynamicSelect=we;Liferay.LayoutExporter={all:Pn,details:Nn,icons:An(),proposeLayout:Un,publishToLive:Rn,selected:On};Liferay.Portal={Tabs:{show:kn},ToolTip:{show:Mn}};Liferay.Portlet=Liferay.Portlet||{};Liferay.Portlet.minimize=Zn;Liferay.SideNavigation=ni;Liferay.Util=Liferay.Util||{};Liferay.Util.MAP_HTML_CHARS_ESCAPED=be;Liferay.Util.addParams=ze;Liferay.Util.AutoSize=At;Liferay.Util.checkAll=(...t)=>{import(Liferay.FrontendESM.buildURL(Si,"frontend-js-web","legacy")).then(({checkAll:e})=>{e(...t)})};Liferay.Util.checkAllBox=(...t)=>{import(Liferay.FrontendESM.buildURL(Si,"frontend-js-web","legacy")).then(({checkAllBox:e})=>{e(...t)})};Liferay.Util.debounce=Nt;Liferay.Util.delegate=ve;Liferay.Util.DynamicInlineScroll=It;Liferay.Util.runScriptsInElement=ln;Liferay.Util.disableEsc=()=>{document.all&&window.event.keyCode===27&&(window.event.returnValue=!1)};var Go={'"':""","&":"&","'":"'","<":"<",">":">"},Ti=/[&<>"']/g,Xo=RegExp(Ti.source);Liferay.Util.escape=t=>t&&Xo.test(t)?t.replace(Ti,e=>Go[e]):t||"";Liferay.Util.escapeHTML=X;Liferay.Util.fetch=C;Liferay.Util.focusFormField=Ze;Liferay.Util.formatStorage=et;Liferay.Util.formatXML=Qt;Liferay.Util.getCheckedCheckboxes=en;Liferay.Util.getUncheckedCheckboxes=tn;Liferay.Util.getCropRegion=tt;Liferay.Util.getDOM=Ne;Liferay.Util.getElement=ee;Liferay.Util.getGeolocation=nt;Liferay.Util.getFormElement=ye;Liferay.Util.getLexiconIcon=Ee;Liferay.Util.getLexiconIconTpl=it;Liferay.Util.getOpener=ot;Liferay.Util.getPortletConfigurationIconAction=mi;Liferay.Util.getPortletId=me;Liferay.Util.getPortletNamespace=he;Liferay.Util.getSelectedOptionValues=rt;Liferay.Util.getTop=$;Liferay.Util.getURLWithSessionId=nn;Liferay.Util.getWindow=st;Liferay.Util.inBrowserView=de;Liferay.Util.isPhone=at;Liferay.Util.isTablet=lt;Liferay.Util.loadClientExtensions=Me;Liferay.Util.loadEditorClientExtensions=Tt;Liferay.Util.navigate=rn;Liferay.Util.ns=sn;Liferay.Util.objectToFormData=H;Liferay.Util.objectToURLSearchParams=an;Liferay.Util.normalizeFriendlyURL=ct;Liferay.Util.PortletURL={createActionURL:dt,createPortletURL:O,createRenderURL:ft,createResourceURL:ut};Liferay.Util.postForm=Qe;Liferay.Util.setFormValues=_e;Liferay.Util.toCharCode=Ie;Liferay.Util.toggleDisabled=F;Liferay.Util.openWindow=Y;Liferay.Util.openInDialog=xn;Liferay.Util.removeEntitySelection=pt;Liferay.Util.selectFolder=mt;Liferay.Util.setPortletConfigurationIconAction=hi;Liferay.Util.showCapsLock=ht;Liferay.Util.sub=gt;Liferay.Util.Session={get:dn,set:ke};Liferay.Util.toggleBoxes=yt;Liferay.Util.toggleControls=_t;Liferay.Util.toggleRadio=Et;Liferay.Util.toggleSelectBox=Lt;var zo={"'":"'","&":"&",">":">","<":"<",""":'"'},vi=/&(?:amp|lt|gt|quot|#(0+)?39);/g,Ko=RegExp(vi.source);Liferay.Util.unescape=t=>t&&Ko.test(t)?t.replace(vi,e=>zo[e]||"'"):t||"";Liferay.Util.unescapeHTML=xt;Liferay.Util.Cookie=oi;Liferay.Util.LocalStorage=on;Liferay.Util.SessionStorage=fn;window.portlet=Qn;Liferay.__INTERNALS={AutoSize:At,BREAKPOINTS:oe,CONSENT_TYPES:ce,DefaultEventHandler:mn,Disposable:K,DynamicInlineScroll:It,EventEmitter:Ce,EventHandler:Cn,PortletBase:pe,STATUS_CODE:Kt,Session:Be,addParams:ze,cancelDebounce:Ot,checkConsent:Q,createActionURL:dt,createPortletURL:O,createRenderURL:ft,createResourceURL:ut,debounce:Nt,delegate:ve,escapeHTML:X,fetch:C,focusFormField:Ze,formatStorage:et,getCheckedCheckboxes:en,getCookie:Je,getCountries:Ke,getCropRegion:tt,getFormElement:ye,getGeolocation:nt,getLexiconIcon:Ee,getLexiconIconTpl:it,getOpener:ot,getPortletId:me,getPortletNamespace:he,getRegions:Ye,getSelectedOptionValues:rt,getSessionValue:dn,getTop:$,getUncheckedCheckboxes:tn,getWindow:st,inBrowserView:de,isObject:_,isPhone:at,isTablet:lt,loadClientExtensions:Me,loadEditorClientExtensions:Tt,loadModule:St,localStorage:on,memoize:ae,navigate:rn,normalizeFriendlyURL:ct,objectToFormData:H,openWindow:Y,postForm:Qe,removeCookie:Yt,removeEntitySelection:pt,runScriptsInElement:ln,selectFolder:mt,sessionStorage:fn,setCo
20okie:Jt,setFormValues:_e,setSessionValue:ke,showCapsLock:ht,sub:gt,throttle:Ue,toggleBoxes:yt,toggleControls:_t,toggleDisabled:F,toggleRadio:Et,toggleSelectBox:Lt,unescapeHTML:xt,zIndex:un};})(); 21//# sourceMappingURL=Liferay.(HCCC2MUV).js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.