-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathchunk-JR4OZW53.js
15 lines (15 loc) · 32.4 KB
/
chunk-JR4OZW53.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import{Aa as x,C as N,I as b,Ib as U,Jb as B,Lc as k,O as A,P as D,S as C,T as y,U as P,V as F,W as v,Xa as R,Ya as L,Zc as V,c as m,da as M,hc as G,pb as O,ra as H,sa as W,xa as w}from"./chunk-YDUZY7N5.js";import{a as T}from"./chunk-TWZW5B45.js";var f=class r{static isArray(n,t=!0){return Array.isArray(n)&&(t||n.length!==0)}static isObject(n,t=!0){return typeof n=="object"&&!Array.isArray(n)&&n!=null&&(t||Object.keys(n).length!==0)}static equals(n,t,e){return e?this.resolveFieldData(n,e)===this.resolveFieldData(t,e):this.equalsByValue(n,t)}static equalsByValue(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){var e=Array.isArray(n),i=Array.isArray(t),s,a,o;if(e&&i){if(a=n.length,a!=t.length)return!1;for(s=a;s--!==0;)if(!this.equalsByValue(n[s],t[s]))return!1;return!0}if(e!=i)return!1;var c=this.isDate(n),d=this.isDate(t);if(c!=d)return!1;if(c&&d)return n.getTime()==t.getTime();var l=n instanceof RegExp,p=t instanceof RegExp;if(l!=p)return!1;if(l&&p)return n.toString()==t.toString();var u=Object.keys(n);if(a=u.length,a!==Object.keys(t).length)return!1;for(s=a;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,u[s]))return!1;for(s=a;s--!==0;)if(o=u[s],!this.equalsByValue(n[o],t[o]))return!1;return!0}return n!==n&&t!==t}static resolveFieldData(n,t){if(n&&t){if(this.isFunction(t))return t(n);if(t.indexOf(".")==-1)return n[t];{let e=t.split("."),i=n;for(let s=0,a=e.length;s<a;++s){if(i==null)return null;i=i[e[s]]}return i}}else return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,t,e){let i;n&&t!==e&&(e>=n.length&&(e%=n.length,t%=n.length),n.splice(e,0,n.splice(t,1)[0]))}static insertIntoOrderedArray(n,t,e,i){if(e.length>0){let s=!1;for(let a=0;a<e.length;a++)if(this.findIndexInList(e[a],i)>t){e.splice(a,0,n),s=!0;break}s||e.push(n)}else e.push(n)}static findIndexInList(n,t){let e=-1;if(t){for(let i=0;i<t.length;i++)if(t[i]==n){e=i;break}}return e}static contains(n,t){if(n!=null&&t&&t.length){for(let e of t)if(this.equals(n,e))return!0}return!1}static removeAccents(n){return n&&(n=n.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),n}static isDate(n){return Object.prototype.toString.call(n)==="[object Date]"}static isEmpty(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!this.isDate(n)&&typeof n=="object"&&Object.keys(n).length===0}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,t,e,i=1){let s=-1,a=this.isEmpty(n),o=this.isEmpty(t);return a&&o?s=0:a?s=i:o?s=-i:typeof n=="string"&&typeof t=="string"?s=n.localeCompare(t,e,{numeric:!0}):s=n<t?-1:n>t?1:0,s}static sort(n,t,e=1,i,s=1){let a=r.compare(n,t,i,e),o=e;return(r.isEmpty(n)||r.isEmpty(t))&&(o=s===1?e:s),o*a}static merge(n,t){if(!(n==null&&t==null)){{if((n==null||typeof n=="object")&&(t==null||typeof t=="object"))return T(T({},n||{}),t||{});if((n==null||typeof n=="string")&&(t==null||typeof t=="string"))return[n||"",t||""].join(" ")}return t||n}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}static getItemValue(n,...t){return this.isFunction(n)?n(...t):n}static findLastIndex(n,t){let e=-1;if(this.isNotEmpty(n))try{e=n.findLastIndex(t)}catch{e=n.lastIndexOf([...n].reverse().find(t))}return e}static findLast(n,t){let e;if(this.isNotEmpty(n))try{e=n.findLast(t)}catch{e=[...n].reverse().find(t)}return e}static deepEquals(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){var e=Array.isArray(n),i=Array.isArray(t),s,a,o;if(e&&i){if(a=n.length,a!=t.length)return!1;for(s=a;s--!==0;)if(!this.deepEquals(n[s],t[s]))return!1;return!0}if(e!=i)return!1;var c=n instanceof Date,d=t instanceof Date;if(c!=d)return!1;if(c&&d)return n.getTime()==t.getTime();var l=n instanceof RegExp,p=t instanceof RegExp;if(l!=p)return!1;if(l&&p)return n.toString()==t.toString();var u=Object.keys(n);if(a=u.length,a!==Object.keys(t).length)return!1;for(s=a;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,u[s]))return!1;for(s=a;s--!==0;)if(o=u[s],!this.deepEquals(n[o],t[o]))return!1;return!0}return n!==n&&t!==t}},K=0;function j(r="pn_id_"){return K++,`${r}${K}`}function Q(){let r=[],n=(s,a)=>{let o=r.length>0?r[r.length-1]:{key:s,value:a},c=o.value+(o.key===s?0:a)+2;return r.push({key:s,value:c}),c},t=s=>{r=r.filter(a=>a.value!==s)},e=()=>r.length>0?r[r.length-1].value:0,i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,a,o)=>{a&&(a.style.zIndex=String(n(s,o)))},clear:s=>{s&&(t(i(s)),s.style.zIndex="")},getCurrent:()=>e()}}var tt=Q();var $=["*"],Z=function(r){return r[r.ACCEPT=0]="ACCEPT",r[r.REJECT=1]="REJECT",r[r.CANCEL=2]="CANCEL",r}(Z||{}),dt=(()=>{class r{requireConfirmationSource=new m;acceptConfirmationSource=new m;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=A({token:r,factory:r.\u0275fac})}return r})();var g=(()=>{class r{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return r})(),ut=(()=>{class r{static AND="and";static OR="or"}return r})(),ft=(()=>{class r{filter(t,e,i,s,a){let o=[];if(t)for(let c of t)for(let d of e){let l=f.resolveFieldData(c,d);if(this.filters[s](l,i,a)){o.push(c);break}}return o}filters={startsWith:(t,e,i)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let s=f.removeAccents(e.toString()).toLocaleLowerCase(i);return f.removeAccents(t.toString()).toLocaleLowerCase(i).slice(0,s.length)===s},contains:(t,e,i)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let s=f.removeAccents(e.toString()).toLocaleLowerCase(i);return f.removeAccents(t.toString()).toLocaleLowerCase(i).indexOf(s)!==-1},notContains:(t,e,i)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let s=f.removeAccents(e.toString()).toLocaleLowerCase(i);return f.removeAccents(t.toString()).toLocaleLowerCase(i).indexOf(s)===-1},endsWith:(t,e,i)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let s=f.removeAccents(e.toString()).toLocaleLowerCase(i),a=f.removeAccents(t.toString()).toLocaleLowerCase(i);return a.indexOf(s,a.length-s.length)!==-1},equals:(t,e,i)=>e==null||typeof e=="string"&&e.trim()===""?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()===e.getTime():t==e?!0:f.removeAccents(t.toString()).toLocaleLowerCase(i)==f.removeAccents(e.toString()).toLocaleLowerCase(i),notEquals:(t,e,i)=>e==null||typeof e=="string"&&e.trim()===""?!1:t==null?!0:t.getTime&&e.getTime?t.getTime()!==e.getTime():t==e?!1:f.removeAccents(t.toString()).toLocaleLowerCase(i)!=f.removeAccents(e.toString()).toLocaleLowerCase(i),in:(t,e)=>{if(e==null||e.length===0)return!0;for(let i=0;i<e.length;i++)if(f.equals(t,e[i]))return!0;return!1},between:(t,e)=>e==null||e[0]==null||e[1]==null?!0:t==null?!1:t.getTime?e[0].getTime()<=t.getTime()&&t.getTime()<=e[1].getTime():e[0]<=t&&t<=e[1],lt:(t,e,i)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<e.getTime():t<e,lte:(t,e,i)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<=e.getTime():t<=e,gt:(t,e,i)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>e.getTime():t>e,gte:(t,e,i)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>=e.getTime():t>=e,is:(t,e,i)=>this.filters.equals(t,e,i),isNot:(t,e,i)=>this.filters.notEquals(t,e,i),before:(t,e,i)=>this.filters.lt(t,e,i),after:(t,e,i)=>this.filters.gt(t,e,i),dateIs:(t,e)=>e==null?!0:t==null?!1:t.toDateString()===e.toDateString(),dateIsNot:(t,e)=>e==null?!0:t==null?!1:t.toDateString()!==e.toDateString(),dateBefore:(t,e)=>e==null?!0:t==null?!1:t.getTime()<e.getTime(),dateAfter:(t,e)=>{if(e==null)return!0;if(t==null)return!1;let i=new Date(t);return i.setHours(0,0,0,0),i.getTime()>e.getTime()}};register(t,e){this.filters[t]=e}static \u0275fac=function(e){return new(e||r)};static \u0275prov=A({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ht=(()=>{class r{messageSource=new m;clearSource=new m;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(t){t&&this.messageSource.next(t)}addAll(t){t&&t.length&&this.messageSource.next(t)}clear(t){this.clearSource.next(t||null)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=A({token:r,factory:r.\u0275fac})}return r})(),gt=(()=>{class r{clickSource=new m;clickObservable=this.clickSource.asObservable();add(t){t&&this.clickSource.next(t)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=A({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Et=(()=>{class r{ripple=!1;inputStyle=w("outlined");overlayOptions={};csp=w({nonce:void 0});filterMatchModeOptions={text:[g.STARTS_WITH,g.CONTAINS,g.NOT_CONTAINS,g.ENDS_WITH,g.EQUALS,g.NOT_EQUALS],numeric:[g.EQUALS,g.NOT_EQUALS,g.LESS_THAN,g.LESS_THAN_OR_EQUAL_TO,g.GREATER_THAN,g.GREATER_THAN_OR_EQUAL_TO],date:[g.DATE_IS,g.DATE_IS_NOT,g.DATE_BEFORE,g.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new m;translationObserver=this.translationSource.asObservable();getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=T(T({},this.translation),t),this.translationSource.next(this.translation)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=A({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),mt=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275cmp=y({type:r,selectors:[["p-header"]],standalone:!0,features:[O],ngContentSelectors:$,decls:1,vars:0,template:function(e,i){e&1&&(R(),L(0))},encapsulation:2})}return r})(),St=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275cmp=y({type:r,selectors:[["p-footer"]],standalone:!0,features:[O],ngContentSelectors:$,decls:1,vars:0,template:function(e,i){e&1&&(R(),L(0))},encapsulation:2})}return r})(),Tt=(()=>{class r{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(e){return new(e||r)(H(W))};static \u0275dir=F({type:r,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]},standalone:!0})}return r})(),At=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=P({type:r});static \u0275inj=D({})}return r})(),yt=(()=>{class r{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return r})();var bt=(()=>{class r{constructor(){this.destroyRef=C(M),this.ref=C(U),this.translateSvc=C(V),this.params$=new m,this.value="",this.params$.pipe(N(([t,e],[i,s])=>t===i&&k(e,s)),b(t=>this.translateSvc.get(...t)),G(this.destroyRef)).subscribe(t=>{this.value=t,this.ref.markForCheck()})}transform(t,e){return this.params$.next([t,e]),this.value}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275pipe=v({name:"translate",type:r,pure:!1,standalone:!0})}}return r})();var J=(()=>{class r{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(t,e){t&&e&&(t.classList?t.classList.add(e):t.className+=" "+e)}static addMultipleClasses(t,e){if(t&&e)if(t.classList){let i=e.trim().split(" ");for(let s=0;s<i.length;s++)t.classList.add(i[s])}else{let i=e.split(" ");for(let s=0;s<i.length;s++)t.className+=" "+i[s]}}static removeClass(t,e){t&&e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(t,e){t&&e&&[e].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(s=>this.removeClass(t,s)))}static hasClass(t,e){return t&&e?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})}static find(t,e){return Array.from(t.querySelectorAll(e))}static findSingle(t,e){return this.isElement(t)?t.querySelector(e):null}static index(t){let e=t.parentNode.childNodes,i=0;for(var s=0;s<e.length;s++){if(e[s]==t)return i;e[s].nodeType==1&&i++}return-1}static indexWithinGroup(t,e){let i=t.parentNode?t.parentNode.childNodes:[],s=0;for(var a=0;a<i.length;a++){if(i[a]==t)return s;i[a].attributes&&i[a].attributes[e]&&i[a].nodeType==1&&s++}return-1}static appendOverlay(t,e,i="self"){i!=="self"&&t&&e&&this.appendChild(t,e)}static alignOverlay(t,e,i="self",s=!0){t&&e&&(s&&(t.style.minWidth=`${r.getOuterWidth(e)}px`),i==="self"?this.relativePosition(t,e):this.absolutePosition(t,e))}static relativePosition(t,e,i=!0){let s=I=>{if(I)return getComputedStyle(I).getPropertyValue("position")==="relative"?I:s(I.parentElement)},a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=e.offsetHeight??e.getBoundingClientRect().height,c=e.getBoundingClientRect(),d=this.getWindowScrollTop(),l=this.getWindowScrollLeft(),p=this.getViewport(),h=s(t)?.getBoundingClientRect()||{top:-1*d,left:-1*l},E,S;c.top+o+a.height>p.height?(E=c.top-h.top-a.height,t.style.transformOrigin="bottom",c.top+E<0&&(E=-1*c.top)):(E=o+c.top-h.top,t.style.transformOrigin="top");let _=c.left+a.width-p.width,z=c.left-h.left;a.width>p.width?S=(c.left-h.left)*-1:_>0?S=z-_:S=c.left-h.left,t.style.top=E+"px",t.style.left=S+"px",i&&(t.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(t,e,i=!0){let s=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),a=s.height,o=s.width,c=e.offsetHeight??e.getBoundingClientRect().height,d=e.offsetWidth??e.getBoundingClientRect().width,l=e.getBoundingClientRect(),p=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),h=this.getViewport(),E,S;l.top+c+a>h.height?(E=l.top+p-a,t.style.transformOrigin="bottom",E<0&&(E=p)):(E=c+l.top+p,t.style.transformOrigin="top"),l.left+o>h.width?S=Math.max(0,l.left+u+d-o):S=l.left+u,t.style.top=E+"px",t.style.left=S+"px",i&&(t.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(t,e=[]){return t.parentNode===null?e:this.getParents(t.parentNode,e.concat([t.parentNode]))}static getScrollableParents(t){let e=[];if(t){let i=this.getParents(t),s=/(auto|scroll)/,a=o=>{let c=window.getComputedStyle(o,null);return s.test(c.getPropertyValue("overflow"))||s.test(c.getPropertyValue("overflowX"))||s.test(c.getPropertyValue("overflowY"))};for(let o of i){let c=o.nodeType===1&&o.dataset.scrollselectors;if(c){let d=c.split(",");for(let l of d){let p=this.findSingle(o,l);p&&a(p)&&e.push(p)}}o.nodeType!==9&&a(o)&&e.push(o)}}return e}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let e=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",e}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let e=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",e}static getHiddenElementDimensions(t){let e={};return t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",e}static scrollInView(t,e){let i=getComputedStyle(t).getPropertyValue("borderTopWidth"),s=i?parseFloat(i):0,a=getComputedStyle(t).getPropertyValue("paddingTop"),o=a?parseFloat(a):0,c=t.getBoundingClientRect(),l=e.getBoundingClientRect().top+document.body.scrollTop-(c.top+document.body.scrollTop)-s-o,p=t.scrollTop,u=t.clientHeight,h=this.getOuterHeight(e);l<0?t.scrollTop=p+l:l+h>u&&(t.scrollTop=p+l-u+h)}static fadeIn(t,e){t.style.opacity=0;let i=+new Date,s=0,a=function(){s=+t.style.opacity.replace(",",".")+(new Date().getTime()-i)/e,t.style.opacity=s,i=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};a()}static fadeOut(t,e){var i=1,s=50,a=e,o=s/a;let c=setInterval(()=>{i=i-o,i<=0&&(i=0,clearInterval(c)),t.style.opacity=i},s)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,e){var i=Element.prototype,s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(a){return[].indexOf.call(document.querySelectorAll(a),this)!==-1};return s.call(t,e)}static getOuterWidth(t,e){let i=t.offsetWidth;if(e){let s=getComputedStyle(t);i+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return i}static getHorizontalPadding(t){let e=getComputedStyle(t);return parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)}static getHorizontalMargin(t){let e=getComputedStyle(t);return parseFloat(e.marginLeft)+parseFloat(e.marginRight)}static innerWidth(t){let e=t.offsetWidth,i=getComputedStyle(t);return e+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),e}static width(t){let e=t.offsetWidth,i=getComputedStyle(t);return e-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),e}static getInnerHeight(t){let e=t.offsetHeight,i=getComputedStyle(t);return e+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),e}static getOuterHeight(t,e){let i=t.offsetHeight;if(e){let s=getComputedStyle(t);i+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return i}static getHeight(t){let e=t.offsetHeight,i=getComputedStyle(t);return e-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),e}static getWidth(t){let e=t.offsetWidth,i=getComputedStyle(t);return e-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),e}static getViewport(){let t=window,e=document,i=e.documentElement,s=e.getElementsByTagName("body")[0],a=t.innerWidth||i.clientWidth||s.clientWidth,o=t.innerHeight||i.clientHeight||s.clientHeight;return{width:a,height:o}}static getOffset(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,e){let i=t.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(e,t)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return!0;var i=t.indexOf("Trident/");if(i>0){var s=t.indexOf("rv:");return!0}var a=t.indexOf("Edge/");return a>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,e){if(this.isElement(e))e.appendChild(t);else if(e&&e.el&&e.el.nativeElement)e.el.nativeElement.appendChild(t);else throw"Cannot append "+e+" to "+t}static removeChild(t,e){if(this.isElement(e))e.removeChild(t);else if(e.el&&e.el.nativeElement)e.el.nativeElement.removeChild(t);else throw"Cannot remove "+t+" from "+e}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}static calculateScrollbarWidth(t){if(t){let e=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let e=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=e,e}static invokeElementMethod(t,e,i){t[e].apply(t,i)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||t.offsetParent===null}static isVisible(t){return t&&t.offsetParent!=null}static isExist(t){return t!==null&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,e){t&&document.activeElement!==t&&t.focus(e)}static getFocusableSelectorString(t=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
.p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
.p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`}static getFocusableElements(t,e=""){let i=this.find(t,this.getFocusableSelectorString(e)),s=[];for(let a of i){let o=getComputedStyle(a);this.isVisible(a)&&o.display!="none"&&o.visibility!="hidden"&&s.push(a)}return s}static getFocusableElement(t,e=""){let i=this.findSingle(t,this.getFocusableSelectorString(e));if(i){let s=getComputedStyle(i);if(this.isVisible(i)&&s.display!="none"&&s.visibility!="hidden")return i}return null}static getFirstFocusableElement(t,e=""){let i=this.getFocusableElements(t,e);return i.length>0?i[0]:null}static getLastFocusableElement(t,e){let i=this.getFocusableElements(t,e);return i.length>0?i[i.length-1]:null}static getNextFocusableElement(t,e=!1){let i=r.getFocusableElements(t),s=0;if(i&&i.length>0){let a=i.indexOf(i[0].ownerDocument.activeElement);e?a==-1||a===0?s=i.length-1:s=a-1:a!=-1&&a!==i.length-1&&(s=a+1)}return i[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,e){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return e?.nextElementSibling;case"@prev":return e?.previousElementSibling;case"@parent":return e?.parentElement;case"@grandparent":return e?.parentElement.parentElement;default:let i=typeof t;if(i==="string")return document.querySelector(t);if(i==="object"&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;let a=(o=>!!(o&&o.constructor&&o.call&&o.apply))(t)?t():t;return a&&a.nodeType===9||this.isExist(a)?a:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(t,e){if(t){let i=t.getAttribute(e);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(t="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,t)}static unblockBodyScroll(t="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,t)}static createElement(t,e={},...i){if(t){let s=document.createElement(t);return this.setAttributes(s,e),s.append(...i),s}}static setAttribute(t,e="",i){this.isElement(t)&&i!==null&&i!==void 0&&t.setAttribute(e,i)}static setAttributes(t,e={}){if(this.isElement(t)){let i=(s,a)=>{let o=t?.$attrs?.[s]?[t?.$attrs?.[s]]:[];return[a].flat().reduce((c,d)=>{if(d!=null){let l=typeof d;if(l==="string"||l==="number")c.push(d);else if(l==="object"){let p=Array.isArray(d)?i(s,d):Object.entries(d).map(([u,h])=>s==="style"&&(h||h===0)?`${u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?u:void 0);c=p.length?c.concat(p.filter(u=>!!u)):c}}return c},o)};Object.entries(e).forEach(([s,a])=>{if(a!=null){let o=s.match(/^on(.+)/);o?t.addEventListener(o[1].toLowerCase(),a):s==="pBind"?this.setAttributes(t,a):(a=s==="class"?[...new Set(i("class",a))].join(" ").trim():s==="style"?i("style",a).join(";").trim():a,(t.$attrs=t.$attrs||{})&&(t.$attrs[s]=a),t.setAttribute(s,a))}})}}static isFocusableElement(t,e=""){return this.isElement(t)?t.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`):!1}}return r})(),Y=class{element;listener;scrollableParents;constructor(n,t=()=>{}){this.element=n,this.listener=t}bindScrollListener(){this.scrollableParents=J.getScrollableParents(this.element);for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}};var X=["*"],Ut=(()=>{class r{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let t=f.isEmpty(this.label);this.role=t?void 0:"img",this.ariaLabel=t?void 0:this.label,this.ariaHidden=t}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=y({type:r,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[2,"spin","spin",B],styleClass:"styleClass"},standalone:!0,features:[x,O],ngContentSelectors:X,decls:1,vars:0,template:function(e,i){e&1&&(R(),L(0))},encapsulation:2,changeDetection:0})}return r})();export{f as a,j as b,tt as c,Z as d,dt as e,g as f,ut as g,ft as h,ht as i,gt as j,Et as k,mt as l,St as m,Tt as n,At as o,yt as p,J as q,Y as r,Ut as s,bt as t};